:root {
  /* Brand palette (VoiceTrails — Variant C · Purple/Gold) */
  --cream: #F5F3EE;        /* light page / features background */
  --card: #ffffff;         /* card + light header surface */
  --purple: #4A3A6A;       /* brand, buttons, badges, stats block */
  --purple-deep-1: #2E2450; /* hero overlay top */
  --purple-deep-2: #1A1330; /* hero overlay bottom / fallback */
  --gold: #C9A24B;         /* accents, numbers, h1 second line, closing */
  --ink: #201B2E;          /* headings / body text on light */
  --muted: #6B6478;        /* secondary text on light */
  --hero-sub: #E8E4F0;     /* hero subtitle */
  --stat-label: #D8D2E4;   /* labels on the purple stats block */
  --card-shadow: 0 8px 24px rgba(32, 27, 46, 0.08);

  /* Footer (dark ink-purple) */
  --footer-bg: #241D38;
  --footer-muted: #A79FBB;
  --divider: rgba(255, 255, 255, 0.12);

  /* Light (prose) pages */
  --bg: #F5F3EE;
  --fg: #201B2E;
  --prose-muted: #6B6478;
  --link: #4A3A6A;
  --border: #e4e0d8;

  --max: 1200px;
  --prose-max: 1080px;

  --font-display: "Anton", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

body.home { background: var(--cream); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Shared layout wrappers */
.container {
  max-width: var(--prose-max);
  margin: 0 auto;
  padding: 0 20px;
}
.block-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-block;
  background: var(--purple);
  color: #ffffff;
  padding: 15px 32px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #3d3057; text-decoration: none; color: #ffffff; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
/* Gold CTA — used for the single hero button */
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #bb9440; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  box-shadow: 0 1px 0 var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: var(--max);
  padding: 0 32px;
}
.brand {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--purple);
}
.brand:hover { text-decoration: none; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
}
.nav a:hover { color: var(--purple); text-decoration: none; }
.nav a.btn { color: #ffffff; }
.nav a.btn:hover { color: #ffffff; }

/* Homepage: transparent header floating over the hero (light text over the purple overlay) */
body.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
}
body.home .brand { color: #ffffff; }
body.home .nav a { color: var(--hero-sub); }
body.home .nav a:hover { color: #ffffff; }
body.home .nav a.btn,
body.home .nav a.btn:hover { color: #ffffff; }
body.home .nav-toggle span { background: #ffffff; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 20px 110px;
  /* Fallback purple gradient shows if the photo fails to load */
  background: linear-gradient(160deg, var(--purple-deep-1) 0%, var(--purple-deep-2) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/hero-city.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 36, 80, 0.5) 0%, rgba(26, 19, 48, 0.95) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: #ffffff;
}
.hero h1 .accent { color: var(--gold); display: block; }
.hero__sub {
  margin: 0;
  color: var(--hero-sub);
  font-size: 18px;
  line-height: 1.5;
  max-width: 600px;
}

/* ---------- Features (cream, white cards) ---------- */
.features {
  background: var(--cream);
  padding: 72px 0;
}
.feature {
  text-align: left;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.feature .badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature .badge svg { width: 24px; height: 24px; display: block; }
.feature h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Stats (purple) ---------- */
.stats {
  background: var(--purple);
  padding: 52px 0;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 54px);
  line-height: 1;
  color: var(--gold);
}
.stat .label {
  margin-top: 6px;
  color: var(--stat-label);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Closing (gold) ---------- */
.closing {
  background: var(--gold);
  text-align: center;
  padding: 72px 32px;
}
.closing h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  color: var(--ink);
}

/* ---------- Footer (dark ink-purple) ---------- */
.site-footer {
  background: var(--footer-bg);
  padding: 56px 0;
  color: var(--footer-muted);
}
.site-footer .block-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-row {
  display: flex;
  gap: 56px;
}
.footer-col { flex: 1 1 0; }
.site-footer .brand { color: var(--cream); }
.footer-brand .brand {
  font-size: 30px;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-brand .tag {
  margin: 0;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
}
.footer-col h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-col p {
  margin: 0 0 10px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer-col a.email {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}
.footer-col a.email:hover { color: var(--gold); }
.footer-col a.site-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}
.footer-divider {
  height: 1px;
  background: var(--divider);
  width: 100%;
}
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-legal .copy { color: var(--footer-muted); font-size: 13px; }
.footer-legal .links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-legal .links a { color: var(--footer-muted); font-size: 13px; }
.footer-legal .links a:hover { color: #ffffff; }
.footer-legal .links .sep { color: var(--footer-muted); font-size: 13px; opacity: 0.6; }

/* ---------- Prose (legal / about) ---------- */
.section { padding: 64px 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; margin-bottom: 8px; color: var(--ink); }
.prose h2 { font-size: 1.4rem; margin-top: 36px; color: var(--ink); }
.prose p { color: var(--fg); }
.prose a { color: var(--purple); font-weight: 600; }
.prose a:hover { color: var(--gold); }
.prose .updated { color: var(--prose-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .four-col { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-row { flex-wrap: wrap; gap: 32px; }
  .footer-col { flex: 1 1 40%; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(32, 27, 46, 0.18);
    padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 16px;
    color: var(--ink);
  }
  .nav a:first-child { border-top: none; }
  .nav a:hover { color: var(--purple); }
  .nav a.btn {
    margin-top: 12px;
    text-align: center;
    border-top: none;
    color: #ffffff;
  }
  /* Even over the hero, the open mobile menu is a solid light panel */
  body.home .nav {
    background: var(--card);
    border-top: 1px solid var(--border);
  }
  body.home .nav a { color: var(--ink); }
  body.home .nav a:hover { color: var(--purple); }
  body.home .nav a.btn { color: #ffffff; }
}

@media (max-width: 600px) {
  .four-col { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 540px; padding: 130px 20px 90px; }
  .hero__sub { font-size: 16px; }
  .footer-row { flex-direction: column; gap: 28px; }
  .footer-col { flex: 1 1 auto; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .block-inner { padding: 0 22px; }
}
