/* =========================================================
   HCF Assessoria Contábil — One Page
   Paleta: Azul confiança / Dourado credibilidade / Bege / Cinza
   ========================================================= */

:root{
  --navy: #0e1b33;
  --navy-2: #16274a;
  --navy-soft: #22335c;
  --gold: #b08d57;
  --gold-light: #d8bd8e;
  --beige: #f4efe6;
  --gray: #6b7078;
  --text: #1b2333;
  --white: #ffffff;

  --font-head: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 32px rgba(14, 27, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 27, 51, 0.18);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open{ position: fixed; left: 0; right: 0; width: 100%; overflow-y: scroll; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3{ font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p{ margin: 0 0 1em; }
.container{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section{ padding: 96px 0; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }
.muted{ color: var(--gray); font-size: .92em; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .1s linear;
}

/* ---------- Scroll reveal ---------- */
.reveal{
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-scale{ transform: translateY(0) scale(.94); }
.reveal-scale.is-visible{ transform: translateY(0) scale(1); }

.kicker{
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600;
  color: var(--gold); margin-bottom: .6em;
}
.section-lead{ max-width: 640px; color: var(--gray); font-size: 1.05rem; }

/* ---------- Destaques de peso/cor em títulos e CTAs ---------- */
.highlight{ color: var(--gold); font-weight: 800; }
.fator-r .highlight{ color: var(--gold-light); }

.cta-note{
  display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,.8); margin: 0 0 28px;
}
.cta-note .icon-wa{ width: 16px; height: 16px; fill: #25D366; flex-shrink: 0; }
.cta-note.center{ justify-content: center; }
.about .cta-note, .differentials .cta-note, .services .cta-note, .contact .cta-note, .how-it-works .cta-note{ color: var(--gray); }
.how-it-works .cta-note .icon-wa{ display: none; }
.fator-note{ justify-content: center; color: rgba(255,255,255,.75) !important; margin-top: 18px; }

.section-cta{ text-align: center; margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn{
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 100%; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  text-align: center; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn::before{
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s ease; z-index: 1; pointer-events: none;
}
.btn:hover::before{ left: 120%; }
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn-lg{ padding: 16px 32px; font-size: 1.02rem; }
.btn-block{ width: 100%; }

.btn-primary{ background: var(--navy); color: #fff; }
.btn-primary:hover{ background: var(--navy-2); box-shadow: var(--shadow); }

.btn-gold{ background: var(--gold); color: var(--navy); }
.btn-gold:hover{ background: var(--gold-light); box-shadow: var(--shadow); }

.btn-ghost{ background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover{ background: rgba(255,255,255,.1); border-color: #fff; }

.btn-header{ padding: 10px 20px; font-size: .88rem; white-space: nowrap; }
.icon-wa{ width: 18px; height: 18px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(14,27,51,.08);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled{
  box-shadow: 0 8px 24px rgba(14,27,51,.1);
  background: rgba(255,255,255,.98);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
  transition: height .25s ease;
}
.site-header.is-scrolled .header-inner{ height: 64px; }
.brand-logo{ height: 46px; width: auto; object-fit: contain; transition: height .25s ease; }
.site-header.is-scrolled .brand-logo{ height: 38px; }

.main-nav ul{ display: flex; gap: 22px; }
.nav-link{
  font-weight: 500; font-size: .9rem; color: var(--text); position: relative; padding: 6px 0;
  white-space: nowrap;
}
.nav-link::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link.active::after{ transform: scaleX(1); }
.nav-link.active{ color: var(--navy); font-weight: 600; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  position: relative; z-index: 101;
}
.nav-toggle span{
  display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative; padding: 190px 0 120px; color: #fff; overflow: hidden;
  background: var(--navy);
}
.hero-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(176,141,87,.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34,51,92,.65), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy) 100%);
  z-index: 0;
}
.hero-bg::after{
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
}
.hero-inner{ position: relative; z-index: 1; max-width: 780px; }

@keyframes float-badge{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}
.hero-floaters{ position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.hero-floater{
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px); border-radius: 999px; padding: 10px 18px;
  font-size: .82rem; font-weight: 600; color: #fff; white-space: nowrap;
  animation: float-badge 6s ease-in-out infinite;
}
.hero-floater .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); flex-shrink: 0; }
.hero-floater--1{ top: 10%; right: 8%; animation-delay: 0s; }
.hero-floater--2{ top: 42%; right: 20%; animation-delay: 1.4s; }
.hero-floater--3{ top: 74%; right: 4%; animation-delay: 2.8s; }
@media (min-width: 1100px){ .hero-floaters{ display: block; } }
.eyebrow{
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 1em;
}
.hero h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin-bottom: .45em; }
.hero-lead{ font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 40px; }
.hero-badges{ display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-badges li{
  font-size: .86rem; color: rgba(255,255,255,.85); padding-left: 22px; position: relative;
}
.hero-badges li::before{
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

/* ---------- Stats bar ---------- */
.stats-bar{
  background: var(--navy-2); padding: 0;
  margin-top: -1px;
}
.stats-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 40px 0;
}
.stat-item{
  text-align: center; padding: 0 16px; position: relative;
}
.stat-item + .stat-item::before{
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 40px; background: rgba(255,255,255,.14);
}
.stat-value{
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-light); display: inline-flex; align-items: baseline; gap: 2px;
}
.stat-label{
  color: rgba(255,255,255,.78); font-size: .86rem; font-weight: 500; margin-top: 6px;
}

/* ---------- About ---------- */
.about-grid{
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start;
}
.about-text h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); }
.about-text p{ color: var(--gray); font-size: 1.02rem; }
.values-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.value-chip{
  background: var(--beige); color: var(--navy); font-size: .82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
}
.about-cards{ display: flex; flex-direction: column; gap: 22px; }
.mv-card{
  background: var(--white); border: 1px solid rgba(14,27,51,.08); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.mv-card h3{ color: var(--navy); font-size: 1.3rem; margin-bottom: .4em; }
.mv-card p{ color: var(--gray); margin: 0; font-size: .96rem; }

/* ---------- Differentials ---------- */
.differentials{ background: var(--beige); }
.differentials h2, .services h2{ color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 720px; }

.cards-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px;
}
.differentials .cards-grid{ grid-template-columns: repeat(2, 1fr); gap: 20px; }

.feature-card{
  display: flex; align-items: flex-start; gap: 18px; text-align: left;
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon{
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 50%; background: var(--navy);
  transition: transform .3s ease, background .3s ease;
}
.feature-card:hover .feature-icon{ transform: rotate(-8deg) scale(1.08); background: var(--gold); }
.feature-icon svg{ width: 24px; height: 24px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.feature-card:hover .feature-icon svg{ stroke: var(--navy); }
.feature-body{ flex: 1; min-width: 0; }
.feature-card h3{ color: var(--navy); font-size: 1.08rem; margin-bottom: .35em; }
.feature-card p{ color: var(--gray); font-size: .92rem; margin: 0; }

/* ---------- Services ---------- */
.services-grid{ grid-template-columns: repeat(5, 1fr); }
.service-card{
  background: var(--beige); border-radius: var(--radius); padding: 30px 24px;
  border-top: 3px solid var(--gold); transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.service-num{ font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: .2em; }
.service-card h3{ color: var(--navy); font-size: 1.08rem; margin-bottom: .5em; }
.service-card p{ color: var(--gray); font-size: .92rem; margin: 0; }

/* ---------- Como funciona ---------- */
.how-it-works h2{ color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 760px; }
.steps-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; counter-reset: step;
}
.step-card{ text-align: center; padding: 0 12px; }
.step-number{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold-light);
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 18px;
}
.step-card h3{ color: var(--navy); font-size: 1.15rem; margin-bottom: .5em; }
.step-card p{ color: var(--gray); font-size: .95rem; margin: 0; }
.how-cta{ text-align: center; margin-top: 48px; }

/* ---------- Qualificação (para quem é / não é) ---------- */
.fit{ background: var(--white); }
.fit-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px;
}
.fit-card{
  border-radius: var(--radius); padding: 32px 28px;
}
.fit-card--yes{ background: var(--beige); border: 1px solid rgba(176,141,87,.25); }
.fit-card--no{ background: #fff; border: 1px solid rgba(14,27,51,.1); }
.fit-card h3{
  display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--navy); margin-bottom: 20px;
}
.fit-card h3 .fit-icon{
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.fit-card--yes h3 .fit-icon{ background: var(--gold); color: #fff; }
.fit-card--no h3 .fit-icon{ background: var(--gray); color: #fff; }
.fit-card h3 svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fit-list{ display: flex; flex-direction: column; gap: 14px; }
.fit-list li{
  display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: .95rem;
}
.fit-card--no .fit-list li{ color: var(--gray); }
.fit-list li::before{
  content: ''; flex-shrink: 0; margin-top: 7px; width: 6px; height: 6px; border-radius: 50%;
}
.fit-card--yes .fit-list li::before{ background: var(--gold); }
.fit-card--no .fit-list li::before{ background: var(--gray); }

/* ---------- Fator R ---------- */
.fator-r{
  position: relative; color: #fff; overflow: hidden; text-align: center;
}
.fator-bg{
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 50% 0%, rgba(176,141,87,.25), transparent 60%),
              linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
}
.fator-inner{ position: relative; z-index: 1; max-width: 760px; }
.badge-gold{
  display: inline-block; background: rgba(176,141,87,.18); color: var(--gold-light);
  border: 1px solid rgba(176,141,87,.5); padding: 8px 18px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 22px;
}
.fator-r h2{ font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; }
.fator-lead{ color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; }

.fator-compare{
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 0 auto 32px; flex-wrap: wrap;
}
.fator-card{
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 30px; min-width: 190px; text-align: center;
}
.fator-card span{ display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.fator-card strong{ display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.fator-card--before strong{ color: rgba(255,255,255,.75); }
.fator-card--after{ background: rgba(176,141,87,.16); border-color: rgba(176,141,87,.5); }
.fator-card--after strong{ color: var(--gold-light); }
.fator-arrow{ color: var(--gold-light); flex-shrink: 0; }
.fator-arrow svg{ width: 30px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fator-fineprint{ color: rgba(255,255,255,.55); font-size: .78rem; max-width: 520px; margin: -18px auto 32px; }

/* ---------- FAQ ---------- */
.faq{ background: var(--beige); }
.faq-list{ max-width: 820px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item{
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 28px;
}
.faq-item summary{
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--gold); font-weight: 700;
}
.faq-item[open] summary::after{ content: '\2013'; }
.faq-item p{ color: var(--gray); font-size: .95rem; padding: 0 0 22px; margin: -6px 0 0; }

/* ---------- Contact ---------- */
.contact-grid{
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; margin-top: 48px; align-items: start;
}
.contact-info{ display: flex; flex-direction: column; gap: 26px; }
.info-item{ display: flex; gap: 16px; align-items: flex-start; }
.info-icon{
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--beige);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg{ width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-item h4{ margin: 0 0 .25em; color: var(--navy); font-size: 1rem; }
.info-item p{ margin: 0; color: var(--gray); font-size: .94rem; }
.info-item a:hover{ color: var(--gold); }
.map-wrap{
  margin-top: 8px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  height: 220px;
}
.map-wrap iframe{ width: 100%; height: 100%; border: 0; }

.contact-form{
  background: var(--beige); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-row{ margin-bottom: 18px; }
.form-row label{ display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea{
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(14,27,51,.18);
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--gold);
}
.form-note{ text-align: center; font-size: .82rem; color: var(--gray); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: rgba(255,255,255,.75); padding: 48px 0; text-align: center; }
.footer-logo{ height: 40px; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: .9; }
.footer-inner p{ margin: 4px 0; font-size: .9rem; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp{
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.fab-whatsapp::before{
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  animation: fab-pulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes fab-pulse{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.9); opacity: 0; }
}
.fab-whatsapp:hover{ transform: scale(1.08); }
.fab-whatsapp svg{ width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .cards-grid, .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat-item:nth-child(3)::before{ display: none; }
  .fit-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 960px){
  /* O header não pode encolher no mobile: o painel do menu usa top:76px fixo,
     e um header mais baixo abriria uma fresta entre os dois. */
  .site-header.is-scrolled .header-inner{ height: 76px; }
  .site-header.is-scrolled .brand-logo{ height: 46px; }

  .main-nav{
    /* height explícita (não bottom:0): com overflow-y:auto, position:fixed
       derivando a altura de top+bottom faz o Chrome pintar o fundo só até a
       altura do conteúdo, deixando o resto do painel transparente. */
    position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px);
    background: #fff; padding: 32px 24px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto; z-index: 100;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 22px; font-size: 1.1rem; }
  .nav-toggle{ display: flex; order: 3; }
  .btn-header{ display: none; }
  .header-inner{ flex-wrap: wrap; }
}

@media (max-width: 640px){
  .section{ padding: 72px 0; }
  .hero{ padding: 150px 0 90px; text-align: left; }
  .cards-grid, .services-grid, .differentials .cards-grid{ grid-template-columns: 1fr; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .stats-grid{ grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .fator-compare{ flex-direction: column; }
  .fator-arrow{ transform: rotate(90deg); }
}
