/* ============================================================
   Edmundo Nejm Jr. Advocacia - styles.css
   Identidade: design.md  |  Padroes: landing-patterns.md
   Comentarios em ASCII puro, uma linha (parser safe).
   ============================================================ */

:root {
  --ink: #171617;
  --ink-2: #1f1e20;
  --graphite: #404040;
  --legal: #04576e;
  --legal-bright: #0a6a86;
  --ivory: #e2ebd3;
  --ivory-dim: #cdd8ba;
  --paper: #eef2e6;
  --accent: #c4081a;

  --line-dark: rgba(226, 235, 211, 0.12);
  --line-light: rgba(23, 22, 23, 0.10);
  --line-rail: rgba(190, 195, 185, 0.35);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background-color: var(--ink); }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--graphite); }

::selection { background: rgba(4, 87, 110, 0.18); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ---------- Film grain overlay (wildcard) ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ============================================================
   HEADER (scroll-linked exit + threshold reveal)
   ============================================================ */
.site-header {
  transition: transform 0.45s var(--ease-out), background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  background: rgba(238, 242, 230, 0.9);
  border-bottom: 1px solid transparent;
  z-index: 55;
}
.site-header.is-elevated {
  background: rgba(238, 242, 230, 0.92);
  border-bottom-color: var(--line-light);
  box-shadow: 0 16px 40px -28px rgba(23, 22, 23, 0.4);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav-link {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--graphite);
  position: relative; padding: 4px 0;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--legal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Nav dropdown (Conteudo -> categorias do blog) ---------- */
/* Injetado por main.js: o trigger vira filho de .nav-group, com caret irmao e painel filho */
.nav-group { position: relative; display: inline-flex; align-items: center; gap: 7px; }

/* Caret: quadradinho rotacionado seguindo currentColor (graphite -> ink no hover do link) */
.nav-caret {
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  opacity: 0.5; color: var(--graphite);
}
.nav-group:hover .nav-caret { color: var(--ink); opacity: 0.8; }
.nav-group.is-open .nav-caret { transform: translateY(1px) rotate(225deg); color: var(--legal); opacity: 1; }

/* Painel: comeca invisivel, deslocado 6px p/ baixo. Bridge padding-top mata o dead-zone */
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding-top: 14px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
  z-index: 70;
}
.nav-group.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s;
}

/* Card claro premium, alinhado a paleta paper/ink do Edmundo */
.nav-dropdown__inner {
  min-width: 268px;
  background: rgba(238, 242, 230, 0.97);
  -webkit-backdrop-filter: saturate(1.15) blur(14px); backdrop-filter: saturate(1.15) blur(14px);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: 0 28px 60px -30px rgba(23, 22, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 8px;
}
.nav-dropdown__eyebrow {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--legal); margin: 6px 12px 10px;
}
.nav-dropdown__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px; border-radius: 4px; text-decoration: none;
  transition: background-color 0.2s ease;
}
.nav-dropdown__item + .nav-dropdown__item { border-top: 1px solid var(--line-light); }
.nav-dropdown__item:hover, .nav-dropdown__item:focus-visible {
  background: rgba(4, 87, 110, 0.08); outline: none;
}
.nav-dropdown__label {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--graphite); transition: color 0.2s ease;
}
.nav-dropdown__item:hover .nav-dropdown__label,
.nav-dropdown__item:focus-visible .nav-dropdown__label { color: var(--ink); }
.nav-dropdown__arrow {
  font-size: 17px; color: var(--legal);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}
.nav-dropdown__item:hover .nav-dropdown__arrow,
.nav-dropdown__item:focus-visible .nav-dropdown__arrow { opacity: 1; transform: translateX(0); }

/* Offset do header fixo: o topo da categoria para logo abaixo do header ao rolar via #cat-<chave> */
.blog-cat[id] { scroll-margin-top: 96px; }

/* Header CTA - pill with button-in-button icon */
.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--ivory);
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 10px 10px 10px 20px; border-radius: 9999px;
  transition: transform 0.4s var(--ease-out), background-color 0.4s ease, box-shadow 0.4s var(--ease-out);
}
.header-cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9999px;
  background: rgba(226, 235, 211, 0.12);
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}
.header-cta-icon svg { width: 14px; height: 14px; }
.header-cta:hover { background: var(--legal); box-shadow: 0 18px 38px -18px rgba(4, 87, 110, 0.6); }
.header-cta:hover .header-cta-icon { transform: translate(2px, -2px); background: rgba(226, 235, 211, 0.2); }
.header-cta:active { transform: scale(0.98); }

.header-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px;
  border: 1px solid var(--line-light); background: rgba(23, 22, 23, 0.02);
  color: var(--graphite);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease-out);
}
.header-social-link:hover {
  color: var(--legal-bright); border-color: rgba(4, 87, 110, 0.35);
  background: rgba(4, 87, 110, 0.06); transform: translateY(-1px);
}
.header-social-link svg { width: 16px; height: 16px; }

/* Hamburger -> X morph */
.hamburger {
  position: relative; width: 44px; height: 44px; border: 0; background: transparent;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transform: translateY(-3px);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s,
    opacity 0.3s ease,
    background-color 0.3s ease;
}
body.menu-open .hamburger span {
  background: var(--ivory);
  transition:
    transform 0.45s var(--ease-out) 0.9s,
    opacity 0.3s ease,
    background-color 0.3s ease;
}
body.menu-open .hamburger span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU (clip-path splash)
   ============================================================ */
.mobile-menu {
  clip-path: circle(0% at calc(100% - 34px) 34px);
  opacity: 0; visibility: hidden;
  background: rgba(20, 19, 20, 0.97);
  -webkit-backdrop-filter: blur(24px) saturate(1.15); backdrop-filter: blur(24px) saturate(1.15);
  transition: clip-path 0.55s var(--ease-smooth), opacity 0.3s ease, visibility 0s 0.55s;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  clip-path: circle(150% at calc(100% - 34px) 34px);
  transition: clip-path 0.65s var(--ease-smooth), opacity 0.3s ease, visibility 0s;
}
.mobile-menu-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 28px 36px;
}
.mobile-menu-head {
  opacity: 0;
  transform: translateY(16px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-head-name {
  display: block;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ivory);
  line-height: 1;
}
.mobile-head-sub {
  display: block;
  margin-top: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: #0a6a86;
  padding-left: 0.44em;
}
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mobile-nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(20px);
}
.mobile-menu-nav .mobile-nav-row:first-child { border-top: 1px solid var(--line-dark); }
.mobile-nav-num {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(226, 235, 211, 0.25);
  min-width: 20px;
  transition: color 0.38s var(--ease-out);
}
.mobile-nav-label {
  flex: 1;
  font-family: 'Cormorant Garamond', Cinzel, serif;
  font-size: clamp(26px, 8.5vw, 36px);
  font-weight: 600;
  color: var(--ivory);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: letter-spacing 0.45s var(--ease-out);
}
.mobile-nav-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 235, 211, 0.25);
  transition: transform 0.45s var(--ease-out), color 0.38s var(--ease-out);
  flex-shrink: 0;
}
.mobile-nav-arrow svg { width: 18px; height: 18px; }
.mobile-nav-row:hover .mobile-nav-num { color: #0a6a86; }
.mobile-nav-row:hover .mobile-nav-label { letter-spacing: 0.012em; }
.mobile-nav-row:hover .mobile-nav-arrow { transform: translate(4px, -4px); color: #0a6a86; }
.mobile-menu-foot {
  opacity: 0;
  transform: translateY(16px);
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}
.mobile-cta-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--legal);
  color: var(--ivory);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
  padding: 10px 10px 10px 20px;
  border-radius: 9999px;
  transition: background-color 0.4s var(--ease-out);
}
.mobile-cta-pill:hover { background: #0a6a86; }
.mobile-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(226, 235, 211, 0.13);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-out);
}
.mobile-cta-icon svg { width: 13px; height: 13px; }
.mobile-cta-pill:hover .mobile-cta-icon { transform: translate(3px, -3px); }
.mobile-foot-address {
  margin: 10px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 235, 211, 0.28);
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom-color: transparent;
}
.header-logo { transition: opacity 0.35s ease; }
body.menu-open .header-logo { opacity: 0; pointer-events: none; }

/* ============================================================
   LANGUAGE SWITCH (dropdown PT-BR / EN)
   ============================================================ */
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-light); background: rgba(23, 22, 23, 0.02);
  color: var(--graphite); cursor: pointer;
  font-family: 'Montserrat', 'Inter', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 7px 10px; border-radius: 9999px;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.lang-trigger:hover { color: var(--ink); border-color: rgba(4, 87, 110, 0.35); }
.lang-switch.is-open .lang-trigger { color: var(--legal); border-color: rgba(4, 87, 110, 0.5); }
.lang-globe { font-size: 19px; font-variation-settings: 'wght' 300; line-height: 1; }
.lang-current { font-size: 12px; letter-spacing: 0.08em; }
.lang-caret { font-size: 18px; line-height: 1; transition: transform 0.3s var(--ease-out); }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 5;
  min-width: 152px; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line-light); border-radius: 12px;
  box-shadow: 0 24px 60px -28px rgba(23, 22, 23, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s 0.25s;
}
.lang-switch.is-open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s;
}
.lang-option {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-family: 'Montserrat', 'Inter', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--graphite); transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-option::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: transparent; flex-shrink: 0; transition: background-color 0.2s ease; }
.lang-option:hover { background: rgba(4, 87, 110, 0.06); color: var(--ink); }
.lang-option.is-active { color: var(--legal-bright); }
.lang-option.is-active::before { background: var(--legal-bright); }
.lang-option:focus-visible { outline: 2px solid var(--focus-ring, var(--legal-bright)); outline-offset: 2px; }

/* Mobile: so o globo ao lado do hamburguer */
.lang-switch--mobile .lang-trigger { gap: 2px; padding: 6px; border-color: transparent; background: transparent; color: var(--ink); }
.lang-switch--mobile .lang-globe { font-size: 22px; }
.lang-switch--mobile .lang-caret { font-size: 16px; }
.lang-switch--mobile .lang-menu { min-width: 144px; }
body.menu-open .lang-switch--mobile { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

/* ============================================================
   SHARED - eyebrow, buttons, titles
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(23, 22, 23, 0.55);
  padding: 7px 14px; border-radius: 9999px; border: 1px solid var(--line-light);
  background: rgba(23, 22, 23, 0.02);
}
.eyebrow--dark { color: rgba(226, 235, 211, 0.62); border-color: var(--line-dark); background: rgba(226, 235, 211, 0.03); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--legal-bright); }
/* Hero eyebrow: italic, borda quase invisivel, fundo preservado, dot com pulse */
[data-anim="hero-eyebrow"] { font-style: italic; border-color: rgba(226, 235, 211, 0.05); }
[data-anim="hero-eyebrow"] .eyebrow-dot { animation: heroEyebrowDotPulse 2.6s ease-in-out infinite; }
@keyframes heroEyebrowDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 106, 134, 0); }
  50% { box-shadow: 0 0 6px 3px rgba(10, 106, 134, 0.3); }
}
@media (prefers-reduced-motion: reduce) { [data-anim="hero-eyebrow"] .eyebrow-dot { animation: none; } }

.section-title {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.16; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.section-title--light { color: var(--ivory); }

/* Primary button - pill, button-in-button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--legal); color: var(--ivory);
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  padding: 13px 13px 13px 24px; border-radius: 9999px;
  box-shadow: 0 20px 44px -22px rgba(4, 87, 110, 0.7);
  transition: transform 0.28s var(--ease-out), background-color 0.4s ease, box-shadow 0.45s var(--ease-out);
}
.btn-primary-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9999px; background: rgba(226, 235, 211, 0.14);
  transition: transform 0.28s var(--ease-out), background-color 0.3s ease;
}
.btn-primary-icon svg { width: 15px; height: 15px; }
.btn-primary:hover { transform: translateY(-2px); background: var(--legal-bright); box-shadow: 0 28px 60px -24px rgba(10, 106, 134, 0.75); }
.btn-primary:hover .btn-primary-icon { transform: translate(2px, -2px); background: rgba(226, 235, 211, 0.22); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary--lg { font-size: 15px; padding: 16px 16px 16px 30px; }
.btn-primary--lg .btn-primary-icon { width: 36px; height: 36px; }
/* CTA destaque: brilho pulsante sutil (box-shadow, nao transform) */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 18px 40px -20px rgba(4, 87, 110, 0.6); }
  50% { box-shadow: 0 26px 64px -16px rgba(10, 106, 134, 0.92); }
}
.btn-primary--pulse { animation: ctaPulse 3s ease-in-out infinite; }
.btn-primary--pulse:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .btn-primary--pulse { animation: none; } }

/* Ghost button - underline grows from left */
.btn-ghost {
  position: relative; display: inline-flex; align-items: center;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(23, 22, 23, 0.72); padding: 12px 2px;
  transition: color 0.3s ease;
}
.btn-ghost::after {
  content: ""; position: absolute; left: 0; bottom: 6px; height: 1px; width: 100%;
  background: var(--legal); transform: scaleX(0.0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after { transform: scaleX(1); }
.btn-ghost--light { color: rgba(226, 235, 211, 0.72); }
.btn-ghost--light:hover { color: var(--ivory); }
.btn-ghost--light::after { background: var(--legal-bright); }

.inline-link { color: var(--legal-bright); border-bottom: 1px solid rgba(10, 106, 134, 0.4); transition: color 0.3s ease, border-color 0.3s ease; }
.inline-link:hover { color: var(--ivory); border-color: var(--ivory); }

/* Focus visible (WCAG 2.4.7) - anel azul em fundo claro, marfim em fundo escuro */
:root { --focus-ring: var(--legal-bright); --focus-ring-dark: var(--ivory); }
a:focus-visible, button:focus-visible,
.btn-primary:focus-visible, .btn-ghost:focus-visible, .header-cta:focus-visible, .hero-scroll:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 3px;
}
.btn-primary:focus-visible, .header-cta:focus-visible, .hero-scroll:focus-visible { border-radius: 9999px; }
.hero :focus-visible, .area-card:focus-visible, .footer-nav a:focus-visible,
.btn-ghost--light:focus-visible, .mobile-link:focus-visible, .mobile-cta:focus-visible {
  outline-color: var(--focus-ring-dark);
}
.nav-link:focus-visible::after, .btn-ghost:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .nav-link:focus-visible::after, .btn-ghost:focus-visible::after { transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { isolation: isolate; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line-dark) 1px, transparent 1px);
  background-size: 25% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 75%, transparent);
  opacity: 0.5;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  right: -12vw; top: -10vw; border-radius: 9999px;
  background: radial-gradient(circle, rgba(4, 87, 110, 0.28), transparent 62%);
  filter: blur(8px);
}

.eyebrow.justify-center { justify-content: center; }

.hero-mark { line-height: 0.96; text-align: center; }
.hero-mark-line {
  display: block;
  font-size: clamp(32px, 6.6vw, 104px);
  font-weight: 600; letter-spacing: 0.05em; color: var(--ivory);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
@media (min-width: 768px) { .hero-mark-line { white-space: nowrap; } }
.hero-mark-sub {
  display: block; margin-top: 6px; text-align: center;
  font-family: 'Montserrat', sans-serif; font-weight: 500;
  font-size: clamp(13px, 1.6vw, 18px); letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--legal-bright); padding-left: 0.36em;
}
.hero-wordmark { position: relative; width: fit-content; max-width: 100%; }
/* Composicao do titulo: bow (sorriso) + tilt 3D - marca e linhas se movem como um so */
.hero-title-stage { perspective: 900px; }
.hero-title-tilt {
  transform-origin: center center; transform-style: preserve-3d; will-change: transform;
}
/* cada letra estica para baixo (origem no topo): topos alinhados, so a base curva */
.curve-char { display: inline-block; will-change: transform; transform-origin: center top; }
/* touch: sem mouse-follow; troca por um idle muito sutil */
@media (hover: none) {
  .hero-title-tilt { animation: heroTiltIdle 7s ease-in-out infinite; }
}
@keyframes heroTiltIdle {
  0%, 100% { transform: rotateY(-2deg); }
  50% { transform: rotateY(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-tilt { animation: none !important; }
}
.hero-curve {
  display: block; width: 100%; height: auto; margin-top: 4px; color: var(--legal-bright);
}
.hero-curve-path { stroke: var(--legal-bright); fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hero-headline {
  font-size: clamp(26px, 4vw, 48px); line-height: 1.14; font-weight: 500; color: var(--ivory);
  letter-spacing: 0;
}
.hero-headline-accent {
  position: relative; font-style: italic; color: var(--ivory); padding-bottom: 0.2em;
}
/* Sublinhado: duas linhas retas (eco da dupla-curva), reveal esquerda->direita */
.hero-headline-accent::before,
.hero-headline-accent::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; border-radius: 2px; background: var(--legal-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.hero-headline-accent::after { bottom: 0.13em; opacity: 0.45; }
.hero-headline-accent::before { bottom: 0.23em; opacity: 0.22; }
.hero-headline-accent.is-underlined::before,
.hero-headline-accent.is-underlined::after { transform: scaleX(1); }
.hero-headline-accent.is-underlined::before { transition-delay: 0.1s; }
@media (prefers-reduced-motion: reduce) {
  .hero-headline-accent::before, .hero-headline-accent::after { transition: none; }
}

/* Slide-up char reveal (titulo do cluster) */
.slideup-word { display: inline-block; white-space: nowrap; }
.slideup-char { display: inline-block; white-space: pre; }
html.reveal-immediate .slideup-char { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .slideup-char { opacity: 1; transform: none; } }

/* Titulo central (frase de valor, abaixo da marca) */
.hero-title-center {
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.34; font-weight: 500;
  color: var(--ivory); letter-spacing: 0; max-width: 60rem;
}
/* Cluster de detalhe (inferior esquerdo) */
.hero-action { text-align: left; }
.hero-sub { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.72; color: rgba(226, 235, 211, 0.74); }
.hero-reassure { font-size: clamp(12px, 1.2vw, 13px); line-height: 1.6; color: rgba(226, 235, 211, 0.55); max-width: 44ch; }

.hero-meta { font-family: 'Montserrat', sans-serif; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.hero-meta-item { display: flex; flex-direction: column; gap: 3px; }
.hero-meta-k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(226, 235, 211, 0.62); }
.hero-meta-v { font-size: 13px; color: rgba(226, 235, 211, 0.82); max-width: 26ch; }
.hero-meta-sep { width: 1px; height: 30px; background: var(--line-dark); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 54px; overflow: hidden;
}
.hero-scroll-line { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin-inline: auto; width: 1px; background: linear-gradient(to bottom, transparent, var(--legal-bright)); animation: scrollPulse 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ============================================================
   FRAME (editorial rails - desktop only)
   ============================================================ */
.frame { position: relative; }
.frame-divider { background: var(--line-light); width: 1px; }
.frame-divider--light { background: var(--line-dark); }

@media (min-width: 768px) {
  .frame { width: min(74rem, calc(100% - 4rem)); margin-inline: auto; }
  .frame > section { position: relative; }
  /* Dark sections bleed to viewport edge while content stays in frame */
  .frame > .bg-ink { margin-inline: calc(-50vw + 50%); }
  /* Rail overlay: stays on top of full-bleed backgrounds, visible on both light and dark */
  .frame-rails {
    position: absolute; inset: 0; pointer-events: none; z-index: 10;
    border-left: 1px solid var(--line-rail);
    border-right: 1px solid var(--line-rail);
  }
}

.section { position: relative; }
.wrap { position: relative; }

/* ============================================================
   SOBRE
   ============================================================ */
.portrait-shell {
  padding: 8px; border-radius: 18px; background: rgba(23, 22, 23, 0.03);
  border: 1px solid var(--line-light); box-shadow: var(--soft, 0 24px 70px -28px rgba(23, 22, 23, 0.22));
}
.portrait-core {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, #20222a, var(--ink));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}
.portrait-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: rgba(226, 235, 211, 0.5); text-align: center; font-family: 'Montserrat', sans-serif; font-size: 12px; letter-spacing: 0.08em;
}
.portrait-placeholder .material-symbols-outlined { font-size: 34px; color: rgba(226, 235, 211, 0.4); }

.about-lede { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; font-weight: 500; color: var(--ink); }
.about-text { font-size: 16px; line-height: 1.75; color: var(--graphite); max-width: 56ch; }
.badge {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--legal); padding: 8px 16px; border-radius: 9999px; border: 1px solid rgba(4, 87, 110, 0.22);
  background: rgba(4, 87, 110, 0.04);
}

/* ============================================================
   AREAS DE ATUACAO (bento, dark) - double-bezel cards
   ============================================================ */
.area-card {
  position: relative; padding: 28px; border-radius: 16px;
  background: rgba(226, 235, 211, 0.035);
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background-color 0.4s ease;
}
.area-card:hover { transform: translateY(-4px); border-color: rgba(10, 106, 134, 0.6); background: rgba(4, 87, 110, 0.08); }
.area-icon {
  font-size: 30px; color: var(--legal-bright);
  font-variation-settings: 'wght' 300; margin-bottom: 18px; display: inline-block;
}
.area-title { font-size: 19px; font-weight: 600; color: var(--ivory); margin: 0 0 8px; }
.area-text { font-size: 14.5px; line-height: 1.6; color: rgba(226, 235, 211, 0.62); margin: 0; }
@media (min-width: 640px) { .area-card--wide { grid-column: span 2; } }
@media (min-width: 1024px) { .area-card--wide { grid-column: span 2; } }

/* ============================================================
   METODO
   ============================================================ */
.method { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.method-step {
  position: relative; padding: 26px 22px; border-radius: 14px;
  background: rgba(23, 22, 23, 0.02); border: 1px solid var(--line-light);
  border-top: 2px solid rgba(4, 87, 110, 0.4);
  transition: transform 0.5s var(--ease-out), border-top-color 0.4s ease, box-shadow 0.4s ease;
}
.method-step:hover { transform: translateY(-4px); border-top-color: var(--legal); box-shadow: var(--soft, 0 24px 70px -30px rgba(23, 22, 23, 0.2)); }
.method-num { display: block; font-size: 30px; font-weight: 600; color: rgba(4, 87, 110, 0.32); margin-bottom: 12px; }
.method-title { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.method-text { font-size: 14.5px; line-height: 1.6; color: var(--graphite); margin: 0; }

/* ============================================================
   ESCRITORIO / PROVA
   ============================================================ */
.office-quote { margin-top: 28px; padding-left: 20px; border-left: 2px solid rgba(10, 106, 134, 0.5); }
.office-quote p { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; margin: 0; }
.office-facts { display: grid; gap: 20px; }
.office-fact dt {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(226, 235, 211, 0.5); margin-bottom: 6px;
}
.office-fact dt .material-symbols-outlined { font-size: 18px; color: var(--legal-bright); font-variation-settings: 'wght' 300; }
.office-fact dd { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(226, 235, 211, 0.82); }

.map-shell {
  height: 100%; min-height: 320px; padding: 8px; border-radius: 16px;
  background: rgba(226, 235, 211, 0.04); border: 1px solid var(--line-dark);
}
.map-shell iframe { width: 100%; height: 100%; min-height: 304px; border: 0; border-radius: 10px; filter: grayscale(0.4) contrast(1.05); }

/* ============================================================
   FEEDBACK ROUND - gradiente fundos escuros, card projetos, escritorio claro
   ============================================================ */
/* Fundos escuros: leve banho azul-institucional do topo, esvaecendo para o ink. Hero fica de fora (ja tem glow + grid). */
.bg-ink:not(.hero) { background-image: linear-gradient(180deg, rgba(4, 87, 110, 0.18) 0%, rgba(4, 87, 110, 0) 58%); }

/* Faixa editorial de especialidades: colunas com regua, sem boxes */
.spec-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.spec-col {
  padding: 20px 20px 20px 0;
  border-top: 1px solid var(--line-light);
  position: relative; overflow: hidden;
}
.spec-col:nth-child(even) { padding-left: 20px; }

/* Regua colorida que desliza da esquerda no hover */
.spec-col::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--legal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.spec-col-num {
  display: block;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 9px; font-weight: 500; letter-spacing: 0.24em;
  color: var(--legal); opacity: 0.5; margin-bottom: 13px;
}

.spec-col-title {
  display: block;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--graphite);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.spec-col-desc { font-size: 13px; line-height: 1.7; color: var(--graphite); margin: 0; opacity: 0.75; }
.spec-col-more { display: none; margin: 0; }

@media (min-width: 1024px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
  .spec-col { padding: 24px 28px 24px 0; }
  .spec-col:not(:first-child) { padding-left: 28px; border-left: 1px solid var(--line-light); }
}

@media (hover: hover) {
  .spec-col { cursor: default; }
  .spec-col:hover::before { transform: scaleX(1); }
  .spec-col:hover .spec-col-num { opacity: 1; transition: opacity 0.3s ease; }
  .spec-col:hover .spec-col-title { color: var(--legal); }
  .spec-col:hover .spec-col-desc { opacity: 1; transition: opacity 0.3s ease; }
  .spec-col-more {
    display: block; font-size: 12px; line-height: 1.7; color: var(--legal-bright);
    margin-top: 12px; opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease 0.06s, visibility 0s linear 0.35s;
  }
  .spec-col:hover .spec-col-more { opacity: 1; visibility: visible; transition: opacity 0.35s ease 0.06s, visibility 0s; }
}

/* Escritorio em fundo claro: cores herdadas do tema escuro */
#escritorio .office-fact dt { color: var(--graphite); }
#escritorio .office-fact dd { color: var(--graphite); }
#escritorio .map-shell { background: rgba(23, 22, 23, 0.03); border-color: var(--line-light); }
#escritorio .inline-link:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   BLOG
   ============================================================ */
.post-card {
  display: flex; flex-direction: column; padding: 26px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--line-light);
  transition: transform 0.5s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.4s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--soft, 0 28px 70px -30px rgba(23, 22, 23, 0.22)); border-color: rgba(4, 87, 110, 0.3); }
.post-tag {
  align-self: flex-start; font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--legal);
  padding: 5px 12px; border-radius: 9999px; background: rgba(4, 87, 110, 0.08); margin-bottom: 18px;
}
.post-title { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.post-text { font-size: 14.5px; line-height: 1.6; color: var(--graphite); margin: 0 0 20px; flex: 1; }
.post-link {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500; color: var(--legal); margin-top: auto;
}
.post-link .material-symbols-outlined { font-size: 18px; transition: transform 0.4s var(--ease-out); }
.post-card:hover .post-link .material-symbols-outlined { transform: translateX(4px); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final .eyebrow.justify-center { justify-content: center; }
.cta-title { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.16; font-weight: 600; color: var(--ivory); letter-spacing: -0.01em; }
.cta-sub { font-size: 17px; line-height: 1.65; color: rgba(226, 235, 211, 0.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-dark); }
.footer-logo { width: 220px; max-width: 80%; height: auto; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(226, 235, 211, 0.6); max-width: 38ch; }

.footer-h { font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(226, 235, 211, 0.45); margin: 0 0 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: rgba(226, 235, 211, 0.78); transition: color 0.3s ease; width: fit-content; }
.footer-nav a:hover { color: var(--ivory); }

.footer-contact-line { display: block; font-size: 14px; color: rgba(226, 235, 211, 0.78); margin-bottom: 10px; transition: color 0.3s ease; }
a.footer-contact-line:hover { color: var(--ivory); }
.footer-contact-line--muted { color: rgba(226, 235, 211, 0.5); }

.footer-social .social-link {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--line-dark); color: rgba(226, 235, 211, 0.7);
  transition: transform 0.4s var(--ease-out), color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.footer-social .social-link svg { width: 18px; height: 18px; }
.footer-social .social-link:hover { transform: translateY(-3px); }
.social-link--whatsapp:hover { color: #25d366; border-color: rgba(37, 211, 102, 0.5); }
.social-link--linkedin:hover { color: #0a66c2; border-color: rgba(10, 102, 194, 0.5); }
.social-link--mail:hover { color: var(--ivory); border-color: var(--ivory); }

/* Copiar e-mail: wrapper relativo + toast de feedback abaixo do botao */
.mail-copy { position: relative; display: inline-flex; }
.copy-toast {
  position: absolute; top: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap; font-family: 'Montserrat', sans-serif; font-size: 11px;
  letter-spacing: 0.02em; color: var(--ivory);
  background: rgba(23, 22, 23, 0.94); border: 1px solid rgba(10, 106, 134, 0.55);
  padding: 5px 11px; border-radius: 8px; pointer-events: none; z-index: 6;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}
.copy-toast::before {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: rgba(23, 22, 23, 0.94);
}
.mail-copy.is-copied .copy-toast {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.footer-base { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.footer-base p { margin: 0; font-size: 12.5px; color: rgba(226, 235, 211, 0.5); }
.footer-credit a { color: var(--legal-bright); border-bottom: 1px solid rgba(10, 106, 134, 0.4); transition: color 0.3s ease, border-color 0.3s ease; }
.footer-credit a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ============================================================
   STICKY BAR + WHATSAPP FAB (mobile)
   ============================================================ */
.mobile-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(238, 242, 230, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-light); padding: 12px 16px;
  transform: translateY(120%); transition: transform 0.45s var(--ease-out);
}
.mobile-sticky-bar.is-visible { transform: translateY(0); }
.sticky-cta {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--ivory);
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  padding: 14px; border-radius: 9999px;
}

/* ---------- WhatsApp glyph (sempre branco) ---------- */
.wa-ico{display:inline-block;width:1.1em;height:1.1em;flex:0 0 auto;background-repeat:no-repeat;background-position:center;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488 11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l-.999 3.648 3.748-.984zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01a1.1 1.1 0 0 0-.792.372c-.272.297-1.04 1.016-1.04 2.479s1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E");}
.wa-ico--lg{width:1.7rem;height:1.7rem}
/* ---------- FAB (verde por default) ---------- */
#whatsappFab{position:fixed;right:20px;bottom:84px;z-index:46;width:56px;height:56px;border-radius:50%;background:var(--wa-accent, var(--whatsapp, #25D366));display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(0,0,0,0.3);transform:translateY(120%) scale(0.6);opacity:0;transition:transform .4s var(--wa-ease, var(--ease, cubic-bezier(0.22,1,0.36,1))),opacity .4s ease,box-shadow .3s ease;}
#whatsappFab.is-visible{transform:translateY(0) scale(1);opacity:1}
body.menu-open #whatsappFab.is-visible{transform:translateY(120%) scale(0.6);opacity:0}
@media (min-width:768px){#whatsappFab{right:36px;bottom:36px;width:68px;height:68px}#whatsappFab .wa-ico{width:2rem;height:2rem}}
@media (min-width:768px) and (hover:hover){#whatsappFab.is-visible:hover{box-shadow:0 16px 40px rgba(0,0,0,0.45);transform:scale(1.06)}}
/* ---------- Chat widget (desktop) ---------- */
.wa-widget{position:fixed;right:36px;bottom:120px;z-index:59;width:264px;transform-origin:bottom right;opacity:0;transform:scale(0.9) translateY(4px);pointer-events:none;transition:opacity .35s var(--wa-ease, var(--ease, cubic-bezier(0.22,1,0.36,1))),transform .4s var(--wa-ease, var(--ease, cubic-bezier(0.22,1,0.36,1)))}
.wa-widget.is-open{opacity:1;transform:scale(1) translateY(0);pointer-events:auto}
.wa-panel{position:relative;background:var(--wa-surface, #fff);border:1.5px solid var(--wa-line, var(--ink, #1f1f1f));border-radius:16px;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,0.16)}
.wa-panel::after{content:"";position:absolute;width:14px;height:14px;background:var(--wa-surface, #fff);border-right:1.5px solid var(--wa-line, var(--ink, #1f1f1f));border-bottom:1.5px solid var(--wa-line, var(--ink, #1f1f1f));border-bottom-right-radius:3px;bottom:-8px;right:30px;transform:rotate(45deg)}
.wa-scroll{max-height:min(58vh,400px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#d2d2d2 transparent}
.wa-scroll::-webkit-scrollbar{width:5px}
.wa-scroll::-webkit-scrollbar-thumb{background:#d2d2d2;border-radius:5px}
.wa-thread{display:flex;flex-direction:column}
.wa-bubble{max-width:88%;padding:8px 11px;font-size:0.82rem;line-height:1.45;border-radius:13px;margin-bottom:12px;overflow-wrap:break-word;animation:waMsgIn .35s var(--wa-ease, var(--ease, cubic-bezier(0.22,1,0.36,1))) both}
.wa-bubble--in{background:var(--wa-bubble-in, #F0F0F0);color:var(--wa-ink, var(--ink, #181818));border-top-left-radius:4px;align-self:flex-start}
.wa-bubble--out{background:var(--wa-bubble-out, var(--ink, #181818));color:#fff;border-top-right-radius:4px;align-self:flex-end}
.wa-bubble--typing{padding:11px 13px}
.wa-dots{display:inline-flex;gap:4px;align-items:center}
.wa-dots span{width:6px;height:6px;border-radius:50%;background:#a8a8a8;animation:waType 1.2s infinite ease-in-out}
.wa-dots span:nth-child(2){animation-delay:.18s}
.wa-dots span:nth-child(3){animation-delay:.36s}
@keyframes waType{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}
@keyframes waMsgIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.wa-quick{display:flex;flex-direction:column;gap:6px;margin-top:5px}
.wa-chip{width:100%;text-align:left;background:var(--wa-surface, #fff);border:1px solid var(--wa-chip-border, var(--line-strong, #D6D6D6));border-radius:10px;padding:8px 11px;font:inherit;font-size:0.78rem;line-height:1.35;color:var(--wa-ink-2, var(--ink-2, #4A4A4A));cursor:pointer;transition:border-color .2s ease,color .2s ease,background .2s ease}
.wa-chip:hover{border-color:var(--wa-ink, var(--ink, #181818));color:var(--wa-ink, var(--ink, #181818));background:#FAFAFA}
.wa-quick-end{font-size:0.76rem;line-height:1.45;color:var(--wa-ink-3, var(--ink-3, #7C7C7C));margin:6px 2px 0}
.wa-cta{display:block;text-align:center;margin-top:11px;padding-top:11px;border-top:1px solid var(--wa-line-soft, var(--line, #E6E6E6));font-size:0.78rem;font-weight:600;letter-spacing:0.02em;color:var(--wa-ink, var(--ink, #181818));text-decoration:none}
.wa-cta:hover{text-decoration:underline}
.wa-close{position:absolute;top:-10px;right:-10px;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--wa-line, var(--ink, #1f1f1f));background:var(--wa-surface, #fff);color:var(--wa-line, var(--ink, #1f1f1f));cursor:pointer;padding:0;box-shadow:0 2px 6px rgba(0,0,0,0.14);transition:background .2s ease,color .2s ease}
.wa-close:hover{background:var(--wa-line, var(--ink, #1f1f1f));color:#fff}
/* ---------- Teaser (desktop) ---------- */
.wa-teaser{position:fixed;right:36px;bottom:120px;z-index:58;opacity:0;transform:translateY(6px) scale(0.96);transform-origin:bottom right;pointer-events:none;transition:opacity .35s var(--wa-ease, var(--ease, cubic-bezier(0.22,1,0.36,1))),transform .4s var(--wa-ease, var(--ease, cubic-bezier(0.22,1,0.36,1)))}
.wa-teaser.is-shown{opacity:1;transform:none;pointer-events:auto}
.wa-teaser-bubble{position:relative;display:block;max-width:200px;background:var(--wa-surface, #fff);border:1.5px solid var(--wa-line, var(--ink, #1f1f1f));border-radius:14px;padding:10px 13px;font:inherit;font-size:0.84rem;line-height:1.35;color:var(--wa-ink, var(--ink, #181818));text-align:left;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,0.16);transition:background .2s ease}
.wa-teaser-bubble:hover{background:#FAFAFA}
.wa-teaser-bubble::after{content:"";position:absolute;width:12px;height:12px;background:var(--wa-surface, #fff);border-right:1.5px solid var(--wa-line, var(--ink, #1f1f1f));border-bottom:1.5px solid var(--wa-line, var(--ink, #1f1f1f));border-bottom-right-radius:3px;bottom:-7px;right:26px;transform:rotate(45deg)}
.wa-teaser-x{position:absolute;top:-9px;right:-9px;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--wa-line, var(--ink, #1f1f1f));background:var(--wa-surface, #fff);color:var(--wa-line, var(--ink, #1f1f1f));cursor:pointer;padding:0;box-shadow:0 2px 6px rgba(0,0,0,0.14);transition:background .2s ease,color .2s ease}
.wa-teaser-x:hover{background:var(--wa-line, var(--ink, #1f1f1f));color:#fff}
.wa-close::before,.wa-close::after,.wa-teaser-x::before,.wa-teaser-x::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:1.5px;background:currentColor;border-radius:2px}
.wa-close::before,.wa-teaser-x::before{transform:translate(-50%,-50%) rotate(45deg)}
.wa-close::after,.wa-teaser-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
body.menu-open .mobile-sticky-bar.is-visible{transform:translateY(120%)}

/* ============================================================
   TEXT TRACE engine
   ============================================================ */
[data-anim="text-trace"] { opacity: 1; will-change: auto; transform: none; }
.trace-word { display: inline-block; white-space: nowrap; }
.trace-char { display: inline-block; white-space: pre; opacity: 0; }
.trace-char.is-animating { animation: traceFadeIn var(--trace-duration, 600ms) var(--trace-delay, 0ms) forwards ease-out; }
[data-trace-end="outline"] .trace-char.is-animating { animation: traceSolidToOutline var(--trace-duration, 600ms) var(--trace-delay, 0ms) forwards ease-out; }
@keyframes traceFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes traceSolidToOutline {
  0% { opacity: 0; color: var(--trace-color, currentColor); -webkit-text-stroke: 0 transparent; }
  50% { opacity: 1; color: var(--trace-color, currentColor); -webkit-text-stroke: 0 transparent; }
  100% { opacity: 1; color: transparent; -webkit-text-stroke: 0.035em var(--trace-color, currentColor); }
}

/* ============================================================
   ENTRANCE ANIMATIONS ([data-anim] state machine)
   ============================================================ */
[data-anim] { opacity: 0; }
[data-anim="hero-eyebrow"],
[data-anim="hero-mark"],
[data-anim="hero-fade"] { transform: translateY(20px); }
[data-anim="about-image"] { transform: translateX(-32px); }
[data-anim="about-text"] { transform: translateY(22px); }
[data-anim="section-title"] { transform: translateY(22px); }
[data-anim="service-card"] { transform: translateY(28px); }
[data-anim="diff-quote"] { transform: scale(0.97); }
[data-anim="loc-map"] { transform: translateY(26px); }
[data-anim="final-cta"] { transform: translateY(26px); }

/* text-trace override (must stay visible) */
[data-anim="text-trace"] { opacity: 1; transform: none; }

/* Fallback: no GSAP or reduced motion */
html.reveal-immediate [data-anim] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1 !important; transform: none !important; }
  .trace-char { opacity: 1; animation: none; }
  [data-trace-end="outline"] .trace-char { color: transparent; -webkit-text-stroke: 0.035em var(--trace-color, currentColor); }
  .hero-curve-path { stroke-dashoffset: 0 !important; }
  .hero-scroll-line { animation: none; }
}

/* ============================================================
   BLOG - board CTA (home) + listagem /blog (acordeao)
   ============================================================ */
.blog-board-cta {
  margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.blog-board-cta p { margin: 0; font-size: 15px; color: var(--graphite); max-width: 46ch; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--legal); padding: 12px 22px; border-radius: 9999px; border: 1px solid rgba(4, 87, 110, 0.4);
  background: rgba(4, 87, 110, 0.04);
  transition: background-color 0.35s var(--ease-out), color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.btn-outline .material-symbols-outlined { font-size: 19px; transition: transform 0.35s var(--ease-out); }
.btn-outline:hover { background: var(--legal); color: var(--ivory); border-color: var(--legal); transform: translateY(-2px); }
.btn-outline:hover .material-symbols-outlined { transform: translateX(3px); }

/* Pagina /blog */
.page-top { padding-top: 96px; }
.blog-hero { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.blog-hero .hero-glow { opacity: 0.7; }
.blog-cat { margin-bottom: 40px; }
.blog-cat__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); margin-bottom: 6px; }
.blog-cat__dot { width: 7px; height: 7px; border-radius: 9999px; background: var(--legal-bright); transform: translateY(-3px); flex-shrink: 0; }
.blog-cat__title { font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.2; }
.blog-cat__count { margin-left: auto; font-family: 'Montserrat', sans-serif; font-size: 12px; letter-spacing: 0.12em; color: rgba(23, 22, 23, 0.4); }

.blog-list { list-style: none; margin: 0; padding: 0; }
.blog-item { border-bottom: 1px solid var(--line-light); }
.blog-item__head {
  width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  background: transparent; border: 0; padding: 22px 4px; color: var(--ink); font: inherit;
  transition: color 0.3s ease;
}
.blog-item__head:hover { color: var(--legal); }
.blog-item__title { flex: 1; font-size: clamp(17px, 2vw, 21px); font-weight: 600; line-height: 1.35; }
.blog-item__meta { font-family: 'Montserrat', sans-serif; font-size: 11.5px; letter-spacing: 0.06em; color: rgba(23, 22, 23, 0.45); white-space: nowrap; }
.blog-item__chevron { font-size: 24px; color: var(--legal-bright); transition: transform 0.4s var(--ease-out); flex-shrink: 0; }
.blog-item.is-open .blog-item__chevron { transform: rotate(180deg); }
.blog-item__reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.blog-item.is-open .blog-item__reveal { grid-template-rows: 1fr; }
.blog-item__reveal-inner { overflow: hidden; }
.blog-item__excerpt { margin: 0 0 16px; padding: 0 4px; font-size: 16px; line-height: 1.7; color: var(--graphite); max-width: 70ch; }
.blog-item__more {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 4px 24px; font-family: 'Montserrat', sans-serif;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--legal);
}
.blog-item__more .material-symbols-outlined { font-size: 18px; transition: transform 0.35s var(--ease-out); }
.blog-item__more:hover { color: var(--legal-bright); }
.blog-item__more:hover .material-symbols-outlined { transform: translateX(4px); }
.blog-item__head:focus-visible { outline: 2px solid var(--focus-ring, var(--legal-bright)); outline-offset: 2px; border-radius: 6px; }

/* ============================================================
   ARTIGO (banner escuro + corpo + related + cta)
   ============================================================ */
.article-hero { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; padding-top: 132px; }
.article-hero .hero-grid { opacity: 0.4; }
.article-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(226, 235, 211, 0.5); margin-bottom: 28px;
}
.article-breadcrumb a { color: rgba(226, 235, 211, 0.7); transition: color 0.3s ease; }
.article-breadcrumb a:hover { color: var(--ivory); }
.article-breadcrumb .sep { color: rgba(226, 235, 211, 0.3); }
.article-breadcrumb .current { color: var(--legal-bright); }
.article-cat {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--legal-bright);
  padding: 6px 14px; border-radius: 9999px; border: 1px solid rgba(10, 106, 134, 0.4);
  background: rgba(10, 106, 134, 0.1); margin-bottom: 22px;
}
.article-title { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; font-weight: 600; color: var(--ivory); letter-spacing: -0.01em; max-width: 20ch; }
.article-lede { margin-top: 22px; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; color: rgba(226, 235, 211, 0.78); max-width: 60ch; font-weight: 500; }
.article-meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; color: rgba(226, 235, 211, 0.6);
  border-top: 1px solid var(--line-dark); padding-top: 22px;
}
.article-meta strong { color: rgba(226, 235, 211, 0.92); font-weight: 600; }
.article-meta .sep { color: rgba(226, 235, 211, 0.3); }

.article-body { max-width: 70ch; margin: 0 auto; }
.article-body > * + * { margin-top: 24px; }
.article-body p { font-size: 17.5px; line-height: 1.8; color: var(--graphite); margin: 0; }
.article-body h2 { font-family: 'Cormorant Garamond', Cinzel, serif; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; font-weight: 600; color: var(--ink); margin: 48px 0 0; }
.article-body h3 { font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 600; color: var(--ink); margin: 36px 0 0; letter-spacing: -0.01em; }
.article-body ul, .article-body ol { margin: 0; padding-left: 24px; color: var(--graphite); }
.article-body li { font-size: 17px; line-height: 1.75; margin-top: 10px; }
.article-body li::marker { color: var(--legal-bright); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--legal-bright); border-bottom: 1px solid rgba(10, 106, 134, 0.35); transition: color 0.3s ease, border-color 0.3s ease; }
.article-body a:hover { color: var(--legal); border-color: var(--legal); }
.article-body blockquote {
  margin: 8px 0; padding: 4px 0 4px 22px; border-left: 3px solid rgba(10, 106, 134, 0.5);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--ink);
}
.article-body .law-ref {
  display: block; margin-top: 28px; padding: 18px 20px; border-radius: 12px;
  background: rgba(4, 87, 110, 0.05); border: 1px solid rgba(4, 87, 110, 0.18);
  font-size: 14.5px; line-height: 1.6; color: var(--graphite);
}
.article-note {
  max-width: 70ch; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--line-light);
  font-size: 13px; line-height: 1.6; color: rgba(23, 22, 23, 0.5); font-style: italic;
}

.article-related { border-top: 1px solid var(--line-light); }
.article-related__eyebrow { color: var(--legal); }
.article-related__title { font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--ink); margin: 0 0 24px; line-height: 1.2; }
.related-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--line-light);
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s var(--ease-out);
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(4, 87, 110, 0.3); box-shadow: var(--soft, 0 24px 60px -30px rgba(23, 22, 23, 0.2)); }
.related-card__cat { font-family: 'Montserrat', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--legal); }
.related-card__title { font-family: 'Montserrat', sans-serif; font-size: 16.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .article-hero { padding-top: 110px; }
  .blog-item__meta { display: none; }
  .py-3xl { padding-top: 64px; padding-bottom: 64px; }
  .hero-meta-sep { display: none; }
  .cta-final { padding-bottom: 96px; }
  .site-footer { padding-bottom: 104px; }
  .office-quote p { font-size: 22px; }

  /* Hero mobile: wordmark e eyebrow em uma unica linha (sem quebra) */
  .hero-mark-line { font-size: clamp(20px, 7vw, 56px); white-space: nowrap; }
  .eyebrow[data-anim="hero-eyebrow"] {
    white-space: nowrap; gap: 7px; padding: 6px 9px;
    letter-spacing: 0.04em; font-size: clamp(6px, calc(2.76vw - 2.6px), 11px);
  }

  /* Footer mobile: centralizado */
  .footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .footer-tagline { max-width: 100%; }
  .footer-h { width: 100%; text-align: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 20px; row-gap: 8px; }
  .footer-nav a { width: auto; }
  .footer-contact { text-align: center; }
  .footer-contact .footer-social { justify-content: center; }
  .footer-base { text-align: center; }
}

/* ============================================================
   Dynamic Blog & Article SPA Styles
   ============================================================ */
#blog-secao, #artigo-secao {
  display: none;
}

