/* Home original (Builder) recriada, com as diretrizes da apple-design */

:root {
  --navy: #1C2844;
  --gold: #B68850;
  --green: #1FAF54;
  --green-hi: #14963F;
  --black: #000;
  --ink: #14110F;          /* fundo marrom quase preto dos diferenciais */
  --white: #fff;
  --muted: rgba(255, 255, 255, .86);

  /* mola criticamente amortecida (damping 1.0), sem quique */
  --spring: linear(0, .09 2.5%, .32 8%, .6 16%, .8 25%, .92 35%, .975 47%, .995 62%, 1);
  --t-fast: 160ms;
  --t-move: 380ms;

  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 16px/1.5 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1em; height: 1em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }

/* Tracking e entrelinha por tamanho: quanto maior o corpo, mais justo */
h1 { font-size: clamp(34px, 3.4vw + 10px, 44px); line-height: 1.12; letter-spacing: -.022em; }
.hero h2, .values h2 { font-size: clamp(28px, 2.4vw + 10px, 36px); line-height: 1.15; letter-spacing: -.018em; }
h3 { font-size: clamp(20px, 1vw + 14px, 24px); line-height: 1.3; letter-spacing: -.01em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Retorno no toque: reage no pointerdown, volta com mola */
[data-press] { transition: transform var(--t-move) var(--spring), background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease; }
[data-press].is-pressed { transform: scale(.96); transition-duration: 90ms; transition-timing-function: ease-out; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 32px;
  border-radius: 8px; border: 2px solid transparent;
  font: 500 16px/1.2 Montserrat, sans-serif; text-decoration: none; text-align: center; white-space: nowrap;
}
.btn--green { background: var(--green); color: #000; }
.btn--outline { background: #1D1C1D; color: var(--white); border-color: var(--gold); }
.btn--lg { min-height: 52px; min-width: 306px; }
@media (hover: hover) {
  .btn--green:hover { background: var(--green-hi); }
  .btn--outline:hover { background: var(--gold); color: #000; }
}

/* Cabeçalho: material translúcido sobre o conteúdo */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 40, 68, .84);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav__in {
  display: flex; align-items: center; gap: 24px;
  max-width: 1280px; height: var(--nav-h); margin: 0 auto; padding: 0 32px;
}
.nav__logo { flex: none; }
.nav__logo img { width: 124px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.nav__links > a, .drop > a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-size: 16px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
}
.nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links > a::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-move) var(--spring);
}
.nav__links > a[aria-current="page"]::after { transform: none; }
@media (hover: hover) {
  .nav__links > a:hover::after { transform: none; }
  .nav__links a:hover, .drop > a:hover { color: var(--gold); }
}

.drop { position: relative; display: flex; align-items: center; }
.drop__btn {
  display: grid; place-items: center; width: 32px; height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer; font-size: 22px;
}
.drop__btn svg { transition: transform var(--t-move) var(--spring); }
.drop.is-open .drop__btn svg { transform: rotate(180deg); }
/* O submenu nasce do gatilho (transform-origin no topo) e sai pelo mesmo caminho */
.drop__menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 300px; padding: 6px;
  background: rgba(28, 40, 68, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transform-origin: 24px 0;
  opacity: 0; transform: scale(.94) translateY(-4px); visibility: hidden;
  transition: opacity 180ms ease, transform var(--t-move) var(--spring), visibility 0s linear 180ms;
}
.drop.is-open .drop__menu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.drop__menu a { display: block; padding: 12px 14px; border-radius: 6px; text-decoration: none; font-size: 15px; }
@media (hover: hover) { .drop__menu a:hover { background: rgba(255, 255, 255, .08); color: var(--gold); } }

.nav__social { display: flex; gap: 2px; margin-left: auto; }
.nav__social a { display: grid; place-items: center; width: 44px; height: 44px; font-size: 22px; border-radius: 50%; }
@media (hover: hover) { .nav__social a:hover { color: var(--gold); } }
.nav__cta { padding: 10px 32px; }

.nav__toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(6, 18, 38, .78), rgba(6, 18, 38, .78)),
    url(../img/hero.webp) center / cover no-repeat;
  padding: 48px 24px 64px;
}
.hero__in { max-width: 600px; margin: 0 auto; }
.hero h1 { color: var(--gold); margin-bottom: 28px; }
.hero p { font-weight: 500; font-size: 16px; line-height: 1.55; letter-spacing: -.003em; color: var(--muted); max-width: 62ch; }
.hero p + p { margin-top: 26px; }
.hero strong { font-weight: 600; color: var(--white); }
.hero h2 { color: var(--white); margin: 40px 0 28px; }

/* Faixa "Proteja seus interesses" */
.protect { background: var(--navy); text-align: center; padding: 40px 24px 44px; }
.protect h3 { font-weight: 600; margin-bottom: 10px; }
.protect p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Faixa de botões */
.ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  background: var(--black); padding: 28px 24px;
}

/* Diferenciais */
.values { background: var(--ink); padding: 40px 24px 56px; text-align: center; }
.value { max-width: 620px; margin: 0 auto; }
.value + .value { margin-top: 44px; }
.value h2 { color: var(--gold); margin-bottom: 8px; }
.value p { font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--muted); }

/* Rodapé */
.foot { background: var(--navy); text-align: center; padding: 36px 24px 32px; }
.foot__logo { width: 112px; margin: 0 auto; }
.foot__oab { font-size: 12px; margin: 4px 0 14px; letter-spacing: .02em; }
.foot__list { list-style: none; margin: 0 auto 20px; padding: 0; display: grid; gap: 6px; width: min(100%, 330px); }
.foot__list li { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; }
.foot__list svg { width: 20px; height: 20px; justify-self: center; }
.foot__list a {
  display: flex; align-items: center; justify-content: center; min-height: 28px;
  background: #000; border-radius: 10px; font-weight: 300; text-decoration: none; padding: 2px 12px;
}
@media (hover: hover) { .foot__list a:hover { background: #0B111E; color: var(--gold); } }
.foot__small { font-size: 12px; font-weight: 500; line-height: 1.3; }
.foot__small + .foot__small { margin-top: 8px; }
.foot__small a { text-decoration: none; }
@media (hover: hover) { .foot__small a:hover { text-decoration: underline; } }

/* WhatsApp flutuante */
.fab {
  position: fixed; right: 20px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15), 0 10px 28px rgba(0, 0, 0, .25);
}

/* Celular e tablet */
@media (max-width: 1180px) {
  :root { --nav-h: 72px; }
  .nav__links, .nav__social, .nav__cta { display: none; }
  .nav__in { justify-content: space-between; padding: 0 20px; }
  .nav__logo img { width: 92px; }
  .nav__toggle {
    display: grid; align-content: center; justify-items: center; gap: 6px;
    width: 48px; height: 48px; margin-right: -8px; padding: 0;
    background: none; border: 0; cursor: pointer; border-radius: 8px;
  }
  .nav__toggle span {
    display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px;
    transition: transform var(--t-move) var(--spring), opacity 140ms ease;
  }
  .menu-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .sheet { position: fixed; inset: var(--nav-h) 0 0; z-index: 45; visibility: hidden; transition: visibility 0s linear var(--t-move); }
  .menu-open .sheet { visibility: visible; transition-delay: 0s; }
  .sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity 240ms ease; }
  .menu-open .sheet__scrim { opacity: 1; }
  /* O painel desce a partir do botão do menu e volta pelo mesmo caminho */
  .sheet__panel {
    position: relative; display: flex; flex-direction: column;
    max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 20px 24px;
    background: rgba(28, 40, 68, .96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transform-origin: calc(100% - 28px) 0;
    opacity: 0; transform: translateY(-12px) scale(.98);
    transition: opacity 200ms ease, transform var(--t-move) var(--spring);
  }
  .menu-open .sheet__panel { opacity: 1; transform: none; }
  .sheet__panel > a:not(.btn) {
    display: flex; align-items: center; min-height: 50px;
    font-size: 18px; letter-spacing: -.01em; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .sheet__panel > a[aria-current="page"] { color: var(--gold); }
  .sheet__panel > .sheet__sub { padding-left: 18px; font-size: 16px; color: var(--muted); }
  .sheet__panel .btn { margin-top: 20px; min-height: 52px; }
  .menu-open { overflow: hidden; }
}
@media (min-width: 1181px) { .sheet { display: none; } }

@media (max-width: 640px) {
  .hero { padding: 36px 20px 52px; }
  .hero h1 { margin-bottom: 24px; }
  .ctas { flex-direction: column; align-items: stretch; gap: 14px; padding: 24px 20px; }
  .btn--lg { min-width: 0; }
  .foot__list a { min-height: 40px; }
  .value + .value { margin-top: 36px; }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  [data-press].is-pressed { transform: none; opacity: .75; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .drop__menu, .sheet__panel { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #fff; --gold: #D4A66A; }
  .nav, .drop__menu, .sheet__panel { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero { background: linear-gradient(rgba(6, 18, 38, .9), rgba(6, 18, 38, .9)), url(../img/hero.webp) center / cover; }
}
