/* =====================================================================
   SOCIAL DANCE UK - styles.css
   One stylesheet for the whole static site. Dark-first, editorial,
   restrained. Inspired by clean cultural-platform layouts (lots of
   whitespace, thin hairlines, strong hierarchy, sparing accents).
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:          #0B0B0D;            /* primary background */
  --bg-2:        #101015;            /* alternating section background */
  --surface:     #15151B;           /* card surface */
  --surface-2:   #1C1C24;           /* elevated / hover surface */
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.14);

  /* Text */
  --text:        #F3F1EC;           /* warm white */
  --text-soft:   #CBC9C3;
  --muted:       #8E8E97;           /* muted (>= 4.5:1 on --bg) */

  /* Accents (used sparingly) */
  --accent:      #D81E3F;           /* refined crimson */
  --accent-press:#B5152F;
  --accent-soft: rgba(216,30,63,0.12);
  --gold:        #C7A24C;           /* muted antique gold */
  --gold-soft:   rgba(199,162,76,0.13);
  --ring:        rgba(216,30,63,0.55);

  /* Effects */
  --shadow:      0 24px 64px rgba(0,0,0,0.45);
  --shadow-sm:   0 10px 30px rgba(0,0,0,0.35);
  --radius:      18px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  /* Layout */
  --maxw:        1180px;
  --gutter:      clamp(20px, 5vw, 44px);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Optional light mode */
:root[data-theme="light"] {
  --bg:        #F6F4EF;
  --bg-2:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F1EEE7;
  --border:    rgba(11,11,13,0.10);
  --border-2:  rgba(11,11,13,0.18);
  --text:      #15140F;
  --text-soft: #3C3A33;
  --muted:     #5E5C54;
  --accent-soft: rgba(216,30,63,0.10);
  --gold-soft: rgba(199,162,76,0.18);
  --shadow:    0 24px 64px rgba(20,18,12,0.12);
  --shadow-sm: 0 10px 30px rgba(20,18,12,0.08);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle ambient backdrop: faint radial warmth, very restrained */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, var(--gold-soft), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 460; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.display-em { color: var(--accent); font-style: italic; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- 4. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.85rem; }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: clamp(2.5rem, 6vw, 4rem); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text);
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
  min-height: 46px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--border-2); }
.btn--primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn--primary:hover { background: var(--accent-press); }
.btn--ghost { background: transparent; color: var(--text-soft); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold); }
.btn--sm { padding: 0.55rem 1.05rem; min-height: 38px; font-size: 0.82rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn--disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn i { font-style: normal; }

/* ---------- 6. Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.nav__logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; }
.nav__logo b { font-weight: 600; }
.nav__logo .mark { width: 30px; height: 30px; display: inline-grid; place-items: center; }
.nav__logo .mark svg { width: 100%; height: 100%; display: block; }
.nav__logo em { color: var(--accent); font-style: normal; }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: 0.9rem; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem; height: 1.5px;
  background: var(--accent); border-radius: 2px;
}
.nav__right { display: flex; align-items: center; gap: 0.6rem; }
.nav__icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; display: grid; place-items: center; color: var(--text-soft);
  transition: border-color .2s ease, color .2s ease;
}
.nav__icon-btn:hover { color: var(--text); border-color: var(--gold); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; }
.nav__toggle span { display: block; width: 18px; height: 1.6px; background: var(--text); margin: 4px auto; transition: transform .3s ease, opacity .3s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(4.5rem, 12vw, 8.5rem); overflow: hidden; }
.hero__inner { max-width: 52ch; }
.hero--center .hero__inner { max-width: 60ch; margin-inline: auto; text-align: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero__sub { color: var(--text-soft); font-size: clamp(1.05rem, 1.9vw, 1.28rem); max-width: 48ch; }
.hero--center .hero__sub { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero--center .hero__actions { justify-content: center; }
.hero__glow { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 360px at 70% 20%, var(--accent-soft), transparent 70%); }
.hero__media {
  margin-top: clamp(2.5rem, 6vw, 4rem); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16/7; background: var(--surface);
}

/* media placeholder (no real image needed) */
.media-ph {
  width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted);
  background:
    radial-gradient(420px 220px at 30% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(420px 260px at 80% 90%, var(--gold-soft), transparent 70%),
    var(--surface);
  font-size: 0.85rem; letter-spacing: 0.04em;
}

/* ---------- 8. Cards (generic) ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* tags / chips */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
}
.tag--accent { background: var(--accent-soft); color: #ff8fa3; border-color: transparent; }
.tag--gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }

.meta-line { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ---------- 9. Style discovery grid ---------- */
.styles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(0.9rem, 2vw, 1.3rem); }
.style {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s ease, border-color .3s ease;
  cursor: pointer; text-align: left; width: 100%;
}
.style:hover { transform: translateY(-4px); border-color: var(--gold); }
.style__name { font-family: var(--font-display); font-size: 1.35rem; }
.style__desc { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }
.style__foot { margin-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.style__go { color: var(--accent); font-weight: 600; font-size: 0.85rem; }
.style--locked { cursor: pointer; }
.style--locked .style__name, .style--locked .style__desc { opacity: 0.78; }
.lock-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid transparent;
  padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ---------- 10. Events + filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 0.45rem 0.85rem 0.45rem 0.95rem;
}
.filter label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.filter select { background: transparent; border: 0; color: var(--text); font: inherit; font-size: 0.86rem; padding-right: 0.2rem; }
.filter select:focus { outline: none; }
.filter select option { background: var(--surface); color: var(--text); }

.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: clamp(1rem, 2.2vw, 1.5rem); }
.event { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.event:hover { transform: translateY(-4px); border-color: var(--border-2); }
.event__top { padding: 1.1rem 1.3rem 0; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.event__day { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold); }
.event__body { padding: 0.6rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.event__name { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.35rem; }
.event__desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }
.event__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.events-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
.result-count { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.1rem; }

/* ---------- 11. Map section (static mock) ---------- */
.map { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); align-items: stretch; }
.map__canvas {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); min-height: 420px; overflow: hidden;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
}
.map__canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__dot { cursor: pointer; }
.map__pin {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center; cursor: pointer;
}
.map__pin .pin-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft); transition: transform .25s ease;
}
.map__pin:hover .pin-dot, .map__pin.is-active .pin-dot { transform: scale(1.35); box-shadow: 0 0 0 10px var(--accent-soft); }
.map__pin .pin-label { position: absolute; top: 16px; font-size: 0.72rem; color: var(--text-soft); white-space: nowrap; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border); }
.map__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; }
.map__panel h3 { margin-bottom: 0.25rem; }
.map__panel .panel-row { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.map__panel .panel-row:last-of-type { border-bottom: 0; }
.map__panel .panel-k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.map__panel .panel-v { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.15rem; }

/* ---------- 12. Teachers ---------- */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.teacher { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.teacher:hover { transform: translateY(-4px); border-color: var(--border-2); }
.teacher__img { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: var(--surface-2); }
.teacher__ph { aspect-ratio: 4/3; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--gold);
  background: radial-gradient(300px 200px at 30% 20%, var(--accent-soft), transparent 70%), var(--surface-2); }
.teacher__body { padding: 1.3rem 1.4rem 1.5rem; }
.teacher__name { font-family: var(--font-display); font-size: 1.35rem; }
.teacher__loc { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0 0.8rem; }
.teacher__bio { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 1rem; }
.badge-verified { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.35rem; }

/* ---------- 13. Packages (corporate) ---------- */
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2.2vw, 1.5rem); }
.pkg { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.pkg--feature { border-color: var(--gold); }
.pkg__name { font-family: var(--font-display); font-size: 1.4rem; }
.pkg__price { color: var(--gold); font-weight: 600; margin: 0.3rem 0 1rem; font-size: 0.95rem; }
.pkg__list { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.5rem 0 1.5rem; flex: 1; }
.pkg__list li { color: var(--text-soft); font-size: 0.92rem; padding-left: 1.4rem; position: relative; }
.pkg__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- 14. Universities ---------- */
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(0.8rem, 2vw, 1.2rem); }
.uni { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem 1.3rem; transition: border-color .3s ease, transform .3s ease; }
.uni:hover { border-color: var(--gold); transform: translateY(-3px); }
.uni__name { font-weight: 600; font-size: 1rem; }
.uni__note { color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }

/* ---------- 15. FAQ / accordion / glossary ---------- */
.faq { max-width: 760px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; text-align: left; background: transparent; border: 0; padding: 1.2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.02rem; color: var(--text); }
.faq__q .chev { transition: transform .3s ease; color: var(--muted); flex-shrink: 0; }
.faq__item.is-open .chev { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { color: var(--muted); font-size: 0.96rem; padding-bottom: 1.2rem; max-width: 65ch; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.glossary dt { font-weight: 600; color: var(--gold); font-size: 0.92rem; }
.glossary dd { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0 0; }

/* ---------- 16. Standards (safety) ---------- */
.standards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(0.9rem, 2vw, 1.3rem); }
.standard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.standard h4 { color: var(--text); margin-bottom: 0.4rem; }
.standard p { color: var(--muted); font-size: 0.92rem; }

/* roadmap steps */
.roadmap { counter-reset: step; display: grid; gap: 0.9rem; max-width: 760px; }
.roadmap li { counter-increment: step; position: relative; padding: 1.1rem 1.2rem 1.1rem 3.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-soft); }
.roadmap li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent-soft); color: #ff8fa3; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.roadmap li b { color: var(--text); }

/* ---------- 17. CTA band ---------- */
.cta-band { text-align: center; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); background:
  radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.8rem; }

/* coming-soon banner (locked pages) */
.coming-soon { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--gold); color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- 18. Modal (locked style preview) ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); }
.modal.is-open { display: flex; }
.modal__panel { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); max-width: 520px; width: 100%; padding: clamp(1.6rem, 4vw, 2.4rem); position: relative; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-soft); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.modal__panel h3 { margin: 0.5rem 0 0.3rem; }
.modal__panel .modal-meta { color: var(--gold); font-size: 0.8rem; margin-bottom: 1rem; }
.modal__panel p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- 19. Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 32ch; }
.footer h5 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.9rem; }
.footer__col a { display: block; color: var(--text-soft); font-size: 0.9rem; padding: 0.25rem 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--text); }
.footer__socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-soft); transition: color .2s ease, border-color .2s ease; }
.footer__socials a:hover { color: var(--gold); border-color: var(--gold); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; }

/* ---------- 20. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 920px) {
  .map { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1.2rem; transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__link { padding: 0.9rem 0.5rem; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav__link.is-active::after { display: none; }
  .nav__toggle { display: block; }
  /* On mobile the top-bar "Join Community" button folds into the menu (-> Support),
     keeping a clean logo + hamburger nav with no horizontal overflow at 360px. */
  .nav__right .btn--primary { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .event:hover, .style:hover, .teacher:hover { transform: none; }
}
