/* ============================================================
   Abertura (Header + Hero) — Consulte
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(.7rem,2vw,1.15rem) clamp(1.1rem,4vw,2.5rem);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; background: #fff; border-radius: 12px;
  padding: 8px 14px; box-shadow: var(--shadow-sm); transition: padding .4s var(--ease); }
.brand__logo { height: 40px; width: auto; display: block; transition: height .4s var(--ease); }
.is-scrolled .brand { padding: 6px 12px; }
.is-scrolled .brand__logo { height: 34px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a { position: relative; font-size: var(--step--1); font-weight: 500; color: var(--white); opacity: .9; transition: opacity .2s, color .2s; }
.is-scrolled .nav__links a { color: var(--primary); }
.nav__links a:hover { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { opacity: 1; color: var(--accent-300); font-weight: 600; }
.is-scrolled .nav__links a.is-active { color: var(--primary); }
.nav__actions { display: flex; gap: .6rem; align-items: center; }

/* Header branco (scrolled): botão ghost precisa virar contorno teal visível */
.is-scrolled .btn--ghost {
  background: transparent; color: var(--primary);
  border-color: rgba(14,90,98,.35); backdrop-filter: none;
}
.is-scrolled .btn--ghost:hover { background: var(--light-teal); border-color: var(--primary); }
.is-scrolled .menu-toggle { background: var(--light-teal); color: var(--primary); border-color: rgba(14,90,98,.18); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  padding-top: clamp(100px, 13vh, 132px); } /* respiro do header: eyebrow nunca cola no topo */
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: var(--grad-hero-veil); }
.hero__veil::after { /* accent glow bottom-left */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 12% 88%, rgba(48,181,173,.30), transparent 70%);
  mix-blend-mode: screen;
}

.hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 clamp(1.1rem,4vw,2.5rem) clamp(1.6rem,4vw,2.8rem); color: var(--white); }

.hero__eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
  border-radius: 999px; padding: .45rem .9rem; font-size: var(--step--1); }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(48,181,173,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(48,181,173,.6)} 70%{box-shadow:0 0 0 10px rgba(48,181,173,0)} 100%{box-shadow:0 0 0 0 rgba(48,181,173,0)} }

/* rotating banner phrase */
.hero__rotator { min-height: 1.3em; font-weight: 600; }
.hero__rotator b { color: var(--accent-300); font-weight: 700; }
.rot-item { display: none; }
.rot-item.is-active { display: inline; animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero__title { font-size: var(--step-4); max-width: 16ch; margin: .2rem 0 1rem; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__title em { font-style: italic; color: var(--accent-300); }
.hero__sub { font-size: var(--step-1); font-weight: 400; max-width: 46ch; color: rgba(255,255,255,.90); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* number cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: clamp(1.8rem,4vw,2.8rem);
  border-top: 1px solid rgba(255,255,255,.18); padding-top: clamp(1.2rem,3vw,1.8rem); }
.stat { }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem,1.2rem+2.6vw,3.1rem); font-weight: 600; line-height: 1; display: flex; align-items: baseline; gap: .12em; }
.stat__num .suffix { font-size: .5em; color: var(--accent-300); }
.stat__label { font-size: var(--step--1); color: rgba(255,255,255,.82); margin-top: .4rem; }
.stats__note { margin: .9rem 0 0; font-size: .74rem; letter-spacing: .04em; color: rgba(255,255,255,.62);
  display: inline-flex; align-items: center; gap: .45rem; }
.stats__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.scroll-hint { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: rgba(255,255,255,.8); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content:""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: var(--accent); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:0; top:6px} 30%{opacity:1} 60%{opacity:1; top:14px} 100%{opacity:0; top:16px} }

/* menu toggle (mobile) */
.menu-toggle { display: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color:#fff; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__actions .btn span.long { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* painel do menu mobile (fechado por padrão) */
  .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .4rem 0;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .35s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .site-header.nav-open .nav__links { max-height: 80vh; opacity: 1; visibility: visible; }
  .nav__links a { color: var(--primary); opacity: 1; padding: .95rem clamp(1.1rem, 4vw, 2.5rem); font-size: var(--step-0); }
  .nav__links a::after { display: none; } /* sem sublinhado animado no painel */
  .nav__links a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .brand__name { display: none; }
}
