/* ============================================================
   METACAMPO — Design System
   Identidade: marfim + dourado + cobre + cristal (pitch GoldenGlow)
   Tipografia: Cormorant Garamond (voz emocional, serif itálica)
               Jost (labels caixa-alta com tracking + corpo de texto)
   Escala de espaçamento fixa: 8 base → 16/24/40/64/96/144
   ============================================================ */

:root {
  /* Cor */
  --ivory: #faf7f1;
  --champagne: #f3ecdf;
  --sand: #e9dfcc;
  --gold: #b8892e;
  --gold-light: #d9b96a;
  --gold-deep: #96701f;
  --copper: #b87355;
  --ink: #2b2721;
  --ink-soft: #5c5341;
  --bronze: #8c7a5b;
  --white: #fffdf9;

  /* Tipo */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Century Gothic", -apple-system, sans-serif;

  /* Escala de espaço — NUNCA usar valores fora dela */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 96px; --s7: 144px;

  --maxw: 1200px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Tipografia ---------- */

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.em-serif { font-style: italic; color: var(--gold-deep); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38em;
}

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- Layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }

section { padding: var(--s6) 0; }
section.tight { padding: var(--s5) 0; }

.stack > * + * { margin-top: var(--s3); }
.stack-sm > * + * { margin-top: var(--s2); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: center;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }

.divider {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border: 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

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

/* ---------- Header ---------- */

header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: var(--s2) 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
header.site.scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(184, 137, 46, 0.18);
  padding: 10px 0;
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; mix-blend-mode: multiply; }
.brand span {
  font-family: var(--sans); font-weight: 400;
  letter-spacing: 0.28em; font-size: 15px; text-transform: uppercase;
}
.brand span b { font-weight: 400; color: var(--gold); }

nav.main { display: flex; gap: var(--s3); align-items: center; }
nav.main a {
  font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
nav.main a:hover, nav.main a.active { color: var(--gold-deep); border-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 26px; color: var(--ink); }

/* Header sobre hero escuro: texto claro até rolar */
header.site.over-dark:not(.scrolled) .brand span { color: var(--white); }
header.site.over-dark:not(.scrolled) .brand span b { color: var(--gold-light); }
header.site.over-dark:not(.scrolled) nav.main a { color: rgba(255, 253, 249, 0.8); }
header.site.over-dark:not(.scrolled) nav.main a:hover,
header.site.over-dark:not(.scrolled) nav.main a.active { color: var(--gold-light); }
header.site.over-dark:not(.scrolled) .nav-toggle { color: var(--white); }

/* ---------- Botões ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 2px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold {
  color: var(--white);
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-light));
  box-shadow: 0 8px 24px rgba(150, 112, 31, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(150, 112, 31, 0.36); }
.btn-ghost {
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  background: transparent;
}
.btn-ghost:hover { background: rgba(184, 137, 46, 0.08); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: var(--s7) 0 var(--s6);
}
.hero video, .hero .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero .veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(250,247,241,0) 0%, rgba(250,247,241,0.55) 68%, rgba(250,247,241,0.92) 100%),
    linear-gradient(180deg, rgba(250,247,241,0.78) 0%, rgba(250,247,241,0.48) 35%, rgba(250,247,241,0.5) 70%, var(--ivory) 100%);
}
.hero.dark .veil {
  background:
    linear-gradient(rgba(16,13,9,0.5), rgba(16,13,9,0.5)),
    radial-gradient(ellipse at 50% 45%, rgba(16,13,9,0.2) 0%, rgba(16,13,9,0.55) 70%, rgba(16,13,9,0.85) 100%),
    linear-gradient(180deg, rgba(16,13,9,0.7) 0%, rgba(16,13,9,0.25) 40%, rgba(16,13,9,0.5) 100%);
}
.hero .content { position: relative; z-index: 2; max-width: 880px; padding: 0 var(--s3); }
.hero.dark h1, .hero.dark .quote { color: var(--white); }
.hero.dark .lead { color: rgba(255, 253, 249, 0.85); }

/* ---------- Componentes ---------- */

.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.photo:hover img { transform: scale(1.03); }

.full-bleed { width: 100%; }
.full-bleed img { width: 100%; max-height: 70vh; object-fit: cover; }

.card {
  background: var(--white);
  border: 1px solid rgba(184, 137, 46, 0.2);
  border-radius: var(--radius);
  padding: var(--s4);
}

.num-item { display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); align-items: baseline; }
.num-item .n {
  font-family: var(--serif); font-style: italic;
  font-size: 1.9rem; color: var(--gold);
}
.num-item h3 { font-size: 1.25rem; }
.num-item p { color: var(--ink-soft); font-size: 15.5px; }

.section-champagne { background: var(--champagne); }
.section-dark {
  background: #17130d;
  color: rgba(255, 253, 249, 0.86);
}
.section-dark h2, .section-dark h3, .section-dark .quote { color: var(--white); }
.section-dark .lead, .section-dark p { color: rgba(255, 253, 249, 0.75); }

/* selo / chancela */
.chancela {
  display: flex; gap: var(--s5); align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.chancela .selo { text-align: center; max-width: 300px; }
.chancela img { height: 72px; margin: 0 auto var(--s2); mix-blend-mode: multiply; }

/* ---------- Condutores ---------- */

.condutor-card {
  display: grid; grid-template-columns: 380px 1fr;
  gap: var(--s5); align-items: center;
  background: var(--white);
  border: 1px solid rgba(184, 137, 46, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}
.condutor-card .foto {
  background: radial-gradient(ellipse at 50% 30%, var(--sand), var(--champagne));
  min-height: 420px; display: flex; align-items: flex-end; justify-content: center;
}
.condutor-card .foto img { max-height: 460px; width: auto; }
.condutor-card .info { padding: var(--s4) var(--s4) var(--s4) 0; }
.condutor-card .creds { list-style: none; margin: var(--s3) 0; }
.condutor-card .creds li {
  padding-left: 22px; position: relative;
  font-size: 15.5px; color: var(--ink-soft); margin-bottom: 10px;
}
.condutor-card .creds li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 1px; background: var(--gold);
}
.turma-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid rgba(184, 137, 46, 0.45);
  padding: 6px 14px; border-radius: 2px; margin-bottom: var(--s2);
}

/* ---------- FAQ ---------- */

details.faq {
  border-bottom: 1px solid rgba(184, 137, 46, 0.25);
  padding: var(--s3) 0;
}
details.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 1.4rem; transition: transform .3s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: var(--s2); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Footer ---------- */

footer.site {
  background: #17130d;
  color: rgba(255, 253, 249, 0.66);
  padding: var(--s6) 0 var(--s4);
  font-size: 14px;
}
footer.site .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--s4); margin-bottom: var(--s5);
}
footer.site h4 {
  font-family: var(--sans); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: var(--s2);
}
footer.site a { display: block; padding: 4px 0; transition: color .2s; }
footer.site a:hover { color: var(--gold-light); }
footer.site .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s2); }
footer.site .brandline img { height: 52px; filter: brightness(0) invert(0.92) sepia(0.3) saturate(2) hue-rotate(-15deg); }
footer.site .legal {
  border-top: 1px solid rgba(255, 253, 249, 0.12);
  padding-top: var(--s3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2);
  font-size: 12.5px; color: rgba(255, 253, 249, 0.4);
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1ebe5d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .grid-2, .grid-3, footer.site .cols { grid-template-columns: 1fr; }
  .grid-2 { gap: var(--s4); }
  .condutor-card { grid-template-columns: 1fr; }
  .condutor-card .info { padding: 0 var(--s3) var(--s4); }
  .condutor-card .foto { min-height: 320px; }
  .condutor-card .foto img { max-height: 360px; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ivory); padding: var(--s2) var(--s3) var(--s3);
    box-shadow: 0 12px 24px rgba(43, 39, 33, 0.12);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(184,137,46,0.15); }
  .nav-toggle { display: block; }
  section { padding: var(--s5) 0; }
}
