/* ===========================================================
   ENCORE MUSIC EDUCATION — Shared Styles
   "School of Rock meets Suzuki" · dark, punchy, crafted
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Archivo+Black&family=Funnel+Display:wght@600;700;800&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  --bg: #131210;
  --bg-card: #1c1b18;
  --bg-elevated: #232120;
  --cream: #F0EBE0;
  --muted: #B5AFA2;
  --line: #2a2825;
  --line-2: #46423b;
  --red: #E63329;
  --blue: #2E5BD4;
  --gold: #D4A017;
  --maxw: 1300px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Archivo', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Ambient glow background ---------- */
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 15% 5%, rgba(230,51,41,0.10) 0%, transparent 30%),
    radial-gradient(circle at 85% 95%, rgba(46,91,212,0.10) 0%, transparent 30%);
}
.page-wrap { position: relative; z-index: 1; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(19,18,16,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Archivo Black', sans-serif; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--cream); text-transform: uppercase; text-decoration: none;
  display: flex; align-items: center; gap: 0.55rem;
}
.logo .mark { color: var(--red); }
.logo svg { display: block; }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  background: var(--red); color: #fff; border: none; padding: 0.7rem 1.4rem;
  font-family: 'Archivo', sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; border-radius: 2px;
  text-decoration: none; display: inline-block; transition: all 0.2s;
}
.nav-cta:hover { background: #fff; color: var(--bg); }

.nav-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn-pri, .btn-sec {
  font-family: 'Archivo', sans-serif; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; padding: 0.95rem 2.1rem; text-decoration: none;
  display: inline-block; transition: all 0.2s; text-align: center;
}
.btn-pri { background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn-pri:hover { background: transparent; }
.btn-sec { background: transparent; color: var(--cream); border: 2px solid var(--line-2); }
.btn-sec:hover { border-color: var(--cream); }

/* ---------- Generic layout ---------- */
.section { padding: 5rem 3rem; max-width: var(--maxw); margin: 0 auto; }
.section-sm { padding: 3.5rem 3rem; max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.8rem; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow .bar { width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }

h1.display {
  font-family: 'Funnel Display', sans-serif; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800;
  line-height: 1.0; letter-spacing: -0.02em; color: var(--cream);
}
h1.display .red { color: var(--red); }
h1.display .outline { color: transparent; -webkit-text-stroke: 2px var(--red); }

h2.title {
  font-family: 'Funnel Display', sans-serif; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--cream); line-height: 1.1;
}
h2.title .red { color: var(--red); }

.lead { font-size: 1.1rem; line-height: 1.65; color: var(--muted); font-weight: 500; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--line); padding: 2rem;
  position: relative; transition: all 0.2s; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.78rem; color: var(--gold); margin-bottom: 1.1rem;
}
.card-icon { width: 48px; height: 48px; margin-bottom: 1.1rem; display: flex; align-items: center; }
.card-icon svg { width: 100%; height: 100%; }
.card-name { font-family: 'Archivo', sans-serif; font-size: 1.15rem; font-weight: 800; margin-bottom: 0.55rem; }
.card-desc { font-size: 0.88rem; line-height: 1.6; color: var(--muted); font-weight: 500; margin-bottom: 1.1rem; }
.card-tag {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--line-2); padding: 0.3rem 0.7rem; display: inline-block;
}

/* ---------- Stat strip ---------- */
.strip { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-item { flex: 1; padding: 1.75rem 2rem; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: none; }
.strip-num { font-family: 'Funnel Display', sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--red); display: block; }
.strip-label {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.25rem; display: block;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 3rem 2rem; position: relative; z-index: 1; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 1rem;
}
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; color: var(--muted); font-size: 0.8rem;
  font-family: 'Spline Sans Mono', monospace;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 4.5rem 3rem 3rem; max-width: var(--maxw); margin: 0 auto; }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 620px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label {
  display: block; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--line-2); color: var(--cream);
  padding: 0.8rem 1rem; font-family: 'Archivo', sans-serif; font-size: 0.95rem; border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.full { grid-column: 1 / -1; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-panel {
  background: var(--bg-card); border: 1px solid var(--line); padding: 2.5rem; border-radius: 2px;
}
.check-list { list-style: none; }
.check-list li { padding: 0.6rem 0 0.6rem 1.75rem; position: relative; color: var(--cream); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '♪'; position: absolute; left: 0; color: var(--red); font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--bg); padding: 1.5rem; gap: 1.25rem; border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: transform 0.3s; align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .section, .section-sm, .page-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
  .grid-2, .grid-3, .grid-4, .split, .form-row { grid-template-columns: 1fr; }
  .strip { flex-wrap: wrap; }
  .strip-item { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
