/* ============================================================
   GEAIA — site institucional. Direção D4 "Selo" (preto + ouro).
   Tokens: clientes/geaia/marca/cores/tokens.css (reaproveitados).
   Fontes self-host (woff2). Ouro é acento sobre escuro; nunca texto
   sobre fundo claro. Contraste WCAG AA/AAA (combinações do brand.json).
   ============================================================ */

/* ---------- @font-face (self-host, sem CDN) ---------- */
@font-face {
  font-family: "GEAIA Display";
  src: url("../fonts/geaia-archivo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GEAIA Display";
  src: url("../fonts/geaia-archivo-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GEAIA Sans";
  src: url("../fonts/geaia-inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GEAIA Sans";
  src: url("../fonts/geaia-inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- tokens (espelho de marca/cores/tokens.css) ---------- */
:root {
  --geaia-carvao:  #0B0E11;
  --geaia-grafite: #2A2F35;
  --geaia-ouro:    #C9A46B;
  --geaia-areia:   #E7E3D8;
  --geaia-branco:  #FAF8F4;
  --geaia-bronze:  #7D654E;

  --geaia-bg:          var(--geaia-carvao);
  --geaia-surface:     var(--geaia-grafite);
  --geaia-text:        var(--geaia-areia);
  --geaia-text-strong: var(--geaia-branco);
  --geaia-accent:      var(--geaia-ouro);
  --geaia-on-accent:   var(--geaia-carvao);

  --geaia-font-display: "GEAIA Display", "Archivo", system-ui, sans-serif;
  --geaia-font-body:    "GEAIA Sans", "Inter", system-ui, sans-serif;
  --geaia-tracking-display: 0.01em;

  /* superfícies derivadas */
  --surface-1: #14181D;   /* cartão sobre carvão, mais discreto que grafite */
  --hairline:  rgba(201,164,107,0.16);  /* fio ouro translúcido */
  --hairline-soft: rgba(231,227,216,0.10);
  --muted: rgba(231,227,216,0.68);

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 10vw, 128px);
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--geaia-bg);
  color: var(--geaia-text);
  font-family: var(--geaia-font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--geaia-font-display);
  color: var(--geaia-text-strong);
  letter-spacing: var(--geaia-tracking-display);
  line-height: 1.12;
  font-weight: 700;
  margin: 0;
}
p { margin: 0; }
::selection { background: var(--geaia-ouro); color: var(--geaia-carvao); }
:focus-visible { outline: 2px solid var(--geaia-ouro); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.eyebrow {
  font-family: var(--geaia-font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--geaia-ouro);
  margin-bottom: 18px;
}
.lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; }
.text-max { max-width: 62ch; }
.divider { height: 1px; background: var(--hairline-soft); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,17,0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); background: rgba(11,14,17,0.9); }
.nav {
  display: flex; align-items: center; gap: 24px;
  height: 74px;
}
.nav__logo { flex: 0 0 auto; }
.nav__logo svg, .nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 30px;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color .2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--geaia-text-strong); }
.nav__links a.is-active { color: var(--geaia-text-strong); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--geaia-ouro); border-radius: 2px;
}
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 1px solid var(--hairline);
  color: var(--geaia-text); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--geaia-font-body);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--geaia-ouro);
  color: var(--geaia-carvao);   /* texto carvão sobre ouro — regra do brand */
  font-weight: 500;
}
.btn--primary:hover { background: #d8b57e; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--geaia-text-strong);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--geaia-ouro); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grafismo {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(680px, 60vw); opacity: 0.05; pointer-events: none;
  filter: saturate(120%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { padding-block: clamp(72px, 12vw, 148px); max-width: 20ch; }
.hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 4.6vw, 4.4rem);
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero .lead { max-width: 54ch; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- generic section heading ---------- */
.sec-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); margin-bottom: 20px; }
.sec-head p { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); }

/* prose blocks */
.prose p + p { margin-top: 20px; }
.prose p { color: var(--muted); max-width: 68ch; }

/* ---------- problema (destaque emocional) ---------- */
.problema { background: linear-gradient(180deg, var(--geaia-carvao), #0d1116); }
.problema .kicker {
  font-family: var(--geaia-font-display); font-weight: 700;
  color: var(--geaia-text-strong);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  margin-top: 34px;
  padding-left: 22px;
  border-left: 2px solid var(--geaia-ouro);
}

/* ---------- virada: bullets "na prática" ---------- */
.check-list { display: grid; gap: 16px; margin-top: 36px; max-width: 72ch; }
.check-list li {
  position: relative; padding-left: 38px;
  color: var(--geaia-text);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(201,164,107,0.12);
  border: 1px solid var(--hairline);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C9A46B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: border-color .25s ease, transform .25s ease;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--muted); }
a.card:hover { border-color: var(--hairline); transform: translateY(-3px); }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; color: var(--geaia-ouro); font-weight: 500; font-size: 0.95rem;
}
.card__arrow { transition: transform .2s ease; }
a.card:hover .card__arrow { transform: translateX(4px); }

/* ---------- steps (como começa) ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { padding-top: 26px; border-top: 1px solid var(--hairline); }
.step__num {
  font-family: var(--geaia-font-display); font-weight: 700;
  color: var(--geaia-ouro); font-size: 1.5rem; margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- prova / CTA band ---------- */
.band {
  background: var(--geaia-grafite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 72px);
}
.band h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem); max-width: 22ch; margin-bottom: 20px; }
.band p { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }

/* ---------- service page ---------- */
.svc-hero .eyebrow { margin-bottom: 22px; }
.svc-hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); max-width: 18ch; margin-bottom: 24px; }
.svc-hero .lead { max-width: 58ch; }
.entrega-list { display: grid; gap: 14px; margin-top: 8px; max-width: 74ch; }
.entrega-list li {
  position: relative; padding: 18px 20px 18px 52px;
  background: var(--surface-1);
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  color: var(--geaia-text);
}
.entrega-list li::before {
  content: ""; position: absolute; left: 20px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--geaia-ouro);
  box-shadow: 0 0 0 4px rgba(201,164,107,0.14);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: #090C0F;
  padding-block: clamp(48px, 7vw, 80px);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer__logo svg, .footer__logo img { height: 30px; width: auto; margin-bottom: 22px; }
.footer__sig { color: var(--geaia-text-strong); font-family: var(--geaia-font-display); font-weight: 600; font-size: 1.02rem; max-width: 40ch; }
.footer__essence { color: var(--muted); margin-top: 10px; max-width: 42ch; }
.footer__nav { display: grid; gap: 12px; }
.footer__nav a { color: var(--muted); font-size: 0.95rem; }
.footer__nav a:hover { color: var(--geaia-text-strong); }
.footer__label { font-family: var(--geaia-font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--geaia-ouro); margin-bottom: 6px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 26px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--muted); font-size: 0.85rem;
}

/* ---------- contato ---------- */
.contato-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .two-col, .footer__grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }

  .site-header.nav-open .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(11,14,17,0.98);
    border-bottom: 1px solid var(--hairline);
    padding: 12px var(--gutter) 24px;
  }
  .site-header.nav-open .nav__links a { padding: 12px 0; width: 100%; }
  .site-header.nav-open .nav__links a.is-active::after { display: none; }
  .site-header.nav-open .nav__cta { display: block; margin: 12px 0 0; }
  .site-header.nav-open .nav__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
