/* ==========================================================================
   Aliah · Design system compartilhado
   Tokens, base, layout, componentes (header, navegação, botões, cards,
   CTA, rodapé) e sistema de animações. Usado por todas as páginas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --navy: #071a2f;
  --navy-950: #04111f;
  --navy-800: #0b2340;
  --navy-700: #102d4d;
  --navy-600: #183a5e;
  --gold: #c9a45c;
  --gold-400: #d4b16d;
  --gold-300: #e3c88f;
  --gold-100: #f6eedc;
  --gold-700: #7a5c24;
  --white: #ffffff;

  /* Neutros */
  --paper: #f7f5f0;
  --paper-2: #efebe2;
  --ink: #0b1a2c;
  --ink-soft: #46566a;
  --ink-mute: #66717f;
  --mist: #aebbc9;
  --mist-2: #8a9bb0;
  --danger: #b42318;
  --success: #1f7a4a;

  /* Linhas */
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-strong: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(201, 164, 92, 0.28);
  --line-light: #e5e0d5;
  --line-light-strong: #d3cbb9;

  /* Tipografia */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia,
    "Times New Roman", serif;
  --fs-h1: clamp(2.75rem, 1.8rem + 4vw, 5rem);
  --fs-h2: clamp(2.25rem, 1.65rem + 2.4vw, 3.5rem);
  --fs-h2-sm: clamp(1.875rem, 1.45rem + 1.6vw, 2.625rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);

  /* Layout */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --container: 1240px;
  --section-y: clamp(4.5rem, 2.75rem + 6vw, 8.5rem);
  --header-h: 76px;

  /* Formas */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-sheet: clamp(22px, 3vw, 40px);
  --r-pill: 999px;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(7, 26, 47, 0.05), 0 4px 12px rgba(7, 26, 47, 0.03);
  --shadow-md: 0 2px 6px rgba(7, 26, 47, 0.05),
    0 24px 48px -20px rgba(7, 26, 47, 0.18);
  --shadow-dark: 0 30px 70px -24px rgba(0, 0, 0, 0.55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

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

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.on-light :focus-visible,
.section--paper :focus-visible {
  outline-color: var(--gold-700);
}

/* Ícones SVG (sprite inline, padrão Lucide: 24px, traço 1.5) */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  overflow: clip;
}

/* --------------------------------------------------------------------------
   3. Utilitários e layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  overflow: clip;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  translate: 0 -200%;
  transition: translate 0.3s var(--ease-out);
}

.skip-link:focus {
  translate: 0 0;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Seções claras em formato de "folha" sobre o fundo institucional */
.section--paper {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-sheet);
}

.section--dark {
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

/* Fundo decorativo: grade fina com máscara radial */
.bg-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 60% 40%,
    #000 10%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 60% 40%,
    #000 10%,
    transparent 75%
  );
}

.bg-glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 164, 92, 0.12) 0%,
    rgba(24, 58, 94, 0.35) 35%,
    transparent 68%
  );
}

/* --------------------------------------------------------------------------
   4. Tipografia
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.7;
}

.section--paper .eyebrow,
.on-light .eyebrow {
  color: var(--gold-700);
}

.title {
  margin: 0;
  font-variant-numeric: lining-nums;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.title--xl {
  font-size: var(--fs-h1);
  line-height: 1;
}

.title--lg {
  font-size: var(--fs-h2);
}

.title--md {
  font-size: var(--fs-h2-sm);
  line-height: 1.1;
}

.title em,
.title .accent {
  font-style: italic;
  color: var(--gold-300);
}

.section--paper .title em,
.section--paper .title .accent {
  color: var(--gold-700);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #e4eaf0;
}

.muted {
  color: var(--mist);
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head p {
  margin: 0;
  color: var(--mist);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section--paper .section-head p {
  color: var(--ink-soft);
}

.section-head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.eyebrow--center::after,
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  column-gap: clamp(32px, 6vw, 96px);
}

.section-head--split > :first-child {
  display: grid;
  gap: 20px;
}

/* Trilha de navegação */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--mist-2);
  font-size: 0.8125rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--mist);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--gold-300);
}

.breadcrumb [aria-current] {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Botões e links
   -------------------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  --btn-h: 52px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--btn-h);
  padding: 10px 22px 10px 26px;
  overflow: hidden;
  overflow: clip;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-align: center;
  transition: background-color 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft),
    box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 28px -12px rgba(201, 164, 92, 0.65);
}

/* Reflexo sutil que atravessa o botão no hover */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 75%
  );
  translate: -110% 0;
  transition: translate 0.9s var(--ease-out);
}

.btn--primary:hover {
  background: var(--gold-400);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 16px 36px -14px rgba(201, 164, 92, 0.8);
}

.btn--primary:hover::before {
  translate: 110% 0;
}

.btn--ghost {
  border-color: var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(201, 164, 92, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  border-color: var(--line-light-strong);
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--gold-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--sm {
  --btn-h: 42px;
  gap: 8px;
  padding: 8px 16px 8px 20px;
  font-size: 0.875rem;
}

.btn--sm .icon {
  width: 16px;
  height: 16px;
}

.btn--lg {
  --btn-h: 58px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  color: var(--gold-300);
  font-size: 0.9375rem;
  font-weight: 600;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 28px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.link-arrow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-out);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

.section--paper .link-arrow {
  color: var(--gold-700);
}

/* --------------------------------------------------------------------------
   6. Header e navegação
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft), translate 0.6s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(7, 26, 47, 0.78);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.header.is-hidden {
  translate: 0 -100%;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* Barra de progresso de leitura (CSS scroll-driven, sem JS) */
.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 40%, var(--gold-300));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .header__progress {
    animation: header-progress linear both;
    animation-timeline: scroll(root);
  }

  .header.is-scrolled .header__progress {
    opacity: 0.8;
  }
}

@keyframes header-progress {
  to {
    transform: scaleX(1);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 6px 4px 6px 0;
  border-radius: var(--r-sm);
}

.brand__mark {
  width: 46px;
  height: auto;
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.04);
}

.brand__divider {
  width: 1px;
  height: 30px;
  background: var(--line-gold);
}

.brand__wordmark {
  width: 116px;
  height: auto;
}

.nav {
  position: relative;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Indicador deslizante de hover (posicionado via JS) */
.nav__indicator {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  height: 40px;
  width: var(--ind-w, 0px);
  margin-top: -20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateX(var(--ind-x, 0px));
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out),
    opacity 0.3s;
  pointer-events: none;
}

.nav__indicator.is-active {
  opacity: 1;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.3s var(--ease-soft);
}

.nav__link:hover,
.nav__link[aria-expanded="true"],
.nav__link[aria-current="page"] {
  color: var(--white);
}

/* Indicador da página ativa */
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 164, 92, 0.8);
}

.nav__chevron {
  width: 14px;
  height: 14px;
  color: var(--gold);
  stroke-width: 2;
  transition: transform 0.45s var(--ease-out);
}

.nav__trigger[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.nav__item--cta {
  margin-left: 12px;
}

.nav__cta[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--navy), 0 0 0 1px var(--gold);
}

/* Dropdown (mega menu) */
.dropdown {
  position: absolute;
  top: calc(50% + 20px);
  right: 0;
  width: min(640px, calc(100vw - var(--gutter) * 2));
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: 70% 0;
  transition: opacity 0.3s var(--ease-soft), transform 0.45s var(--ease-out),
    visibility 0s linear 0.3s;
}

.nav__item--dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease-soft), transform 0.5s var(--ease-out),
    visibility 0s;
}

.dropdown__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0d2847, #0a2140);
  box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dropdown__col {
  padding: 22px 14px 16px;
}

.dropdown__col--aside {
  border-left: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
}

.dropdown__label {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--gold-300);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dropdown__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.35;
  opacity: 0;
  translate: 0 4px;
  transition: background-color 0.25s, color 0.25s, opacity 0.4s var(--ease-soft),
    translate 0.5s var(--ease-out);
  transition-delay: 0s, 0s, calc(var(--i, 0) * 18ms), calc(var(--i, 0) * 18ms);
}

.is-open .dropdown__link,
.is-open .dropdown__footer {
  opacity: 1;
  translate: 0 0;
}

.dropdown__link:hover,
.dropdown__link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.dropdown__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line-gold);
  border-radius: 9px;
  background: rgba(201, 164, 92, 0.06);
  color: var(--gold-300);
  transition: background-color 0.3s, color 0.3s;
}

.dropdown__icon .icon {
  width: 16px;
  height: 16px;
}

.dropdown__link:hover .dropdown__icon {
  background: var(--gold);
  color: var(--navy);
}

.dropdown__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 14px 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--gold-300);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  translate: 0 4px;
  transition: background-color 0.25s, opacity 0.4s var(--ease-soft) 0.2s,
    translate 0.5s var(--ease-out) 0.2s;
}

.dropdown__footer:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dropdown__footer .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-out);
}

.dropdown__footer:hover .icon {
  transform: translate(2px, -2px);
}

/* Botão do menu mobile */
.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line-dark-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  transition: border-color 0.3s, background-color 0.3s;
}

.nav-toggle:hover {
  border-color: var(--line-gold);
}

.nav-toggle__bar {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 2px;
  background: currentColor;
  transition: translate 0.5s var(--ease-out), rotate 0.5s var(--ease-out);
}

.nav-toggle__bar:first-child {
  translate: 0 -4px;
}

.nav-toggle__bar:last-child {
  translate: 0 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  translate: 0 0;
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  translate: 0 0;
  rotate: -45deg;
}

@media (max-width: 1080px) {
  .nav__link {
    padding: 0 12px;
  }

  .nav__item--cta {
    margin-left: 6px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-open .header {
    background: var(--navy);
    border-bottom-color: var(--line-dark);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-soft), transform 0.5s var(--ease-out),
      visibility 0s linear 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease-soft), transform 0.5s var(--ease-out),
      visibility 0s;
  }

  .nav__indicator {
    display: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item {
    border-bottom: 1px solid var(--line-dark);
    opacity: 0;
    translate: 0 14px;
    transition: opacity 0.5s var(--ease-soft), translate 0.7s var(--ease-out);
  }

  .nav.is-open .nav__item {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(var(--i, 0) * 60ms + 80ms);
  }

  .nav__link {
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 68px;
    padding: 0 4px;
    border-radius: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .nav__link[aria-current="page"]::after {
    left: auto;
    right: 6px;
    top: 50%;
    bottom: auto;
    margin: -3px 0 0;
    width: 6px;
    height: 6px;
  }

  .nav__chevron {
    width: 20px;
    height: 20px;
  }

  .nav__item--cta {
    margin: 28px 0 0;
    border-bottom: 0;
  }

  .nav__cta {
    width: 100%;
    --btn-h: 56px;
    font-size: 1rem;
  }

  /* Acordeão do dropdown no mobile */
  .dropdown {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: auto;
    padding: 0;
    opacity: 1;
    visibility: hidden;
    transform: none;
    transition: grid-template-rows 0.5s var(--ease-out), visibility 0s linear 0.5s;
  }

  .nav__item--dropdown.is-open .dropdown {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.5s var(--ease-out), visibility 0s;
  }

  .dropdown__panel {
    min-height: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .dropdown__col {
    padding: 4px 0 12px;
  }

  .dropdown__col--aside {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding-top: 16px;
    background: none;
  }

  .dropdown__label {
    padding: 0 4px;
  }

  .dropdown__link {
    min-height: 48px;
    padding: 8px 4px;
    font-size: 1rem;
  }

  .dropdown__footer {
    padding: 14px 4px 18px;
    min-height: 56px;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 10px;
  }

  .brand__mark {
    width: 40px;
  }

  .brand__wordmark {
    width: 100px;
  }
}

/* --------------------------------------------------------------------------
   7. Ícones em caixa e cards
   -------------------------------------------------------------------------- */
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(201, 164, 92, 0.32);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fbf7ee, var(--gold-100));
  color: var(--gold-700);
  transition: background 0.45s var(--ease-soft), color 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft), transform 0.6s var(--ease-out);
}

.icon-badge .icon {
  width: 22px;
  height: 22px;
}

.icon-badge--dark {
  border-color: var(--line-gold);
  background: rgba(201, 164, 92, 0.07);
  color: var(--gold-300);
}

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  overflow: clip;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.card,
.js .card[data-reveal] {
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out),
    border-color 0.45s var(--ease-soft),
    opacity 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    translate 0.9s var(--ease-out) var(--reveal-delay, 0ms);
}

/* Spotlight que acompanha o cursor (posição via JS) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(201, 164, 92, 0.12),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.card--link:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 92, 0.6);
  box-shadow: var(--shadow-md);
}

.card--link:hover .icon-badge {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--gold-300);
  transform: rotate(-6deg);
}

/* Ação circular com seta, usada em cards clicáveis */
.arrow-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line-light-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}

.arrow-chip .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease-out);
}

.card--link:hover .arrow-chip {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.card--link:hover .arrow-chip .icon {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   8. Emblema da marca (monograma com anéis)
   -------------------------------------------------------------------------- */
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.emblem__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
}

.emblem__ring--2 {
  inset: 11%;
  border-color: rgba(201, 164, 92, 0.18);
  border-style: dashed;
  animation: spin 140s linear infinite;
}

.emblem__ring--3 {
  inset: 22%;
  border: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(28, 64, 101, 0.95),
    rgba(9, 31, 56, 0.9) 60%,
    rgba(7, 26, 47, 0.8)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(201, 164, 92, 0.2), 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.emblem__orbit {
  position: absolute;
  inset: 0;
  animation: spin 46s linear infinite;
}

.emblem__orbit--reverse {
  inset: 11%;
  animation-duration: 70s;
  animation-direction: reverse;
}

.emblem__dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.14),
    0 0 20px 2px rgba(201, 164, 92, 0.55);
}

.emblem__orbit--reverse .emblem__dot {
  width: 5px;
  height: 5px;
  top: -2.5px;
  margin-left: -2.5px;
  background: var(--gold-300);
}

.emblem__glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.22), transparent 65%);
  filter: blur(24px);
  animation: breathe 9s var(--ease-in-out) infinite;
}

.emblem__mark {
  position: relative;
  width: 40%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.65;
    scale: 0.94;
  }
  50% {
    opacity: 1;
    scale: 1.04;
  }
}

/* --------------------------------------------------------------------------
   9. Chamada final (CTA)
   -------------------------------------------------------------------------- */
.cta {
  padding-block: var(--section-y);
}

.section--dark + .cta {
  padding-top: 0;
}

.cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 96px);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-xl);
  background: radial-gradient(
    120% 140% at 50% 0%,
    #16395c 0%,
    #0b2340 45%,
    #061529 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-dark);
  text-align: center;
}

.cta__panel::before,
.cta__panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: -1;
  width: 140%;
  aspect-ratio: 1;
  border: 1px solid rgba(201, 164, 92, 0.18);
  border-radius: 50%;
  translate: -50% -22%;
  pointer-events: none;
}

.cta__panel::after {
  width: 100%;
  translate: -50% -30%;
  border-color: rgba(201, 164, 92, 0.12);
  background: radial-gradient(circle at 50% 0%, rgba(201, 164, 92, 0.12), transparent 40%);
}

.cta__panel .bg-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
}

.cta__content {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 860px;
  margin-inline: auto;
}

.cta__content p {
  max-width: 640px;
  margin: 0;
  color: var(--mist);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.cta__content .btn-row {
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .cta__content .btn-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   10. Rodapé
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line-dark);
  background: var(--navy-950);
  color: var(--mist);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer__logo {
  display: inline-block;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
}

.footer__logo img {
  width: 168px;
  height: auto;
}

.footer__brand p {
  max-width: 280px;
  margin: 0;
  line-height: 1.7;
}

.footer__col h3 {
  margin: 0 0 18px;
  color: var(--gold-300);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer__col p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.footer__col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding-block: 4px;
  line-height: 1.4;
  transition: color 0.3s var(--ease-soft), translate 0.45s var(--ease-out);
}

.footer__col a:hover {
  color: var(--white);
  translate: 3px 0;
}

.footer__col a .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: var(--mist-2);
}

.footer__bottom p {
  margin: 0;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--mist);
  font-weight: 500;
  transition: color 0.3s;
}

.footer__top:hover {
  color: var(--gold-300);
}

.footer__top .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out);
}

.footer__top:hover .icon {
  transform: translateY(-3px);
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__col a {
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   11. Animações de entrada
   A classe .js é adicionada no <head>; sem JavaScript tudo fica visível.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  transition: opacity 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    translate 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    scale 0.9s var(--ease-out) var(--reveal-delay, 0ms);
}

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  translate: 0 28px;
}

.js [data-reveal="fade"]:not(.is-visible) {
  translate: none;
}

.js [data-reveal="scale"]:not(.is-visible) {
  translate: none;
  scale: 0.94;
}

/* Sequência de abertura das páginas (heros) */
.js [data-intro] {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out),
    scale 1.4s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 120ms);
}

.js [data-intro="scale"] {
  translate: none;
  scale: 0.92;
}

.is-ready [data-intro] {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Revelação palavra por palavra em títulos (palavras criadas via JS) */
.split-word {
  display: inline-block;
  overflow: hidden;
  overflow: clip;
  padding: 0 0.06em 0.12em;
  margin: 0 -0.06em -0.12em;
  vertical-align: top;
}

.split-word__inner {
  display: inline-block;
  translate: 0 110%;
  transition: translate 1.2s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 55ms + 160ms);
}

.is-ready .split-word__inner {
  translate: 0 0;
}

/* --------------------------------------------------------------------------
   12. Movimento reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal]:not(.is-visible),
  .js [data-intro] {
    opacity: 1;
    translate: none;
    scale: none;
  }

  .split-word__inner {
    translate: none;
  }
}
