/* ========== BASE RESET & VARIABLES ========== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap");

:root {
  --primary: #2563eb;
  --accent: #e10600;
  --dark: #020617;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 16px;
  --bg: linear-gradient(to bottom, #ffffff, #f0f4f8, #374151);
  --grey-gradient: linear-gradient(to bottom, #f8f9fa, #f0f4f8, #e5e7eb);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body, h1, h2, h3, h4, h5, h6, p, ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ========== WORDPRESS CLEANUP (if used in WP) ========== */

.entry-title,
.wp-block-post-title,
.page .page-title {
  display: none !important;
}

.entry-header {
  margin: 0 !important;
  padding: 0 !important;
}

header.wp-block-template-part,
footer.wp-block-template-part,
.wp-site-blocks > footer,
body > footer.wp-block-template-part {
  display: none !important;
}

.wp-site-blocks,
.wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ========== PAGE WRAPPER ========== */

.page-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

/* ========== HEADER (same as home) ========== */

.page-wrap > header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: var(--white);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1000;
}

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

/* LOGO */

.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

a.logo {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(28px, 3.5vw, 42px) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000 !important;
  text-decoration: none !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.logo-o {
  display: inline-flex !important;
  position: relative !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
}

.logo-dots {
  position: absolute !important;
  top: -2px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  height: 0 !important;
  line-height: 0 !important;
  pointer-events: none !important;
}

.logo-dots::before,
.logo-dots::after {
  content: "•";
  color: #e10600 !important;
  font-size: 14px !important;
  line-height: 0 !important;
  display: inline-block !important;
}

.logo-line {
  width: 120px;
  height: 2px;
  background-color: #000;
  margin-top: -4px;
  margin-bottom: 2px;
}

.logo-subtext {
  font-size: 14px;
  color: #333;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: 0.02em;
}

/* NAVIGATION */

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
}

/* Burger button (shown only on mobile via media query) */

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;       /* hidden on desktop */
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 4px 0;
}

/* ========== FOOTER (same as home) ========== */

.site-footer {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0;
  margin-bottom: 0;
  background-color: #FDFBF7;
  border-top: 1px solid #EAE3D5;
  color: #4A4A4A;
  font-size: 0.95rem;
  display: block !important;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 40px 8vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  box-sizing: border-box;
}

.footer-col {
  min-width: 0;
}

.footer-col:last-child {
  text-align: right;
}

.footer-col:nth-child(2) {
  text-align: center;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.footer-col p,
.footer-col address {
  color: #555555;
  line-height: 1.8;
  font-style: normal;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  text-decoration: none;
  color: #555555;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #e10600;
}

.gravos-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.footer-bottom {
  width: 100%;
  background-color: #F7F2E9;
  padding: 25px 8vw;
  text-align: center;
  font-size: 13px;
  color: #888888;
  border-top: 1px solid #EAE3D5;
  margin: 0;
}

/* ========== SOLUTIONS LAYOUT ========== */

.solutions-page {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 24px;   /* base side padding for ALL sizes */
}

.solution-block {
  margin-bottom: 56px;
}

.solution-header {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111827;
  text-align: center;
}

/* full-width centered image */

.solution-image {
  width: 100%;
  margin: 0 auto 20px;
}

.solution-image img {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  border-radius: 16px;
}

/* two-column area under image */

.solution-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

/* description (left) */

.solution-description p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

/* features box (right) */

.solution-advantages {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 18px 20px;
}

.solution-advantages h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #111827;
}

.solution-advantages__group {
  margin-bottom: 12px;
}

.solution-advantages__group:last-child {
  margin-bottom: 0;
}

.solution-advantages__group h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #111827;
}

.solution-advantages__group ul {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #374151;
}

.solution-advantages__group li {
  margin-bottom: 4px;
}

/* ========== RESPONSIVE LAYOUT ========== */

/* stack columns and adjust margins on tablets/phones up to ~11" */
@media (max-width: 1024px) {
  .solutions-page {
    margin: 24px auto 40px;
    padding: 0 24px;   /* still keep side padding */
  }

  .solution-block {
    margin-bottom: 40px;
  }

  .solution-two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution-image img {
    width: 100%;
    border-radius: 12px;
  }

  .solution-advantages {
    padding: 16px 16px 18px;
  }
}

/* phones & small tablets (also handle header/footer & text sizes) */
@media (max-width: 768px) {
  .solution-header {
    font-size: 1.3rem;
    text-align: center;
  }

  .solution-description p {
    font-size: 0.92rem;
  }

  .solution-advantages__group ul {
    font-size: 0.88rem;
  }

  /* header */
  .page-wrap > header {
    padding: 12px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo-block {
    align-items: flex-start;
  }

  /* hide desktop links on mobile but keep burger visible */
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
    background: #000;
    margin: 3px 0;
  }

  /* slide‑down mobile menu when nav-open is set via JS */
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    right: 20px;
    background: #ffffff;
    flex-direction: column;
    padding: 10px 14px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .site-header.nav-open .nav-links a {
    font-size: 15px;
  }

  /* footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  .footer-col,
  .footer-col:last-child,
  .footer-col:nth-child(2) {
    text-align: left;
  }

  .footer-bottom {
    padding: 20px 16px;
    font-size: 12px;
  }
}

/* very small phones: slightly reduce side padding */
@media (max-width: 480px) {
  .solutions-page {
    padding: 0 20px;
  }

  .page-wrap > header {
    padding: 12px 20px;
    gap: 16px;
  }

  .footer-inner {
    padding: 25px 16px;
    gap: 20px;
  }

  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
}
