/* ============================================================
   AVALIDA — self-hosted fonts (latin subset, woff2)
   Playfair Display (titles) · Source Sans 3 (body)
   Self-hosted for performance (no 3rd-party connection) and
   LGPD (visitor IP never sent to Google Fonts CDN).
   ============================================================ */

/* ---- Playfair Display ---- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-600-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Source Sans 3 ---- */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SourceSans3-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/SourceSans3-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/SourceSans3-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/SourceSans3-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   AVALIDA ENGENHARIA — Landing hidrossanitário alto padrão
   Brand kit: navy / slate / gold / cream / taupe
   Type: Playfair Display (titles) · Source Sans 3 (body)
   Fonts loaded via assets/css/fonts.css (self-hosted)
   ============================================================ */

:root {
  /* Brand colors */
  --navy:   #112250;
  --slate:  #3c5070;
  --gold:   #e0c58f;
  --gold-deep: #c9a96a;
  --gold-ink: #7d5e26;   /* accent TEXT on light bg (WCAG AA ≥4.5:1) */
  --cream:  #f5f0e9;
  --taupe:  #d9cbc2;
  --white:  #ffffff;
  --black:  #000000;

  /* Derived */
  --navy-900: #0b173a;
  --ink:      #16213f;   /* body text on light */
  --muted:    #5b6478;   /* secondary text on light */
  --muted-on-navy: #aeb8d0;
  --line:     #e3dccf;   /* hairlines on cream */
  --line-navy: rgba(224,197,143,0.22);

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --shadow-card: 0 1px 2px rgba(17,34,80,0.04), 0 18px 40px -24px rgba(17,34,80,0.28);
  --shadow-soft: 0 24px 60px -40px rgba(11,23,58,0.55);

  /* Easing */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* anchor offset under fixed nav */
section[id] { scroll-margin-top: var(--nav-h); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 0 0 4px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; border-radius: 2px; }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-ink);
  display: inline-block;
}
.on-navy .kicker { color: var(--gold); }
.on-navy .kicker::before { background: var(--gold); }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream { background: var(--cream); }
.section--taupe { background: linear-gradient(180deg, var(--cream), #efe7da); }

h2.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  max-width: 18ch;
  text-wrap: balance;
}
.lead {
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--muted);
  max-width: 62ch;
}
.on-navy .lead, .section--navy .lead { color: var(--muted-on-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  line-height: 1;
  min-height: 48px;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 14px 30px -14px rgba(201,169,106,0.7);
}
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.on-navy .btn--outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.on-navy .btn--outline:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--lg { padding: 20px 38px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled {
  background: rgba(245,240,233,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1); /* white on dark hero */
  transition: filter .35s ease;
}
.nav.scrolled .brand__logo { filter: none; }
.brand__crea {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--line-navy);
  transition: color .35s ease, border-color .35s ease;
}
.nav.scrolled .brand__crea { color: var(--gold-deep); border-color: var(--line); }

.nav__menu { display: flex; gap: 34px; }
.nav__menu a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
  transition: color .25s ease;
  position: relative;
  padding: 4px 0;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold); transition: right .3s ease;
}
.nav__menu a:hover { color: var(--gold); }
.nav__menu a.active::after { right: 0; }
.nav.scrolled .nav__menu a { color: var(--slate); }
.nav.scrolled .nav__menu a:hover,
.nav.scrolled .nav__menu a.active { color: var(--navy); }

.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav .btn { padding: 13px 22px; font-size: 14px; min-height: 0; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; border-radius: 2px; }
.nav.scrolled .nav__burger span { background: var(--navy); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7,14,36,0.96) 0%, rgba(9,19,48,0.92) 42%, rgba(13,27,64,0.80) 66%, rgba(17,34,80,0.55) 100%),
    linear-gradient(0deg, rgba(7,14,36,0.6) 0%, rgba(7,14,36,0) 42%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px var(--gutter);
}
.hero__col { max-width: 760px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub {
  margin-top: 28px;
  font-size: clamp(17px, 2vw, 20px);
  color: #cdd5e8;
  max-width: 60ch;
  line-height: 1.62;
}
.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__scarcity {
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted-on-navy);
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 54ch;
}
.hero__scarcity .dot { color: var(--gold); font-size: 20px; line-height: 1.1; }

.seals {
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line-navy);
}
.seal {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; letter-spacing: 0.04em; color: #c3cbe0;
  font-weight: 500;
}
.seal svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

/* scroll cue */
.hero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: var(--gold); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .8;
}
.hero__cue .line { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100%{ opacity:.3; transform: scaleY(.6); } 50%{ opacity:1; transform: scaleY(1);} }

/* ---------- Section head ---------- */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }

/* ---------- Ponto cego (editorial) ---------- */
.editorial p + p { margin-top: 1.3em; }
.editorial p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
  color: var(--ink);
}
.editorial .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--navy);
}
.on-navy.editorial p { color: #d4dbef; }
.on-navy.editorial .pull { color: var(--gold); }

/* ---------- Problemas (4 cards) ---------- */
.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-navy); border: 1px solid var(--line-navy); }
.problem {
  background: var(--navy);
  padding: clamp(34px, 4vw, 52px);
  position: relative;
  transition: background .4s ease;
}
.problem:hover { background: #16285c; }
.problem__num {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.problem h3 {
  font-size: clamp(24px, 2.8vw, 30px);
  margin: 14px 0 14px;
  color: var(--white);
}
.problem p { color: #c0c9e0; font-size: 17px; line-height: 1.62; }
.problem .cost { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--gold); font-size: 15px; letter-spacing: 0.02em; }
.problem__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; }

.problems-close {
  margin-top: 44px;
  font-size: clamp(18px, 2.1vw, 22px);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  max-width: 70ch;
  line-height: 1.5;
}

/* ---------- Origem (statement) ---------- */
.statement { text-align: center; max-width: 900px; margin: 0 auto; }
.statement h2 { font-size: clamp(30px, 4.4vw, 50px); }
.statement .big {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--navy);
  line-height: 1.35;
  margin-top: 26px;
}
.statement .big strong { color: var(--gold-ink); font-weight: 600; }

/* ---------- Solução (camadas) ---------- */
.layers { display: grid; gap: 22px; margin-top: 8px; }
.layer {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
  color: #8c8175;
  line-height: 0.9;
}
.layer__label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; margin-bottom: 10px; }
.layer h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; color: var(--navy); }
.layer p { color: var(--muted); font-size: 17.5px; max-width: 58ch; }

/* technical solutions */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px; }
.tech-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 38px 32px;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.tech-card .tag { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.tech-card h3 { font-size: 24px; margin: 12px 0 14px; color: var(--navy); }
.tech-card p { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.tech-card .result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--slate); }
.tech-card .result b { color: var(--navy); }

/* ---------- Resultado ---------- */
.result-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }

/* ---------- Provas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 70px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 62px); color: var(--gold); line-height: 1; }
.stat__num .pre { font-size: 0.55em; vertical-align: 0.18em; }
.stat__label { margin-top: 12px; font-size: 14.5px; color: var(--muted-on-navy); letter-spacing: 0.02em; }
.stat__stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }

.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.testi {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-navy);
  border-radius: 3px;
  padding: 34px 30px;
  display: flex; flex-direction: column;
}
.testi__quote { font-family: var(--font-display); font-style: italic; font-size: 19.5px; line-height: 1.5; color: #eef1f9; }
.testi__mark { font-family: var(--font-display); font-size: 54px; color: var(--gold); line-height: 0.5; height: 26px; }
.testi__who { margin-top: auto; padding-top: 22px; }
.testi__name { font-weight: 600; color: var(--white); }
.testi__loc { font-size: 14px; color: var(--muted-on-navy); margin-top: 2px; }

/* ---------- Engenheiro ---------- */
.eng-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.eng-photo { position: relative; }
.eng-photo__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--gold); color: var(--navy);
  padding: 18px 24px; border-radius: 3px;
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-soft); max-width: 220px; line-height: 1.3;
}
.eng-body p + p { margin-top: 1.2em; }
.eng-body p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.creds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cred { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--navy); background: var(--cream); border: 1px solid var(--line); padding: 11px 18px; border-radius: 2px; }
.cred svg { width: 16px; height: 16px; color: var(--gold-ink); }

/* ---------- Incluído (deliverables) ---------- */
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.deliv {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--line-navy);
}
.deliv__check { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.deliv__check svg { width: 15px; height: 15px; }
.deliv p { font-size: 17.5px; color: #d6ddef; line-height: 1.5; }
.deliv p b { color: var(--white); font-weight: 600; }

/* ---------- Para quem é ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fit-card { border-radius: 3px; padding: clamp(32px, 4vw, 48px); }
.fit-card--yes { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.fit-card--no { background: #efe7da; border: 1px solid var(--taupe); }
.fit-card h3 { font-size: 23px; margin-bottom: 24px; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.fit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.fit-list li { display: flex; gap: 13px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.fit-list li svg { flex: none; width: 21px; height: 21px; margin-top: 2px; }
.fit-card--yes svg { color: #2f7d5b; }
.fit-card--no { color: var(--slate); }
.fit-card--no svg { color: #b06a55; }
.fit-card--no .fit-list li { color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 28px 50px 28px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 23px); color: var(--navy);
  line-height: 1.3;
}
.faq__q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d5e26' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .35s ease;
}
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq__a p { padding: 0 60px 30px 0; color: var(--muted); font-size: 17.5px; line-height: 1.65; }

/* ---------- Momento (urgency) ---------- */
.momento { text-align: center; }
.momento .big { font-family: var(--font-display); font-style: italic; font-size: clamp(24px,3.2vw,34px); color: var(--gold-ink); margin-top: 26px; }

/* ---------- Form final ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.cta-copy .scarcity-box {
  margin-top: 30px; padding: 22px 24px;
  border: 1px solid var(--line-navy);
  background: rgba(224,197,143,0.08); border-radius: 4px;
  font-size: 16px; color: #d8def0; line-height: 1.55;
}
.cta-copy .scarcity-box::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); margin-right: 10px; vertical-align: middle;
}
.cta-trust { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; }
.cta-trust .seal { color: #c8cfe2; }

.ps {
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-navy);
  font-size: 16px; color: #c1c9de; line-height: 1.6;
}
.ps b { color: var(--gold); font-family: var(--font-display); font-style: italic; font-weight: 600; }
.alt-contact { margin-top: 20px; font-size: 15.5px; color: var(--muted-on-navy); }
.alt-contact a { color: var(--gold); font-weight: 600; }

.form {
  background: var(--white);
  border-radius: 4px;
  padding: clamp(28px, 3.4vw, 44px);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 100px;
}
.form h3 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.form .form-sub { font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--slate); letter-spacing: 0.02em; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 3px; background: #fdfbf8;
  transition: border .2s ease, box-shadow .2s ease;
  min-height: 48px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(224,197,143,0.25); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0492f; background: #fdf3f0; }
.field .err { display: none; margin-top: 6px; font-size: 13px; color: #c0492f; font-weight: 600; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; margin-top: 8px; }
.form__privacy { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.5; text-align: center; }

/* consent checkbox */
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 6px; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--gold-deep); }
.consent label { font-size: 13.5px; color: var(--muted); line-height: 1.45; font-weight: 400; letter-spacing: 0; margin: 0; }
.consent a { color: var(--gold-ink); font-weight: 600; text-decoration: underline; }

/* honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* form success / error states */
.form__msg { display: none; border-radius: 4px; padding: 16px 18px; margin-top: 8px; font-size: 15px; line-height: 1.5; }
.form__msg.show { display: block; }
.form__msg--ok { background: #ecf6f0; border: 1px solid #bfe0cd; color: #1f6b48; }
.form__msg--err { background: #fdf1ee; border: 1px solid #f0c9bf; color: #b23c22; }
.form__success {
  display: none; text-align: center; padding: 30px 8px;
}
.form__success.show { display: block; }
.form__success .ok-icon { width: 64px; height: 64px; border-radius: 50%; background: #ecf6f0; color: #2f7d5b; display: grid; place-items: center; margin: 0 auto 20px; }
.form__success .ok-icon svg { width: 32px; height: 32px; }
.form__success h3 { color: var(--navy); margin-bottom: 10px; }
.form__success p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 38ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aeb8d0; padding: 56px 0 calc(56px + var(--safe-b)); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer .brand__logo { width: 160px; filter: brightness(0) invert(1); }
.footer__meta { font-size: 14.5px; line-height: 1.7; max-width: 60ch; }
.footer__links { display: flex; gap: 22px; font-size: 15px; }
.footer__links a:hover { color: var(--gold); }

/* ---------- Mobile sticky CTA bar ---------- */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(11,23,58,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-navy);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.mcta.show { transform: translateY(0); }
.mcta a { flex: 1; }
.mcta .btn { width: 100%; padding: 14px 16px; }
.mcta .btn--wa { background: #1faa55; color: #fff; box-shadow: none; }
.mcta .btn--wa:hover { background: #198f47; }

/* ---------- LGPD consent banner ---------- */
.cookie {
  position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px;
  max-width: 520px; margin: 0 auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 20px 22px;
  display: none;
}
.cookie.show { display: block; animation: cookieUp .5s cubic-bezier(.2,.7,.2,1); }
@keyframes cookieUp { from { opacity:0; transform: translateY(16px);} to { opacity:1; transform:none;} }
.cookie p { font-size: 14px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.cookie a { color: var(--gold-ink); font-weight: 600; text-decoration: underline; }
.cookie__row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__row .btn { flex: 1; min-width: 130px; padding: 12px 16px; font-size: 14px; }
.cookie .btn--ghost { background: transparent; border-color: var(--line); color: var(--slate); box-shadow: none; }
.cookie .btn--ghost:hover { background: var(--cream); transform: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cue { display: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
  padding: 80px 24px calc(40px + var(--safe-b));
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--white); font-family: var(--font-display); font-size: 28px; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .tech-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .testi-grid { grid-template-columns: 1fr; }
  .eng-split { grid-template-columns: 1fr; gap: 60px; }
  .eng-photo { max-width: 420px; }
  .result-split { grid-template-columns: 1fr; gap: 44px; }
  .cta-split { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav__menu, .nav__cta .btn { display: none; }
  .nav__burger { display: block; }
  .problems { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 56px 1fr; gap: 18px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .brand__crea { display: none; }
  .brand__logo { width: 124px; }
  .mcta { display: flex; }
  .hero__cue { display: none; }
  /* breathing room above sticky bar */
  #contato { padding-bottom: calc(clamp(72px,10vw,140px) + 72px); }
  .eng-photo__badge { left: 0; bottom: -16px; }
}
@media (max-width: 380px) {
  .hero__actions .btn { width: 100%; }
}

/* ============================================================
   Premium effects
   ============================================================ */

/* Scroll progress (gold hairline) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  pointer-events: none;
}

/* Hero background parallax (scale gives overflow room; JS translates) */
.hero__bg img { will-change: transform; transform: scale(1.12); }
.hero__bg { animation: heroIn 1.2s var(--ease-expo) both; }
@keyframes heroIn { from { opacity: .35; } to { opacity: 1; } }

/* Kicker line draws in with the reveal */
.kicker::before { transform: scaleX(0); transform-origin: left center; transition: transform .85s var(--ease-expo) .15s; }
.reveal.in .kicker::before,
.kicker.reveal.in::before,
.sec-head.in .kicker::before { transform: scaleX(1); }

/* Gold button: light sweep on hover */
.btn--gold { position: relative; overflow: hidden; isolation: isolate; }
.btn--gold::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); transition: left .65s var(--ease-quint); pointer-events: none; z-index: -1;
}
.btn--gold:hover::after { left: 140%; }

/* Media reveal: clip + zoom as it scrolls in */
.reveal--media { opacity: 0; transform: scale(1.05); clip-path: inset(6% 0% 6% 0%);
  transition: opacity .8s var(--ease-quart), transform 1.25s var(--ease-expo), clip-path 1.1s var(--ease-expo); }
.reveal--media.in { opacity: 1; transform: none; clip-path: inset(0% 0% 0% 0%); }

/* Tech card: gold top line on hover + lift (lift already defined) */
.tech-card { position: relative; overflow: hidden; }
.tech-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-quint);
}
.tech-card:hover::before { transform: scaleX(1); }

/* Problem card: icon lifts on hover */
.problem__icon { transition: transform .45s var(--ease-expo); }
.problem:hover .problem__icon { transform: scale(1.14) translateY(-2px); }

/* Stat number: gold underline grows when section reveals */
.stat__num { position: relative; display: inline-block; padding-bottom: 8px; }
.stat__num::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center;
  transition: transform .7s var(--ease-expo) .25s;
}
.reveal.in .stat__num::after { transform: scaleX(1); }

/* Nav CTA gentle scale on hover (premium tactility) */
.nav .btn--gold:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero__bg img { animation: none; transform: none; }
  .kicker::before { transform: scaleX(1) !important; transition: none; }
  .reveal--media { opacity: 1; transform: none; clip-path: none; transition: none; }
  .btn--gold::after { display: none; }
  .stat__num::after { transform: scaleX(1); }
}

/* ============================================================
   BIM 3D viewer (model-viewer) — section "O resultado"
   ============================================================ */
.bim3d {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 6px; overflow: hidden;
  background: radial-gradient(120% 120% at 32% 18%, #1a2f5e 0%, var(--navy-900) 72%);
  border: 1px solid var(--line-navy);
  box-shadow: var(--shadow-soft);
}
.bim3d model-viewer {
  width: 100%; height: 100%; background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--gold);
}
.bim3d__cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 12.5px; letter-spacing: 0.03em; color: #c3cbe0;
  background: rgba(11,23,58,0.62); padding: 6px 12px; border-radius: 20px;
  pointer-events: none;
}
.ar-btn {
  position: absolute; right: 14px; top: 14px;
  background: var(--gold); color: var(--navy); border: 0; border-radius: 22px;
  padding: 9px 16px; font-family: var(--font-body); font-weight: 600; font-size: 13px;
  cursor: pointer; box-shadow: var(--shadow-card);
}
.ar-btn:hover { background: var(--gold-deep); }
@media (max-width: 980px) {
  .bim3d { aspect-ratio: 16 / 12; max-height: 70vh; }
}

/* Hero above-the-fold: paint immediately (fast LCP), transform-only entrance */
.hero .reveal { opacity: 1; transform: translateY(12px); animation: heroRise .7s var(--ease-expo) forwards; }
.hero .reveal.d1 { animation-delay: .06s; }
.hero .reveal.d2 { animation-delay: .12s; }
.hero .reveal.d3 { animation-delay: .18s; }
@keyframes heroRise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .reveal { transform: none; animation: none; }
}
