/* ============================================================
   CIDADE ZIGURATS — Design System v2 (futurista cinematográfico)
   Inspirado na cidade do zigurate dourado sob a Via Láctea:
   noite quente + ouro dominante + magenta/violeta + horizonte âmbar.
   Edite os tokens em :root para reskin.
   ============================================================ */
:root {
  --background: #0a0712;
  --surface: #140e22;
  --surface-2: #1d1535;
  --foreground: #f7f1ea;
  --muted: #b6abc9;
  --border: #2c2344;

  /* Acentos (espelham a imagem-referência) */
  --gold: #ffb547;
  --gold-soft: #ffd98a;
  --amber: #ff8a3c;
  --pink: #e25aa6;
  --violet: #9a6cff;

  /* Identidade única: dourada (espelha a foto da cidade). */
  --brand-gradient: linear-gradient(105deg, var(--gold-soft) 0%, var(--gold) 50%, var(--amber) 100%);
  --gold-gradient: linear-gradient(160deg, var(--gold-soft) 0%, var(--gold) 45%, var(--amber) 100%);

  --max-width: 1200px;
  --radius: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  /* Blindagem contra scroll horizontal no mobile (clip não quebra o sticky;
     hidden é fallback p/ navegadores antigos). */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
main { flex: 1; }
img { max-width: 100%; }
/* Quebra palavras muito longas em telas estreitas */
.hero__title, .hero__subtitle, .section__title, .section__lead,
.about__body, .card__title, .card__desc, .cta__title { overflow-wrap: break-word; }

/* Imagem de fundo do site inteiro (fixa). Overlay leve p/ a cidade
   aparecer, escurecendo na base p/ legibilidade do conteúdo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(10, 7, 18, 0.62), rgba(10, 7, 18, 0.74) 45%, rgba(10, 7, 18, 0.9)),
    url("/assets/img/hero-bg.webp") center / cover no-repeat;
}
/* No mobile usa recorte retrato centrado no zigurate */
@media (max-width: 700px) {
  body::before {
    background-image:
      linear-gradient(rgba(10, 7, 18, 0.55), rgba(10, 7, 18, 0.72) 45%, rgba(10, 7, 18, 0.9)),
      url("/assets/img/hero-bg-portrait.webp");
  }
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Cores util ---------- */
.c-gold { color: var(--gold); }
.c-violet { color: var(--violet); }
.c-amber { color: var(--amber); }
.c-pink { color: var(--pink); }

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.82rem 1.8rem;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn--brand {
  background: var(--gold-gradient);
  color: #2a1606;
  box-shadow: 0 10px 34px -12px rgba(255, 168, 64, 0.7);
}
.btn--brand:hover { transform: scale(1.03); box-shadow: 0 14px 44px -10px rgba(255, 168, 64, 0.9); }
.btn--ghost {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--border));
  color: var(--foreground);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--background) 78%, transparent);
  backdrop-filter: blur(12px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }

/* Botão hambúrguer (mobile) */
.header__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; cursor: pointer;
  color: var(--foreground); background: transparent;
  border: 1px solid var(--border); border-radius: 10px;
}
.header__toggle:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); }

/* Hambúrguer animado (3 barras -> X) */
.bars { position: relative; width: 22px; height: 16px; display: block; }
.bars i {
  position: absolute; left: 0; height: 2px; width: 100%; border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, top 0.3s ease;
}
.bars i:nth-child(1) { top: 0; }
.bars i:nth-child(2) { top: 7px; }
.bars i:nth-child(3) { top: 14px; }
.header__toggle[aria-expanded="true"] .bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.header__toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__toggle[aria-expanded="true"] .bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Nav: painel dropdown no mobile */
.header__nav {
  position: absolute; top: calc(100% + 1px); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.6rem 1.25rem 1.1rem;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.header__nav.is-open { opacity: 1; visibility: visible; transform: none; }
.header__nav a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s; padding: 0.65rem 0.25rem; }
.header__nav a:hover { color: var(--foreground); }
.header__nav-cta { margin-top: 0.6rem; text-align: center; color: #2a1606 !important; }

/* Entrada escalonada dos itens (apenas mobile) */
@media (max-width: 767.98px) {
  .header__nav a, .header__nav .btn {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .header__nav.is-open a, .header__nav.is-open .btn { opacity: 1; transform: none; }
  .header__nav.is-open a:nth-child(1) { transition-delay: 0.06s; }
  .header__nav.is-open a:nth-child(2) { transition-delay: 0.10s; }
  .header__nav.is-open a:nth-child(3) { transition-delay: 0.14s; }
  .header__nav.is-open a:nth-child(4) { transition-delay: 0.18s; }
  .header__nav.is-open .header__nav-cta { transition-delay: 0.22s; }
}

.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo__mark { height: 30px; width: auto; display: block; }
.logo__text { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.02em; }

/* ============================================================
   HERO CINEMATOGRÁFICO (cena vetorial: céu, zigurate, feixe)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
/* Scrim radial: escurece atrás do texto, deixando a cidade aparecer nas bordas */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(52% 40% at 50% 48%, rgba(10, 7, 18, 0.72), transparent 76%),
    linear-gradient(180deg, transparent 60%, rgba(10, 7, 18, 0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-block: 6rem;
  width: 100%;
}
.hero__eyebrow {
  margin: 0 0 1.25rem;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border));
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 999px; padding: 0.42rem 1.05rem;
  font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold-soft);
}
.hero__title {
  margin: 0; max-width: 60rem;
  font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 700; line-height: 1.03; letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.hero__highlight { display: block; margin-top: 0.5rem; font-size: clamp(1.7rem, 4vw, 3.2rem); font-weight: 600; }
.hero__subtitle {
  margin: 1.75rem 0 0; max-width: 42rem; font-size: 1.125rem; color: #e7dff0;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}
.hero__actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* Brilho dourado pulsante sobre o ápice do zigurate (acompanha a foto) */
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 6%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 138, 0.35), transparent 65%);
  animation: apexGlow 5s ease-in-out infinite;
}
@keyframes apexGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  .header__nav, .header__nav a, .header__nav .btn, .bars i { transition: none !important; }
}

/* ---------- Seções ---------- */
.section { padding-block: 6rem; }
.section + .section, .about, .pillars { border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.section__head { max-width: 40rem; margin-inline: auto; text-align: center; }
.section__title { margin: 0; font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.section__lead { margin: 1rem 0 0; font-size: 1.125rem; color: var(--muted); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }

/* ---------- Sobre + stats ---------- */
.about { padding-block: 6rem; position: relative; }
.about__grid { display: grid; gap: 3.5rem; align-items: center; }
.about__body { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 1.125rem; color: #cdc4dd; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.about__body p { margin: 0; }
.about .section__title { text-align: left; }

/* Retrato do fundador */
.about__figure {
  position: relative; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
  max-width: 420px; width: 100%;
}
.about__figure::before {
  content: ""; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.6;
}
.about__figure img {
  display: block; width: 100%; height: auto;
}
.about__figure figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.4rem 1.3rem;
  background: linear-gradient(transparent, rgba(8, 6, 14, 0.92));
  display: flex; flex-direction: column; gap: 0.15rem;
}
.about__figname { font-weight: 600; font-size: 1.02rem; }
.about__figrole { font-size: 0.8rem; color: var(--gold-soft); }

.about .stats { margin-top: 2.75rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat {
  position: relative; overflow: hidden; text-align: center;
  padding: 1.65rem 0.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(29, 21, 53, 0.72), rgba(16, 11, 28, 0.6));
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 1rem; right: 1rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5; transition: opacity 0.4s ease;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 22px 50px -28px rgba(255, 170, 64, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat:hover::before { opacity: 1; }
.stat__value { font-size: 1.95rem; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 0 24px rgba(255, 181, 71, 0.25); }
.stat__label { margin-top: 0.5rem; font-size: 0.72rem; color: var(--muted); }

/* ---------- Pilares (cards) ---------- */
.pillars__grid { margin-top: 3.5rem; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }

/* Card futurista (glass + borda em gradiente + brilho) */
.card {
  position: relative;
  isolation: isolate;
  padding: 1.85rem 1.65rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(29, 21, 53, 0.72), rgba(16, 11, 28, 0.6));
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
/* hairline superior em gradiente dourado */
.card::before {
  content: "";
  position: absolute; top: 0; left: 1.25rem; right: 1.25rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55; transition: opacity 0.4s ease;
}
/* brilho de canto que intensifica no hover */
.card::after {
  content: "";
  position: absolute; top: -50px; right: -50px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255, 181, 71, 0.2), transparent 70%);
  opacity: 0.45; transition: opacity 0.4s ease; pointer-events: none; z-index: -1;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  box-shadow: 0 26px 60px -28px rgba(255, 170, 64, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }

.card__index {
  position: absolute; top: 1.1rem; right: 1.3rem;
  font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 214, 138, 0.18);
  user-select: none;
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 1.35rem;
  border-radius: 15px; color: var(--gold);
  background: linear-gradient(160deg, rgba(255, 181, 71, 0.2), rgba(255, 138, 60, 0.05));
  border: 1px solid rgba(255, 181, 71, 0.28);
  box-shadow: 0 10px 26px -14px rgba(255, 170, 64, 0.7);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: translateY(-2px) scale(1.06); }
.card__title { margin: 0; font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.card__desc { margin: 0.55rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card, .card__icon, .stat { transition: none; }
  .card:hover, .stat:hover { transform: none; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border));
  background: #0c0918 url("/assets/img/hero-bg.webp") center 30% / cover no-repeat;
  border-radius: calc(var(--radius) * 1.6); padding: 4.5rem 2rem;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 75% at 50% 40%, rgba(10, 7, 18, 0.55), transparent 75%),
    linear-gradient(180deg, rgba(10, 7, 18, 0.86), rgba(10, 7, 18, 0.78)),
    radial-gradient(55% 70% at 50% -10%, rgba(255, 181, 71, 0.22), transparent 70%);
}
.cta > * { position: relative; }
.cta__title { margin: 0 auto; max-width: 36rem; font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 700; }
.cta__lead { margin: 1rem auto 0; max-width: 34rem; font-size: 1.125rem; color: var(--muted); }
.cta__actions { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.cta__address { margin-top: 1.75rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); padding-block: 3rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer__nav, .footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer__nav a, .footer__social a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer__nav a:hover, .footer__social a:hover { color: var(--foreground); }
.footer__copy { margin-top: 2rem; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
  .hero__actions, .cta__actions { flex-direction: row; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .header__toggle { display: none; }
  .header__nav {
    position: static; flex-direction: row; align-items: center; gap: 2rem;
    padding: 0; background: none; backdrop-filter: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .header__nav a { padding: 0; font-size: 0.9rem; }
  .header__nav-cta { margin-top: 0; padding: 0.5rem 1.2rem; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .pillars__grid { grid-template-columns: repeat(4, 1fr); }
}
