/* ============================================================
   STABILE ADVOGADOS — design system
   Paleta tirada do próprio escritório: mármore Nero (grafite),
   ripado de madeira, quartzito com veios dourados, couro bordô.
   ============================================================ */

:root {
  /* MODELO 2 — estética "Lexora": preto profundo, azul-marinho e dourado âmbar */
  --bg:        #09090B;
  --bg-2:      #0E0F13;
  --surface:   #0F1A2C;   /* azul-marinho dos cartões */
  --surface-2: #15233A;
  --accent:    #C9955E;   /* dourado âmbar */
  --accent-hi: #E8C08C;   /* amarelo-ouro da palavra em destaque */
  --wood:      #9A6236;   /* âmbar escuro dos botões */
  --oxblood:   #6E2A2A;
  --ink:       #F7F4EE;
  --muted:     #A4A8B2;
  --line:      rgba(201, 149, 94, 0.16);
  --line-2:    rgba(201, 149, 94, 0.34);
  --cta:       #25D366;

  --font-display: "EB Garamond", Garamond, Georgia, serif;
  --font-caps:    "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent-hi); outline-offset: 4px; }

/* ---------- EFEITO 1 · grão de filme ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 90; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- EFEITO 2 · vinheta ---------- */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 89;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(5, 3, 2, 0.6) 100%);
}

/* ---------- EFEITO 3 · partículas (js) ---------- */
#particles { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; }

/* barra de progresso dourada no topo */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--wood), var(--accent), var(--accent-hi)); }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s var(--ease), visibility 1s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.pre-mark { position: relative; display: flex; flex-direction: column; align-items: center; }
.pre-arch { width: 86px; height: 120px; overflow: visible; }
.pre-arch path { fill: none; stroke: var(--accent); stroke-width: 1.4;
  stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.6s var(--ease) forwards; }
.pre-arch path + path { animation-delay: .6s; opacity: .6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pre-s {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 64px; line-height: 1; color: var(--accent);
  opacity: 0; animation: fadeUp 1s .7s var(--ease) forwards;
}
.pre-name {
  margin-top: 22px; font-size: 11px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--muted); opacity: 0; animation: fadeUp 1s 1s var(--ease) forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translate(var(--tx, 0), 10px); } to { opacity: 1; transform: translate(var(--tx, 0), 0); } }
.pre-s { --tx: -50%; }

/* ---------- header ---------- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  transition: background .45s ease, padding .45s ease, box-shadow .45s ease;
}
#header.scrolled {
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding: 12px var(--pad); box-shadow: 0 1px 0 var(--line);
}
.brand img { height: 46px; width: auto; transition: height .45s ease; }
#header.scrolled .brand img { height: 38px; }
#header nav { display: flex; gap: 34px; }
#header nav a {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 6px 0; transition: color .3s;
}
#header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
#header nav a:hover { color: var(--accent-hi); }
#header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s, color .3s; cursor: pointer;
}
.btn-solid { background: linear-gradient(135deg, #D8B67E 0%, var(--accent) 45%, #9E7B45 100%); color: #17120C; }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transition: transform .8s var(--ease);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201, 164, 106, .3); }
.btn-solid:hover::before { transform: translateX(120%) skewX(-20deg); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(20, 17, 14, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-header { padding: 11px 20px; min-height: 42px; font-size: 11.5px; }
.btn-xl { padding: 20px 42px; font-size: 14px; }

/* ============================================================
   HERO
   ============================================================ */
#hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: center; }
#hero-canvas, #hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hero-video { display: none; }
/* EFEITO 4 · camada de cor */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, .94) 0%, rgba(14, 12, 10, .62) 40%, rgba(14, 12, 10, .1) 75%),
    linear-gradient(180deg, rgba(14, 12, 10, .5) 0%, transparent 28%, transparent 70%, rgba(14, 12, 10, 1) 100%),
    radial-gradient(ellipse at 70% 45%, rgba(201, 164, 106, .08), transparent 60%);
}
.hero-content { position: relative; z-index: 3; padding: 0 var(--pad); max-width: 900px; }
.eyebrow, .kicker {
  font-size: 11.5px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.eyebrow::before, .kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); opacity: .7; }
.hero-content h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 28px;
}
.hero-content h1 em, h2 em { font-style: italic; color: var(--accent-hi); font-weight: 500; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 38px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.hero-proof .stars { color: var(--accent); letter-spacing: 3px; }
.hero-proof strong { color: var(--ink); font-weight: 500; }
.hero-proof:hover span:last-child { color: var(--accent-hi); }

.hero-quote {
  position: absolute; z-index: 3; left: var(--pad); top: 50%; margin-top: -70px; max-width: 520px;
  opacity: 0; pointer-events: none;
}
.hero-quote p { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; font-weight: 500; }
.hero-quote em { font-style: italic; color: var(--accent-hi); }
.hq-line { display: block; margin: 0 0 22px; width: 80px; height: 1px; background: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(to bottom, transparent, var(--accent)); animation: hint 2.2s ease infinite; }
@keyframes hint {
  0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; padding: 20px 0; position: relative; z-index: 4;
}
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.marquee-track span:nth-of-type(odd) { font-style: italic; color: var(--accent-hi); }
.marquee-track i { width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex: none; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- base das seções ---------- */
main section { position: relative; z-index: 3; padding: clamp(84px, 11vw, 160px) var(--pad); }
.section-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 80px); }
h2 { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 64px); font-weight: 500; line-height: 1.06; letter-spacing: -.005em; }
.section-sub { color: var(--muted); margin-top: 18px; max-width: 580px; font-size: 16.5px; }
/* palavras do título sobem por trás de uma máscara */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- prova ---------- */
#prova { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.prova-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prova-item { padding: 40px 30px 36px; border-left: 1px solid var(--line); }
.prova-item:first-child { border-left: 0; padding-left: 0; }
.prova-item strong {
  font-family: var(--font-display); font-size: clamp(38px, 4vw, 60px); font-weight: 500;
  color: var(--accent); display: block; line-height: 1; margin-bottom: 14px; white-space: nowrap;
}
.prova-item strong small { font-size: .55em; margin-left: 4px; vertical-align: .55em; }
.prova-item > span { font-size: 13.5px; color: var(--muted); display: block; max-width: 230px; }

/* ---------- EFEITO 5 · vidro ---------- */
.glass {
  background: linear-gradient(160deg, rgba(35, 29, 23, .62), rgba(20, 17, 14, .38));
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 44px 36px; position: relative; overflow: hidden;
}
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 164, 106, .12), transparent 60%);
}
.glass:hover::after { opacity: 1; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card-num { font-family: var(--font-display); font-size: 15px; color: var(--accent); letter-spacing: .24em; display: block; margin-bottom: 26px; }
.cards-3 h3 { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.12; margin-bottom: 16px; }
.cards-3 p { font-size: 15px; color: var(--muted); }

/* ---------- áreas ---------- */
#atuacao { background: var(--bg-2); }
#atuacao::before {   /* ripado sutil no fundo, eco do escritório */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(138, 90, 53, .07) 46px 48px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); position: relative; }
.area-card {
  background: var(--bg-2); padding: 38px 30px 34px; display: flex; flex-direction: column; min-height: 290px;
  position: relative; transition: background .5s var(--ease);
}
.area-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.area-card:hover { background: var(--surface-2); }
.area-card:hover::before { transform: scaleX(1); }
.area-idx { font-size: 11px; letter-spacing: .3em; color: var(--accent); margin-bottom: 30px; }
.area-card h3 { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.1; margin-bottom: 12px; }
.area-card p { font-size: 14.5px; color: var(--muted); flex: 1; margin-bottom: 26px; }
.area-cta { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.area-cta b { display: inline-block; font-weight: 400; transition: transform .4s var(--ease); }
.area-card:hover .area-cta { color: var(--accent-hi); }
.area-card:hover .area-cta b { transform: translateX(6px); }

/* ---------- escritório: galeria horizontal ---------- */
#escritorio { padding: 0; overflow: hidden; }
.esc-pin { height: 100vh; min-height: 620px; display: flex; align-items: center; gap: clamp(40px, 6vw, 96px); padding: 0 var(--pad); }
.esc-intro { flex: 0 0 min(440px, 34vw); }
.esc-intro h2 { margin-bottom: 4px; }
.esc-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); flex: none; will-change: transform; }
.esc-photo { position: relative; overflow: hidden; flex: none; background: var(--surface); }
.esc-photo.tall { width: clamp(300px, 28vw, 440px); height: min(72vh, 600px); }
.esc-photo.wide { width: clamp(460px, 48vw, 780px); height: min(60vh, 520px); }
.esc-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.esc-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(180deg, transparent 60%, rgba(14, 12, 10, .75)); }
.esc-photo figcaption {
  position: absolute; left: 22px; bottom: 18px; z-index: 2;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}
.esc-photo figcaption span { color: var(--accent); margin-right: 10px; }
.esc-end { flex: none; width: 260px; display: flex; flex-direction: column; gap: 22px; color: var(--muted); }
.esc-end strong { display: block; font-family: var(--font-display); font-size: 40px; color: var(--ink); font-weight: 500; }

/* ---------- Henrique ---------- */
#henrique { background: var(--bg-2); }
.hen-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; max-width: 1240px; }
.hen-photo { position: relative; padding: 26px 0 0 26px; }
.hen-frame { position: relative; overflow: hidden; border-radius: 220px 220px 0 0; aspect-ratio: 377 / 440; max-width: 420px; background: var(--surface); }
.hen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.92) contrast(1.03); }
.hen-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(20, 17, 14, .55)); }
.hen-arch {
  position: absolute; left: 0; top: 0; width: min(420px, calc(100% - 26px)); aspect-ratio: 377 / 440;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 220px 220px 0 0; pointer-events: none;
}
.hen-text h2 { margin-bottom: 24px; }
.hen-text > p { color: var(--muted); font-size: 17px; max-width: 600px; margin-bottom: 34px; }
.hen-creds { border-top: 1px solid var(--line); margin-bottom: 38px; }
.hen-creds li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hen-creds li span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }

/* ---------- depoimentos ---------- */
#depoimentos { overflow: hidden; }
#depoimentos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.dep-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 12, 10, .72) 22%, rgba(14, 12, 10, .72) 78%, var(--bg) 100%); }
.dep-inner { position: relative; z-index: 3; }
.dep-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(16px, 2vw, 26px); align-items: start; }
.dep-card {
  border: 1px solid var(--line); background: rgba(20, 17, 14, .55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 36px 32px;
}
.dep-card p { font-family: var(--font-display); font-size: 21px; line-height: 1.45; margin-bottom: 22px; }
.dep-card cite { font-style: normal; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.dep-stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 16px; font-size: 13px; }
.dep-more { display: block; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: color .3s; }
.dep-more:hover { color: var(--accent-hi); }

/* ---------- processo ---------- */
.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); position: relative; padding-top: 30px; }
.passos-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.passos-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.passo-num { font-family: var(--font-display); font-size: 72px; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.passo h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 18px 0 12px; }
.passo p { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
#faq { background: var(--bg-2); }
.faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 120px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 26px 48px 26px 0;
  font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 26px); font-weight: 500; position: relative; transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 28px; font-weight: 300; font-family: var(--font-body); transition: transform .4s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent-hi); }
.faq-item p { color: var(--muted); font-size: 15.5px; padding: 0 48px 28px 0; max-width: 640px; }

/* ---------- contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.contato-box { background: var(--surface); padding: clamp(36px, 5vw, 72px); }
.contato-mark { width: 44px; height: auto; margin-bottom: 30px; }
.contato-box h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 36px; }
.contato-dados { margin-top: 44px; display: grid; gap: 18px; }
.contato-dados div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 15px; }
.contato-dados dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.contato-dados dd { color: var(--ink); }
.contato-dados a { border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.contato-dados a:hover { color: var(--accent-hi); border-color: var(--accent); }
.mapa { position: relative; min-height: 420px; background: var(--surface-2); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) sepia(.35) contrast(.9) brightness(.9); }

/* ---------- footer ---------- */
footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding: 56px var(--pad) 40px; background: var(--bg); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-top img { height: 52px; width: auto; }
.foot-top nav { display: flex; flex-wrap: wrap; gap: 28px; }
.foot-top nav a { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot-top nav a:hover { color: var(--accent-hi); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 28px; font-size: 13px; color: var(--muted); }
.foot-bottom .legal { max-width: 620px; font-size: 12px; line-height: 1.6; }

/* ---------- WhatsApp flutuante ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 58px; height: 58px; border-radius: 50%;
  background: var(--cta); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .3s;
}
.float-cta::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--cta); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.float-cta:hover { transform: scale(1.08); }
.float-cta svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1100px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .dep-grid { grid-template-columns: 1fr 1fr; }
  .dep-grid .dep-card:first-child { grid-column: 1 / -1; }
  #header nav { gap: 22px; }
}
@media (max-width: 960px) {
  #header nav { display: none; }
  .prova-grid { grid-template-columns: 1fr 1fr; }
  .prova-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .prova-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards-3, .passos { grid-template-columns: 1fr; }
  .hen-grid, .faq-wrap, .contato-grid { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .hen-photo { max-width: 420px; }
  /* galeria continua presa na tela, deslizando na horizontal, como no computador */
  .esc-pin { height: 100svh; min-height: 560px; gap: 28px; }
  .esc-intro { flex: 0 0 min(440px, 78vw); }
  .esc-photo.tall { width: min(400px, 70vw); height: min(64svh, 560px); }
  .esc-photo.wide { width: min(640px, 88vw); height: min(48svh, 440px); }
  .esc-end { width: min(260px, 60vw); }
}
@media (max-width: 768px) {
  #hero { height: 100svh; align-items: flex-end; padding-bottom: 88px; }
  .hero-shade { background: linear-gradient(180deg, rgba(14, 12, 10, .55) 0%, rgba(14, 12, 10, .2) 30%, rgba(14, 12, 10, .9) 70%, var(--bg) 100%); }
  .hero-quote { top: auto; bottom: 110px; margin-top: 0; right: var(--pad); }
  .scroll-hint { bottom: 18px; }
  .scroll-hint span { height: 28px; }
  .hero-ctas .btn { width: 100%; }
  .brand img { height: 36px; }
  #header.scrolled .brand img { height: 32px; }
  .btn-header { display: none; }
  .areas-grid, .dep-grid { grid-template-columns: 1fr; }
  .area-card { min-height: 0; }
  .prova-item { padding: 28px 16px 26px; }
  .prova-item strong { font-size: 40px; }
  .hen-creds li { grid-template-columns: 1fr; gap: 4px; }
  .contato-dados div { grid-template-columns: 1fr; gap: 2px; }
  .mapa { min-height: 320px; }
  .btn-xl { width: 100%; padding: 18px 24px; }
  .foot-bottom { flex-direction: column; }
  .float-cta { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* ---------- acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
  .esc-photo img { transform: none; }
  /* sem animação: galeria vira rolagem lateral comum */
  .esc-pin { height: auto; min-height: 0; flex-direction: column; align-items: stretch; padding: 90px 0; }
  .esc-intro { flex: none; padding: 0 var(--pad); }
  .esc-track { overflow-x: auto; padding: 0 var(--pad) 8px; }
}
/* quem pediu menos movimento vê o vídeo no lugar da sequência */
.rm #hero-canvas { display: none; }
.rm #hero-video { display: block; }

/* ============================================================
   LOGO FINAL (25/11/2026): proporção nova (2,65 : 1), tamanhos maiores para ADVOGADOS ficar legível,
   e abertura com o símbolo HS se desenhando
   ============================================================ */
.brand img { height: 58px; }
#header.scrolled .brand img { height: 48px; }
.foot-top img { height: 80px; }
.contato-mark { width: 48px; }
.pre-simb { width: 84px; height: 107px; overflow: visible; }
.pre-simb path { fill: var(--accent); fill-opacity: 0; stroke: var(--accent); stroke-width: 6; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: draw 1.3s var(--ease) forwards, preenche .7s 1.05s ease forwards; }
@keyframes preenche { to { fill-opacity: 1; stroke-opacity: 0; } }
@media (max-width: 768px) {
  .brand img { height: 48px; }
  #header.scrolled .brand img { height: 42px; }
  .foot-top img { height: 70px; }
}
