/* ============================================================
   PEDRO HENRIK — ADVOGADO · Guarujá-SP
   Estética: dark cinematográfico, editorial, dourado sóbrio.
   Tipografia: Cormorant Garamond (display) + Inter (corpo).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Paleta — preto profundo, carvão e dourado suave */
  --black:  #0a0a0b;
  --coal:   #101012;
  --panel:  #141416;
  --line:   rgba(226, 202, 148, 0.12);
  --line-strong: rgba(226, 202, 148, 0.28);
  --gold:   #c9a96a;
  --gold-bright: #e3c888;
  --cream:  #f2ede3;
  --muted:  #98928a;
  --dim:    #6d6862;

  /* Tipografia fluida */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --text-hero: clamp(2.9rem, 8.5vw, 7.2rem);
  --text-h2:   clamp(2.2rem, 5.2vw, 4.4rem);
  --text-h3:   clamp(1.35rem, 2.4vw, 1.9rem);

  /* Ritmo e movimento */
  --space: clamp(5rem, 12vh, 10rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.15, 1);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Trava o scroll durante o preloader e o menu mobile */
body[data-loading], body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

::selection { background: var(--gold); color: var(--black); }

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

.gold { color: var(--gold); }

/* Itálico dourado usado nos títulos — o "tempero" editorial */
.gold-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 300;
  background: var(--gold); color: var(--black);
  padding: 0.6rem 1.2rem; font-size: 0.85rem;
  transition: top 0.3s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   GRAIN — textura de filme sobre toda a página
   ============================================================ */
.grain {
  position: fixed; inset: -100%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 250;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: clip-path 1s var(--ease-luxe);
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }

.preloader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.7rem;
}
.preloader__brand {
  width: clamp(150px, 26vw, 230px); height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}
/* Contador à altura do logotipo: serifa itálica dourada entre filetes */
.preloader__counter {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  padding-left: 0.14em; /* compensa o espaço após o último dígito (centro óptico) */
  font-variant-numeric: tabular-nums;
}
.preloader__counter::before,
.preloader__counter::after {
  content: "";
  width: 36px; height: 1px;
  background: var(--line-strong);
}

/* ============================================================
   CURSOR CUSTOMIZADO (somente desktop / ponteiro fino)
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 240;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold-bright);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s;
}
.cursor-ring span {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--black); opacity: 0; transition: opacity 0.25s;
}
/* Estado hover: anel cresce; com rótulo (ex: "Arraste") vira um selo dourado */
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--gold); }
.cursor-ring.has-label {
  width: 76px; height: 76px;
  background: var(--gold); border-color: var(--gold);
}
.cursor-ring.has-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  /* Acima do menu mobile (120) para o X e a marca ficarem visíveis com o menu aberto */
  position: fixed; top: 0; left: 0; right: 0; z-index: 130;
  transition: background-color 0.5s, border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
/* Com o menu aberto, o header não desenha barra por cima do overlay */
body.menu-open .header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.header.scrolled {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 86px;
}

/* Lockup da marca — espelha a tipografia do logotipo oficial */
.brand { display: flex; align-items: center; gap: 1rem; }
.brand__logo { height: 54px; width: auto; }
.brand__text { display: flex; flex-direction: column; gap: 0.28rem; line-height: 1; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream);
}
.brand__text small {
  font-size: 0.56rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; gap: 2.2rem; }
.nav__link {
  position: relative;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
/* Sublinhado dourado que desliza no hover */
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover { color: var(--cream); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburguer (só aparece no mobile) */
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  position: relative; z-index: 130;
}
.menu-toggle span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--cream);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- Menu mobile em tela cheia ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: var(--coal);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-luxe);
  visibility: hidden;
}
.mobile-menu.open { clip-path: inset(0 0 0 0); visibility: visible; }

.mobile-menu__link {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-menu__link span {
  font-family: var(--font-body);
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold);
}
.mobile-menu__link:hover { color: var(--gold-bright); }
.mobile-menu.open .mobile-menu__link { opacity: 1; transform: translateY(0); }
/* Entrada em cascata dos links */
.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.32s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.39s; }
.mobile-menu.open .mobile-menu__link:nth-child(4) { transition-delay: 0.46s; }
.mobile-menu.open .mobile-menu__link:nth-child(5) { transition-delay: 0.53s; }

.mobile-menu__footer {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start;
  opacity: 0; transition: opacity 0.5s 0.6s;
}
.mobile-menu.open .mobile-menu__footer { opacity: 1; }
.mobile-menu__footer > a:last-child { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s, transform 0.3s var(--ease-out);
  will-change: transform;
}
/* Preenchimento que sobe no hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}

.btn--gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--gold::before { background: var(--cream); }
.btn--gold:hover::before { transform: scaleY(1); }

.btn--ghost { color: var(--cream); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--black); border-color: var(--gold); }
.btn--ghost:hover::before { transform: scaleY(1); }

.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.72rem; }
.btn--lg { padding: 1.15rem 2.3rem; }
.btn--xl { padding: 1.3rem 2.7rem; font-size: 0.85rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(7rem, 16vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

/* Fundo: vinheta radial + feixe de luz diagonal (clima de tribunal noir) */
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 169, 106, 0.07), transparent 60%),
    radial-gradient(ellipse 100% 90% at 50% 110%, rgba(0, 0, 0, 0.85), transparent),
    linear-gradient(180deg, var(--black), var(--coal));
}
.hero__beam {
  position: absolute; top: -20%; right: 8%;
  width: 1px; height: 140%;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
  transform: rotate(16deg);
}

.hero__inner {
  width: min(1400px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero__overline {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
}
.rule { width: 48px; height: 1px; background: var(--gold); display: inline-block; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 2.2rem;
}

/* Máscara de linha: cada linha do título sobe de dentro do próprio "corte" */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-luxe);
}
.lines-in .line > span { transform: translateY(0); }
.line:nth-child(2) > span { transition-delay: 0.09s; }
.line:nth-child(3) > span { transition-delay: 0.18s; }

.hero__sub {
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
  margin-bottom: 2.6rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero__badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim);
}
.hero__badges .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

/* ---------- Retrato com moldura deslocada (usado no hero e no sobre) ---------- */
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
}
/* Moldura dourada deslocada atrás da foto — assinatura visual da página */
.portrait-frame::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--line-strong);
  transform: translate(18px, 18px);
  transition: transform 0.6s var(--ease-out);
}
.portrait-frame:hover::before { transform: translate(10px, 10px); }
.portrait-frame--left::before { transform: translate(-18px, 18px); }
.portrait-frame--left:hover::before { transform: translate(-10px, 10px); }

.portrait-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(201, 169, 106, 0.1), transparent 65%),
    linear-gradient(165deg, #1b1b1e 0%, #101012 55%, #0a0a0b 100%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  overflow: hidden;
}
.portrait-placeholder img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.06); }
.portrait-placeholder__mono {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 500;
  color: rgba(201, 169, 106, 0.22);
  letter-spacing: 0.08em;
}
.portrait-placeholder__label {
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--dim); text-align: center; line-height: 1.9;
}

.hero__portrait figcaption {
  margin-top: 1.2rem;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__portrait figcaption span { color: var(--dim); }

/* Indicador de scroll */
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--dim);
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: var(--line-strong);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: scroll-drip 2s var(--ease-luxe) infinite;
}
@keyframes scroll-drip { to { top: 110%; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--coal);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 500; font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 1.6rem;
}
.marquee__group i { color: var(--gold); font-style: normal; font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SEÇÕES — cabeçalho editorial padrão
   ============================================================ */
.section { padding: var(--space) 0; }

.section-head { margin-bottom: clamp(3rem, 7vh, 5rem); max-width: 52rem; }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.section-head--row .section-head__sub { max-width: 22rem; margin-top: 0; }

.section-head__index {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-head__sub {
  margin-top: 1.4rem;
  color: var(--muted);
  max-width: 36rem;
}

/* ============================================================
   ATUAÇÃO — lista de áreas
   ============================================================ */
.areas { background: var(--black); }

.areas__list { border-top: 1px solid var(--line); }

.area a {
  display: grid;
  grid-template-columns: 4rem 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.5s var(--ease-out), background-color 0.5s;
}
/* Barra dourada que cresce à esquerda no hover */
.area a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.5s var(--ease-out);
}
.area a:hover { padding-left: 1.6rem; background: rgba(201, 169, 106, 0.03); }
.area a:hover::before { transform: scaleY(1); }

.area__num {
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.area a:hover .area__num { color: var(--gold); }

.area__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 500;
  margin-bottom: 0.35rem;
  transition: color 0.4s;
}
.area a:hover .area__title { color: var(--gold-bright); }
.area__desc { color: var(--muted); font-size: 0.92rem; max-width: 46rem; }

.area__tag {
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

.area__arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
}
.area a:hover .area__arrow {
  background: var(--gold); border-color: var(--gold); color: var(--black);
  transform: rotate(45deg);
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre { background: var(--coal); border-block: 1px solid var(--line); }

.sobre__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.sobre__text { margin-top: 2rem; display: grid; gap: 1.2rem; color: var(--muted); }
.sobre__text p:first-child { color: var(--cream); }

/* Capitular — toque editorial clássico */
.dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem; line-height: 0.85;
  color: var(--gold);
  padding: 0.35rem 0.7rem 0 0;
}

.sobre__facts {
  margin: 2.4rem 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.sobre__facts li {
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid; gap: 0.2rem;
}
.sobre__facts strong {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em;
}
.sobre__facts span { font-size: 0.78rem; color: var(--dim); letter-spacing: 0.06em; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.difs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.dif {
  background: var(--black);
  padding: clamp(1.8rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s;
}
/* Brilho dourado que acende no canto no hover */
.dif::after {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 106, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.6s;
}
.dif:hover { background: var(--panel); }
.dif:hover::after { opacity: 1; }

.dif__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  display: block; margin-bottom: 1.4rem;
}
.dif h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; line-height: 1.2;
  margin-bottom: 0.8rem;
}
.dif p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   CONTEÚDO EDUCATIVO — trilho horizontal
   ============================================================ */
.conteudo { background: var(--coal); border-block: 1px solid var(--line); overflow: hidden; }

/* Controles do trilho (dica + setas) ao lado do título */
.rail-side { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.rail-side .section-head__sub { margin-top: 0; max-width: 22rem; }

.rail-controls { display: flex; align-items: center; gap: 0.7rem; }
.rail-hint {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.6rem;
}
.rail-hint svg { animation: hint-slide 1.7s var(--ease-out) infinite; }
@keyframes hint-slide {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(7px); opacity: 0.45; }
}
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: none; border: 1px solid var(--line-strong);
  color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, opacity 0.35s;
}
.rail-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.rail-btn:disabled { opacity: 0.25; pointer-events: none; }

.rail-wrap {
  cursor: grab;
  /* Fade nas laterais: sinaliza que o conteúdo continua além da borda */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(14px, 3vw, 48px), #000 calc(100% - clamp(14px, 3vw, 48px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 clamp(14px, 3vw, 48px), #000 calc(100% - clamp(14px, 3vw, 48px)), transparent 100%);
}
.rail-wrap.dragging { cursor: grabbing; }

.rail {
  /* Respiro lateral idêntico às margens do .container (100% = largura real,
     já descontado o scrollbar — estável em qualquer resize) */
  --rail-pad: max(calc(var(--gutter) + 8px), calc((100% - 1240px) / 2 + 8px));
  display: flex; gap: 1.25rem;
  padding: 8px var(--rail-pad) 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none; /* Firefox */
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { scroll-snap-type: none; user-select: none; }
.rail a { -webkit-user-drag: none; }

/* Barra de progresso do trilho */
.rail-progress {
  margin-top: 2.2rem;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.rail-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--gold);
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}

.card {
  flex: 0 0 min(400px, 82vw);
  scroll-snap-align: start;
  background: var(--black);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem;
  display: flex; flex-direction: column;
  min-height: 340px;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-6px); }

.card__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 600; line-height: 1.22;
  margin-bottom: 0.9rem;
}
.card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.card a {
  margin-top: 1.6rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s, letter-spacing 0.3s;
}
.card a:hover { color: var(--gold-bright); letter-spacing: 0.24em; }

.conteudo__note {
  margin-top: 1.1rem;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--dim);
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
/* Depoimento em destaque — grande citação editorial centralizada */
.depo-quote {
  max-width: 60rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
  /* topo maior: o texto precisa começar abaixo da aspa gigante */
  padding: clamp(5rem, 10vw, 7.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 169, 106, 0.06), transparent 70%),
    linear-gradient(170deg, var(--panel), var(--black) 75%);
}
.depo-quote__mark {
  position: absolute; top: clamp(-1.4rem, -2.6vw, -2rem); left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 6rem); line-height: 1;
  color: var(--gold);
  background: var(--coal);
  padding: 0 1.2rem;
  pointer-events: none;
}
.depo-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-style: italic; line-height: 1.5;
  color: var(--cream);
  letter-spacing: 0.005em;
}
.depo-quote blockquote em { color: var(--gold); font-weight: 500; }
.depo-quote figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  margin-top: 2.6rem;
}
.depo-quote__line { width: 54px; height: 1px; background: var(--line-strong); }
.depo-quote__who { display: flex; flex-direction: column; gap: 0.35rem; }
.depo-quote__who strong {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; letter-spacing: 0.14em; color: var(--cream);
}
.depo-quote__who small {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta {
  padding: calc(var(--space) * 1.15) 0;
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(201, 169, 106, 0.1), transparent 65%),
    var(--black);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta .section-head__index { justify-content: center; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 500; line-height: 1.05;
  margin-bottom: 1.6rem;
}
.cta__sub { color: var(--muted); max-width: 34rem; margin-bottom: 2.8rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   ESCRITÓRIO — endereço + mapa dark
   ============================================================ */
.escritorio { background: var(--coal); border-top: 1px solid var(--line); }

.escritorio__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.escritorio__sub { margin-top: 1.6rem; color: var(--muted); max-width: 26rem; }

.escritorio__address {
  display: grid; gap: 0.3rem;
  margin: 2rem 0 2.4rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
  font-style: normal;
  color: var(--muted);
}
.escritorio__address strong {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600;
  color: var(--cream);
}

.escritorio__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Moldura do mapa — mesma assinatura visual dos retratos */
.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
}
.map-frame::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--line-strong);
  transform: translate(18px, 18px);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.map-frame:hover::before { transform: translate(10px, 10px); }

.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 1px solid var(--line);
  /* Tratamento dark do mapa padrão do Google — mantém ruas e nomes legíveis */
  filter: invert(92%) hue-rotate(185deg) saturate(0.35) brightness(0.9) contrast(0.95);
  transition: filter 0.5s;
}
/* Ao interagir, o mapa "acende" um pouco para facilitar a leitura */
.map-frame:hover iframe { filter: invert(92%) hue-rotate(185deg) saturate(0.5) brightness(1) contrast(1); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--coal);
  padding: 4.5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.8fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand img { width: 200px; height: auto; }
.footer__brand p { margin-top: 1.4rem; font-size: 0.85rem; color: var(--muted); line-height: 1.8; }
.footer__brand em { color: var(--dim); font-style: normal; }

.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col h4 {
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem; font-weight: 500;
}
.footer__col a, .footer__col span { font-size: 0.88rem; color: var(--muted); transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__address { line-height: 1.8; }
.footer__col p { font-size: 0.78rem; color: var(--dim); line-height: 1.9; }

.footer__bottom {
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--dim);
}

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 110;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(201, 169, 106, 0.35);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.wa-float:hover { transform: scale(1.08) rotate(6deg); background: var(--gold-bright); }
/* Pulso discreto chamando atenção */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold);
  animation: wa-pulse 2.4s var(--ease-out) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ============================================================
   ANIMAÇÕES DE REVEAL (via IntersectionObserver no JS)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 380px; }
  .depo-quote { text-align: left; }
  .depo-quote figcaption { align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header__actions .btn { display: none; } /* no mobile, o CTA vive no menu e no botão flutuante */
  .brand__logo { height: 44px; }
  .brand__text strong { font-size: 0.95rem; }
  .brand__text small { font-size: 0.5rem; }
  .rail-hint { display: none; } /* no toque, deslizar é natural; setas continuam */

  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__media { max-width: 420px; }
  .difs__grid { grid-template-columns: 1fr; }
  .escritorio__grid { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 16 / 11; }

  .area a { grid-template-columns: 2.6rem 1fr; row-gap: 0.6rem; }
  .area__tag { grid-column: 2; justify-self: start; }
  .area__arrow { display: none; }

  .hero__scroll { display: none; }
}

@media (max-width: 520px) {
  .sobre__facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn--xl { padding: 1.15rem 1.8rem; font-size: 0.78rem; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { justify-content: center; }
}

/* ============================================================
   ACESSIBILIDADE — reduz movimento para quem prefere
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .line > span { opacity: 1; transform: none; }
  .grain { display: none; }
}
