/* ==========================================================================
   Douglas Lacerda · Advogado
   Paleta: azul-marinho muito escuro + azul profundo institucional + dourado como destaque.
   Tipografia: Outfit (títulos) · Manrope (texto) · Allura (assinatura).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Cores — paleta "advocacia premium" */
  --bg: #0b1120;              /* fundo principal (azul-marinho muito escuro) */
  --bg-2: #111827;            /* fundo secundário (seções alternadas) */
  --bg-deep: #080d18;         /* rodapé */
  --surface: #111827;         /* cards sobre o fundo principal */
  --surface-2: #162033;       /* cards sobre o fundo secundário */
  --field: #0b1120;           /* campos de formulário */
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f8f7f3;            /* texto principal */
  --text-soft: #e2e1db;
  --muted: #a8afbc;           /* texto secundário (contraste ≥ 7:1) */
  --dim: #8b93a1;             /* texto terciário (contraste ≥ 4,5:1) */
  --blue-deep: #1e3a5f;       /* azul profundo institucional */
  --blue-mid: #395a78;
  --gold: #c7a15a;            /* dourado principal: ativos e destaques */
  --gold-light: #e4c98a;      /* dourado claro: ícones, detalhes, hover */
  --gold-line: rgba(199, 161, 90, .35);
  --accent: var(--gold-light);
  --danger: #f28b82;
  --demo: #c9d3e1;            /* marcação de conteúdo demonstrativo */
  --whatsapp: #1f9d55;        /* verde associado ao WhatsApp, em tom sóbrio */
  --grad: linear-gradient(100deg, #1e3a5f 0%, #395a78 55%, #c7a15a 100%);   /* usar com moderação */
  --grad-text: linear-gradient(95deg, #e4c98a 0%, #c7a15a 100%);

  /* Tipografia */
  --f-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-script: "Allura", "Segoe Script", cursive;

  /* Layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --header-h-compact: 60px;
  --section-y: clamp(72px, 9vw, 120px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

section[id] { scroll-margin-top: calc(var(--header-h-compact) + env(safe-area-inset-top, 0px)); }

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Revisão de conteúdo: site-config.js → highlightPlaceholders: true */
html.show-placeholders [data-placeholder] { outline: 1px dashed rgba(255, 170, 90, .9); outline-offset: 3px; }

/* ---------- Tipografia de seção ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.display__sub {
  display: block;
  margin-top: 8px;
  font-family: var(--f-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--f-body);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 56px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* ---------- Botões ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 148px; min-height: var(--h); padding: 0 30px;
  border: 0; border-radius: 999px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  color: #fff; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s, filter .3s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary {
  background: var(--gold); color: var(--bg);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--gold-light); box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--bg-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold-line); }
.btn--ghost:hover { background: #151e30; box-shadow: inset 0 0 0 1px rgba(199, 161, 90, .75); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--gold-line); }
.btn--outline:hover { background: rgba(199, 161, 90, .06); box-shadow: inset 0 0 0 1px rgba(199, 161, 90, .75); }
.btn--outline .icon { width: 16px; height: 16px; color: var(--gold-light); transition: transform .25s var(--ease); }
.btn--outline:hover .icon { transform: translateX(3px); }
.btn--sm { --h: 44px; min-width: 0; padding: 0 20px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn--lg { --h: 56px; font-size: .98rem; }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s, box-shadow .35s;
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.header.is-scrolled,
html.menu-open .header {
  background: rgba(11, 17, 32, .86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 14px 32px -26px rgba(0, 0, 0, .9);
}
.header.is-scrolled .header__bar,
html.menu-open .header__bar { height: var(--header-h-compact); }

.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; color: var(--text);
}
.brand__mark { width: 26px; height: 26px; stroke: url(#g-brand); stroke-width: 1.8; }

.nav { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 16px); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1.5px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"] { color: var(--gold-light); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h-compact) + env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;   /* ao fechar: some depois do fade */
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }   /* ao abrir: já pode receber foco */
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px;
  font-family: var(--f-display); font-size: 1.3rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transform: translateY(10px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease), color .2s;
}
.mobile-menu__nav a .icon { width: 18px; height: 18px; color: var(--dim); transition: transform .25s var(--ease), color .2s; }
.mobile-menu__nav a:hover .icon, .mobile-menu__nav a[aria-current="true"] .icon { color: var(--gold); transform: translateX(3px); }
.mobile-menu__nav a[aria-current="true"] { color: var(--gold-light); }
.mobile-menu.is-open .mobile-menu__nav a { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: .03s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: .06s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: .09s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(5) { transition-delay: .12s; }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mobile-menu__foot p { font-size: .8rem; color: var(--dim); text-align: center; }

@media (max-width: 900px) {
  :root { --header-h: 64px; --header-h-compact: 58px; }
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
}

/* ==========================================================================
   Sistema de fotos: a foto aparece se o arquivo existir; senão, o placeholder.
   ========================================================================== */
.media { position: relative; margin: 0; overflow: hidden; }
.media > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease), filter .5s;
}
.media.has-photo > img { opacity: 1; }
.media.has-photo > .ph { display: none; }
.ph { position: absolute; inset: 0; }
.ph--mono {
  display: grid; place-items: center;
  background:
    radial-gradient(80% 70% at 70% 20%, rgba(30, 58, 95, .55), transparent 70%),
    linear-gradient(180deg, #152238, #0b1120);
}
.ph--mono span {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(6rem, 14vw, 10rem); letter-spacing: -.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(228, 201, 138, .45);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 4.5vw, 56px));
  background:
    radial-gradient(60% 70% at 78% 0%, rgba(30, 58, 95, .5), transparent 70%),
    radial-gradient(45% 55% at 58% 100%, rgba(30, 58, 95, .28), transparent 70%),
    linear-gradient(180deg, #0b1120 0%, #0c1324 60%, #0e1629 100%);
}
.hero::before { /* vinheta nas bordas: separa planos e dá profundidade */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 95% at 55% 35%, transparent 55%, rgba(4, 7, 15, .5) 100%);
}
.hero::after { /* linha de luz na base */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(57, 90, 120, .6) 30%, rgba(199, 161, 90, .35) 70%, transparent);
}
.hero__waves {
  position: absolute; top: 0; right: 0; z-index: -1;
  width: min(80%, 1150px); height: 88%;
  pointer-events: none;
  opacity: .7;
  -webkit-mask-image: radial-gradient(75% 85% at 62% 28%, #000 25%, transparent 78%);
  mask-image: radial-gradient(75% 85% at 62% 28%, #000 25%, transparent 78%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) 176px;
  align-items: end;
  column-gap: clamp(12px, 2vw, 32px);
}
.hero--no-stats .hero__grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }

.hero__content {
  grid-column: 1; grid-row: 1; align-self: center;
  position: relative; z-index: 3;
  padding-block: 16px clamp(64px, 8vw, 104px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  margin-bottom: 28px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--text-soft);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09);
}
.hero__eyebrow .icon { width: 16px; height: 16px; color: var(--gold); }
.hero__eyebrow-sep { color: var(--dim); }

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5.9vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.03em;
  white-space: nowrap;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 26px rgba(3, 6, 14, .55));
}
.hero__line {
  display: block;
  background: linear-gradient(180deg, #f8f7f3 35%, #d6dce5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) both;
}
.hero__line--indent { padding-left: 1.05em; animation-delay: .1s; }
.hero__lead {
  max-width: 39ch;
  font-size: clamp(1rem, .3vw + .92rem, 1.0625rem); line-height: 1.75;
  color: #b7bdc8;
  margin-bottom: 36px;
  animation: rise 1s .2s var(--ease) both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1s .3s var(--ease) both; }

.hero__portrait {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 1; align-self: end; justify-self: center;
  width: min(100%, 460px); aspect-ratio: 3 / 4;
  margin-left: -8%;
  overflow: visible;
  animation: fade 1.4s .1s var(--ease) both;
}
.hero__portrait::before { /* luz ambiente atrás da pessoa */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 2%; width: 112%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 58, 95, .6) 0%, rgba(30, 58, 95, .26) 45%, rgba(57, 90, 120, .06) 72%, transparent 100%);
}
.hero__halo { /* anel sutil que recorta a silhueta do fundo */
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 6%; width: 76%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(199, 161, 90, .14);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .035), transparent);
}
.hero__portrait > img {
  object-fit: contain; object-position: 50% 100%;
  filter:
    drop-shadow(-4px -2px 8px rgba(228, 201, 138, .12))
    drop-shadow(4px -2px 8px rgba(120, 150, 190, .12))
    drop-shadow(0 28px 36px rgba(2, 5, 12, .55))
    saturate(.95) contrast(1.03);
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
}
.hero__portrait .ph { border-radius: 24px 24px 0 0; }

.hero__stats {
  grid-column: 3; grid-row: 1; align-self: center; z-index: 3;
  list-style: none; margin: 0; padding: 0 0 56px;
  display: grid;
  animation: rise 1s .45s var(--ease) both;
}
.hero__stats li { display: grid; justify-items: center; gap: 6px; padding: 18px 0; text-align: center; }
.hero__stats li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.stat__num {
  display: inline-flex; align-items: flex-start;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__suffix { margin-left: 2px; font-size: .6em; line-height: 1.25; color: var(--gold); }
.stat__label { max-width: 16ch; font-size: .78rem; line-height: 1.4; color: var(--muted); }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero__content { padding-bottom: 32px; }
  .hero__portrait { grid-column: 2; grid-row: 1 / span 2; margin-left: -12%; }
  .hero__stats {
    grid-column: 1; grid-row: 2; align-self: start;
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
    padding: 0 0 56px;
  }
  .hero__stats li { justify-items: start; align-content: start; text-align: left; padding: 0 clamp(14px, 2.4vw, 28px); }
  .hero__stats li:first-child { padding-left: 0; }
  .hero__stats li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .1); }
  .stat__label { max-width: 12ch; }
}

@media (max-width: 720px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__content { padding-block: 8px 4px; }
  .hero__eyebrow { margin-bottom: 22px; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.6rem); margin-bottom: 18px; }
  .hero__line--indent { padding-left: .8em; }
  .hero__lead { font-size: .98rem; margin-bottom: 26px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 16px; }
  .hero__portrait { grid-column: 1; grid-row: 2; width: min(90%, 390px); margin: 24px auto 0; }
  .hero__stats {
    grid-column: 1; grid-row: 2; align-self: end; justify-self: stretch;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 16px; padding: 14px 4px;
    background: rgba(11, 17, 32, .8);
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .hero__stats li { justify-items: center; text-align: center; padding: 0 6px; }
  .hero__stats li:first-child { padding-left: 6px; }
  .hero__stats li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
  .stat__num { font-size: 1.6rem; }
  .stat__label { max-width: 16ch; font-size: .7rem; }
}

/* ==========================================================================
   Áreas de atuação (carrossel)
   ========================================================================== */
.areas { padding-block: var(--section-y); background: var(--bg-2); }
.areas__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 56px;
}
.areas__intro { max-width: 46ch; font-size: .95rem; color: var(--muted); }

/* Faixa contínua ("trem"): os cards andam sozinhos; as bordas esmaecem para a entrada e a saída serem suaves */
.carousel {
  --per-view: 5;
  --gap: 20px;
  margin-top: clamp(32px, 4vw, 48px);
  overflow: hidden;
  touch-action: pan-y;               /* deslizar na horizontal move a faixa; na vertical rola a página */
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.carousel.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.carousel.is-dragging a { pointer-events: none; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  list-style: none; margin: 0; padding: 6px 0 4px;
  will-change: transform;
}
/* Sem movimento (preferência "reduzir movimento" do sistema): faixa com rolagem manual */
.carousel.is-static {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: auto;
  -webkit-mask-image: none; mask-image: none;
}
.carousel.is-static::-webkit-scrollbar { display: none; }
.carousel.is-static .carousel__track { will-change: auto; }

.area-card { min-width: 0; scroll-snap-align: start; }
.area-card a {
  position: relative;   /* mantém o texto para leitores de tela dentro do carrossel (evita rolagem lateral da página) */
  display: flex; flex-direction: column; height: 100%;
  color: inherit; text-decoration: none; border-radius: 14px;
  -webkit-user-drag: none;
}
.area-card a:focus-visible { outline-offset: -2px; }
.media--area {
  aspect-ratio: 16 / 10; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--surface-2);
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.media--area > img { filter: grayscale(1) contrast(1.05); -webkit-user-drag: none; }
.area-card a:hover .media--area,
.area-card a:focus-visible .media--area { transform: translateY(-4px); border-color: rgba(199, 161, 90, .5); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7); }
.area-card a:hover .media--area > img { filter: grayscale(.2); transform: scale(1.04); }
.ph--icon {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 10px),
    radial-gradient(120% 95% at 22% 12%, #1f2b40 0%, #172235 55%, #131c2d 100%);
}
.ph--icon .icon { width: 40px; height: 40px; stroke-width: 1.35; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.area-card a:hover .ph--icon .icon { transform: scale(1.06); color: var(--gold-light); }
.area-card__title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 16px 0 6px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3;
}
.area-card__title > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-card__title small { margin-right: 2px; font-family: var(--f-body); font-size: .72rem; font-weight: 500; color: var(--muted); }
.area-card__title .icon { width: 16px; height: 16px; color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.area-card a:hover .area-card__title .icon { transform: translateX(3px); color: var(--gold); }
.area-card p {
  font-size: .82rem; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.55em * 3);
}

@media (max-width: 1279px) { .carousel { --per-view: 4; } }
@media (max-width: 1023px) { .carousel { --per-view: 3; } }
@media (max-width: 767px) {
  .carousel {
    --per-view: 2.25; --gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    cursor: auto;
  }
}
@media (max-width: 560px) { .carousel { --per-view: 1.35; } }

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.perks {
  padding-block: var(--section-y);
  background: var(--bg);
}
.perks__title { margin-bottom: clamp(28px, 4vw, 44px); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.feature { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.feature__icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border-radius: 50%; border: 1px solid rgba(199, 161, 90, .3); color: var(--gold-light);
}
.feature__icon .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.feature h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 8px; }
.feature p { max-width: 30ch; font-size: .9rem; line-height: 1.65; color: var(--muted); }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 520px) {
  .features { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding-block: 22px; }
  .feature__icon { grid-row: span 2; margin: 0; }
  .feature h3 { margin-bottom: 4px; }
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.about { padding-block: var(--section-y); background: var(--bg-2); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 104px); align-items: center;
}
.about__visual { position: relative; isolation: isolate; max-width: 470px; }
.about__visual::before { /* moldura deslocada atrás da foto */
  content: ""; position: absolute; z-index: -1;
  inset: 18px -18px -18px 18px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(199, 161, 90, .22);
}
.media--about {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .08);
  background: var(--surface-2);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .9);
}
.media--about > img {
  object-position: 58% 34%;
  filter: saturate(.93) contrast(1.04) brightness(.97);   /* mesmo tratamento da foto do topo */
}
.media--about.has-photo::after { /* degradê na base: leitura do selo e unidade de cor com o site */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 17, 32, 0) 55%, rgba(11, 17, 32, .74) 100%),
    linear-gradient(0deg, rgba(30, 58, 95, .08), rgba(30, 58, 95, .08));
}
.about__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 12px;
  background: rgba(11, 17, 32, .78); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.about__badge .icon { width: 22px; height: 22px; color: var(--gold); }
.about__badge small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.about__badge strong { font-family: var(--f-display); font-weight: 600; font-size: .98rem; letter-spacing: .02em; }
.about__signature {
  position: absolute; right: 6px; bottom: -30px; z-index: 4;
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1;
  color: rgba(228, 201, 138, .9);
  transform: rotate(-4deg);
  text-shadow: 0 4px 18px rgba(5, 8, 16, .9);
  pointer-events: none;
}

.about__content .eyebrow { margin-bottom: 14px; }
.about__title { margin-bottom: 24px; max-width: 18ch; }
.about__lead { max-width: 56ch; font-size: 1.06rem; line-height: 1.75; color: var(--text-soft); margin-bottom: 14px; }
.about__text { max-width: 56ch; color: var(--muted); }
.about__subtitle {
  margin: 40px 0 6px;
  font-family: var(--f-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.timeline__period { font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.timeline__text { font-size: .94rem; line-height: 1.55; color: var(--text-soft); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .about__visual { width: min(100% - 18px, 440px); }
}
@media (max-width: 420px) {
  .timeline li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
}

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.reviews { padding-block: var(--section-y); background: var(--bg); }
.demo-note { max-width: 46ch; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.demo-tag {
  display: inline-block; margin: 0 8px 6px 0; padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--demo); border: 1px dashed rgba(201, 211, 225, .5);
}
.reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 16px;
  padding: 30px 30px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .07);
}
.review__mark { height: 22px; font-family: var(--f-display); font-size: 3rem; line-height: .75; color: var(--gold); opacity: .7; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.02rem; line-height: 1.7; color: var(--text-soft); }
.review figcaption {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.review__author { font-weight: 700; font-size: .9rem; }
.review__area { font-size: .82rem; color: var(--muted); }
.review__demo { margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--demo); }

@media (max-width: 640px) {
  .reviews__grid {
    display: flex; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 86%; scroll-snap-align: start; padding: 24px 22px 20px; }
}

/* ==========================================================================
   Formas de atendimento (Honorários)
   ========================================================================== */
.services { padding-block: var(--section-y); background: var(--bg-2); }
.services__note { max-width: 46ch; font-size: .93rem; line-height: 1.65; color: var(--muted); }
.services__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.service { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px) clamp(20px, 2.8vw, 40px); }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 1px solid var(--line); }
.service__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid rgba(199, 161, 90, .3); color: var(--gold-light);
}
.service__icon .icon { width: 19px; height: 19px; stroke-width: 1.6; }
.service h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; }
.service__summary { font-size: .93rem; line-height: 1.65; color: var(--muted); margin-bottom: 22px; }
.service__details { margin: 0 0 22px; border-top: 1px solid var(--line-soft); }
.service__details > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .86rem;
}
.service__details dt { color: var(--dim); }
.service__details dd { margin: 0; text-align: right; font-weight: 600; color: var(--text-soft); }
.service__includes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.service__includes li { position: relative; padding-left: 18px; font-size: .9rem; line-height: 1.55; color: var(--text-soft); }
.service__includes li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--gold); }
.service__cta { margin-top: auto; align-self: flex-start; }

@media (max-width: 960px) {
  .services__list { grid-template-columns: minmax(0, 1fr); }
  .service, .service:first-child, .service:last-child { padding-inline: 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Contato
   ========================================================================== */
.contact {
  padding-block: var(--section-y);
  background:
    radial-gradient(45% 55% at 90% 15%, rgba(30, 58, 95, .35), transparent 70%),
    var(--bg);
}
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px); align-items: start;
}
.contact__info .display { margin-bottom: 18px; }
.contact__info .display .grad-text { display: block; }
.contact__lead { max-width: 40ch; color: var(--muted); }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.contact__item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.contact__text small { display: block; font-size: .72rem; letter-spacing: .04em; color: var(--dim); }
.contact__text a, .contact__text b {
  display: block; font-weight: 600; font-size: .93rem; text-decoration: none;
  overflow-wrap: break-word;
}
.contact__text a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.icon-badge {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(199, 161, 90, .1); color: var(--gold-light);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn:hover { color: var(--text); border-color: rgba(199, 161, 90, .6); }
.copy-btn.is-done { color: #a6e3c3; border-color: rgba(120, 210, 165, .45); }

.form {
  position: relative;
  padding: clamp(24px, 3.6vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 24, 39, .96), rgba(14, 21, 36, .96));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .75);
}
.form__fields { display: grid; gap: 20px; }
.form.is-done .form__fields { display: none; }
.form__intro { display: grid; gap: 4px; }
.form__title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.form__req { font-size: .8rem; color: var(--dim); }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { margin: 0; min-width: 0; }
.field > label, .chips legend {
  display: block; margin-bottom: 8px;
  font-size: .82rem; font-weight: 600; color: var(--text-soft);
}
.optional { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line-strong);
  font-size: 1rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .28); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #0d1424;
  box-shadow: 0 0 0 3px rgba(199, 161, 90, .22);
}
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }
.select select option { background: var(--bg-2); color: var(--text); }

.field__error { display: none; margin-top: 6px; font-size: .78rem; color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input:not([type="checkbox"]), .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }

.chips { margin: 0; border: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: var(--muted);
  background: var(--field); border: 1px solid var(--line-strong);
  transition: color .2s, background-color .2s, border-color .2s;
}
.chip:hover span { color: var(--text); border-color: rgba(255, 255, 255, .28); }
.chip input:checked + span { color: var(--text); background: rgba(199, 161, 90, .14); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  background: var(--field); border: 1px solid var(--line-strong);
  transition: background-color .2s, border-color .2s;
}
.check:hover .check__box { border-color: rgba(255, 255, 255, .32); }
.check__box .icon { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; transition: opacity .2s; }
.check input:checked + .check__box { background: var(--gold); border-color: transparent; color: var(--bg); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.field.is-invalid .check__box { border-color: var(--danger); }

.form__hint { margin-top: -6px; font-size: .78rem; color: var(--dim); text-align: center; }

.form__done { display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: 24px; }
.form__done[hidden] { display: none; }
.form__done-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
}
.form__done-icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }
.form__done h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.form__done p { max-width: 40ch; margin-bottom: 10px; color: var(--muted); }

@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact__item { grid-template-columns: 40px minmax(0, 1fr); }
  .copy-btn { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.footer {
  padding: clamp(40px, 5vw, 56px) 0 calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px 40px; align-items: start;
}
.footer__brand { display: grid; gap: 6px; }
.footer__brand .brand { margin-bottom: 6px; }
.footer__brand p { font-size: .86rem; line-height: 1.6; color: var(--muted); }
.footer__col { display: grid; align-content: start; gap: 2px; font-size: .88rem; }
.footer__title {
  margin-bottom: 8px;
  font-family: var(--f-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.footer__col a, .footer__col > span {
  display: inline-flex; align-items: center; min-height: 34px;
  color: var(--text-soft); text-decoration: none; overflow-wrap: break-word;
}
.footer__col > span { min-height: 0; padding-block: 6px; color: var(--muted); }
.footer__col a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14); color: var(--text-soft);
  transition: color .2s, border-color .2s, background-color .2s;
}
.footer__social a:hover { color: var(--gold-light); border-color: rgba(199, 161, 90, .6); background: rgba(199, 161, 90, .08); }
.footer__social .icon { width: 19px; height: 19px; stroke-width: 1.6; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--dim);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }   /* espaço para o botão flutuante */
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ==========================================================================
   Botão flutuante de WhatsApp
   ========================================================================== */
.fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .18);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.94);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab.is-visible:hover { transform: translateY(-2px); background: #1a8a4a; }
.fab .icon { width: 22px; height: 22px; }
html.menu-open .fab { opacity: 0; visibility: hidden; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
