/*
 * Nobre Machado Advogados — Design System
 * Tokens calibrated to the physical office brand application:
 *   wall  → saturated mid-blue (not near-black)
 *   logo  → polished metallic gold (not muted ochre)
 *   type  → Marcellus (serif display) + Montserrat (sans, wide-tracked caps)
 *   scale → 8pt grid, generous whitespace, hospitality-grade airiness
 * Documentation: docs/DESIGN_SYSTEM.md
 */

:root {
  /* ─── Brand blue (the office wall) ─────────────────────────── */
  --blue-50: #eef3fa;
  --blue-100: #d6e2f1;
  --blue-200: #aac1de;
  --blue-300: #7398c3;
  --blue-400: #4a72a4;
  --blue-500: #2a5286;   /* wall in good light */
  --blue-700: #1f4274;   /* wall true */
  --blue-900: #122a4d;   /* wall in shadow */
  --blue-950: #0b1a35;   /* near-black accent — use sparingly */

  /* ─── Brand gold (the polished brasão) ──────────────────────── */
  --gold-50:  #faecc4;   /* highlight glint */
  --gold-100: #f0d480;   /* light */
  --gold-200: #e3bc60;
  --gold-400: #c9a04a;   /* base — the polished metal */
  --gold-500: #b78a36;
  --gold-600: #8a6420;   /* deep */
  --gold-700: #5e431a;   /* shadow */

  /* ─── Alert (terracotta — for urgency, never decorative) ────── */
  --alert-500: #c84a36;
  --alert-700: #8e3320;
  /* feedback semantics (form/editorial states) */
  --danger:  #c0392b;   /* erro de campo */
  --success: #2a8e58;   /* validação ok */

  /* polished-metal gradient — restrained, three real stops */
  --gold-metal:
    linear-gradient(135deg, #8a6420 0%, #c9a04a 28%, #f0d480 52%, #c9a04a 76%, #8a6420 100%);
  --gold-metal-soft:
    linear-gradient(135deg, rgba(138, 100, 32, 0.85), rgba(201, 160, 74, 0.95) 50%, rgba(138, 100, 32, 0.85));

  /* ─── Neutrals (sofa, ceiling, paper) ───────────────────────── */
  --paper-0:   #ffffff;  /* ceiling white */
  --paper-50:  #fbf7ef;  /* warm white */
  --paper-100: #f5efe3;  /* cream surface */
  --paper-200: #ece5d6;  /* paper */
  --paper-300: #ddd5c4;  /* line */
  --paper-500: #6a6d73;  /* muted text — 5.1:1 on --surface (AA) */
  --paper-700: #4a4d55;  /* secondary text */
  --paper-900: #14171e;  /* ink */

  /* ─── Semantic aliases (use these in components) ────────────── */
  --brand-blue:        var(--blue-700);
  --brand-blue-deep:   var(--blue-900);
  --brand-blue-night:  var(--blue-950);
  --brand-gold:        var(--gold-400);
  --brand-gold-light:  var(--gold-100);
  --brand-gold-deep:   var(--gold-600);

  --ink:           var(--paper-900);
  --ink-soft:      var(--paper-700);
  --ink-muted:     var(--paper-500);
  --muted:         var(--paper-500);
  --line:          var(--paper-300);
  --line-strong:   rgba(20, 23, 30, 0.12);
  --field-border:  var(--paper-500); /* form inputs — ≥3:1 vs surface for WCAG 1.4.11 */
  --surface:       var(--paper-50);
  --surface-soft:  var(--paper-100);
  --surface-card:  var(--paper-0);
  --surface-raised: var(--paper-0);
  --surface-inset:  var(--paper-200);
  --paper:         var(--paper-200);
  --white:         var(--paper-0);

  /* on-dark tints */
  --on-dark:        rgba(255, 255, 255, 0.92);
  --on-dark-soft:   rgba(255, 255, 255, 0.74);
  --on-dark-muted:  rgba(255, 255, 255, 0.58);
  --on-dark-line:   rgba(255, 255, 255, 0.12);

  /* ─── Typography ────────────────────────────────────────────── */
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Montserrat", "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* third voice — numbers, process codes, OAB, hex, dates (DESIGN_SYSTEM §4.1) */
  --font-mono:    "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* type scale (modular, calmer) */
  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.8125rem;  /* 13 */
  --text-base: 0.9375rem;  /* 15 */
  --text-md:   1rem;       /* 16 — body */
  --text-lg:   1.125rem;   /* 18 */
  --text-xl:   1.375rem;   /* 22 */
  --text-2xl:  1.75rem;    /* 28 */
  --text-3xl:  2.25rem;    /* 36 */
  --text-4xl:  2.875rem;   /* 46 */
  --text-display: clamp(2rem, 3.4vw, 3rem);
  --text-h1:      clamp(1.75rem, 2.8vw, 2.5rem);
  --text-h2:      clamp(1.375rem, 2vw, 1.875rem);
  --text-h3:      clamp(1.0625rem, 1.2vw, 1.25rem);

  --lh-tight:   1.12;
  --lh-snug:    1.24;
  --lh-normal:  1.6;
  --lh-loose:   1.75;

  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.14em;
  --tracking-widest:  0.22em;   /* "ADVOGADOS" lockup */

  /* ─── Spacing (8pt scale) ───────────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 160px;

  /* layout */
  --container-max: 1180px;
  --container-gutter: 32px;

  /* ─── Radii ─────────────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   8px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* ─── Motion ────────────────────────────────────────────────── */
  --ease-out:      cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.5, 0, 0.2, 1);
  --duration-fast: 160ms;
  --duration-base: 240ms;
  --duration-slow: 420ms;

  /* ─── Elevation (blue-tinted, not black) ────────────────────── */
  --shadow-xs: 0 1px 2px rgba(18, 42, 77, 0.05);
  --shadow-sm: 0 8px 24px rgba(18, 42, 77, 0.06);
  --shadow-md: 0 18px 44px rgba(18, 42, 77, 0.08);
  --shadow-lg: 0 32px 80px rgba(18, 42, 77, 0.14);
  --gold-aura: 0 0 32px rgba(240, 212, 128, 0.12), 0 0 80px rgba(201, 160, 74, 0.08);
}

/* ─── Reset & base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--brand-gold);
  color: var(--brand-blue-deep);
}

/* Texture is opt-in on dark brand surfaces only. Light paper surfaces stay clean
   for reading and for stationery-like layouts. */

/* keyboard focus — visible ring, blue on light surfaces (10:1) */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* on dark surfaces the ring switches to gold (6.9:1) */
.hero :focus-visible,
.page-hero :focus-visible,
.cta :focus-visible,
.section.dark :focus-visible,
.surface-dark :focus-visible,
.surface-band--dark :focus-visible,
.signature-panel :focus-visible,
.rating-card :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brand-gold-light);
}

.floating-whatsapp:focus-visible,
.cookie-consent :focus-visible {
  outline-color: var(--brand-gold-light);
}

:where(a, button, [role="button"])[aria-disabled="true"],
:where(button, input, select, textarea):disabled {
  cursor: not-allowed;
}

/* ─── Typography primitives ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-5);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

/* eyebrow — the "ADVOGADOS"-style spaced caps signature */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: var(--space-4);
}

/* mono — the third voice: OAB, processo, hex, telefone, data, specs (§4.1) */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;       /* base of the 0.08–0.22em range */
  font-variant-numeric: tabular-nums;
  color: var(--brand-gold-deep);
}
.mono--wide  { letter-spacing: 0.14em; }
.mono--label { letter-spacing: 0.22em; text-transform: uppercase; }
.mono--500   { font-weight: 500; }
.mono--muted { color: var(--muted); }
.mono--xs    { font-size: var(--text-xs); }

/* on dark surfaces the mono voice lifts to the light gold tint */
.hero .mono,
.cta .mono,
.page-hero .mono,
.section.dark .mono,
.surface-dark .mono,
.surface-band--dark .mono,
.signature-panel .mono,
.topbar .mono,
.site-footer .mono {
  color: var(--brand-gold-light);
}
.hero .mono--muted,
.cta .mono--muted,
.page-hero .mono--muted,
.section.dark .mono--muted,
.surface-dark .mono--muted,
.surface-band--dark .mono--muted,
.site-footer .mono--muted {
  color: var(--on-dark-muted);
}

/* on dark backgrounds the eyebrow uses the metallic tint */
.hero .eyebrow,
.cta .eyebrow,
.page-hero .eyebrow,
.section.dark .eyebrow,
.surface-dark .eyebrow,
.surface-band--dark .eyebrow,
.signature-panel .eyebrow,
.rating-card .eyebrow,
.signature-panel span,
.rating-card span {
  color: var(--brand-gold-light);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ─── Textura de parede (brand wall stipple) ─────────────────── */
/* DESIGN_SYSTEM §6 — radial-gradient pontilhado sobre superfícies escuras.
   4 variantes; ponto branco sobre azul, background-size múltiplo de 3, nunca
   > 12px e nunca opacidade > 0.18. Aplica-se via ::before para não conflitar
   com gradientes de fundo já existentes. */
.wall-stipple { position: relative; }
.wall-stipple > * { position: relative; z-index: 1; }
.wall-stipple::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
}
/* sussurro — topbar/footer */
.wall-stipple--whisper::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}
/* padrão — hero (default já cobre, mantido explícito) */
.wall-stipple--default::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
}
/* aberto */
.wall-stipple--open::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 5px 5px;
}
/* dourado raro */
.wall-stipple--gold::before {
  background-image: radial-gradient(rgba(201, 160, 74, 0.14) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
}

/* ─── Topbar (the discreet contact strip) ───────────────────── */
.topbar {
  position: relative;
  background: var(--brand-blue-night);
  color: var(--on-dark-soft);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

/* wall stipple — variante sussurro, padrão da topbar */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.topbar-inner { position: relative; }

.topbar-inner,
.container,
.nav-inner {
  width: min(var(--container-max), calc(100% - var(--container-gutter) * 2));
  margin: 0 auto;
}

.container--narrow { --container-max: 920px; }
.container--wide { --container-max: 1320px; }
.container--text { --container-max: 760px; }

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
  color: var(--on-dark);
}

/* ─── Site header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 239, 0.86);
  border-bottom: 1px solid rgba(20, 23, 30, 0.06);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--brand-blue);
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 51px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(18, 42, 77, 0.18));
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-blue);
}

.brand span {
  display: block;
  margin-top: 4px;
  color: var(--brand-gold-deep);
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brand-blue);
  font-size: 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* :not(.button) so the CTA keeps its own gold-on-blue text — without it,
   .nav-menu a (0,1,1) outranks .button (0,1,0) and paints blue-on-blue */
.nav-menu a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* expand pointer/touch target — WCAG 2.5.8 + design-system 44px rule */
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-menu a:not(.button):hover {
  color: var(--brand-gold-deep);
}

.nav-menu a:not(.button):active {
  color: var(--brand-blue-deep);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.button,
.button-outline {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}

/* primary — restrained metallic, no plastic embossing */
.button {
  background: var(--brand-blue);
  color: var(--brand-gold-light);
  border: 1px solid var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

/* light catching the metal — sweeps once on hover (screen = brightens) */
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-metal);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.button:hover {
  background: var(--brand-blue-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--gold-aura);
}

.button:hover::after {
  opacity: 0.9;
}

/* active — press feedback (settle back to the surface) */
.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* disabled — dedicated treatment, not opacity-only (DESIGN_SYSTEM §12) */
.button:disabled,
.button[aria-disabled="true"],
.button-outline:disabled,
.button-outline[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}
.button:disabled,
.button[aria-disabled="true"] {
  background: var(--paper-300);
  border-color: var(--paper-300);
  color: var(--paper-700);
}
.button:disabled::after,
.button[aria-disabled="true"]::after { opacity: 0; }
.button-outline:disabled,
.button-outline[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

/* outline — legible on LIGHT surfaces by default (most of the site) */
.button-outline {
  background: transparent;
  color: var(--brand-blue);            /* 9.4:1 on --surface — AAA */
  border: 1px solid rgba(31, 66, 116, 0.34);
}

.button-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue-deep);
  background: rgba(31, 66, 116, 0.05);
  transform: translateY(-1px);
}

.button-outline:active {
  transform: translateY(0);
  background: rgba(31, 66, 116, 0.09);
}

/* outline on DARK surfaces — flip to light text (hero, page-hero, cta, dark) */
.hero .button-outline,
.page-hero .button-outline,
.cta .button-outline,
.section.dark .button-outline,
.surface-dark .button-outline,
.surface-band--dark .button-outline {
  color: var(--on-dark);               /* 10:1 on --brand-blue — AAA */
  border-color: rgba(240, 212, 128, 0.48);
}

.hero .button-outline:hover,
.page-hero .button-outline:hover,
.cta .button-outline:hover,
.section.dark .button-outline:hover,
.surface-dark .button-outline:hover,
.surface-band--dark .button-outline:hover {
  color: var(--brand-gold-light);
  border-color: var(--brand-gold-light);
  background: transparent;
}

/* light variant for dark surfaces */
.button.light {
  background: var(--white);
  color: var(--brand-blue);
  border-color: var(--white);
}

.button.light:hover {
  background: var(--paper-100);
  border-color: var(--paper-100);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  color: var(--on-dark);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 22%, rgba(240, 212, 128, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 60% at 12% 82%, rgba(42, 82, 134, 0.55), transparent 60%),
    linear-gradient(160deg, var(--blue-700) 0%, var(--blue-900) 60%, var(--blue-950) 100%);
}

/* wall stipple — variante padrão (§6): grão fino da parede da recepção */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

/* vignette — deepen the edges/bottom like the wall in shadow */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(11, 26, 53, 0.6) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-10) 0 var(--space-11);
}

.hero--home-office .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  padding: var(--space-9) 0 var(--space-10);
}

.hero--home-office {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    var(--brand-blue-night);
}

.hero--home-office::after {
  background:
    linear-gradient(90deg, rgba(201, 160, 74, 0.2), transparent 24%, transparent 76%, rgba(201, 160, 74, 0.12)),
    linear-gradient(180deg, transparent 68%, rgba(6, 14, 29, 0.58) 100%);
}

.hero--home-office .hero-copy {
  max-width: 760px;
}

.hero--home-office h1 {
  max-width: 18ch;
}

.hero--home-office p {
  max-width: 50ch;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 20ch;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 24px rgba(11, 26, 53, 0.4);
}

.hero h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin-top: var(--space-6);
  background: var(--gold-metal);
  box-shadow: var(--gold-aura);
}

/* flowing polished-metal highlight */
.hero p {
  max-width: 56ch;
  color: var(--on-dark-soft);
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-visual {
  display: grid;
  gap: var(--space-5);
}

.hero-photo {
  position: relative;
  overflow: hidden;
  height: clamp(180px, 18vw, 240px);
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(240, 212, 128, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(11, 26, 53, 0.42));
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero--home-office .hero-panel {
  padding: var(--space-5);
}

.hero--home-office .panel-label {
  margin-bottom: var(--space-4);
}

.hero--home-office .hero-panel a {
  padding: var(--space-3) var(--space-4);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.hero-proof span {
  border: 1px solid rgba(240, 212, 128, 0.28);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-pill);
  color: var(--on-dark);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-2) var(--space-4);
}

/* hero side panel — quick-access destinations */
.hero-panel {
  position: relative;
  background: rgba(251, 247, 239, 0.97);
  border: 1px solid rgba(240, 212, 128, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--gold-aura);
  padding: var(--space-6);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-metal);
  opacity: 0.8;
}

.panel-label {
  display: block;
  color: var(--brand-gold-deep);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero-panel a {
  display: block;
  color: var(--brand-blue);
  border: 1px solid rgba(20, 23, 30, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  background: var(--white);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.hero-panel a + a {
  margin-top: var(--space-3);
}

.hero-panel a:hover,
.hero-panel a:focus-visible {
  border-color: rgba(201, 160, 74, 0.6);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.hero-panel a:active {
  transform: translateX(0);
  box-shadow: none;
}

.hero-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-blue);
}

.hero-panel small {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  margin-top: var(--space-1);
}

.hero-commitment-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: var(--space-7);
  border: 1px solid rgba(240, 212, 128, 0.24);
  border-radius: var(--radius-sm);
  color: var(--on-dark-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), var(--shadow-lg);
  overflow: hidden;
}

.hero-commitment-panel::before {
  content: "";
  position: absolute;
  inset: var(--space-4);
  border: 1px solid rgba(240, 212, 128, 0.18);
  pointer-events: none;
}

.hero-commitment-panel::after {
  content: "";
  position: absolute;
  right: var(--space-7);
  bottom: var(--space-7);
  width: 96px;
  height: 1px;
  background: var(--gold-metal);
  opacity: 0.78;
}

.hero-commitment-panel .panel-label,
.hero-commitment-list,
.hero-mark {
  position: relative;
  z-index: 1;
}

.hero-commitment-panel .panel-label {
  color: var(--brand-gold-light);
}

.hero-commitment-list {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-6) 0 var(--space-8);
  padding: 0;
  list-style: none;
}

.hero-commitment-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--on-dark);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.hero-commitment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 12px;
  height: 1px;
  background: var(--gold-metal);
}

.hero-mark {
  display: block;
  margin-top: auto;
}

.hero.hero--home-office .cta-apelo {
  background: transparent;
  color: var(--brand-gold-light);
  box-shadow: none;
}

.hero.hero--home-office .cta-apelo::after {
  border-color: rgba(240, 212, 128, 0.56);
}

.hero.hero--home-office .cta-apelo:hover {
  background: rgba(240, 212, 128, 0.08);
  color: var(--brand-gold-light);
  box-shadow: var(--gold-aura);
}

/* hero bottom strip */
.hero-strip {
  position: relative;
  z-index: 2;
  background: var(--white);
  color: var(--brand-blue);
  border-top: 1px solid rgba(240, 212, 128, 0.32);
  margin-top: calc(-1 * var(--space-7));
}

.hero-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}

.strip-item {
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid var(--line);
}

.strip-item:first-child {
  border-left: 0;
}

.strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--brand-blue);
  margin-bottom: var(--space-1);
  letter-spacing: var(--tracking-tight);
}

.strip-item span {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

/* home urgency band — sober routing for time-sensitive criminal matters */
.penal-urgency-band {
  background: var(--surface-card);
  border-top: 1px solid rgba(240, 212, 128, 0.22);
  border-bottom: 1px solid var(--line);
}

.penal-urgency-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr) auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6) 0;
}

.penal-urgency-band__copy {
  min-width: 0;
}

.penal-urgency-band .eyebrow {
  margin-bottom: var(--space-2);
}

.penal-urgency-band h2 {
  color: var(--brand-blue);
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-2);
}

.penal-urgency-band p {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

.penal-urgency-band__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.penal-urgency-band__links a {
  position: relative;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-blue);
  text-decoration: none;
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.penal-urgency-band__links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-4);
  width: 28px;
  height: 1px;
  background: var(--gold-metal);
}

.penal-urgency-band__links a:hover,
.penal-urgency-band__links a:focus-visible {
  border-color: rgba(201, 160, 74, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.penal-urgency-band__links strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.penal-urgency-band__links span {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  line-height: var(--lh-normal);
}

.penal-urgency-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.penal-urgency-band__contact {
  color: var(--brand-blue);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--lh-normal);
  text-decoration: underline;
  text-decoration-color: rgba(31, 66, 116, 0.28);
  text-underline-offset: 4px;
}

.penal-urgency-band__contact:hover,
.penal-urgency-band__contact:focus-visible {
  color: var(--brand-gold-deep);
  text-decoration-color: currentColor;
}

/* ─── Sections ──────────────────────────────────────────────── */
.section {
  padding: var(--space-10) 0;
}

.section.compact {
  padding: var(--space-9) 0;
}

.section.alt {
  background: var(--surface-soft);
}

.surface-band {
  background: var(--surface);
}

.surface-band--soft {
  background: var(--surface-soft);
}

.surface-band--card {
  background: var(--surface-card);
}

.surface-band--inset {
  background: var(--surface-inset);
}

.surface-dark,
.surface-band--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(240, 212, 128, 0.1), transparent 60%),
    linear-gradient(160deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--on-dark-soft);
}

.surface-dark > *,
.surface-band--dark > * {
  position: relative;
  z-index: 1;
}

.surface-dark::before,
.surface-band--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
}

.source-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.source-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

.source-list a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(31, 66, 116, 0.25);
  text-underline-offset: 3px;
}

.source-list a:hover {
  color: var(--brand-gold-deep);
  text-decoration-color: currentColor;
}

.source-meta {
  display: block;
  margin-top: var(--space-1);
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.section.dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(240, 212, 128, 0.1), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-900));
  color: var(--on-dark-soft);
}

.section.dark > * {
  position: relative;
  z-index: 1;
}

.section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
}

.section.dark h2,
.section.dark h3,
.surface-dark h2,
.surface-dark h3,
.surface-band--dark h2,
.surface-band--dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section-head--wide {
  max-width: 760px;
}

.section-head--compact {
  margin-bottom: var(--space-6);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: var(--space-7);
  align-items: end;
  max-width: none;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: var(--text-h2);
  line-height: var(--lh-snug);
}

.section-head p {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  max-width: 56ch;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.surface-dark .section-head p,
.surface-band--dark .section-head p,
.section.dark .section-head p {
  color: var(--on-dark-soft);
}

/* ─── Grids ─────────────────────────────────────────────────── */
.grid-3,
.grid-2,
.grid-auto,
.service-grid,
.intent-grid,
.search-grid,
.step-grid {
  display: grid;
  gap: var(--space-5);
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-7); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: nm-service-card; }
.intent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: nm-intent-card; }
.search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); counter-reset: nm-search-card; }
.step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.work-section {
  background: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 241, 0.82)),
    var(--surface-card);
}

.work-card::before {
  content: "";
  width: 36px;
  height: 2px;
  margin-bottom: var(--space-5);
  background: var(--brand-gold);
}

.work-card__number {
  margin-bottom: var(--space-3);
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
}

.work-card h3 {
  margin-bottom: var(--space-3);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.work-card p {
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card,
.service-card,
.article-card,
.intent-card,
.search-card,
.step-card,
.local-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.card:hover,
.service-card:hover,
.article-card:hover,
.intent-card:hover,
.search-card:hover,
.step-card:hover,
.local-card:hover,
.card:focus-within,
.service-card:focus-within,
.article-card:focus-within,
.intent-card:focus-within,
.search-card:focus-within,
.step-card:focus-within,
.local-card:focus-within {
  border-color: rgba(201, 160, 74, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* active — cartões-link assentam ao toque */
.intent-card:active,
.card:active,
.service-card:active,
.article-card:active,
.search-card:active,
.step-card:active,
.local-card:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.card h3,
.service-card h3,
.article-card h3,
.intent-card h3,
.search-card h3,
.step-card h3,
.local-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
  color: var(--brand-blue);
}

.card p,
.service-card p,
.article-card p,
.intent-card p,
.search-card p,
.step-card p,
.local-card p {
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

/* Brand v1 card grammar: filete/number, stable grid cells, and one hover language. */
.section { counter-reset: nm-local-card; }

.card,
.service-card,
.article-card,
.intent-card,
.search-card,
.local-card {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.card:not(.local-card)::before,
.service-card::before,
.article-card::before,
.search-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  z-index: 1;
  width: 28px;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0.65);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.card:not(.local-card):hover::before,
.service-card:hover::before,
.article-card:hover::before,
.search-card:hover::before,
.card:not(.local-card):focus-within::before,
.service-card:focus-within::before,
.article-card:focus-within::before,
.search-card:focus-within::before {
  transform: scaleX(2);
}

.service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card::after,
.search-card::after {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  color: rgba(138, 100, 32, 0.64);
}

.service-card::after {
  counter-increment: nm-service-card;
  content: counter(nm-service-card, decimal-leading-zero);
}

.search-card::after {
  counter-increment: nm-search-card;
  content: counter(nm-search-card, decimal-leading-zero);
}

.service-card h3,
.search-card h3 {
  max-width: calc(100% - 48px);
}

.service-card .list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-2);
  margin-bottom: var(--space-5);
}

.search-card .list {
  list-style: none;
  padding-left: 0;
}

.service-card .list li,
.search-card .list li {
  position: relative;
  padding-left: var(--space-4);
}

.service-card .list li::before,
.search-card .list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 1px;
  background: var(--brand-gold);
}

.service-card a,
.article-card a,
.local-card a,
.search-card a,
.founder-card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.service-card a::after,
.article-card a::after,
.local-card a::after,
.search-card a::after,
.founder-card a:not([href^="mailto"])::after {
  content: "→";
  color: var(--brand-gold);
  transition: transform var(--duration-fast) var(--ease-out);
}

.service-card a:hover::after,
.article-card a:hover::after,
.local-card a:hover::after,
.search-card a:hover::after,
.founder-card a:not([href^="mailto"]):hover::after {
  transform: translateX(4px);
}

.intent-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 236px;
  color: var(--brand-blue);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 239, 227, 0.78)),
    var(--surface-card);
}

.intent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  z-index: 1;
  width: 32px;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0.75);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.intent-card:hover::before,
.intent-card:focus-within::before {
  transform: scaleX(2);
}

.intent-card.urgent {
  border-color: rgba(240, 212, 128, 0.36);
  color: var(--on-dark-soft);
  background:
    radial-gradient(ellipse 62% 52% at 82% 10%, rgba(240, 212, 128, 0.18), transparent 64%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900) 68%, var(--blue-950));
  box-shadow: var(--shadow-sm);
}

.intent-card span:not(.intent-go):not(.home-router__legal) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 40px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(201, 160, 74, 0.58);
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--gold-metal-soft);
  color: var(--brand-blue-deep);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-5);
}

.intent-card.urgent span:not(.intent-go):not(.home-router__legal) {
  border-color: rgba(240, 212, 128, 0.58);
  color: var(--brand-gold-light);
}

.intent-card.urgent h3 {
  color: var(--white);
}

.intent-card.urgent p {
  color: var(--on-dark-soft);
}

.intent-card.urgent .intent-go {
  color: var(--brand-gold-light);
}

/* Resting-state click cue — the triage cards are links but gave no signal
   (no hover on touch). Mirrors the service-card link treatment. */
.intent-card .intent-go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.intent-card .intent-go::after {
  content: "→";
  color: var(--brand-gold);
  transition: transform var(--duration-fast) var(--ease-out);
}

.intent-card:hover .intent-go::after {
  transform: translateX(4px);
}

.home-router {
  display: grid;
  gap: var(--space-5);
}

.home-router__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-router__card {
  min-height: 224px;
}

.intent-card .home-router__number,
.intent-card.urgent .home-router__number {
  display: inline-flex;
}

.intent-card .home-router__legal,
.intent-card.urgent .home-router__legal,
.home-router__legal {
  display: block;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0 0 var(--space-1);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  line-height: var(--lh-normal);
  text-transform: uppercase;
}

.intent-card.urgent .home-router__legal {
  color: var(--on-dark-muted);
}

.home-router__card h3 {
  max-width: 20ch;
  margin-bottom: var(--space-2);
}

.home-router__company {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  min-height: 136px;
  padding: var(--space-6);
  color: var(--brand-blue);
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(31, 66, 116, 0.05), rgba(201, 160, 74, 0.1)),
    var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.home-router__company:hover,
.home-router__company:focus-within {
  border-color: rgba(201, 160, 74, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.home-router__company-copy {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.home-router__company-copy strong {
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.home-router__company-copy span:last-child {
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.home-router__company > .home-router__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  border-bottom: 1px solid rgba(201, 160, 74, 0.58);
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
}

.home-router__company .intent-go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.home-router__company .intent-go::after {
  content: "→";
  color: var(--brand-gold);
  transition: transform var(--duration-fast) var(--ease-out);
}

.home-router__company:hover .intent-go::after {
  transform: translateX(4px);
}

/* ─── Brand/environment photo ───────────────────────────────── */
.brand-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  align-self: center;
}

.brand-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* ─── Search section ────────────────────────────────────────── */
.search-section {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.search-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.search-card .list { margin-bottom: var(--space-5); }

/* ─── Process section ───────────────────────────────────────── */
.process-section {
  background: var(--white);
}

.step-card {
  background: linear-gradient(180deg, var(--white), var(--surface));
  text-align: left;
}

/* ─── Media & signature panels ──────────────────────────────── */
.media-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.signature-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-3);
  min-height: 360px;
  padding: var(--space-7);
  overflow: hidden;
  border: 1px solid rgba(240, 212, 128, 0.24);
  border-radius: var(--radius-lg);
  color: var(--on-dark-soft);
  background:
    radial-gradient(ellipse 50% 40% at 80% 18%, rgba(240, 212, 128, 0.16), transparent 60%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900) 70%, var(--blue-950));
}

.signature-panel::before {
  content: "";
  position: absolute;
  inset: var(--space-5);
  border: 1px solid rgba(240, 212, 128, 0.16);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.signature-panel span {
  position: relative;
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.signature-panel strong {
  position: relative;
  display: block;
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
}

.signature-panel p {
  position: relative;
  max-width: 48ch;
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.featured-card {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.9fr);
  gap: var(--space-8);
  align-items: center;
  min-width: 0;
  padding: var(--space-8);
  overflow: hidden;
  border: 1px solid rgba(240, 212, 128, 0.24);
  border-radius: var(--radius-lg);
  color: var(--on-dark-soft);
  background:
    radial-gradient(ellipse 58% 44% at 80% 14%, rgba(240, 212, 128, 0.17), transparent 64%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900) 70%, var(--blue-950));
  box-shadow: var(--shadow-md);
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.featured-card > * {
  position: relative;
  z-index: 1;
}

.featured-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.featured-card__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-metal);
}

.featured-card__title {
  max-width: 16ch;
  margin-bottom: var(--space-5);
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  letter-spacing: var(--tracking-normal);
}

.featured-card__title em {
  font-style: normal;
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-card__body {
  max-width: 58ch;
  color: var(--on-dark);
  font-weight: 300;
}

.featured-card__meta {
  display: grid;
  gap: var(--space-5);
  color: var(--brand-gold-light);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.featured-card__meta .v {
  display: block;
  margin-top: var(--space-2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-normal);
  text-transform: none;
}

.signature-panel {
  box-shadow: var(--shadow-md);
}

.signature-panel::before {
  inset: var(--space-4);
  border-color: rgba(240, 212, 128, 0.2);
}

.signature-panel span::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: var(--space-3);
  vertical-align: middle;
  background: var(--gold-metal);
}

.signature-panel strong {
  letter-spacing: var(--tracking-normal);
}

.local-card {
  counter-increment: nm-local-card;
  display: grid;
  grid-template-columns: minmax(44px, 64px) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
  min-height: 100%;
}

.local-card::before {
  content: counter(nm-local-card, decimal-leading-zero);
  grid-row: 1 / span 8;
  align-self: start;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  color: var(--brand-gold-deep);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.local-card::after {
  content: "";
  position: absolute;
  top: var(--space-5);
  left: var(--space-6);
  width: 28px;
  height: 1px;
  background: rgba(201, 160, 74, 0.42);
}

.local-card > :not(:first-child),
.local-card > .eyebrow:first-child,
.local-card > h3:first-child {
  grid-column: 2;
}

.local-card .eyebrow {
  margin-bottom: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
}

.local-card h3 {
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-normal);
}

.local-card p {
  margin-bottom: var(--space-2);
}

/* ─── Founders ──────────────────────────────────────────────── */
.founders-section {
  background:
    radial-gradient(ellipse 40% 30% at 82% 12%, rgba(240, 212, 128, 0.1), transparent 60%),
    var(--surface);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.founder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: var(--space-7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.founder-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-metal);
}

/* Round founder avatar — real photo or initials monogram (kept balanced) */
.founder-avatar {
  width: 88px;
  height: 88px;
  flex: none;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 2px solid rgba(201, 160, 74, 0.5);
  box-shadow: var(--shadow-sm);
}

.founder-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-avatar.is-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--brand-gold-light);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

.founder-card:hover,
.founder-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.founder-card span {
  display: inline-block;
  margin-bottom: var(--space-4);
  color: var(--brand-gold-deep);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.founder-card h3 {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
  color: var(--brand-blue);
}

.founder-card p {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-3);
}

.founder-card a[href^="mailto"] {
  color: var(--brand-blue);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-underline-offset: 4px;
  text-transform: none;
  letter-spacing: var(--tracking-normal);
}

/* ─── Lists & pills ─────────────────────────────────────────── */
.list {
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
}

.list li + li {
  margin-top: var(--space-2);
}

.list li::marker {
  color: var(--brand-gold);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201, 160, 74, 0.4);
  background: rgba(201, 160, 74, 0.08);
  color: var(--brand-blue);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}

/* ─── Proof section ─────────────────────────────────────────── */
.proof-section {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

.google-proof {
  display: grid;
  gap: var(--space-4);
  justify-items: end;
}

.rating-card {
  width: min(100%, 400px);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(240, 212, 128, 0.16), transparent 60%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900));
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.rating-card:hover,
.rating-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rating-card span {
  display: inline-block;
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.rating-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--brand-gold-light);
  margin-bottom: var(--space-3);
}

.rating-card p {
  color: var(--on-dark-soft);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-4);
}

.rating-card a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 212, 128, 0.4);
  padding-bottom: 2px;
}

.google-map-card {
  position: relative;
  width: min(100%, 400px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}

/* Shown only if the embed is blocked/blank — the iframe paints over it on load */
.google-map-card .map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
}

.google-map-card .map-fallback::after {
  content: "→";
  margin-left: var(--space-2);
  color: var(--brand-gold);
}

.google-map-card iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  background: transparent; /* reveals .map-fallback if the embed is blocked/blank */
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--brand-gold);
  color: var(--brand-gold-deep);
}

.social-links a:active {
  border-color: var(--brand-blue);
  color: var(--brand-blue-deep);
}

/* ─── Page hero (interior pages) ────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  padding: var(--space-10) 0 var(--space-9);
  background:
    radial-gradient(ellipse 40% 30% at 85% 25%, rgba(240, 212, 128, 0.12), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-900));
}

/* wall stipple — variante padrão (§6) */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.page-hero .hero-actions {
  margin-top: var(--space-6);
}

.page-hero--local {
  background:
    radial-gradient(ellipse 42% 34% at 82% 20%, rgba(240, 212, 128, 0.12), transparent 62%),
    linear-gradient(155deg, var(--blue-700), var(--blue-900) 68%, var(--blue-950));
}

.page-hero--founder {
  background:
    radial-gradient(ellipse 40% 32% at 18% 24%, rgba(201, 160, 74, 0.15), transparent 62%),
    linear-gradient(150deg, var(--blue-700), var(--blue-950));
}

.page-hero--contact,
.page-hero--appointment {
  background:
    radial-gradient(ellipse 44% 34% at 86% 16%, rgba(240, 212, 128, 0.14), transparent 64%),
    linear-gradient(155deg, var(--blue-700), var(--blue-900));
}

.page-hero--area {
  padding-top: var(--space-11);
  padding-bottom: var(--space-10);
}

.page-hero--service {
  padding-top: var(--space-10);
  padding-bottom: var(--space-9);
}

.page-hero--index {
  padding-bottom: var(--space-10);
}

.page-hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 400;
  line-height: var(--lh-tight);
  max-width: 22ch;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: var(--space-5);
  background: var(--gold-metal);
}

.page-hero p {
  max-width: 64ch;
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  color: var(--on-dark-soft);
}

/* ─── Page-hero por área: composição + tom distintos (dentro da paleta) ─── */
/* Kicker: linha de situações-chave, diferencia o hero de cada área */
.page-hero .hero-kicker {
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-gold-light);
}

/* Penal — centralizado, azul-noite, mais peso; urgência em ouro */
.page-hero.hero-penal {
  text-align: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(240, 212, 128, 0.16), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-950));
}
.page-hero.hero-penal h1,
.page-hero.hero-penal p,
.page-hero.hero-penal .breadcrumbs { margin-left: auto; margin-right: auto; }
.page-hero.hero-penal h1 { max-width: 26ch; }
.page-hero.hero-penal h1::after { margin-left: auto; margin-right: auto; }
.page-hero.hero-penal .hero-actions { justify-content: center; }
.page-hero.hero-penal .hero-kicker { color: var(--brand-gold); }

/* Cível — azul-aço (parede em luz boa), mais claro */
.page-hero.hero-civel {
  background:
    radial-gradient(ellipse 40% 30% at 88% 22%, rgba(240, 212, 128, 0.10), transparent 60%),
    linear-gradient(160deg, var(--blue-500), var(--blue-700));
}

/* Família — mais aberto e claro, lead maior (respiro) */
.page-hero.hero-familia {
  padding-top: var(--space-11);
  padding-bottom: var(--space-10);
  background:
    radial-gradient(ellipse 55% 45% at 18% 18%, rgba(214, 226, 241, 0.14), transparent 62%),
    linear-gradient(160deg, var(--blue-500), var(--blue-900));
}
.page-hero.hero-familia p { font-size: var(--text-xl); max-width: 52ch; }

/* Sucessões — profundo, glint de continuidade no canto inferior */
.page-hero.hero-sucessoes {
  background:
    radial-gradient(ellipse 60% 55% at 82% 82%, rgba(201, 160, 74, 0.16), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-950));
}

/* Empresarial/trabalhista — base azul real (mantém), glint deslocado p/ distinguir */
.page-hero.hero-empresarial {
  background:
    radial-gradient(ellipse 38% 30% at 92% 30%, rgba(240, 212, 128, 0.13), transparent 60%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900));
}

.breadcrumbs {
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.content-block {
  max-width: 68ch;
}

.content-block h2,
.content-block h3 {
  margin-top: var(--space-7);
}

.content-block p,
.content-block li {
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--lh-loose);
}

/* ─── Appointment form ─────────────────────────────────────── */
.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: var(--space-7);
  align-items: start;
}

.appointment-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-7);
}

.appointment-form .section-head {
  margin-bottom: var(--space-6);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  --field-accent: var(--line);
}

.form-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}

.form-field-full {
  margin-top: var(--space-4);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--field-accent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  text-transform: none;
  padding: var(--space-2) 0 var(--space-3);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(135deg, transparent 50%, var(--brand-gold-deep) 50%),
    linear-gradient(45deg, transparent 50%, var(--brand-gold-deep) 50%);
  background-position: calc(100% - 14px) center, calc(100% - 8px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 30px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-style: italic;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: var(--lh-normal);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-bottom-color: var(--brand-blue);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
}

.form-field:focus-within::after {
  transform: scaleX(1);
}

.form-field input:active,
.form-field select:active,
.form-field textarea:active {
  border-bottom-color: var(--brand-gold);
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
  cursor: not-allowed;
  border-bottom-color: var(--line);
  color: var(--muted);
  opacity: 0.62;
}

.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
  border-bottom-color: var(--danger);
  box-shadow: none;
}

.form-field.is-filled input,
.form-field.is-filled select,
.form-field.is-filled textarea {
  border-bottom-color: var(--brand-blue);
}

.form-field.is-error {
  color: var(--danger);
}

.form-field.is-error::after {
  background: var(--danger);
  transform: scaleX(1);
}

.form-field.is-error input,
.form-field.is-error select,
.form-field.is-error textarea {
  border-bottom-color: transparent;
}

.form-field.is-success {
  color: var(--success);
}

.form-field.is-success::after {
  background: var(--success);
  transform: scaleX(1);
}

.appointment-form.is-loading .form-field {
  cursor: progress;
}

.appointment-form.is-loading .form-field::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
  animation: field-loading 1.2s var(--ease-in-out) infinite;
}

.form-field__message {
  min-height: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.form-field__message--error { color: var(--danger); }
.form-field__message--success { color: var(--success); }

@keyframes field-loading {
  0% { background-position: -160px 0; }
  100% { background-position: 160px 0; }
}

.form-choice-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  border: 0;
}

.form-choice-group legend {
  grid-column: 1 / -1;
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.form-choice {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: var(--space-3);
  align-items: start;
  min-height: 72px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.form-choice:hover,
.form-choice:focus-within {
  border-color: var(--brand-gold);
  box-shadow: inset 0 -1px 0 var(--brand-gold);
}

.form-choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-blue);
}

.form-choice span {
  display: grid;
  gap: var(--space-1);
}

.form-choice strong {
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.form-choice small {
  color: var(--ink-soft);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.form-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-5);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--line);
}

.form-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand-blue);
  flex: 0 0 auto;
}

.form-check strong {
  display: block;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.form-calendar-link.is-disabled {
  opacity: 0.56;
  pointer-events: none;
}

.form-calendar-link.is-disabled:focus-visible {
  outline-color: var(--brand-blue);
}

.form-response {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid rgba(201, 160, 74, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(201, 160, 74, 0.08);
}

.form-response h3 {
  color: var(--brand-blue);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.appointment-aside {
  position: sticky;
  top: 112px;
}

.appointment-aside h2 {
  color: var(--brand-blue);
  font-size: var(--text-2xl);
  max-width: 12ch;
}

.appointment-steps {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-5) 0 var(--space-6);
  list-style: none;
}

.appointment-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

.appointment-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--gold-metal-soft);
  color: var(--brand-blue-deep);
  font-family: var(--font-display);
  font-weight: 400;
}

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) 0;
}

.faq summary {
  cursor: pointer;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  color: var(--brand-gold);
  transition: transform var(--duration-base) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > *:not(summary) {
  margin-top: var(--space-4);
  color: var(--ink-soft);
}

/* ─── Depoimentos ───────────────────────────────────────────── */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-card .testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--lh-normal);
  color: var(--brand-blue);
}

.testimonial-card strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-md);
}

.testimonial-card small {
  color: var(--brand-gold-deep);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

/* ─── CTA & contact ─────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(240, 212, 128, 0.08), transparent 60%),
    linear-gradient(160deg, var(--blue-700), var(--blue-900));
  color: var(--on-dark-soft);
  padding: var(--space-9) 0;
}

.cta h2 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.cta p {
  font-size: var(--text-lg);
  line-height: var(--lh-normal);
  max-width: 48ch;
}

.contact-box {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-lg);
}

.contact-box p {
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
}

.contact-box strong {
  display: block;
  color: var(--brand-gold-deep);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

/* :not(.button) — same trap as the nav: .contact-box a (0,1,1) would
   otherwise outrank .button (0,1,0) and paint the CTA blue-on-blue */
.contact-box a:not(.button):not(.cta-apelo):not(.cta-filete) {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
  text-underline-offset: 4px;
}

.contact-box .button {
  margin-top: var(--space-3);
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.contact-box .contact-actions .button {
  margin-top: 0;
  flex: 1 1 auto;
  justify-content: center;
}

/* ─── Floating WhatsApp ─────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 62px;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--brand-blue-night);
  color: var(--brand-gold-light);
  text-decoration: none;
  border: 1px solid rgba(240, 212, 128, 0.42);
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(201, 160, 74, 0.22), var(--shadow-lg);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    padding var(--duration-base) var(--ease-out);
}

.floating-whatsapp__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius-pill);
  background: var(--gold-metal);
  color: var(--brand-blue-night);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.floating-whatsapp__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.floating-whatsapp__label {
  color: var(--brand-gold-light);
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: var(--lh-snug);
  white-space: nowrap;
}

.floating-whatsapp__sub {
  color: var(--on-dark-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-widest);
  line-height: 1.2;
  text-transform: uppercase;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--gold-aura);
}

.floating-whatsapp:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.floating-whatsapp.compact {
  min-height: 50px;
  padding: var(--space-2);
}

.floating-whatsapp.compact .floating-whatsapp__seal {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: var(--text-md);
}

.floating-whatsapp.compact .floating-whatsapp__sub {
  display: none;
}

body.cookie-consent-visible .floating-whatsapp {
  bottom: var(--cookie-consent-offset, calc(var(--space-5) + 156px));
  z-index: 61;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--brand-blue-night);
  color: var(--on-dark-soft);
  padding: var(--space-9) 0 var(--space-5);
}

/* wall stipple — variante sussurro (§6) */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

.site-footer .container { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

.site-footer h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.footer-accordion summary {
  cursor: default;
  list-style: none;
}

.footer-accordion summary::-webkit-details-marker {
  display: none;
}

.footer-accordion summary h3 {
  margin: 0 0 var(--space-3);
}

.footer-accordion__panel {
  display: block;
}

.site-footer p {
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-2);
}

.site-footer strong {
  display: block;
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--on-dark);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-gold-light);
}

.site-footer a:active {
  color: var(--white);
}

.footer-region-group {
  margin-top: var(--space-4);
}

.footer-region-group span {
  display: block;
  color: var(--on-dark-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
}

.footer-region-group p {
  margin-bottom: 0;
}

.footer-local {
  border-top: 1px solid var(--on-dark-line);
  padding: var(--space-6) 0;
}

.footer-local strong {
  display: block;
  margin-bottom: var(--space-2);
}

.footer-local p {
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid var(--on-dark-line);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--on-dark-muted);
}

.footer-cookie-edit {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-cookie-edit:hover,
.footer-cookie-edit:focus-visible {
  color: var(--brand-gold-light);
}

.footer-cookie-edit:active {
  color: var(--white);
}

/* ─── Cookie consent ────────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-5);
  width: min(960px, calc(100% - var(--space-5) * 2));
  margin: 0 auto;
  padding: var(--space-5);
  background:
    linear-gradient(90deg, rgba(201, 160, 74, 0.9), rgba(201, 160, 74, 0.08) 42%, transparent 72%) top left / 100% 1px no-repeat,
    var(--brand-blue-night);
  border: 1px solid rgba(240, 212, 128, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  color: var(--on-dark);
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: var(--tracking-normal);
  line-height: var(--lh-snug);
  text-transform: none;
}

.cookie-consent__eyebrow {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--brand-gold-light);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.cookie-consent__copy p {
  margin-bottom: var(--space-1);
  color: var(--on-dark-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

.cookie-consent__copy a {
  color: var(--brand-gold-light);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(240, 212, 128, 0.5);
  text-underline-offset: 4px;
}

.cookie-consent__copy a:hover {
  color: var(--white);
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--brand-gold-light);
  border-radius: var(--radius-sm);
  background: var(--gold-metal);
  color: var(--brand-blue-night);
  cursor: pointer;
  font: 700 var(--text-sm) / 1 var(--font-sans);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.cookie-consent__button:hover {
  border-color: var(--white);
  box-shadow: var(--gold-aura);
}

.cookie-consent__button:active {
  background: var(--brand-gold-light);
  border-color: var(--brand-gold-light);
  box-shadow: none;
}

.cookie-consent__button--ghost {
  background: transparent;
  color: var(--brand-gold-light);
}

.cookie-consent__button--ghost:hover {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.cookie-consent__button--ghost:active {
  color: var(--brand-blue-night);
  background: var(--brand-gold-light);
}

body.error-page .cookie-consent {
  right: auto;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--space-3);
  width: min(420px, calc(100% - var(--space-5) * 2));
}

body.error-page .cookie-consent__actions {
  justify-content: flex-end;
}

/* ─── Article cards (interior) ──────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card { grid-template-columns: minmax(0, 1fr); padding: var(--space-7); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-7); padding: var(--space-9) 0 var(--space-10); }
  .hero--home-office .hero-inner { grid-template-columns: 1fr; }
  .penal-urgency-band__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .penal-urgency-band__actions {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --container-gutter: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 88px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
  }

  .nav-menu.is-open {
    display: flex;
  }

  /* Backdrop behind the dropdown menu (header is z-index 20, so 19 dims
     everything except the header + open menu). */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(11, 26, 53, 0.45);
  }

  body.nav-open .floating-whatsapp {
    z-index: 30;
  }

  .nav-menu a {
    padding: var(--space-3);
    min-height: 48px;
  }

  /* mega-menu vira sub-drawer drill-down no mobile (interatividade §05) */
  .has-megamenu { position: static; }
  .megamenu {
    position: static;
    transform: none;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 var(--space-2);
    padding: 0 0 0 var(--space-4);
    border: 0;
    border-left: 2px solid var(--brand-gold);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .has-megamenu.is-open .megamenu { display: grid; }
  .megamenu a { padding: var(--space-2) var(--space-3); min-height: 44px; }
  /* o header transparente não se aplica ao menu aberto (fundo branco) */
  .site-header.is-transparent .nav-menu.is-open a:not(.button) { color: var(--brand-blue); }

  .grid-3,
  .grid-2,
  .grid-auto,
  .service-grid,
  .intent-grid,
  .search-grid,
  .work-grid,
  .appointment-layout,
  .founders-grid,
  .step-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 0;
    margin-bottom: var(--space-5);
  }

  .home-router__company {
    grid-template-columns: 1fr;
  }

  .home-router__company {
    align-items: start;
  }

  .footer-block {
    border-top: 1px solid var(--on-dark-line);
  }

  .footer-block:first-child {
    border-top: 0;
  }

  .footer-accordion summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: var(--space-3) var(--space-6) var(--space-3) 0;
    cursor: pointer;
  }

  .footer-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    color: var(--brand-gold-light);
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    line-height: 1;
    transform: translateY(-50%);
  }

  .footer-accordion[open] summary::after {
    content: "-";
  }

  .footer-accordion summary h3 {
    margin: 0;
    font-size: var(--text-lg);
  }

  .footer-accordion__panel {
    padding: 0 0 var(--space-5);
  }

  .service-card,
  .search-card,
  .intent-card {
    min-height: auto;
  }

  .featured-card,
  .signature-panel {
    padding: var(--space-6);
  }

  .local-card {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: var(--space-4);
  }

  .local-card::after {
    left: var(--space-5);
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-strip .container {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .strip-item:first-child {
    border-top: 0;
  }

  .hero-strip {
    margin-top: 0;
  }

  .penal-urgency-band__inner {
    padding: var(--space-5) 0;
  }

  .penal-urgency-band__links {
    grid-template-columns: 1fr;
  }

  .rating-card,
  .google-map-card {
    width: 100%;
    justify-self: stretch;
  }

  .google-proof {
    justify-items: stretch;
  }

  .floating-whatsapp {
    right: var(--space-3);
    bottom: var(--space-3);
    max-width: calc(100vw - var(--space-3) * 2);
  }

  .topbar-inner {
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
  }

  .section,
  .section.compact {
    padding: var(--space-8) 0;
  }

  .page-hero {
    padding: var(--space-8) 0;
  }

  .hero-actions,
  .page-hero .hero-actions {
    gap: var(--space-4);
  }

  .hero-photo {
    height: 200px;
  }

  .hero--home-office .hero-strip {
    display: none;
  }

  .hero--home-office .hero-visual {
    margin-top: 0;
  }

  .hero--home-office .hero-panel {
    display: none;
  }

  .hero-commitment-panel {
    min-height: auto;
    padding: var(--space-6);
  }

  .signature-panel,
  .founder-card,
  .contact-box {
    padding: var(--space-5);
  }

  .appointment-form {
    padding: var(--space-5);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-choice-group {
    grid-template-columns: 1fr;
  }

  .appointment-aside {
    position: static;
  }

  .cookie-consent {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    grid-template-columns: 1fr;
    width: auto;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cookie-consent__button {
    width: 100%;
    padding: 0 var(--space-3);
  }

  body.nav-open.cookie-consent-visible .cookie-consent {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
  }

  body.nav-open.cookie-consent-visible .cookie-consent__eyebrow {
    display: none;
  }

  body.nav-open.cookie-consent-visible .cookie-consent__copy strong {
    margin-bottom: 2px;
    font-size: var(--text-md);
  }

  body.nav-open.cookie-consent-visible .cookie-consent__copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 2px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
  }

  body.nav-open.cookie-consent-visible .cookie-consent__copy a {
    font-size: var(--text-xs);
  }

  body.nav-open.cookie-consent-visible .cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(68px, 1fr));
    width: auto;
    gap: var(--space-1);
  }

  body.nav-open.cookie-consent-visible .cookie-consent__button {
    min-height: 48px;
    width: auto;
    padding: 0 var(--space-2);
  }

  body.error-page .cookie-consent {
    position: static;
    width: auto;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }
}

/* ════════════════════════════════════════════════════════════════
   SISTEMA EDITORIAL — artigos & colunas (DESIGN_SYSTEM §16)
   Portado de "Nobre Machado ID Visual/assets/editorial.css" mantendo
   os nomes do §16. Reusa todos os tokens das §3–§11. Apenas as classes
   de conteúdo de artigo — o scaffolding de documentação do manual
   (anatomy, ed-scale, ed-gallery, mock-shells) fica no manual.
   ════════════════════════════════════════════════════════════════ */

/* ── Coluna de leitura ── */
.ed-col        { max-width: 64ch; }
.ed-col--wide  { max-width: 76ch; }
.ed-col--narrow { max-width: 52ch; }

/* ── Anatomia do artigo ── */
.a-kicker {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.a-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.a-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.1;
  color: var(--brand-blue);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.a-dek {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 56ch;
}
.a-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.a-byline strong { color: var(--brand-blue); font-weight: 500; }
.a-byline .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-gold);
}
.a-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: var(--lh-loose);
  color: var(--ink);
  text-wrap: pretty;
}
.a-body > p { margin: 0 0 var(--space-4); max-width: 64ch; }

/* ── Faixa de metadados ── */
.meta-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--space-5) 0;
}
.meta-line .cell {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}
.meta-line .cell:last-child { border-right: 0; }
.meta-line .k {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-line .v {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brand-blue);
  letter-spacing: -0.005em;
}

/* ── Capitular (drop cap) ── */
.dc::first-letter {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 0.82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--brand-blue);
}
.dc--gold::first-letter { color: var(--brand-gold-deep); }
.dc__letter {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 0.82;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--brand-gold-deep);
}
.dc--gold .dc__letter {
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.dc:has(.dc__letter)::first-letter { all: unset; }
.dc--box::first-letter {
  background: var(--brand-blue);
  color: var(--brand-gold-light);
  -webkit-text-fill-color: var(--brand-gold-light);
  font-family: var(--font-display);
  padding: 10px 14px 6px;
  margin: 4px 14px 0 0;
  font-size: 48px;
  line-height: 1;
}

/* ── Pull quote ── */
.pq {
  border-left: 2px solid var(--brand-gold);
  padding: 8px 0 8px 24px;
  margin: var(--space-5) 0;
}
.pq__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.3;
  color: var(--brand-blue);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.pq__source {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}
.pq--inline {
  margin: 22px 0;
  padding-left: 18px;
  border-left: 2px solid var(--brand-gold);
}
.pq--inline .pq__text { font-style: italic; }
.pq--center {
  border: 0;
  padding: var(--space-7) 0;
  text-align: center;
  position: relative;
}
.pq--center::before,
.pq--center::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-metal);
  margin: 0 auto;
}
.pq--center::before { margin-bottom: var(--space-5); }
.pq--center::after  { margin-top: var(--space-5); }
.pq--center .pq__text {
  font-size: var(--text-3xl);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}
.pq--block {
  background: var(--brand-blue);
  color: var(--white);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 0;
  position: relative;
  overflow: hidden;
}
.pq--block::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
}
.pq--block .pq__text {
  color: var(--white);
  position: relative;
  font-size: var(--text-xl);
  margin: 24px 0 14px;
}
.pq--block .pq__source { color: var(--brand-gold-light); }

/* ── Dinkus / quebra de cena ── */
.dinkus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 0;
}
.dinkus span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-gold-deep);
}
.dinkus--rule::before,
.dinkus--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  max-width: 120px;
}
.dinkus--metal::before,
.dinkus--metal::after {
  background: var(--gold-metal);
  opacity: 0.6;
}

/* ── Marginalia ── */
.marginalia {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 1px solid var(--brand-gold);
  padding-left: 14px;
  font-style: italic;
}
.marginalia .ref {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--brand-gold-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  margin-bottom: 6px;
}

/* ── Subhead numerada ── */
.h-num {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  margin: var(--space-6) 0 var(--space-3);
}
.h-num__n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-gold-deep);
  letter-spacing: 0.08em;
  border-top: 2px solid var(--brand-gold);
  padding-top: 8px;
  min-width: 36px;
}
.h-num__t {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--brand-blue);
  font-weight: 400;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* ── Callout ── */
.callout {
  background: rgba(31, 66, 116, 0.04);
  border: 1px solid rgba(31, 66, 116, 0.12);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: var(--space-5) 0;
}
.callout__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 8px;
}
.callout__t {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--brand-blue);
  line-height: 1.25;
  margin: 0 0 6px;
}
.callout__b {
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.6;
}
.callout--gold {
  background: rgba(201, 160, 74, 0.06);
  border-color: rgba(201, 160, 74, 0.2);
  border-left-color: var(--brand-gold);
}
.callout--gold .callout__k,
.callout--gold .callout__t { color: var(--brand-gold-deep); }

/* ── Fact box ── */
.factbox {
  background: var(--brand-blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
  margin: var(--space-5) 0;
}
.factbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}
.factbox__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold-light);
  margin-bottom: 12px;
  position: relative;
}
.factbox__k::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold-metal);
  vertical-align: middle;
  margin-right: 10px;
}
.factbox__t {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--white);
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  position: relative;
}
.factbox ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: fb;
  position: relative;
}
.factbox ul li {
  counter-increment: fb;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}
.factbox ul li:last-child { border-bottom: 0; }
.factbox ul li::before {
  content: counter(fb, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-gold-light);
  letter-spacing: 0.04em;
}

/* ── Sidebar / relacionados ── */
.sidebar-box {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border-top: 3px solid var(--brand-gold);
}
.sidebar-box__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: 10px;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sidebar-box ul li {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.3;
  color: var(--brand-blue);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.sidebar-box ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-box ul li small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

/* ── Footnotes ── */
.footnotes {
  border-top: 1px solid var(--line);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.footnotes .fn {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.footnotes .fn .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-gold-deep);
  font-weight: 600;
  padding-top: 2px;
}
.ref {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}

/* ── Figura com legenda ── */
.figure { margin: var(--space-6) 0; }
.figure__img {
  background:
    repeating-linear-gradient(135deg,
      rgba(31, 66, 116, 0.05) 0 12px,
      rgba(31, 66, 116, 0.08) 12px 24px);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  overflow: hidden;
  position: relative;
}
.figure__img img { width: 100%; height: 100%; object-fit: cover; }
.figure__cap {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.figure__cap::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--brand-gold);
  margin-top: 9px;
}
.figure__cap em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-left: 6px;
}

/* ── Cartão de autor ── */
.author-card {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--brand-gold);
  margin-top: var(--space-6);
}
.author-card .name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--brand-blue);
  margin: 0 0 4px;
}
.author-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}

/* ── Campo de formulário "linhas, não caixas" (manual interatividade §07) ──
   Sistema alternativo, com 6 estados. Markup: .field > .field__label +
   .field__input/.field__textarea/.field__select. Para adoção pelas páginas
   de conteúdo (#58–#62) sem alterar o .form-field atual. */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-bottom: 4px;
  --field-state-color: var(--line);
}
.field__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}
.field__label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold-metal);
  flex: none;
  transition: width var(--duration-base) var(--ease-out);
}
.field__label .req { color: var(--brand-gold); }
.field__hint {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-left: 28px;
  margin-top: -4px;
}
.field__input,
.field__textarea,
.field__select {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--field-state-color);
  padding: 8px 0 10px;
  outline: none;
  transition: border-color var(--duration-base) var(--ease-out);
}
.field__input::placeholder,
.field__textarea::placeholder {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}
.field__textarea { resize: vertical; min-height: 96px; padding-bottom: 14px; }
.field__select {
  appearance: none;
  background-image:
    linear-gradient(135deg, transparent 50%, var(--brand-gold-deep) 50%),
    linear-gradient(45deg, transparent 50%, var(--brand-gold-deep) 50%);
  background-position: calc(100% - 14px) center, calc(100% - 8px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 28px;
}
/* filete dourado que nasce no foco */
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}
/* hover */
.field__input:hover,
.field__textarea:hover,
.field__select:hover { border-bottom-color: var(--brand-blue); }
/* focus-visible */
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within .field__label::before { width: 28px; }
.field:focus-within .field__input,
.field:focus-within .field__textarea,
.field:focus-within .field__select { border-bottom-color: transparent; }
/* filled */
.field--filled .field__input,
.field--filled .field__textarea,
.field--filled .field__select { border-bottom-color: var(--brand-blue); }
/* error */
.field--error::after { background: var(--danger); transform: scaleX(1); }
.field--error .field__label,
.field--error .field__label::before { color: var(--danger); background: var(--danger); }
.field--error .field__input,
.field--error .field__textarea,
.field--error .field__select { border-bottom-color: transparent; }
/* success */
.field--success::after { background: var(--success); transform: scaleX(1); }
.field--success .field__label { color: var(--success); }
.field--success .field__label::before { background: var(--success); }
.field__msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.field__msg--error { color: var(--danger); }
.field__msg--success { color: var(--success); }
.field__msg::before {
  content: "";
  width: 12px;
  height: 1px;
  background: currentColor;
  flex: none;
}
/* disabled */
.field--disabled { opacity: 0.5; pointer-events: none; }

/* ── Guarda responsiva do sistema editorial ── */
@media (max-width: 980px) {
  .meta-line { grid-template-columns: 1fr 1fr; }
  .pq--block .pq__text { font-size: var(--text-lg); }
}

/* ─── Modal de confirmação de agendamento (interatividade §10) ───── */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(11, 26, 53, 0.72);
  background-size: 4px 4px, auto;
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-base) var(--ease-out),
    visibility var(--duration-base) var(--ease-out);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7);
  transform: translateY(8px);
  transition: transform var(--duration-slow) var(--ease-out);
}

.modal__dialog::before {
  content: "";
  position: absolute;
  top: var(--space-5);
  left: var(--space-7);
  width: 56px;
  height: 1px;
  background: var(--gold-metal);
}

.modal.is-open .modal__dialog { transform: translateY(0); }
.modal__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin: var(--space-5) 0 var(--space-3);
}
.modal__dialog h3 {
  color: var(--brand-blue);
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-bottom: var(--space-3);
}
.modal__dialog p {
  color: var(--ink-soft);
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.65;
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  min-width: 0;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
}

.modal__close::before {
  content: "×";
  color: var(--brand-gold-deep);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  letter-spacing: 0;
  line-height: 1;
}

/* ─── Header: estado scrolled + variante transparente sobre hero ── */
/* Aplicados por main.js. Sem JS, o header mantém o estado sólido padrão. */
.site-header.is-scrolled {
  background: rgba(251, 247, 239, 0.94);
  box-shadow: var(--shadow-sm);
}
/* O header permanece legível no fluxo normal; páginas futuras que tiverem
   hero full-bleed sob header podem criar uma variante própria. */
.site-header.is-transparent {
  background: rgba(251, 247, 239, 0.86);
  border-bottom-color: rgba(20, 23, 30, 0.06);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}
.site-header.is-transparent .brand strong { color: var(--brand-blue); }
.site-header.is-transparent .brand span { color: var(--brand-gold-deep); }
.site-header.is-transparent .nav-menu a:not(.button) { color: var(--brand-blue); }
.site-header.is-transparent .nav-menu a:not(.button):hover { color: var(--brand-gold-deep); }
.site-header.is-transparent .nav-toggle {
  background: var(--white);
  border-color: var(--line);
  color: var(--brand-blue);
}

/* ─── Mega-menu de Áreas (desktop) — construído por main.js ──────── */
.has-megamenu { position: relative; }
.megamenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  z-index: 40;
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    visibility var(--duration-fast) var(--ease-out);
}
.has-megamenu.is-open .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.megamenu a {
  display: block;
  min-height: auto;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--brand-blue);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.megamenu a:hover,
.megamenu a:focus-visible { background: var(--surface-soft); }

.megamenu a:active { background: var(--surface-inset); }
.megamenu a strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-md);
  color: var(--brand-blue);
  letter-spacing: var(--tracking-tight);
}
.megamenu a small {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: var(--lh-normal);
}

/* ─── Brand v1 global chrome + canonical CTAs ───────────────────── */
.site-header {
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid rgba(221, 213, 196, 0.82);
  transition:
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(251, 247, 239, 0.96);
  border-bottom-color: rgba(31, 66, 116, 0.14);
  box-shadow: 0 10px 30px rgba(18, 42, 77, 0.11);
}

.site-header.is-transparent {
  background: rgba(251, 247, 239, 0.78);
  border-bottom-color: rgba(240, 212, 128, 0.24);
  box-shadow: none;
}

.site-header.is-transparent:not(.is-scrolled) .brand strong,
.site-header.is-transparent:not(.is-scrolled) .site-header__nav-label {
  color: var(--brand-blue);
}

.site-header.is-transparent:not(.is-scrolled) .brand span,
.site-header.is-transparent:not(.is-scrolled) .site-header__nav-num {
  color: var(--brand-gold-deep);
}

.nav-inner {
  min-height: 92px;
}

.brand {
  position: relative;
  gap: var(--space-4);
  padding-right: var(--space-4);
}

.brand::after {
  content: "";
  width: 1px;
  height: 38px;
  background: var(--gold-metal);
  opacity: 0.78;
  order: 1;
}

.brand img {
  width: 40px;
  height: 47px;
}

.brand strong,
.brand span {
  position: relative;
  z-index: 1;
}

.brand strong {
  font-size: 1.375rem;
  letter-spacing: 0;
}

.brand span {
  font-size: 0.5625rem;
}

.nav-menu {
  gap: clamp(var(--space-4), 2.4vw, var(--space-6));
  align-items: center;
}

.nav-menu a.site-header__nav-link:not(.button),
.site-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.site-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.site-header__nav-num {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--brand-gold-deep);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-header__nav-label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1;
  letter-spacing: 0;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-menu a.site-header__nav-link:not(.button):hover,
.nav-menu a.site-header__nav-link:not(.button):focus-visible,
.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link.is-active {
  color: var(--brand-blue);
}

.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after,
.site-header__nav-link.is-active::after {
  transform: scaleX(0.72);
}

.site-header__nav-link:hover .site-header__nav-num,
.site-header__nav-link:focus-visible .site-header__nav-num,
.site-header__nav-link.is-active .site-header__nav-num {
  color: var(--brand-gold);
}

.cta-filete,
.button-outline.cta-filete {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-blue);
  box-shadow: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.nav-menu a.cta-filete:not(.button) {
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.cta-filete::after,
.button-outline.cta-filete::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.cta-filete:has(.cta-filete__rule)::after {
  content: none;
}

.cta-filete__label {
  color: inherit;
  transition: transform var(--duration-base) var(--ease-out);
}

.cta-filete__rule {
  width: 40px;
  height: 1px;
  background: var(--gold-metal);
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-out);
}

.cta-filete:hover,
.button-outline.cta-filete:hover {
  background: transparent;
  border-color: transparent;
  color: var(--brand-blue-deep);
  box-shadow: none;
  transform: translateY(-1px);
}

.cta-filete:hover::after,
.button-outline.cta-filete:hover::after,
.cta-filete:hover .cta-filete__rule,
.cta-filete:focus-visible .cta-filete__rule {
  transform: scaleX(1.7);
}

.cta-filete:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 5px;
  border-radius: 2px;
}

.cta-filete.dark:focus-visible,
.hero .cta-filete:focus-visible,
.page-hero .cta-filete:focus-visible,
.cta .cta-filete:focus-visible,
.section.dark .cta-filete:focus-visible,
.surface-dark .cta-filete:focus-visible,
.surface-band--dark .cta-filete:focus-visible {
  outline-color: var(--brand-gold-light);
}

.cta-filete:active,
.button-outline.cta-filete:active {
  color: var(--brand-blue-deep);
  transform: translateY(0);
}

.cta-filete.sm,
.button-outline.cta-filete.sm {
  font-size: 1rem;
}

.cta-filete.italic {
  font-style: italic;
}

.cta-filete.dark,
.hero .cta-filete,
.page-hero .cta-filete,
.cta .cta-filete,
.section.dark .cta-filete,
.surface-dark .cta-filete,
.surface-band--dark .cta-filete {
  color: var(--brand-gold-light);
}

.cta-filete[disabled],
.cta-filete[aria-disabled="true"],
.button-outline.cta-filete[aria-disabled="true"] {
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.cta-filete[disabled]::after,
.cta-filete[aria-disabled="true"]::after,
.cta-filete[disabled] .cta-filete__rule,
.cta-filete[aria-disabled="true"] .cta-filete__rule {
  transform: scaleX(0.45);
  filter: grayscale(1);
}

.cta-filete.is-loading::after,
.cta-filete.is-loading .cta-filete__rule {
  transform: scaleX(1);
  background:
    linear-gradient(90deg, transparent 0%, var(--brand-gold) 50%, transparent 100%) 0 0/50% 100% no-repeat,
    rgba(201, 160, 74, 0.22);
  animation: cta-filete-loading 1400ms linear infinite;
}

@keyframes cta-filete-loading {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

.cta-apelo,
.button.cta-apelo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 50px;
  max-width: 100%;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-blue);
  color: var(--brand-gold-light);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}

.cta-apelo::after,
.button.cta-apelo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(240, 212, 128, 0.46);
  border-radius: inherit;
  background: none;
  opacity: 1;
  pointer-events: none;
  -webkit-mask: none;
          mask: none;
}

.cta-apelo:hover,
.button.cta-apelo:hover {
  background: var(--brand-blue-deep);
  color: var(--brand-gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--gold-aura);
}

.cta-apelo.light,
.button.cta-apelo.light,
.hero .cta-apelo,
.page-hero .cta-apelo,
.cta .cta-apelo,
.section.dark .cta-apelo,
.surface-dark .cta-apelo,
.surface-band--dark .cta-apelo {
  background: var(--white);
  color: var(--brand-blue);
}

.cta-apelo.light::after,
.button.cta-apelo.light::after,
.hero .cta-apelo::after,
.page-hero .cta-apelo::after,
.cta .cta-apelo::after,
.section.dark .cta-apelo::after,
.surface-dark .cta-apelo::after,
.surface-band--dark .cta-apelo::after {
  border-color: rgba(31, 66, 116, 0.2);
}

.cta-apelo.light:hover,
.button.cta-apelo.light:hover,
.hero .cta-apelo:hover,
.page-hero .cta-apelo:hover,
.cta .cta-apelo:hover,
.section.dark .cta-apelo:hover,
.surface-dark .cta-apelo:hover,
.surface-band--dark .cta-apelo:hover {
  background: var(--paper-100);
  color: var(--brand-blue-deep);
}

.cta-apelo:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
}

.cta-apelo.light:focus-visible,
.button.cta-apelo.light:focus-visible,
.hero .cta-apelo:focus-visible,
.page-hero .cta-apelo:focus-visible,
.cta .cta-apelo:focus-visible,
.section.dark .cta-apelo:focus-visible,
.surface-dark .cta-apelo:focus-visible,
.surface-band--dark .cta-apelo:focus-visible {
  outline-color: var(--brand-gold-light);
}

.cta-apelo:active,
.button.cta-apelo:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.cta-apelo[disabled],
.cta-apelo[aria-disabled="true"],
.button.cta-apelo[disabled],
.button.cta-apelo[aria-disabled="true"] {
  background: var(--paper-300);
  color: var(--paper-700);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.cta-apelo[disabled]::after,
.cta-apelo[aria-disabled="true"]::after,
.button.cta-apelo[disabled]::after,
.button.cta-apelo[aria-disabled="true"]::after {
  border-color: rgba(74, 77, 85, 0.18);
}

.cta-apelo.is-loading,
.button.cta-apelo.is-loading {
  color: transparent;
  pointer-events: none;
}

.cta-apelo.is-loading::before,
.button.cta-apelo.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 1.5px solid var(--brand-gold-light);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cta-apelo-spin 800ms linear infinite;
}

@keyframes cta-apelo-spin { to { transform: rotate(360deg); } }

.cta-vinheta {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) 0;
  color: var(--brand-blue);
  text-align: left;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.nav-menu a.cta-vinheta:not(.button) {
  color: var(--brand-blue);
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}

.cta-vinheta__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--brand-gold-deep);
}

.cta-vinheta__filete {
  flex: none;
  width: 14px;
  height: 1px;
  align-self: center;
  background: var(--gold-metal);
  transition: width var(--duration-base) var(--ease-out);
}

.cta-vinheta__body {
  display: grid;
  gap: 4px;
}

.cta-vinheta small,
.cta-vinheta em {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-style: normal;
  line-height: var(--lh-normal);
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.cta-vinheta small {
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-vinheta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-blue);
}

.cta-vinheta:hover .cta-vinheta__filete,
.cta-vinheta:focus-visible .cta-vinheta__filete {
  width: 38px;
}

.cta-vinheta:hover .cta-vinheta__num,
.cta-vinheta:focus-visible .cta-vinheta__num {
  color: var(--brand-gold);
}

.cta-vinheta:active .cta-vinheta__filete {
  width: 24px;
}

.cta-vinheta:active .cta-vinheta__num {
  color: var(--brand-gold-deep);
}

.site-header__cta {
  align-items: flex-end;
  color: var(--brand-blue);
}

.site-header__cta .cta-filete__rule {
  transform-origin: right center;
}

.site-header.is-transparent:not(.is-scrolled) .site-header__cta {
  color: var(--brand-blue);
}

.has-megamenu {
  position: relative;
}

.megamenu {
  top: calc(100% + 12px);
  left: 50%;
  width: min(780px, calc(100vw - 48px));
  min-width: 0;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.4fr);
  gap: var(--space-6);
  padding: var(--space-6);
  border-top: 1px solid rgba(201, 160, 74, 0.48);
  border-radius: var(--radius-sm);
  transform: translateX(-50%) translateY(10px) rotateX(-2deg);
  transform-origin: top center;
}

.has-megamenu.is-open .megamenu {
  transform: translateX(-50%) translateY(0) rotateX(0);
  opacity: 1;
  visibility: visible;
}

.megamenu__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding-right: var(--space-2);
}

.megamenu__chapter {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}

.megamenu__head h2 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.75rem, 2.7vw, 2.25rem);
  letter-spacing: 0;
}

.megamenu__head p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.megamenu__back {
  display: none;
}

.megamenu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
}

.megamenu a.cta-vinheta {
  display: inline-flex;
  min-height: 70px;
  padding: var(--space-2) 0;
  border-radius: 0;
  background: transparent;
}

.megamenu a.cta-vinheta:hover {
  background: transparent;
}

@media (max-width: 768px) {
  .nav-inner {
    min-height: 82px;
  }

  .brand {
    gap: var(--space-3);
  }

  .brand::after {
    display: none;
  }

  .brand img {
    width: 36px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.125rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 41;
    border-radius: var(--radius-sm);
  }

  .nav-menu {
    top: 82px;
    max-height: calc(100vh - 104px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--space-4);
    border-radius: var(--radius-sm);
  }

  .nav-menu a.site-header__nav-link:not(.button),
  .site-header__nav-link {
    min-height: 54px;
    padding: var(--space-3) 0;
  }

  .site-header__nav-label {
    font-size: 1.25rem;
  }

  .site-header__cta {
    align-items: flex-start;
    margin-top: var(--space-2);
  }

  .has-megamenu {
    position: static;
  }

  .megamenu {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: var(--space-2) 0 var(--space-3);
    padding: var(--space-4);
    border: 1px solid rgba(201, 160, 74, 0.34);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-megamenu.is-open .megamenu {
    display: grid;
    transform: none;
  }

  .megamenu__back {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-blue);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .megamenu__back::before {
    content: "<";
    margin-right: var(--space-2);
    color: var(--brand-gold-deep);
  }

  .megamenu__head h2 {
    font-size: 1.5rem;
  }

  .megamenu__grid {
    grid-template-columns: 1fr;
  }

  .megamenu a.cta-vinheta {
    min-height: 64px;
  }

  .cta-apelo,
  .button.cta-apelo {
    white-space: normal;
  }
}

/* ─── Estados vazios, mensagens de sistema e páginas de status ─── */
.empty-state {
  position: relative;
  display: grid;
  gap: var(--space-4);
  max-width: 640px;
  padding: var(--space-7);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.empty-state__mark {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(201, 160, 74, 0.48);
  border-radius: 50%;
}

.empty-state__mark::before,
.empty-state__mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-top: 1px solid var(--brand-gold);
  border-bottom: 1px solid var(--brand-gold);
}

.empty-state__mark::after {
  transform: rotate(90deg);
}

.empty-state__num {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-gold-deep);
}

.empty-state__num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.empty-state__title {
  margin: 0;
  max-width: 18ch;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: 0;
}

.empty-state__body {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: var(--lh-loose);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.system-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.system-message__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.system-message__copy {
  flex: 1;
  min-width: 0;
}

.system-message__copy strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0;
}

.system-message__copy span,
.system-message__copy p {
  display: block;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: var(--lh-normal);
}

.system-message__time {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.system-message--success { border-left-color: var(--success); }
.system-message--success .system-message__icon { color: var(--success); }
.system-message--info { border-left-color: var(--brand-blue); }
.system-message--info .system-message__icon { color: var(--brand-blue); }
.system-message--error { border-left-color: var(--danger); }
.system-message--error .system-message__icon { color: var(--danger); }
.system-message--warning { border-left-color: var(--alert-500); }
.system-message--warning .system-message__icon { color: var(--alert-500); }
.system-message--gold { border-left-color: var(--brand-gold); }

.toast-stack {
  position: fixed;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  display: grid;
  gap: var(--space-3);
  width: min(420px, calc(100vw - 48px));
  pointer-events: none;
}

body.cookie-consent-visible .toast-stack {
  bottom: 188px;
}

.toast-stack .system-message {
  pointer-events: auto;
  animation: toast-in var(--duration-slow) var(--ease-out) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-page {
  background: var(--brand-blue-night);
}

.error-document {
  background: var(--brand-blue-night);
}

.error-page:focus {
  outline: none;
}

.error-page .site-header {
  background: rgba(251, 247, 239, 0.94);
}

.error-shell {
  background: var(--brand-blue-night);
}

.error-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: var(--space-9);
  min-height: min(760px, calc(100vh - 212px));
  padding-inline: max(var(--container-gutter), calc((100% - var(--container-max)) / 2));
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 36% 28% at 18% 26%, rgba(240, 212, 128, 0.16), transparent 64%),
    linear-gradient(150deg, var(--blue-700) 0%, var(--blue-900) 58%, var(--blue-950) 100%);
}

.error-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.75;
}

.error-stage__inner {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: var(--space-9);
  min-height: inherit;
  padding-block: var(--space-8);
}

.error-stage__code {
  width: min-content;
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
  font-size: 15rem;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 22px 80px rgba(0, 0, 0, 0.18);
}

.error-stage__copy {
  display: grid;
  gap: var(--space-4);
  max-width: 620px;
}

.error-stage__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.error-stage__eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.error-stage__title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: 0;
}

.error-stage__body {
  max-width: 56ch;
  margin: 0;
  color: var(--on-dark-soft);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: var(--lh-loose);
}

.error-stage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
}

.error-stage .button,
.error-stage .cta-apelo {
  border-color: transparent;
  background: var(--gold-metal);
  color: var(--brand-blue-night);
}

.error-stage .button-outline,
.error-stage .cta-filete {
  color: var(--white);
}

@media (max-width: 760px) {
  .empty-state {
    padding: var(--space-5);
  }

  .toast-stack {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    width: auto;
  }

  body.cookie-consent-visible .toast-stack {
    bottom: 224px;
  }

  .system-message {
    padding: var(--space-3);
  }

  .system-message__time {
    display: none;
  }

  .error-stage {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    min-height: auto;
    padding-inline: var(--container-gutter);
    padding-block: var(--space-6);
  }

  .error-stage__inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: var(--space-5);
    padding-block: var(--space-6);
  }

  .error-stage__code {
    font-size: 7.25rem;
  }

  .error-stage__title {
    font-size: 2.15rem;
  }
}

@media (max-width: 700px) {
  .home-router__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Respect users who prefer less motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* neutraliza micro-deslocamentos de hover/scroll */
  .button:hover,
  .button-outline:hover,
  .cta-filete:hover,
  .cta-apelo:hover,
  .card:hover,
  .service-card:hover,
  .article-card:hover,
  .intent-card:hover,
  .search-card:hover,
  .step-card:hover,
  .local-card:hover,
  .founder-card:hover,
  .home-router__company:hover,
  .hero-panel a:hover,
  .hero-panel a:focus-visible,
  .floating-whatsapp:hover,
  .rating-card:hover { transform: none; }

  .modal__dialog {
    transform: none !important;
  }

  .appointment-form.is-loading .form-field::after,
  .cta-filete.is-loading::after,
  .cta-filete.is-loading .cta-filete__rule,
  .cta-apelo.is-loading::before,
  .button.cta-apelo.is-loading::before {
    animation: none !important;
  }

  .appointment-form.is-loading .form-field::after {
    background: var(--brand-gold);
  }

  .cta-filete.is-loading::after,
  .cta-filete.is-loading .cta-filete__rule {
    background: var(--brand-gold);
  }

  .cta-apelo.is-loading::before,
  .button.cta-apelo.is-loading::before {
    border-top-color: var(--brand-gold-light);
  }

  .toast-stack .system-message {
    animation: none;
  }
}

/* ============================================================
   MENU — Proposta C "Bicamada compacta" (azul noite + Montserrat)
   Topbar + header contínuos em azul noite; rótulos em Montserrat
   com filete dourado; CTA pílula dourada sólida; compacta no scroll
   (a topbar não é sticky — rola para fora naturalmente).
   Bloco no fim do arquivo: vence por ordem de origem.
   ============================================================ */

/* ── Topbar: faixa mono com filete dourado de base ───────────── */
.topbar {
  background: var(--brand-blue-night);
  color: var(--on-dark-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar-inner { font-size: 10.5px; }
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 160, 74, 0.45), transparent);
}

/* ── Header: azul noite sólido, sticky, com stipple de parede ── */
.site-header,
.site-header.is-scrolled,
.site-header.is-transparent {
  background:
    radial-gradient(ellipse at 82% -25%, rgba(31, 66, 116, 0.55) 0%, transparent 55%),
    var(--brand-blue-night);
  border-bottom: 1px solid rgba(201, 160, 74, 0.22);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}
.nav-inner { position: relative; }

/* compacta ao rolar */
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(201, 160, 74, 0.3);
}
.site-header.is-scrolled .nav-inner { min-height: 64px; }
.site-header.is-scrolled .brand img { width: 32px; height: 38px; }
.site-header.is-scrolled .brand strong { font-size: 1.15rem; }

/* ── Marca em fundo escuro ───────────────────────────────────── */
.brand strong,
.site-header.is-transparent:not(.is-scrolled) .brand strong { color: #fff; }
.brand span,
.site-header.is-transparent:not(.is-scrolled) .brand span { color: var(--brand-gold-light); }

/* ── Nav: Montserrat, sem numeração, filete dourado ──────────── */
.site-header__nav-num { display: none; }

.site-header__nav-link,
.nav-menu a.site-header__nav-link:not(.button) {
  font-family: var(--font-sans);
  color: var(--on-dark-soft);
}
/* anula o estado "transparente claro" herdado (regras ~4179/4180) no tema escuro */
.site-header.is-transparent .nav-menu a:not(.button),
.site-header.is-transparent .nav-menu a:not(.button):hover { color: #fff; }
.site-header__nav-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-header__nav-link::after {
  height: 2px;
  bottom: 4px;
  background: var(--brand-gold);
  transform: scaleX(0);
}
.nav-menu a.site-header__nav-link:not(.button):hover,
.nav-menu a.site-header__nav-link:not(.button):focus-visible,
.site-header__nav-link:hover,
.site-header__nav-link:focus-visible,
.site-header__nav-link.is-active,
.site-header.is-transparent:not(.is-scrolled) .site-header__nav-label { color: #fff; }
.site-header__nav-link:hover::after,
.site-header__nav-link:focus-visible::after,
.site-header__nav-link.is-active::after { transform: scaleX(1); }

/* ── CTA: pílula dourada sólida ──────────────────────────────── */
.nav-menu .button {
  background: var(--gold-metal);
  color: var(--brand-blue-night);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.nav-menu .button:hover {
  background: var(--gold-metal);
  color: var(--brand-blue-night);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.nav-menu .button:hover::after { opacity: 0.9; }

/* ── Toggle mobile: contorno dourado sobre azul ──────────────── */
.nav-toggle {
  background: transparent;
  border-color: rgba(201, 160, 74, 0.5);
  color: var(--brand-gold-light);
}

/* ── Mobile: dropdown permanece claro; rótulos voltam ao azul ──
   Seletores com especificidade ≥ às regras de tema escuro acima
   (incl. .is-transparent na home, que senão pintaria branco-no-branco). */
@media (max-width: 768px) {
  .site-header .site-header__nav-link,
  .site-header .nav-menu a.site-header__nav-link:not(.button),
  .site-header.is-transparent .nav-menu a:not(.button),
  .site-header.is-transparent:not(.is-scrolled) .site-header__nav-label,
  .site-header .site-header__nav-label { color: var(--brand-blue); }
  .site-header .site-header__nav-link:hover .site-header__nav-label,
  .site-header .site-header__nav-link.is-active .site-header__nav-label { color: var(--brand-blue-deep); }
}

/* ── Issue 06: flyout de Áreas com 4 grupos flagship ─────────── */
.has-megamenu {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.megamenu__toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--brand-gold-light);
  cursor: pointer;
}

.megamenu__toggle:hover,
.megamenu__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.has-megamenu.is-open .megamenu__toggle span {
  transform: rotate(180deg);
}

.megamenu {
  width: min(1080px, calc(100vw - 48px));
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-5);
  transform: translateX(var(--megamenu-x, -50%)) translateY(10px) rotateX(-2deg);
}

.has-megamenu.is-open .megamenu {
  transform: translateX(var(--megamenu-x, -50%)) translateY(0) rotateX(0);
}

.megamenu__head {
  display: grid;
  gap: var(--space-2);
  max-width: 660px;
  padding-right: 0;
}

.megamenu__head h2 {
  font-size: var(--text-xl);
}

.megamenu__head p {
  max-width: 58ch;
  margin: 0;
}

.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.megamenu__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-4);
  border-left: 1px solid var(--line);
}

.megamenu__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--brand-gold-deep);
}

.megamenu__group h3 {
  min-height: 48px;
  margin: 0;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0;
  line-height: var(--lh-snug);
}

.megamenu__services {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.megamenu .megamenu__services a,
.megamenu a.megamenu__hub {
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-snug);
  letter-spacing: 0;
  text-transform: none;
}

.site-header.is-transparent .megamenu .megamenu__services a,
.site-header.is-transparent .megamenu a.megamenu__hub {
  color: var(--ink-soft);
}

.megamenu .megamenu__services a:hover,
.megamenu .megamenu__services a:focus-visible,
.megamenu a.megamenu__hub:hover,
.megamenu a.megamenu__hub:focus-visible {
  background: var(--surface-soft);
  color: var(--brand-blue);
}

.site-header.is-transparent .megamenu .megamenu__services a:hover,
.site-header.is-transparent .megamenu .megamenu__services a:focus-visible,
.site-header.is-transparent .megamenu a.megamenu__hub:hover,
.site-header.is-transparent .megamenu a.megamenu__hub:focus-visible {
  color: var(--brand-blue);
}

.megamenu a.megamenu__hub {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--brand-blue);
  font-weight: 700;
}

.site-header.is-transparent .megamenu a.megamenu__hub {
  color: var(--brand-blue);
}

.has-megamenu--company .megamenu {
  width: min(560px, calc(100vw - 48px));
}

.has-megamenu--articles .megamenu {
  width: min(980px, calc(100vw - 48px));
}

.has-megamenu--company .megamenu__grid {
  grid-template-columns: 1fr;
}

.has-megamenu--office .megamenu {
  width: min(640px, calc(100vw - 48px));
}

.has-megamenu--office .megamenu__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.has-megamenu--company .megamenu__group {
  padding-left: 0;
  border-left: 0;
}

.has-megamenu--office .megamenu__group:first-child {
  padding-left: 0;
  border-left: 0;
}

.has-megamenu--company .megamenu__group h3 {
  min-height: 0;
}

.has-megamenu--office .megamenu__group h3 {
  min-height: 0;
}

.megamenu a.megamenu__hub--primary {
  margin-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .megamenu {
    width: min(760px, calc(100vw - 40px));
  }

  .megamenu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .has-megamenu {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .has-megamenu > .site-header__nav-link {
    grid-column: 1;
    min-width: 0;
  }

  .megamenu__toggle {
    grid-column: 2;
    width: 44px;
    height: 44px;
    align-self: center;
    border: 1px solid var(--line);
    color: var(--brand-blue);
  }

  .megamenu__toggle:hover,
  .megamenu__toggle:focus-visible {
    background: var(--surface-soft);
    color: var(--brand-blue-deep);
  }

  .megamenu {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: var(--space-5);
    transform: none;
  }

  .has-megamenu.is-open .megamenu {
    transform: none;
  }

  .megamenu__head {
    max-width: none;
    min-width: 0;
  }

  .megamenu__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    min-width: 0;
  }

  .has-megamenu--office .megamenu__grid {
    grid-template-columns: 1fr;
  }

  .megamenu__group {
    min-width: 0;
    padding: var(--space-4) 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .megamenu__services,
  .megamenu .megamenu__services li,
  .megamenu .megamenu__services a,
  .megamenu a.megamenu__hub {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .has-megamenu--office .megamenu__group:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .megamenu__group h3 {
    min-height: 0;
  }
}

/* ── Issue 09: mobile off-canvas navigation ─────────────────── */
@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .site-header .nav-inner,
  .site-header.is-scrolled .nav-inner {
    min-height: 64px;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .brand img,
  .site-header.is-scrolled .brand img {
    width: 32px;
    height: 38px;
  }

  .brand strong,
  .site-header.is-scrolled .brand strong {
    font-size: 1.05rem;
  }

  .brand span {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }

  .nav-toggle {
    position: relative;
    z-index: 102;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    display: none;
    z-index: 90;
    background: rgba(11, 26, 53, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.nav-open .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(11, 26, 53, 0.62);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .nav-menu,
  .nav-menu.is-open {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 101;
    display: flex;
    width: min(88vw, 380px);
    max-width: calc(100vw - 32px);
    height: 100vh;
    height: 100dvh;
    max-height: none !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: calc(var(--space-7) + env(safe-area-inset-top, 0px)) var(--space-4) calc(var(--space-7) + env(safe-area-inset-bottom, 0px));
    background: var(--surface-card);
    border: 0;
    border-left: 1px solid rgba(201, 160, 74, 0.32);
    border-radius: 0;
    box-shadow: -28px 0 70px rgba(11, 26, 53, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition:
      transform var(--duration-base) var(--ease-out),
      opacity var(--duration-fast) var(--ease-out),
      visibility var(--duration-fast) var(--ease-out);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-menu > a,
  .nav-menu > .has-megamenu,
  .nav-menu .button {
    flex: 0 0 auto;
  }

  .site-header .nav-menu a.site-header__nav-link:not(.button),
  .site-header .site-header__nav-link {
    min-height: 48px;
    padding: var(--space-3);
    border-radius: var(--radius-sm);
  }

  .site-header .nav-menu a.site-header__nav-link:not(.button):hover,
  .site-header .nav-menu a.site-header__nav-link:not(.button):focus-visible,
  .site-header .site-header__nav-link.is-active {
    background: var(--surface-soft);
  }

  .site-header__nav-link::after {
    display: none;
  }

  .nav-menu .button,
  .nav-menu a.cta-apelo:not(.button),
  .nav-menu a.cta-filete:not(.button) {
    width: 100%;
    min-height: 52px;
    margin-top: var(--space-2);
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .has-megamenu {
    padding: 0;
    border-bottom: 1px solid rgba(20, 23, 30, 0.08);
  }

  .megamenu__toggle {
    margin-right: var(--space-1);
    background: var(--surface);
  }

  .megamenu {
    display: none;
    margin: 0 0 var(--space-4);
    padding: var(--space-2) 0 var(--space-2) var(--space-3);
    border: 0;
    border-left: 2px solid var(--brand-gold);
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .has-megamenu.is-open .megamenu {
    display: block;
  }

  .megamenu__head {
    display: none;
  }

  .megamenu__grid {
    display: grid;
    gap: var(--space-3);
  }

  .megamenu__group {
    gap: var(--space-2);
    padding: var(--space-3) 0 0;
  }

  .megamenu__num {
    display: none;
  }

  .megamenu__group h3 {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0;
  }

  .megamenu .megamenu__services a,
  .megamenu a.megamenu__hub {
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    overflow-wrap: anywhere;
  }

  body.nav-open .floating-whatsapp {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
  }
}

/* ============================================================
   Home Visual 2026-05-27: manual aplicado, sidebar e hierarquia calma
   ============================================================ */

:root {
  --site-sidebar-width: 240px;
}

@media (min-width: 981px) {
  body:has(.site-sidebar) {
    background: var(--surface);
  }

  body:has(.site-sidebar) .topbar {
    display: none;
  }

  body:has(.site-sidebar) .site-header,
  body:has(.site-sidebar) .site-header.is-scrolled,
  body:has(.site-sidebar) .site-header.is-transparent {
    position: static;
    z-index: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body:has(.site-sidebar) .site-header::before {
    display: none;
  }

  .nav-inner--mobile {
    display: none;
  }

  .site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    display: flex;
    width: var(--site-sidebar-width);
    flex-direction: column;
    padding: var(--space-7) var(--space-6);
    overflow-y: auto;
    background: var(--brand-blue-night);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--on-dark-soft);
  }

  .site-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 3px 3px;
  }

  .site-sidebar__brand,
  .site-sidebar__label,
  .site-sidebar__nav,
  .site-sidebar__meta {
    position: relative;
    z-index: 1;
  }

  .site-sidebar__brand {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
  }

  .site-sidebar__brand img {
    width: 28px;
    height: auto;
  }

  .site-sidebar__brand strong {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
  }

  .site-sidebar__brand small {
    display: block;
    margin-top: 4px;
    color: var(--brand-gold-light);
    font-family: var(--font-sans);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }

  .site-sidebar__label {
    margin-bottom: var(--space-3);
    color: var(--brand-gold-light);
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .site-sidebar .nav-menu {
    position: relative;
    display: grid;
    gap: var(--space-1);
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-sidebar .has-megamenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: var(--space-1);
  }

  .site-sidebar .site-header__nav-link,
  .site-sidebar .nav-menu a.site-header__nav-link:not(.button) {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: var(--space-2);
    align-items: baseline;
    min-height: 40px;
    padding: var(--space-2) var(--space-1);
    color: rgba(255, 255, 255, 0.76);
    font-family: var(--font-sans);
    text-decoration: none;
  }

  .site-sidebar .site-header__nav-link::after {
    display: none;
  }

  .site-sidebar .site-header__nav-num {
    display: inline;
    color: var(--brand-gold);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
  }

  .site-sidebar .site-header__nav-label {
    color: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: var(--lh-snug);
    text-transform: none;
  }

  .site-sidebar .site-header__nav-link:hover,
  .site-sidebar .site-header__nav-link:focus-visible,
  .site-sidebar .site-header__nav-link.is-active {
    color: var(--white);
  }

  .site-sidebar .megamenu__toggle {
    width: 32px;
    height: 32px;
    color: rgba(240, 212, 128, 0.72);
  }

  .site-sidebar .megamenu__toggle span {
    transform: rotate(-90deg);
  }

  .site-sidebar .has-megamenu.is-open .megamenu__toggle span {
    transform: rotate(-90deg) translateY(2px);
  }

  .site-sidebar .button,
  .site-sidebar a.site-sidebar__cta {
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-5);
    border: 1px solid rgba(201, 160, 74, 0.68);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--brand-gold-light);
    box-shadow: none;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: none;
  }

  .site-sidebar .button:hover,
  .site-sidebar a.site-sidebar__cta:hover,
  .site-sidebar .button:focus-visible,
  .site-sidebar a.site-sidebar__cta:focus-visible {
    background: rgba(201, 160, 74, 0.12);
    color: var(--white);
    transform: none;
  }

  .site-sidebar__meta {
    display: grid;
    gap: var(--space-2);
    padding-top: var(--space-5);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
    text-transform: uppercase;
  }

  .site-sidebar__meta a {
    color: rgba(255, 255, 255, 0.72);
  }

  .site-sidebar .megamenu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--site-sidebar-width);
    z-index: 115;
    display: none;
    width: min(720px, calc(100vw - var(--site-sidebar-width) - 32px));
    max-width: none;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-7);
    overflow-y: auto;
    background: rgba(251, 247, 239, 0.985);
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: 24px 0 48px rgba(11, 26, 53, 0.16);
    opacity: 1;
    visibility: visible;
    transform: none !important;
  }

  .site-sidebar .has-megamenu.is-open .megamenu {
    display: grid;
  }

  .site-sidebar .megamenu__head {
    display: grid;
    gap: var(--space-2);
    max-width: 620px;
  }

  .site-sidebar .megamenu__chapter {
    color: var(--brand-gold-deep);
    font-size: 0.6875rem;
  }

  .site-sidebar .megamenu__head h2 {
    color: var(--brand-blue-night);
    font-size: var(--text-xl);
  }

  .site-sidebar .megamenu__head p {
    color: var(--ink-soft);
    font-size: var(--text-sm);
  }

  .site-sidebar .megamenu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .site-sidebar .has-megamenu--company .megamenu,
  .site-sidebar .has-megamenu--office .megamenu {
    width: min(520px, calc(100vw - var(--site-sidebar-width) - 32px));
  }

  .site-sidebar .has-megamenu--company .megamenu__grid,
  .site-sidebar .has-megamenu--office .megamenu__grid {
    grid-template-columns: 1fr;
  }

  .site-sidebar .megamenu__group {
    min-width: 0;
    padding-left: var(--space-4);
    border-left: 1px solid var(--line);
  }

  .site-sidebar .megamenu__group h3 {
    min-height: 0;
    color: var(--brand-blue);
    font-size: var(--text-lg);
  }

  .site-sidebar .megamenu .megamenu__services a,
  .site-sidebar .megamenu a.megamenu__hub {
    min-height: 36px;
    padding: var(--space-2) 0;
    color: var(--ink-soft);
    font-size: var(--text-sm);
  }

  .site-nav-scrim {
    position: fixed;
    inset: 0 0 0 var(--site-sidebar-width);
    z-index: 110;
    display: none;
    background: rgba(11, 26, 53, 0.18);
  }

  body:has(.site-sidebar .has-megamenu.is-open) .site-nav-scrim {
    display: block;
  }

  body:has(.site-sidebar) main,
  body:has(.site-sidebar) .site-footer {
    margin-left: var(--site-sidebar-width);
  }
}

@media (max-width: 980px) {
  body:has(.site-sidebar) .topbar {
    display: none;
  }

  body:has(.site-sidebar) .site-header,
  body:has(.site-sidebar) .site-header.is-scrolled,
  body:has(.site-sidebar) .site-header.is-transparent {
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: 64px;
    background: var(--brand-blue-night);
    border-bottom: 1px solid rgba(201, 160, 74, 0.22);
  }

  .nav-inner--mobile,
  body:has(.site-sidebar) .site-header.is-scrolled .nav-inner--mobile {
    display: flex;
    min-height: 64px;
  }

  .site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 140;
    display: flex;
    width: min(86vw, 340px);
    flex-direction: column;
    padding: var(--space-7) var(--space-5);
    overflow-y: auto;
    background: var(--surface-card);
    border-right: 1px solid rgba(201, 160, 74, 0.28);
    box-shadow: 24px 0 56px rgba(11, 26, 53, 0.24);
    transform: translateX(-100%);
    transition: transform var(--duration-base) var(--ease-out);
  }

  body.nav-open .site-sidebar {
    transform: translateX(0);
  }

  .site-sidebar__brand {
    display: none;
  }

  .site-sidebar__label {
    margin-bottom: var(--space-4);
    color: var(--brand-gold-deep);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
  }

  .site-sidebar .nav-menu,
  .site-sidebar .nav-menu.is-open {
    position: static;
    display: grid;
    width: 100%;
    height: auto;
    max-width: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-sidebar .has-megamenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    border-bottom: 1px solid rgba(20, 23, 30, 0.08);
  }

  .site-sidebar .site-header__nav-link,
  .site-sidebar .nav-menu a.site-header__nav-link:not(.button) {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--brand-blue);
  }

  .site-sidebar .site-header__nav-num {
    display: inline;
    color: var(--brand-gold-deep);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
  }

  .site-sidebar .site-header__nav-label {
    font-size: var(--text-sm);
    letter-spacing: 0;
    text-transform: none;
  }

  .site-sidebar .megamenu {
    grid-column: 1 / -1;
  }

  .site-sidebar .button,
  .site-sidebar a.site-sidebar__cta {
    margin-top: var(--space-4);
    border: 1px solid var(--brand-gold);
    background: transparent;
    color: var(--brand-blue);
    box-shadow: none;
  }

  .site-sidebar__meta {
    display: grid;
    gap: var(--space-2);
    padding-top: var(--space-5);
    margin-top: var(--space-6);
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: var(--text-xs);
  }

  body.nav-open .site-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: block;
    background: rgba(11, 26, 53, 0.5);
  }
}

body:has(.site-sidebar) .hero--home-office {
  background:
    linear-gradient(90deg, rgba(238, 243, 250, 0.58), transparent 44%),
    var(--surface);
  color: var(--ink);
}

body:has(.site-sidebar) .hero--home-office::before,
body:has(.site-sidebar) .hero--home-office::after {
  display: none;
}

body:has(.site-sidebar) .hero--home-office .hero-inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  gap: var(--space-7);
  padding: var(--space-8) 0;
}

body:has(.site-sidebar) .hero h1 {
  max-width: 21ch;
  color: var(--brand-blue-night);
  font-size: clamp(2rem, 3vw, 2.875rem);
  line-height: var(--lh-snug);
  text-shadow: none;
}

body:has(.site-sidebar) .hero h1::after {
  width: 56px;
  height: 1px;
  margin-top: var(--space-5);
  box-shadow: none;
}

body:has(.site-sidebar) .hero p {
  color: var(--ink-soft);
  font-size: var(--text-md);
  text-shadow: none;
}

body:has(.site-sidebar) .hero .eyebrow {
  color: var(--brand-gold-deep);
}

body:has(.site-sidebar) .hero-visual {
  align-self: stretch;
}

body:has(.site-sidebar) .hero-commitment-panel {
  height: 100%;
  padding: var(--space-6);
  background: var(--brand-blue-night);
  border: 1px solid rgba(201, 160, 74, 0.24);
  border-radius: var(--radius-sm);
  color: var(--on-dark-soft);
  box-shadow: var(--shadow-sm);
}

body:has(.site-sidebar) .panel-label,
body:has(.site-sidebar) .hero-mark {
  color: var(--brand-gold-light);
}

body:has(.site-sidebar) .hero-commitment-list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

body:has(.site-sidebar) .hero-commitment-list li {
  color: var(--on-dark-soft);
  font-size: var(--text-sm);
}

body:has(.site-sidebar) .penal-urgency-band {
  background: var(--surface-card);
  border-block: 1px solid var(--line);
}

body:has(.site-sidebar) .penal-urgency-band__inner {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr) auto;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

body:has(.site-sidebar) .penal-urgency-band h2 {
  color: var(--brand-blue-night);
  font-size: var(--text-xl);
}

body:has(.site-sidebar) .penal-urgency-band p,
body:has(.site-sidebar) .penal-urgency-band__links span {
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

body:has(.site-sidebar) .section {
  padding-block: var(--space-8);
}

body:has(.site-sidebar) .section.compact {
  padding-block: var(--space-7);
}

body:has(.site-sidebar) .section-head {
  max-width: 600px;
  margin-bottom: var(--space-6);
}

body:has(.site-sidebar) .section-head h2,
body:has(.site-sidebar) .cta h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: var(--lh-snug);
}

body:has(.site-sidebar) .section-head p,
body:has(.site-sidebar) .cta p {
  font-size: var(--text-base);
}

body:has(.site-sidebar) .work-grid,
body:has(.site-sidebar) .grid-3,
body:has(.site-sidebar) .service-grid,
body:has(.site-sidebar) .founders-grid {
  gap: var(--space-4);
}

body:has(.site-sidebar) .work-card,
body:has(.site-sidebar) .card,
body:has(.site-sidebar) .service-card,
body:has(.site-sidebar) .article-card,
body:has(.site-sidebar) .intent-card,
body:has(.site-sidebar) .step-card,
body:has(.site-sidebar) .local-card,
body:has(.site-sidebar) .founder-card,
body:has(.site-sidebar) .contact-box,
body:has(.site-sidebar) .signature-panel {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

body:has(.site-sidebar) .work-card,
body:has(.site-sidebar) .intent-card {
  min-height: 0;
  padding: var(--space-5);
}

body:has(.site-sidebar) .service-card {
  min-height: 0;
}

body:has(.site-sidebar) .card h3,
body:has(.site-sidebar) .service-card h3,
body:has(.site-sidebar) .article-card h3,
body:has(.site-sidebar) .intent-card h3,
body:has(.site-sidebar) .search-card h3,
body:has(.site-sidebar) .step-card h3,
body:has(.site-sidebar) .local-card h3,
body:has(.site-sidebar) .work-card h3,
body:has(.site-sidebar) .founder-card h3 {
  font-size: var(--text-lg);
}

body:has(.site-sidebar) .card p,
body:has(.site-sidebar) .service-card p,
body:has(.site-sidebar) .article-card p,
body:has(.site-sidebar) .intent-card p,
body:has(.site-sidebar) .search-card p,
body:has(.site-sidebar) .step-card p,
body:has(.site-sidebar) .local-card p,
body:has(.site-sidebar) .work-card p,
body:has(.site-sidebar) .founder-card p {
  font-size: var(--text-sm);
}

body:has(.site-sidebar) .home-router__company {
  min-height: 112px;
  padding: var(--space-5);
  border-radius: var(--radius-sm);
}

body:has(.site-sidebar) .home-router__company-copy strong {
  font-size: var(--text-lg);
}

body:has(.site-sidebar) .intent-card.urgent {
  background: var(--brand-blue-night);
}

body:has(.site-sidebar) .signature-panel {
  background: var(--brand-blue-night);
}

body:has(.site-sidebar) .process-section {
  background: var(--surface-soft);
}

body:has(.site-sidebar) .cta {
  background: var(--brand-blue-night);
}

@media (max-width: 980px) {
  body:has(.site-sidebar) .hero--home-office .hero-inner,
  body:has(.site-sidebar) .penal-urgency-band__inner {
    grid-template-columns: 1fr;
  }

  body:has(.site-sidebar) .hero--home-office .hero-inner {
    padding: var(--space-7) 0;
  }

  body:has(.site-sidebar) .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.375rem);
  }

  body:has(.site-sidebar) .section {
    padding-block: var(--space-7);
  }
}

/* ============================================================
   HOME VISUAL HARMONY OVERRIDES
   Referencias: manual-completo, manual-editorial e prototipo v3.
   Escopo: home atual via .hero--home-office, sem exigir mudanca de HTML.
   ============================================================ */

body:has(.hero--home-office) {
  background: var(--brand-blue-night);
}

body:has(.hero--home-office) main {
  background: var(--surface);
}

body:has(.hero--home-office) .hero--home-office {
  background:
    radial-gradient(ellipse at 82% 10%, rgba(31, 66, 116, 0.28) 0%, transparent 62%),
    var(--brand-blue-night);
}

body:has(.hero--home-office) .hero--home-office::before,
body:has(.hero--home-office) .surface-dark::before,
body:has(.hero--home-office) .surface-band--dark::before,
body:has(.hero--home-office) .section.dark::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
}

body:has(.hero--home-office) .hero--home-office::after {
  background:
    linear-gradient(180deg, rgba(11, 26, 53, 0) 62%, rgba(6, 14, 29, 0.62) 100%),
    linear-gradient(90deg, rgba(201, 160, 74, 0.12), transparent 22%, transparent 78%, rgba(201, 160, 74, 0.08));
}

body:has(.hero--home-office) .hero--home-office .hero-inner {
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.52fr);
  gap: var(--space-7);
  padding: clamp(64px, 8vw, 88px) 0 clamp(56px, 7vw, 80px);
}

body:has(.hero--home-office) .hero-copy {
  max-width: 660px;
}

body:has(.hero--home-office) .hero--home-office h1 {
  max-width: 22ch;
  margin-bottom: var(--space-4);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: none;
}

body:has(.hero--home-office) .hero h1::after {
  width: 64px;
  margin-top: var(--space-5);
  opacity: 0.9;
}

body:has(.hero--home-office) .hero--home-office p {
  max-width: 54ch;
  font-size: 0.96875rem;
  color: #c2cdde;
}

body:has(.hero--home-office) .hero-actions {
  margin-top: var(--space-5);
}

body:has(.hero--home-office) .hero-commitment-panel {
  min-height: 328px;
  padding: var(--space-6);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.028);
}

body:has(.hero--home-office) .hero-commitment-panel::before {
  inset: var(--space-4);
  border-color: rgba(240, 212, 128, 0.14);
}

body:has(.hero--home-office) .hero-commitment-panel::after {
  right: var(--space-6);
  bottom: var(--space-6);
  width: 72px;
}

body:has(.hero--home-office) .hero-commitment-list {
  gap: var(--space-4);
  margin: var(--space-5) 0 var(--space-6);
}

body:has(.hero--home-office) .hero-commitment-list li {
  font-size: var(--text-sm);
  color: #d6deeb;
}

body:has(.hero--home-office) .panel-label,
body:has(.hero--home-office) .eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
}

body:has(.hero--home-office) .penal-urgency-band {
  background:
    linear-gradient(90deg, rgba(201, 74, 54, 0.08), transparent 36%),
    var(--brand-blue-night);
  border-top: 1px solid rgba(201, 160, 74, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark-soft);
}

body:has(.hero--home-office) .penal-urgency-band__inner {
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr) auto;
  gap: var(--space-4);
  padding: var(--space-5) 0;
}

body:has(.hero--home-office) .penal-urgency-band h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
}

body:has(.hero--home-office) .penal-urgency-band p,
body:has(.hero--home-office) .penal-urgency-band__links span {
  color: #aebbcf;
  font-size: var(--text-sm);
}

body:has(.hero--home-office) .penal-urgency-band__links a {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  border-left: 2px solid rgba(201, 74, 54, 0.72);
  border-radius: 4px;
}

body:has(.hero--home-office) .penal-urgency-band__links strong {
  color: var(--white);
  font-size: var(--text-md);
}

body:has(.hero--home-office) .penal-urgency-band__contact {
  color: var(--brand-gold-light);
  text-decoration-color: rgba(240, 212, 128, 0.42);
}

body:has(.hero--home-office) .section,
body:has(.hero--home-office) .section.compact {
  padding-top: clamp(64px, 7vw, 88px);
  padding-bottom: clamp(64px, 7vw, 88px);
}

body:has(.hero--home-office) .section-head {
  max-width: 600px;
  margin-bottom: var(--space-6);
}

body:has(.hero--home-office) .section-head h2,
body:has(.hero--home-office) .container > div > h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: 0;
}

body:has(.hero--home-office) .section-head p,
body:has(.hero--home-office) .container > div > p {
  max-width: 56ch;
  font-size: var(--text-md);
}

body:has(.hero--home-office) .work-section,
body:has(.hero--home-office) main > .section:has(.service-grid) {
  background:
    radial-gradient(ellipse at 84% 10%, rgba(31, 66, 116, 0.22) 0%, transparent 58%),
    var(--brand-blue-night);
  color: var(--on-dark-soft);
}

body:has(.hero--home-office) .work-section .section-head h2,
body:has(.hero--home-office) main > .section:has(.service-grid) .section-head h2 {
  color: var(--white);
}

body:has(.hero--home-office) .work-section .section-head p,
body:has(.hero--home-office) main > .section:has(.service-grid) .section-head p {
  color: #aebbcf;
}

body:has(.hero--home-office) .work-grid {
  gap: var(--space-4);
}

body:has(.hero--home-office) .work-card {
  min-height: 210px;
  padding: var(--space-5);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.026);
}

body:has(.hero--home-office) .work-card h3 {
  color: var(--white);
  font-size: var(--text-lg);
}

body:has(.hero--home-office) .work-card p {
  color: #aebbcf;
  font-size: var(--text-sm);
}

body:has(.hero--home-office) .section:has(.trajectory-copy),
body:has(.hero--home-office) .section.compact:has(.home-router),
body:has(.hero--home-office) .section.alt,
body:has(.hero--home-office) .founders-section,
body:has(.hero--home-office) .process-section,
body:has(.hero--home-office) .section:has(.article-card),
body:has(.hero--home-office) .source-section {
  background: var(--surface);
}

body:has(.hero--home-office) .section.alt,
body:has(.hero--home-office) .process-section,
body:has(.hero--home-office) .source-section {
  background: var(--surface-soft);
}

body:has(.hero--home-office) .grid-3,
body:has(.hero--home-office) .service-grid,
body:has(.hero--home-office) .step-grid,
body:has(.hero--home-office) .founders-grid,
body:has(.hero--home-office) .home-router__grid {
  gap: var(--space-4);
}

body:has(.hero--home-office) .card,
body:has(.hero--home-office) .service-card,
body:has(.hero--home-office) .article-card,
body:has(.hero--home-office) .intent-card,
body:has(.hero--home-office) .search-card,
body:has(.hero--home-office) .step-card,
body:has(.hero--home-office) .local-card,
body:has(.hero--home-office) .founder-card,
body:has(.hero--home-office) .home-router__company {
  border-radius: 6px;
  box-shadow: none;
}

body:has(.hero--home-office) .card:hover,
body:has(.hero--home-office) .service-card:hover,
body:has(.hero--home-office) .article-card:hover,
body:has(.hero--home-office) .intent-card:hover,
body:has(.hero--home-office) .search-card:hover,
body:has(.hero--home-office) .step-card:hover,
body:has(.hero--home-office) .local-card:hover,
body:has(.hero--home-office) .founder-card:hover,
body:has(.hero--home-office) .home-router__company:hover,
body:has(.hero--home-office) .card:focus-within,
body:has(.hero--home-office) .service-card:focus-within,
body:has(.hero--home-office) .article-card:focus-within,
body:has(.hero--home-office) .intent-card:focus-within,
body:has(.hero--home-office) .search-card:focus-within,
body:has(.hero--home-office) .step-card:focus-within,
body:has(.hero--home-office) .local-card:focus-within,
body:has(.hero--home-office) .founder-card:focus-within,
body:has(.hero--home-office) .home-router__company:focus-within {
  box-shadow: 0 16px 32px -24px rgba(18, 42, 77, 0.48);
  transform: translateY(-2px);
}

body:has(.hero--home-office) .intent-card,
body:has(.hero--home-office) .home-router__company {
  min-height: 0;
  padding: var(--space-5);
}

body:has(.hero--home-office) .home-router__card {
  min-height: 196px;
}

body:has(.hero--home-office) .card h3,
body:has(.hero--home-office) .service-card h3,
body:has(.hero--home-office) .article-card h3,
body:has(.hero--home-office) .intent-card h3,
body:has(.hero--home-office) .search-card h3,
body:has(.hero--home-office) .step-card h3,
body:has(.hero--home-office) .local-card h3,
body:has(.hero--home-office) .founder-card h3,
body:has(.hero--home-office) .home-router__company-copy strong {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.22;
  letter-spacing: 0;
}

body:has(.hero--home-office) .card p,
body:has(.hero--home-office) .service-card p,
body:has(.hero--home-office) .article-card p,
body:has(.hero--home-office) .intent-card p,
body:has(.hero--home-office) .search-card p,
body:has(.hero--home-office) .step-card p,
body:has(.hero--home-office) .local-card p,
body:has(.hero--home-office) .founder-card p,
body:has(.hero--home-office) .home-router__company-copy span:last-child,
body:has(.hero--home-office) .list {
  font-size: var(--text-sm);
}

body:has(.hero--home-office) main > .section:has(.service-grid) .service-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.028);
  color: #aebbcf;
}

body:has(.hero--home-office) main > .section:has(.service-grid) .service-card h3,
body:has(.hero--home-office) main > .section:has(.service-grid) .service-card a {
  color: var(--white);
}

body:has(.hero--home-office) main > .section:has(.service-grid) .service-card p,
body:has(.hero--home-office) main > .section:has(.service-grid) .service-card .list {
  color: #aebbcf;
}

body:has(.hero--home-office) main > .section:has(.service-grid) .cta-filete {
  color: var(--brand-gold-light);
}

body:has(.hero--home-office) main > .section:has(.service-grid) .cta-filete::after,
body:has(.hero--home-office) main > .section:has(.service-grid) .cta-filete__rule {
  border-color: rgba(240, 212, 128, 0.56);
}

body:has(.hero--home-office) .signature-panel {
  min-height: 320px;
  padding: var(--space-6);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 82% 16%, rgba(240, 212, 128, 0.12), transparent 58%),
    linear-gradient(150deg, var(--blue-700), var(--blue-900) 70%, var(--blue-950));
}

body:has(.hero--home-office) .signature-panel strong {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

body:has(.hero--home-office) .founder-card {
  padding: var(--space-6);
}

body:has(.hero--home-office) .founder-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  font-size: var(--text-xl);
}

/* Prepared shell for the lateral IA/navigation experiment. */
.site-main-shell {
  min-height: 100vh;
  background: var(--surface);
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  width: min(264px, 82vw);
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
  border-right: 1px solid rgba(201, 160, 74, 0.22);
  background:
    radial-gradient(ellipse at 82% -12%, rgba(31, 66, 116, 0.36), transparent 58%),
    #091428;
  color: #c7d2e3;
}

.site-sidebar::before,
.site-flyout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3px 3px;
}

.site-sidebar > *,
.site-flyout > * {
  position: relative;
  z-index: 1;
}

.site-sidebar a,
.site-sidebar button {
  color: inherit;
}

.site-flyout {
  position: fixed;
  inset: 0 auto 0 min(264px, 82vw);
  z-index: 119;
  width: min(720px, calc(100vw - min(264px, 82vw)));
  padding: var(--space-7);
  overflow-y: auto;
  border-left: 1px solid rgba(201, 160, 74, 0.24);
  background: var(--brand-blue-night);
  color: #c7d2e3;
  box-shadow: 46px 0 70px -46px rgba(6, 14, 29, 0.72);
}

@media (min-width: 1100px) {
  .site-main-shell:has(.site-sidebar) {
    margin-left: 264px;
  }
}

@media (max-width: 1024px) {
  body:has(.hero--home-office) .hero--home-office .hero-inner,
  body:has(.hero--home-office) .penal-urgency-band__inner {
    grid-template-columns: 1fr;
  }

  body:has(.hero--home-office) .hero-commitment-panel {
    max-width: 620px;
    min-height: 0;
  }
}

@media (max-width: 768px) {
  body:has(.hero--home-office) .hero--home-office .hero-inner {
    gap: var(--space-5);
    padding: var(--space-7) 0 var(--space-7);
  }

  body:has(.hero--home-office) .hero--home-office h1 {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
  }

  body:has(.hero--home-office) .hero-commitment-panel {
    padding: var(--space-5);
  }

  body:has(.hero--home-office) .section,
  body:has(.hero--home-office) .section.compact {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  body:has(.hero--home-office) .penal-urgency-band__actions {
    align-items: stretch;
  }

  body:has(.hero--home-office) .home-router__company {
    gap: var(--space-3);
  }

  .site-sidebar,
  .site-flyout {
    inset: 64px 0 0 auto;
    width: min(88vw, 380px);
  }

  .site-flyout {
    z-index: 121;
    padding: var(--space-5);
  }
}

/* Sidebar navigation: final hooks used by scripts/shared-layout.mjs + main.js. */
@media (min-width: 981px) {
  :root {
    --site-sidebar-width: 264px;
  }

  body:has(.site-header--sidebar) .topbar {
    display: none;
  }

  body:has(.site-header--sidebar) main,
  body:has(.site-header--sidebar) .site-footer {
    margin-left: var(--site-sidebar-width);
  }

  body:has(.site-header--sidebar) .site-header,
  body:has(.site-header--sidebar) .site-header.is-scrolled,
  body:has(.site-header--sidebar) .site-header.is-transparent {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body:has(.site-header--sidebar) .site-header::before {
    display: none;
  }

  body:has(.site-header--sidebar) .site-sidebar {
    inset: 0 auto 0 0;
    display: flex;
    width: var(--site-sidebar-width);
    max-width: none;
    flex-direction: column;
    padding: var(--space-7) var(--space-6);
    border-right: 1px solid rgba(201, 160, 74, 0.24);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu {
    left: var(--site-sidebar-width);
    width: min(720px, calc(100vw - var(--site-sidebar-width) - 32px));
    background:
      radial-gradient(ellipse at 82% -12%, rgba(31, 66, 116, 0.28), transparent 58%),
      var(--brand-blue-night);
    border-right: 1px solid rgba(201, 160, 74, 0.2);
    box-shadow: 46px 0 70px -46px rgba(6, 14, 29, 0.72);
    color: var(--on-dark-soft);
  }

  body:has(.site-header--sidebar) .site-sidebar .has-megamenu--company .megamenu,
  body:has(.site-header--sidebar) .site-sidebar .has-megamenu--office .megamenu {
    width: min(520px, calc(100vw - var(--site-sidebar-width) - 32px));
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__chapter,
  body:has(.site-header--sidebar) .site-sidebar .megamenu__num {
    color: var(--brand-gold-light);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__head h2,
  body:has(.site-header--sidebar) .site-sidebar .megamenu__group h3 {
    color: var(--white);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__head p,
  body:has(.site-header--sidebar) .site-sidebar .megamenu__summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--text-sm);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__group {
    border-left-color: rgba(201, 160, 74, 0.22);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu .megamenu__services a,
  body:has(.site-header--sidebar) .site-sidebar .megamenu a.megamenu__hub {
    color: rgba(255, 255, 255, 0.76);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu .megamenu__services a:hover,
  body:has(.site-header--sidebar) .site-sidebar .megamenu .megamenu__services a:focus-visible,
  body:has(.site-header--sidebar) .site-sidebar .megamenu a.megamenu__hub:hover,
  body:has(.site-header--sidebar) .site-sidebar .megamenu a.megamenu__hub:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: var(--brand-gold-light);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu a.megamenu__hub {
    border-top-color: rgba(201, 160, 74, 0.22);
    color: var(--brand-gold-light);
  }

  body:has(.site-header--sidebar) .site-nav-scrim {
    inset: 0 0 0 var(--site-sidebar-width);
  }
}

@media (max-width: 980px) {
  body:has(.site-header--sidebar) .topbar {
    display: none;
  }

  body:has(.site-header--sidebar) main,
  body:has(.site-header--sidebar) .site-footer {
    margin-left: 0;
  }

  body:has(.site-header--sidebar) .site-header,
  body:has(.site-header--sidebar) .site-header.is-scrolled,
  body:has(.site-header--sidebar) .site-header.is-transparent {
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: 64px;
    background: var(--brand-blue-night);
    border-bottom: 1px solid rgba(201, 160, 74, 0.22);
  }

  body:has(.site-header--sidebar) .site-sidebar {
    inset: 64px auto 0 0;
    z-index: 140;
    width: min(86vw, 340px);
    max-width: calc(100vw - 32px);
    transform: translateX(-100%);
  }

  body.nav-open:has(.site-header--sidebar) .site-sidebar {
    transform: translateX(0);
  }

  body.nav-open:has(.site-header--sidebar) .nav-inner--mobile {
    position: relative;
    z-index: 150;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__summary {
    margin: 0;
    color: var(--ink-muted);
    font-size: var(--text-sm);
  }

  body.nav-open:has(.site-header--sidebar) .site-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: block;
    background: rgba(11, 26, 53, 0.56);
  }
}

/* Final correction: hero follows the manual layout balance (paper + dark panel). */
body:has(.site-header--sidebar) .hero--home-office {
  background:
    linear-gradient(90deg, rgba(238, 243, 250, 0.58), transparent 42%),
    var(--surface);
  color: var(--ink);
}

body:has(.site-header--sidebar) .hero--home-office::before,
body:has(.site-header--sidebar) .hero--home-office::after {
  display: none;
}

body:has(.site-header--sidebar) .hero--home-office h1 {
  color: var(--brand-blue-night);
  max-width: 18ch;
}

body:has(.site-header--sidebar) .hero--home-office p {
  color: var(--ink-soft);
  max-width: 44ch;
}

body:has(.site-header--sidebar) .hero.hero--home-office .cta-apelo {
  color: var(--brand-blue);
}

body:has(.site-header--sidebar) .hero.hero--home-office .cta-apelo:hover,
body:has(.site-header--sidebar) .hero.hero--home-office .cta-apelo:focus-visible {
  color: var(--brand-blue-night);
}

body:has(.site-header--sidebar) .hero-commitment-panel {
  background: var(--brand-blue-night);
  color: var(--on-dark-soft);
}

body:has(.site-header--sidebar) .nav-inner--mobile .nav-toggle {
  position: absolute;
  top: 10px;
  right: var(--space-4);
  z-index: 2;
}

/* Publication correction: keep only the navigation and small accents dark. */
body:has(.site-header--sidebar) .penal-urgency-band,
body:has(.site-header--sidebar) .work-section,
body:has(.site-header--sidebar) main > .section:has(.service-grid),
body:has(.site-header--sidebar) .cta {
  background: var(--surface);
  color: var(--ink);
}

body:has(.site-header--sidebar) .penal-urgency-band {
  border-block: 1px solid var(--line);
}

body:has(.site-header--sidebar) .penal-urgency-band h2,
body:has(.site-header--sidebar) .penal-urgency-band__links strong,
body:has(.site-header--sidebar) .work-section h2,
body:has(.site-header--sidebar) main > .section:has(.service-grid) h2,
body:has(.site-header--sidebar) .cta h2 {
  color: var(--brand-blue-night);
}

body:has(.site-header--sidebar) .penal-urgency-band p,
body:has(.site-header--sidebar) .penal-urgency-band__links span,
body:has(.site-header--sidebar) .work-section p,
body:has(.site-header--sidebar) main > .section:has(.service-grid) p,
body:has(.site-header--sidebar) .cta p {
  color: var(--ink-soft);
}

body:has(.site-header--sidebar) .penal-urgency-band__links a,
body:has(.site-header--sidebar) .work-card,
body:has(.site-header--sidebar) .service-card,
body:has(.site-header--sidebar) .contact-box {
  background: var(--surface-card);
  border-color: var(--line);
  color: var(--ink);
}

body:has(.site-header--sidebar) main > .section:has(.service-grid) .service-card h3,
body:has(.site-header--sidebar) main > .section:has(.service-grid) .service-card a {
  color: var(--brand-blue);
}

body:has(.site-header--sidebar) main > .section:has(.service-grid) .service-card p,
body:has(.site-header--sidebar) main > .section:has(.service-grid) .service-card .list {
  color: var(--ink-soft);
}

body:has(.site-header--sidebar) .cta a:not(.cta-apelo):not(.cta-filete) {
  color: var(--brand-blue);
}

body:has(.site-header--sidebar) .cookie-consent {
  right: var(--space-5);
  left: auto;
  grid-template-columns: 1fr;
  width: min(440px, calc(100vw - var(--space-5) * 2));
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

body:has(.site-header--sidebar) .cookie-consent__copy strong {
  font-size: var(--text-md);
}

body:has(.site-header--sidebar) .cookie-consent__copy p,
body:has(.site-header--sidebar) .cookie-consent__copy a {
  font-size: var(--text-xs);
}

body:has(.site-header--sidebar) .cookie-consent__actions {
  justify-content: flex-end;
}

body:has(.site-header--sidebar) .cookie-consent__button {
  min-height: 38px;
  padding-inline: var(--space-4);
}

@media (max-width: 768px) {
  body:has(.site-header--sidebar) .cookie-consent {
    right: var(--space-3);
    left: var(--space-3);
    bottom: var(--space-3);
    width: auto;
  }
}

@media (max-width: 980px) {
  body:has(.site-header--sidebar) {
    overflow-x: clip;
  }

  body:has(.site-header--sidebar) .site-header,
  body:has(.site-header--sidebar) main,
  body:has(.site-header--sidebar) .site-footer {
    max-width: 100vw;
    overflow-x: clip;
  }

  body:has(.site-header--sidebar) .nav-inner--mobile {
    width: 100%;
    min-width: 0;
    padding-inline: var(--space-4);
  }

  body:has(.site-header--sidebar) .brand {
    min-width: 0;
    max-width: calc(100vw - 76px);
  }

  body:has(.site-header--sidebar) .brand strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  body:has(.site-header--sidebar) .brand span {
    font-size: 0.5rem;
    letter-spacing: 0.18em;
  }

  body:has(.site-header--sidebar) .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  body:has(.site-header--sidebar) .hero--home-office .hero-inner,
  body:has(.site-header--sidebar) .hero-copy,
  body:has(.site-header--sidebar) .hero-visual,
  body:has(.site-header--sidebar) .hero-commitment-panel,
  body:has(.site-header--sidebar) .penal-urgency-band__inner,
  body:has(.site-header--sidebar) .home-router,
  body:has(.site-header--sidebar) .home-router__grid,
  body:has(.site-header--sidebar) .home-router__company {
    min-width: 0;
    max-width: 100%;
  }

  body:has(.site-header--sidebar) .hero--home-office h1 {
    max-width: 15ch;
    font-size: clamp(1.625rem, 7vw, 2.125rem);
    overflow-wrap: break-word;
  }

  body:has(.site-header--sidebar) .hero--home-office p {
    max-width: 32ch;
    overflow-wrap: break-word;
  }

  body:has(.site-header--sidebar) .hero-commitment-panel {
    width: 100%;
  }

  body:has(.site-header--sidebar) .nav-toggle {
    position: absolute;
    top: 10px;
    right: var(--space-4);
    z-index: 2;
  }
}

/* Sidebar flyout visibility fix: desktop panels must escape the lateral rail. */
@media (min-width: 981px) {
  body:has(.site-header--sidebar) .site-sidebar {
    overflow: visible;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu {
    top: 0;
    bottom: 0;
    left: var(--site-sidebar-width);
    z-index: 180;
    overflow-y: auto;
  }

  body:has(.site-header--sidebar) .site-sidebar .has-megamenu.is-open .megamenu {
    display: grid;
  }

  body:has(.site-header--sidebar) .site-nav-scrim {
    z-index: 100;
  }
}

/* Desktop sidebar must fit the viewport without its own scroll. */
@media (min-width: 981px) {
  body:has(.site-header--sidebar) .site-sidebar {
    height: 100vh;
    padding-block: clamp(var(--space-4), 5vh, var(--space-7));
    overflow: visible;
  }

  body:has(.site-header--sidebar) .site-sidebar__brand {
    padding-bottom: clamp(var(--space-4), 3.5vh, var(--space-6));
    margin-bottom: clamp(var(--space-4), 3.5vh, var(--space-6));
  }

  body:has(.site-header--sidebar) .site-sidebar .nav-menu {
    gap: clamp(0.125rem, 0.8vh, var(--space-1));
  }

  body:has(.site-header--sidebar) .site-sidebar .site-header__nav-link,
  body:has(.site-header--sidebar) .site-sidebar .nav-menu a.site-header__nav-link:not(.button) {
    min-height: clamp(34px, 5.2vh, 40px);
    padding-block: clamp(0.25rem, 1vh, var(--space-2));
  }

  body:has(.site-header--sidebar) .site-sidebar .button,
  body:has(.site-header--sidebar) .site-sidebar a.site-sidebar__cta {
    min-height: clamp(38px, 5.6vh, 44px);
    margin-top: clamp(var(--space-3), 3vh, var(--space-5));
  }

  body:has(.site-header--sidebar) .site-sidebar__meta {
    padding-top: clamp(var(--space-3), 3vh, var(--space-5));
    font-size: clamp(0.625rem, 1.4vh, 0.6875rem);
    line-height: 1.55;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu {
    padding: clamp(var(--space-5), 5vh, var(--space-7)) var(--space-6);
    gap: clamp(var(--space-4), 3.5vh, var(--space-6));
    overflow: visible;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__head {
    gap: var(--space-1);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__head h2 {
    font-size: clamp(1.25rem, 3vh, var(--text-xl));
    line-height: 1.15;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__grid {
    gap: clamp(var(--space-4), 3.5vh, var(--space-6)) var(--space-5);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__group {
    padding-left: var(--space-3);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__group h3 {
    font-size: clamp(1rem, 2.5vh, var(--text-lg));
    line-height: 1.2;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__summary {
    font-size: var(--text-xs);
    line-height: 1.35;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu .megamenu__services a,
  body:has(.site-header--sidebar) .site-sidebar .megamenu a.megamenu__hub {
    min-height: 0;
    padding-block: clamp(0.1875rem, 0.8vh, var(--space-2));
    font-size: clamp(0.8125rem, 1.8vh, var(--text-sm));
    line-height: 1.35;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  body:has(.site-header--sidebar) .site-sidebar .megamenu {
    padding-block: var(--space-5);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__head p,
  body:has(.site-header--sidebar) .site-sidebar .megamenu__summary {
    display: none;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__grid {
    gap: var(--space-4);
  }
}

@media (min-width: 981px) and (max-height: 640px) {
  body:has(.site-header--sidebar) .site-sidebar {
    padding-block: var(--space-4);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu {
    padding-block: var(--space-4);
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__head {
    display: none;
  }

  body:has(.site-header--sidebar) .site-sidebar .megamenu__grid {
    gap: var(--space-3) var(--space-4);
  }
}

/* Services hub — guided index for /servicos.html */
.services-hub .services-hero {
  background:
    radial-gradient(ellipse 34% 28% at 82% 20%, rgba(240, 212, 128, 0.14), transparent 62%),
    linear-gradient(155deg, var(--blue-900), var(--blue-950));
}

body:has(.services-hub) .floating-whatsapp {
  display: none;
}

.services-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 0.56fr);
  gap: var(--space-8);
  align-items: center;
}

.services-hero__copy {
  min-width: 0;
}

.services-hub .services-hero h1 {
  max-width: 18ch;
}

.services-hub .services-hero p {
  max-width: 54ch;
}

.services-hero__panel {
  position: relative;
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid rgba(240, 212, 128, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(11, 26, 53, 0.72);
  box-shadow: var(--shadow-lg);
}

.services-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.68;
}

.services-hero__panel > * {
  position: relative;
  z-index: 1;
}

.services-hero__panel img {
  display: block;
  width: 48px;
  height: auto;
  margin-bottom: var(--space-5);
}

.services-hero__label {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--brand-gold-light);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.services-hero__panel ol {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-hero__panel a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  min-height: 48px;
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--lh-snug);
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.services-hero__panel a:hover,
.services-hero__panel a:focus-visible {
  border-color: rgba(240, 212, 128, 0.42);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.services-hero__panel a span {
  color: var(--brand-gold-light);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

.services-hero__notes {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-hero__notes li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0 var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.services-hero__notes li:first-child {
  border-top: 0;
}

.services-hero__notes span {
  grid-row: span 2;
  color: var(--brand-gold-light);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
}

.services-hero__notes strong {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.services-hero__notes small {
  margin-top: var(--space-2);
  color: var(--on-dark-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

.service-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.service-route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.service-route-card::before {
  content: "";
  width: 34px;
  height: 1px;
  margin-bottom: var(--space-5);
  background: var(--gold-metal);
}

.service-route-card:hover,
.service-route-card:focus-within {
  border-color: rgba(201, 160, 74, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-route-card--company {
  grid-column: auto;
  min-height: 272px;
  background:
    linear-gradient(90deg, rgba(31, 66, 116, 0.08), transparent 54%),
    var(--surface-card);
}

.service-route-card__num {
  position: absolute;
  top: var(--space-5);
  right: var(--space-6);
  color: rgba(138, 100, 32, 0.66);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
}

.service-route-card h3 {
  max-width: calc(100% - 56px);
  margin-bottom: var(--space-3);
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.service-route-card p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.service-route-card a,
.services-catalog__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--brand-blue);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  text-transform: uppercase;
}

.service-route-card__mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
}

.service-route-card__mini-links a {
  margin-top: 0;
  padding-top: 0;
}

.service-route-card a::after,
.services-catalog__links a::after {
  content: "→";
  color: var(--brand-gold);
  transition: transform var(--duration-fast) var(--ease-out);
}

.service-route-card a:hover::after,
.services-catalog__links a:hover::after {
  transform: translateX(4px);
}

.services-catalog-section {
  background:
    linear-gradient(180deg, rgba(238, 243, 250, 0.48), transparent 28%),
    var(--surface-soft);
}

.services-catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.services-catalog__group {
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  overflow: clip;
}

.services-catalog__group:first-child {
  grid-column: auto;
}

.services-catalog__head {
  display: grid;
  grid-template-columns: 48px minmax(180px, 0.34fr) minmax(0, 1fr) 22px;
  gap: var(--space-4);
  align-items: center;
  min-width: 0;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
}

.services-catalog__head::-webkit-details-marker {
  display: none;
}

.services-catalog__head::after {
  content: "+";
  color: var(--brand-gold-deep);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  line-height: 1;
}

.services-catalog__group[open] .services-catalog__head::after {
  content: "−";
}

.services-catalog__head .mono {
  display: block;
  margin-bottom: 0;
  color: var(--brand-gold-deep);
}

.services-catalog__title {
  color: var(--brand-blue-night);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--lh-snug);
}

.services-catalog__head > span:last-of-type {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}

.services-catalog__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-content: start;
  padding: 0 var(--space-6) var(--space-6);
  border-top: 1px solid var(--line);
}

.services-catalog__links a {
  min-height: 46px;
  margin-top: 0;
  padding: var(--space-3);
  border: 1px solid rgba(31, 66, 116, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
  line-height: var(--lh-snug);
  text-transform: none;
  letter-spacing: 0;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.services-catalog__links a:hover,
.services-catalog__links a:focus-visible {
  border-color: rgba(201, 160, 74, 0.46);
  background: var(--surface);
}

@media (max-width: 1120px) {
  .services-catalog__head {
    grid-template-columns: 1fr;
    gap: var(--space-2);
    align-items: start;
  }

  .services-catalog__head::after {
    position: absolute;
    right: var(--space-5);
    top: var(--space-5);
  }

  .services-catalog__head {
    position: relative;
    padding-right: var(--space-8);
  }
}

@media (max-width: 860px) {
  .services-hero__grid,
  .service-route-grid,
  .services-catalog__links {
    grid-template-columns: 1fr;
  }

  .services-hero__grid {
    gap: var(--space-6);
  }

  .service-route-card--company {
    grid-column: auto;
  }

  .service-route-card,
  .service-route-card--company {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .section,
  .section.compact,
  body:has(.hero--home-office) .section,
  body:has(.hero--home-office) .section.compact {
    padding-block: var(--space-7);
  }

  .hero h1,
  body:has(.hero--home-office) .hero--home-office h1,
  body:has(.site-header--sidebar) .hero--home-office h1 {
    max-width: 18ch;
    font-size: clamp(1.625rem, 7vw, 2.125rem);
  }

  .button,
  .cta-apelo,
  .button.cta-apelo {
    width: auto;
    min-width: min(100%, 220px);
  }
}

/* ============================================================
   HARMONIA VISUAL V2
   Ajuste global para menos contorno interno, escala tipografica
   mais serena, cards em tamanho natural e CTAs com presenca real.
   ============================================================ */

:root {
  --section-y: clamp(72px, 8vw, 104px);
  --section-y-compact: clamp(56px, 6vw, 80px);
  --component-gap: clamp(24px, 3vw, 40px);
  --card-pad: clamp(22px, 2.4vw, 30px);
  --card-max: 340px;
  --card-max-wide: 430px;
  --cta-shadow: 0 12px 28px rgba(18, 42, 77, 0.12);
}

h1, h2, h3, h4 {
  letter-spacing: 0;
}

.section,
body:has(.hero--home-office) .section,
body:has(.hero--home-office) .section.compact {
  padding-block: var(--section-y);
}

.section.compact {
  padding-block: var(--section-y-compact);
}

.section-head,
body:has(.hero--home-office) .section-head,
body:has(.site-sidebar) .section-head {
  max-width: 680px;
  margin-bottom: var(--component-gap);
}

.section-head h2,
body:has(.hero--home-office) .section-head h2,
body:has(.hero--home-office) .container > div > h2,
body:has(.site-sidebar) .section-head h2,
body:has(.site-sidebar) .cta h2,
.cta h2 {
  font-size: var(--text-h2);
  line-height: var(--lh-snug);
}

.section-head p,
body:has(.hero--home-office) .section-head p,
body:has(.hero--home-office) .container > div > p,
body:has(.site-sidebar) .section-head p,
body:has(.site-sidebar) .cta p,
.cta p {
  max-width: 58ch;
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.hero-inner,
.hero--home-office .hero-inner,
body:has(.hero--home-office) .hero--home-office .hero-inner,
body:has(.site-sidebar) .hero--home-office .hero-inner {
  gap: clamp(40px, 5vw, 72px);
  padding-block: clamp(72px, 8vw, 104px);
}

.hero h1,
body:has(.hero--home-office) .hero--home-office h1,
body:has(.site-header--sidebar) .hero--home-office h1,
body:has(.site-sidebar) .hero h1,
.page-hero h1 {
  max-width: 23ch;
  font-size: var(--text-display);
  line-height: var(--lh-tight);
}

.page-hero h1 {
  font-size: var(--text-h1);
}

.hero p,
body:has(.hero--home-office) .hero--home-office p,
body:has(.site-header--sidebar) .hero--home-office p,
body:has(.site-sidebar) .hero p,
.page-hero p {
  max-width: 58ch;
  font-size: var(--text-md);
  line-height: var(--lh-normal);
}

.grid-3,
.grid-auto,
.service-grid,
.intent-grid,
.search-grid,
.step-grid,
.work-grid,
.founders-grid,
.home-router__grid,
.ed-card-grid,
body:has(.site-sidebar) .grid-3,
body:has(.site-sidebar) .grid-auto,
body:has(.site-sidebar) .service-grid,
body:has(.site-sidebar) .intent-grid,
body:has(.site-sidebar) .search-grid,
body:has(.site-sidebar) .step-grid,
body:has(.site-sidebar) .work-grid,
body:has(.site-sidebar) .founders-grid,
body:has(.site-sidebar) .home-router__grid,
body:has(.site-header--sidebar) .grid-3,
body:has(.site-header--sidebar) .grid-auto,
body:has(.site-header--sidebar) .service-grid,
body:has(.site-header--sidebar) .intent-grid,
body:has(.site-header--sidebar) .search-grid,
body:has(.site-header--sidebar) .step-grid,
body:has(.site-header--sidebar) .work-grid,
body:has(.site-header--sidebar) .founders-grid,
body:has(.site-header--sidebar) .home-router__grid,
body:has(.hero--home-office) .grid-3,
body:has(.hero--home-office) .grid-auto,
body:has(.hero--home-office) .service-grid,
body:has(.hero--home-office) .intent-grid,
body:has(.hero--home-office) .search-grid,
body:has(.hero--home-office) .step-grid,
body:has(.hero--home-office) .work-grid,
body:has(.hero--home-office) .founders-grid,
body:has(.hero--home-office) .home-router__grid {
  align-items: start;
  justify-content: start;
  gap: var(--component-gap);
}

.grid-3,
.grid-auto,
.service-grid,
.intent-grid,
.step-grid,
.work-grid,
.founders-grid,
.home-router__grid,
body:has(.site-sidebar) .grid-3,
body:has(.site-sidebar) .grid-auto,
body:has(.site-sidebar) .service-grid,
body:has(.site-sidebar) .intent-grid,
body:has(.site-sidebar) .step-grid,
body:has(.site-sidebar) .work-grid,
body:has(.site-sidebar) .founders-grid,
body:has(.site-sidebar) .home-router__grid,
body:has(.site-header--sidebar) .grid-3,
body:has(.site-header--sidebar) .grid-auto,
body:has(.site-header--sidebar) .service-grid,
body:has(.site-header--sidebar) .intent-grid,
body:has(.site-header--sidebar) .step-grid,
body:has(.site-header--sidebar) .work-grid,
body:has(.site-header--sidebar) .founders-grid,
body:has(.site-header--sidebar) .home-router__grid,
body:has(.hero--home-office) .grid-3,
body:has(.hero--home-office) .grid-auto,
body:has(.hero--home-office) .service-grid,
body:has(.hero--home-office) .intent-grid,
body:has(.hero--home-office) .step-grid,
body:has(.hero--home-office) .work-grid,
body:has(.hero--home-office) .founders-grid,
body:has(.hero--home-office) .home-router__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), var(--card-max)));
}

.search-grid,
body:has(.site-sidebar) .search-grid,
body:has(.site-header--sidebar) .search-grid,
body:has(.hero--home-office) .search-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), var(--card-max-wide)));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
  gap: clamp(36px, 5vw, 64px);
}

.card,
.service-card,
.article-card,
.intent-card,
.search-card,
.step-card,
.local-card,
.work-card,
.founder-card,
.home-router__company,
.contact-box,
.appointment-form,
.rating-card,
.google-map-card {
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.card,
.service-card,
.article-card,
.intent-card,
.search-card,
.step-card,
.local-card,
.work-card,
.founder-card,
.home-router__company {
  min-height: 0;
  height: auto;
  padding: var(--card-pad);
  align-self: start;
}

.service-card,
.search-card,
.intent-card,
.article-card,
.work-card,
.founder-card {
  display: flex;
  flex-direction: column;
}

.card:hover,
.service-card:hover,
.article-card:hover,
.intent-card:hover,
.search-card:hover,
.step-card:hover,
.local-card:hover,
.work-card:hover,
.founder-card:hover,
.home-router__company:hover,
.card:focus-within,
.service-card:focus-within,
.article-card:focus-within,
.intent-card:focus-within,
.search-card:focus-within,
.step-card:focus-within,
.local-card:focus-within,
.work-card:focus-within,
.founder-card:focus-within,
.home-router__company:focus-within,
body:has(.hero--home-office) .card:hover,
body:has(.hero--home-office) .service-card:hover,
body:has(.hero--home-office) .article-card:hover,
body:has(.hero--home-office) .intent-card:hover,
body:has(.hero--home-office) .search-card:hover,
body:has(.hero--home-office) .step-card:hover,
body:has(.hero--home-office) .local-card:hover,
body:has(.hero--home-office) .founder-card:hover,
body:has(.hero--home-office) .home-router__company:hover {
  border-color: rgba(201, 160, 74, 0.34);
  box-shadow: 0 14px 30px rgba(18, 42, 77, 0.07);
  transform: translateY(-2px);
}

.card h3,
.service-card h3,
.article-card h3,
.intent-card h3,
.search-card h3,
.step-card h3,
.local-card h3,
.work-card h3,
.founder-card h3,
.home-router__company-copy strong,
body:has(.hero--home-office) .card h3,
body:has(.hero--home-office) .service-card h3,
body:has(.hero--home-office) .article-card h3,
body:has(.hero--home-office) .intent-card h3,
body:has(.hero--home-office) .search-card h3,
body:has(.hero--home-office) .step-card h3,
body:has(.hero--home-office) .local-card h3,
body:has(.hero--home-office) .founder-card h3,
body:has(.hero--home-office) .home-router__company-copy strong {
  font-size: var(--text-lg);
  line-height: 1.28;
}

.card p,
.service-card p,
.article-card p,
.intent-card p,
.search-card p,
.step-card p,
.local-card p,
.work-card p,
.founder-card p,
.home-router__company-copy span:last-child {
  font-size: var(--text-base);
  line-height: 1.62;
}

.button::after,
.cta-apelo::after,
.button.cta-apelo::after,
.hero-commitment-panel::before,
.signature-panel::before {
  content: none;
}

.hero-commitment-panel,
body:has(.hero--home-office) .hero-commitment-panel,
body:has(.site-sidebar) .hero-commitment-panel,
.floating-whatsapp,
.floating-whatsapp__seal,
.form-choice {
  box-shadow: none;
}

.hero-commitment-panel {
  min-height: 0;
}

.button,
.cta-apelo,
.button.cta-apelo,
body:has(.site-sidebar) .site-sidebar .button,
body:has(.site-sidebar) .site-sidebar a.site-sidebar__cta {
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: var(--cta-shadow);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  line-height: 1.2;
  text-transform: uppercase;
}

.button:hover,
.cta-apelo:hover,
.button.cta-apelo:hover,
body:has(.site-sidebar) .site-sidebar .button:hover,
body:has(.site-sidebar) .site-sidebar a.site-sidebar__cta:hover {
  background: var(--brand-blue-deep);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(18, 42, 77, 0.16);
  transform: translateY(-1px);
}

.hero .button,
.page-hero .button,
.cta .button,
.section.dark .button,
.surface-dark .button,
.surface-band--dark .button,
.hero .cta-apelo,
.page-hero .cta-apelo,
.cta .cta-apelo,
.section.dark .cta-apelo,
.surface-dark .cta-apelo,
.surface-band--dark .cta-apelo,
body:has(.hero--home-office) .hero.hero--home-office .cta-apelo {
  background: var(--gold-metal);
  color: var(--brand-blue-night);
}

.hero .button:hover,
.page-hero .button:hover,
.cta .button:hover,
.section.dark .button:hover,
.surface-dark .button:hover,
.surface-band--dark .button:hover,
.hero .cta-apelo:hover,
.page-hero .cta-apelo:hover,
.cta .cta-apelo:hover,
.section.dark .cta-apelo:hover,
.surface-dark .cta-apelo:hover,
.surface-band--dark .cta-apelo:hover,
body:has(.hero--home-office) .hero.hero--home-office .cta-apelo:hover {
  background: var(--brand-gold-light);
  color: var(--brand-blue-night);
}

.cta-filete,
.button-outline.cta-filete {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  line-height: 1.2;
  text-transform: uppercase;
}

.cta-filete.italic {
  font-style: normal;
}

.hero-actions .cta-filete:first-child,
.page-hero .hero-actions .cta-filete:first-child {
  min-height: 50px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--gold-metal);
  color: var(--brand-blue-night);
  box-shadow: var(--cta-shadow);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hero-actions .cta-filete:first-child::after,
.page-hero .hero-actions .cta-filete:first-child::after {
  content: none;
}

.hero-actions .cta-filete:first-child:hover,
.page-hero .hero-actions .cta-filete:first-child:hover {
  background: var(--brand-gold-light);
  color: var(--brand-blue-night);
  transform: translateY(-1px);
}

.contact-box .contact-actions .button {
  flex: 0 1 auto;
}

.contact-box .contact-actions .button + .button {
  background: transparent;
  border-color: rgba(31, 66, 116, 0.28);
  color: var(--brand-blue);
  box-shadow: none;
}

.contact-box .contact-actions .button + .button:hover {
  background: rgba(31, 66, 116, 0.06);
  border-color: var(--brand-blue);
  color: var(--brand-blue-deep);
}

.penal-urgency-band__contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--brand-blue);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.section-head--wide,
body:has(.hero--home-office) .section-head--wide,
body:has(.site-sidebar) .section-head--wide {
  max-width: 760px;
}

.section-head--split,
body:has(.hero--home-office) .section-head--split,
body:has(.site-sidebar) .section-head--split {
  max-width: none;
}

.service-route-card,
.service-route-card--company {
  min-height: 0;
}

.services-catalog__links a {
  min-height: 48px;
}

body:has(.site-sidebar) .site-sidebar .button,
body:has(.site-sidebar) .site-sidebar a.site-sidebar__cta {
  background: var(--gold-metal);
  color: var(--brand-blue-night);
  box-shadow: none;
}

body:has(.site-sidebar) .site-sidebar .button:hover,
body:has(.site-sidebar) .site-sidebar a.site-sidebar__cta:hover {
  background: var(--brand-gold-light);
  color: var(--brand-blue-night);
}

@media (max-width: 768px) {
  .section,
  .section.compact,
  body:has(.hero--home-office) .section,
  body:has(.hero--home-office) .section.compact {
    padding-block: var(--space-7);
  }

  .hero h1,
  .page-hero h1,
  body:has(.hero--home-office) .hero--home-office h1,
  body:has(.site-header--sidebar) .hero--home-office h1,
  body:has(.site-sidebar) .hero h1 {
    max-width: 18ch;
    font-size: clamp(1.625rem, 7vw, 2.125rem);
  }

  .grid-3,
  .grid-auto,
  .grid-2,
  .service-grid,
  .intent-grid,
  .search-grid,
  .step-grid,
  .work-grid,
  .founders-grid,
  .home-router__grid,
  .services-catalog,
  .services-catalog__group,
  .services-catalog__links,
  body:has(.site-sidebar) .grid-3,
  body:has(.site-sidebar) .grid-auto,
  body:has(.site-sidebar) .grid-2,
  body:has(.site-sidebar) .service-grid,
  body:has(.site-sidebar) .intent-grid,
  body:has(.site-sidebar) .search-grid,
  body:has(.site-sidebar) .step-grid,
  body:has(.site-sidebar) .work-grid,
  body:has(.site-sidebar) .founders-grid,
  body:has(.site-sidebar) .home-router__grid,
  body:has(.site-header--sidebar) .grid-3,
  body:has(.site-header--sidebar) .grid-auto,
  body:has(.site-header--sidebar) .grid-2,
  body:has(.site-header--sidebar) .service-grid,
  body:has(.site-header--sidebar) .intent-grid,
  body:has(.site-header--sidebar) .search-grid,
  body:has(.site-header--sidebar) .step-grid,
  body:has(.site-header--sidebar) .work-grid,
  body:has(.site-header--sidebar) .founders-grid,
  body:has(.site-header--sidebar) .home-router__grid,
  body:has(.hero--home-office) .grid-3,
  body:has(.hero--home-office) .grid-auto,
  body:has(.hero--home-office) .grid-2,
  body:has(.hero--home-office) .service-grid,
  body:has(.hero--home-office) .intent-grid,
  body:has(.hero--home-office) .search-grid,
  body:has(.hero--home-office) .step-grid,
  body:has(.hero--home-office) .work-grid,
  body:has(.hero--home-office) .founders-grid,
  body:has(.hero--home-office) .home-router__grid {
    grid-template-columns: 1fr;
  }

  .button,
  .cta-apelo,
  .button.cta-apelo {
    width: auto;
    min-width: min(100%, 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .service-card:hover,
  .article-card:hover,
  .intent-card:hover,
  .search-card:hover,
  .step-card:hover,
  .local-card:hover,
  .work-card:hover,
  .founder-card:hover,
  .home-router__company:hover,
  .card:focus-within,
  .service-card:focus-within,
  .article-card:focus-within,
  .intent-card:focus-within,
  .search-card:focus-within,
  .step-card:focus-within,
  .local-card:focus-within,
  .work-card:focus-within,
  .founder-card:focus-within,
  .home-router__company:focus-within,
  .button:hover,
  .cta-apelo:hover,
  .button.cta-apelo:hover,
  .hero-actions .cta-filete:first-child:hover,
  .page-hero .hero-actions .cta-filete:first-child:hover,
  .service-route-card:hover,
  .service-route-card:focus-within {
    transform: none;
  }
}
