/* ============================================================
   Mountain Peak Athletics — Brand: Deep Purple + Gold
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1.25rem; --radius-full: 9999px;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;

  --font-display: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-script: 'Caveat', cursive;
}

/* LIGHT MODE */
:root, [data-theme="light"] {
  --color-bg: #faf8fc;
  --color-surface: #ffffff;
  --color-surface-2: #f4eefa;
  --color-surface-offset: #efe6f6;
  --color-border: #e3d6ef;
  --color-divider: #ece2f4;

  --color-text: #2a1840;
  --color-text-muted: #6b5b7e;
  --color-text-faint: #a99bb8;
  --color-text-inverse: #faf8fc;

  /* Purple primary */
  --color-primary: #5b2a86;
  --color-primary-hover: #4a1f70;
  --color-primary-active: #38155a;
  --color-primary-soft: #ede3f6;
  --color-primary-deep: #2e1248;

  /* Gold accent */
  --color-gold: #d89018;
  --color-gold-hover: #c07d10;
  --color-gold-soft: #f8edd6;

  --shadow-sm: 0 1px 2px rgba(46, 18, 72, 0.08);
  --shadow-md: 0 6px 20px rgba(46, 18, 72, 0.10);
  --shadow-lg: 0 18px 48px rgba(46, 18, 72, 0.16);
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg: #160d22;
  --color-surface: #1e1330;
  --color-surface-2: #251838;
  --color-surface-offset: #2c1d44;
  --color-border: #3a2857;
  --color-divider: #2c1d44;

  --color-text: #ece4f5;
  --color-text-muted: #b3a3c7;
  --color-text-faint: #7c6c92;
  --color-text-inverse: #160d22;

  --color-primary: #b98fe0;
  --color-primary-hover: #cba6ec;
  --color-primary-active: #d9bcf3;
  --color-primary-soft: #2c1d44;
  --color-primary-deep: #d9bcf3;

  --color-gold: #f0b948;
  --color-gold-hover: #f6cc70;
  --color-gold-soft: #3a2c12;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #160d22; --color-surface: #1e1330; --color-surface-2: #251838;
    --color-surface-offset: #2c1d44; --color-border: #3a2857; --color-divider: #2c1d44;
    --color-text: #ece4f5; --color-text-muted: #b3a3c7; --color-text-faint: #7c6c92;
    --color-text-inverse: #160d22; --color-primary: #b98fe0; --color-primary-hover: #cba6ec;
    --color-primary-active: #d9bcf3; --color-primary-soft: #2c1d44; --color-primary-deep: #d9bcf3;
    --color-gold: #f0b948; --color-gold-hover: #f6cc70; --color-gold-soft: #3a2c12;
  }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 6rem;
  text-size-adjust: none;
}
body {
  min-height: 100dvh; line-height: 1.6; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--color-text); background: var(--color-bg);
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
::selection { background: rgba(91,42,134,0.22); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, textarea, select {
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Layout ===== */
.wrap { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: clamp(var(--space-4), 5vw, var(--space-12)); }
.wrap-narrow { max-width: var(--content-default); }
section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--color-gold); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-xl); margin-top: var(--space-3); }
.section-head p { color: var(--color-text-muted); margin-top: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.google-rating { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-5); padding: 8px 16px; border-radius: var(--radius-full, 999px); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); text-decoration: none; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.google-rating:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.google-rating .stars { color: var(--color-gold); letter-spacing: 1px; }
.google-rating strong { color: var(--color-text); font-family: var(--font-display); }
.google-rating .google-rating-link { color: var(--color-primary); font-size: var(--text-sm); font-weight: 700; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--color-primary); letter-spacing: -0.01em; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gold); font-weight: 700; margin-top: 2px; }
[data-theme="dark"] .brand img { filter: brightness(1.15); }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
}
.nav a:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.nav a[aria-current="page"] { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--color-border); place-items: center; color: var(--color-text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn-primary { color: var(--color-primary-deep); }
.btn-gold { background: var(--color-gold); color: #3a2208; }
.btn-gold:hover { background: var(--color-gold-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1.5px solid var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding-block: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(var(--space-8), 5vw, var(--space-20)); min-height: min(86vh, 760px); padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.hero-copy .eyebrow { margin-bottom: var(--space-5); }
.hero h1 { font-size: var(--text-3xl); line-height: 0.98; }
.hero h1 .gold { color: var(--color-gold); }
.hero h1 .purple { color: var(--color-primary); }
.hero-lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-top: var(--space-6); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.hero-stats { display: flex; gap: clamp(var(--space-6), 4vw, var(--space-12)); margin-top: var(--space-12); flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-primary); }
.hero-stats .stat span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); font-weight: 700; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: var(--space-3); max-width: 240px;
}
.hero-badge .dot { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-gold-soft); display: grid; place-items: center; color: var(--color-gold); flex-shrink: 0; }
.hero-badge p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.4; }
.hero-badge strong { display: block; color: var(--color-text); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 2px; }
.hero-peaks { position: absolute; inset-inline: 0; bottom: 0; opacity: 0.5; pointer-events: none; color: var(--color-primary-soft); }

/* ===== Cards / programs ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary-soft); }
.card .icon { width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; margin-bottom: var(--space-2); }
.card h3 { font-size: var(--text-lg); }
.card .age { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gold); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card .tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); }
.tag { font-size: var(--text-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text-muted); }

/* ===== Split feature ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
.split.split-top { align-items: start; }
.split.split-top .split-media { position: sticky; top: var(--space-12); }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; }
.split h2 { font-size: var(--text-xl); }
.split p { color: var(--color-text-muted); margin-top: var(--space-4); }
.check-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.check-list svg { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }

/* ===== Band (purple full bleed) ===== */
.band { background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary)); color: #fff; position: relative; overflow: hidden; }
.band .eyebrow { color: var(--color-gold); }
.band h2 { font-size: var(--text-2xl); }
.band p { color: rgba(255,255,255,0.82); }
.band .card h3, .card.reveal h3 { color: var(--color-text); }
.band .card p, .band .card.reveal p { color: var(--color-text-muted); }
.band .form-card { color: var(--color-text); }
.band .form-card h3 { color: var(--color-text); }
.band .form-card label, .band .form-card .field label { color: var(--color-text); }
.band .form-card p { color: var(--color-text-faint); }
[data-theme="dark"] .band { background: linear-gradient(135deg, #2a1640, #3d2160); }

/* ===== Testimonials ===== */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.quote { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); }
.quote .stars { color: var(--color-gold); display: flex; gap: 2px; margin-bottom: var(--space-4); }
.quote blockquote { font-size: var(--text-base); line-height: 1.6; }
.quote .who { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.quote .avatar { width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.quote .who strong { display: block; font-size: var(--text-sm); }
.quote .who span { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ===== Final CTA ===== */
.cta-final { text-align: center; }
.cta-final h2 { font-size: var(--text-2xl); }
.cta-final p { color: var(--color-text-muted); max-width: 48ch; margin: var(--space-4) auto var(--space-8); }
.cta-row { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { background: var(--color-primary-deep); color: rgba(255,255,255,0.85); padding-block: var(--space-20) var(--space-8); }
[data-theme="dark"] .footer { background: #110a1c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-10); }
.footer img.flogo { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: var(--space-4); }
.footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-4); font-family: var(--font-body); font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer a:hover { color: var(--color-gold); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-5); }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.22); color: #fff; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.footer-social a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-primary-deep); transform: translateY(-2px); }
.footer .muted { font-size: var(--text-sm); color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: var(--space-16); padding-top: var(--space-6); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: rgba(255,255,255,0.6); }
.footer-bottom a { color: var(--color-gold); }

/* ===== Page hero (interior) ===== */
.page-hero { background: var(--color-surface-2); border-bottom: 1px solid var(--color-divider); padding-block: clamp(var(--space-16), 8vw, var(--space-24)); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: var(--text-2xl); margin-top: var(--space-3); }
.page-hero p { color: var(--color-text-muted); max-width: 56ch; margin: var(--space-4) auto 0; }

/* ===== Gallery ===== */
.gallery { columns: 3; column-gap: var(--space-4); }
.gallery img { width: 100%; margin-bottom: var(--space-4); border-radius: var(--radius-lg); break-inside: avoid; box-shadow: var(--shadow-sm); }
.gallery img:hover { box-shadow: var(--shadow-md); }

/* ===== Schedule / events ===== */
.event-list { display: flex; flex-direction: column; gap: var(--space-4); }
.event {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-6);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6);
}
.event:hover { border-color: var(--color-primary-soft); box-shadow: var(--shadow-sm); }
.event .date { text-align: center; min-width: 64px; }
.event .date .m { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); }
.event .date .d { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-primary); line-height: 1; }
.event h3 { font-size: var(--text-base); }
.event .meta { font-size: var(--text-sm); color: var(--color-text-muted); }
.event .badge { font-size: var(--text-xs); font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); background: var(--color-gold-soft); color: var(--color-gold-hover); }

/* ===== Coaches ===== */
.coach { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.coach img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.coach .body { padding: var(--space-6); }
.coach h3 { font-size: var(--text-lg); }
.coach .role { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); }
.coach p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }

/* ===== Shop ===== */
.shop-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.shop-item .ph { aspect-ratio: 1; background: linear-gradient(135deg, var(--color-primary-soft), var(--color-gold-soft)); display: grid; place-items: center; color: var(--color-primary); }
.shop-item .body { padding: var(--space-5); }
.shop-item h3 { font-size: var(--text-base); }
.shop-item .price { color: var(--color-gold-hover); font-weight: 700; font-family: var(--font-display); }

/* ===== Form ===== */
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: var(--color-bg); font-size: var(--text-sm);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--color-primary); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.info-list { display: flex; flex-direction: column; gap: var(--space-5); }
.info-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.info-item .ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; flex-shrink: 0; }
.info-item strong { display: block; font-family: var(--font-display); }
.info-item span, .info-item a { color: var(--color-text-muted); font-size: var(--text-sm); }
.info-item a:hover { color: var(--color-primary); }
.form-success { display: none; background: var(--color-primary-soft); color: var(--color-primary); border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.form-success.show { display: block; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .split, .split.reverse .split-media { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: var(--space-4);
    gap: var(--space-1); box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: var(--space-3); }
  .menu-btn { display: grid; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .event { grid-template-columns: auto 1fr; }
  .event .badge { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

/* ===== Sessions & Camps Calendar ===== */
.cal-wrap { max-width: 920px; margin-inline: auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; margin-bottom: var(--space-8); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-muted); }
.cal-legend i { width: 14px; height: 14px; border-radius: var(--radius-full); display: inline-block; }
.cal-legend .lg-class { background: var(--color-primary); }
.cal-legend .lg-camp { background: var(--color-gold); }

#mpa-calendar { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-4), 3vw, var(--space-7)); box-shadow: var(--shadow-sm); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.cal-nav { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.cal-nav:hover:not(:disabled) { background: var(--color-primary-soft); transform: translateY(-1px); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-title { text-align: center; line-height: 1.3; }
.cal-title strong { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text); display: block; }
.cal-sess { font-size: var(--text-xs); color: var(--color-primary); font-weight: 600; letter-spacing: .02em; }
.cal-sess-off { color: var(--color-text-faint); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { margin-bottom: 6px; }
.cal-dow { text-align: center; font-size: var(--text-xs); font-weight: 700; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.cal-cell { position: relative; min-height: 76px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); padding: 6px; text-align: left; font: inherit; cursor: default; display: flex; flex-direction: column; gap: 3px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .12s; }
.cal-empty { border: none; background: transparent; min-height: 0; }
.cal-cell.weekend { background: var(--color-surface-2); }
.cal-cell.has { cursor: pointer; border-color: var(--color-primary-soft); }
.cal-cell.has:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cal-cell.sel { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-soft); }
.cal-num { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.cal-cell.weekend .cal-num { color: var(--color-text-faint); }
.cal-camp-tag { font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--color-gold-hover); background: var(--color-gold-soft); border-radius: var(--radius-sm); padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-camp-tag.multi { opacity: .92; }
.cal-class-tag { font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--color-primary); background: var(--color-primary-soft); border-radius: var(--radius-sm); padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-dots { display: flex; gap: 3px; margin-top: auto; }
.cal-dot { width: 7px; height: 7px; border-radius: var(--radius-full); }
.cal-dot-class { background: var(--color-primary); }
.cal-dot-camp { background: var(--color-gold); }

.cal-detail { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.cal-detail-head strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); }
.cal-detail-group { margin-top: var(--space-4); }
.cal-tagpill { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 2px 10px; border-radius: var(--radius-full); margin-bottom: var(--space-3); }
.cal-tagpill.camp { background: var(--color-gold-soft); color: var(--color-gold-hover); }
.cal-tagpill.cls { background: var(--color-primary-soft); color: var(--color-primary); }
.cal-detail-group ul { display: flex; flex-direction: column; gap: 8px; }
.cal-detail-group li { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); border-bottom: 1px dashed var(--color-border); padding-bottom: 8px; }
.cal-detail-group li:last-child { border-bottom: none; padding-bottom: 0; }
.cal-detail-group li strong { color: var(--color-text); font-weight: 600; }
.cal-detail-group li span { color: var(--color-text-muted); text-align: right; white-space: nowrap; }

@media (max-width: 640px) {
  .cal-cell { min-height: 58px; padding: 4px; }
  .cal-camp-tag, .cal-class-tag { font-size: 9px; padding: 1px 3px; }
  .cal-num { font-size: var(--text-xs); }
  .cal-grid { gap: 4px; }
  .cal-detail-group li { flex-direction: column; gap: 2px; }
  .cal-detail-group li span { text-align: left; white-space: normal; }
}

/* ===== Blog ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.post-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface-2); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card-date {
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-gold); text-transform: uppercase; letter-spacing: .04em;
}
.post-card-body h3 { font-size: var(--text-lg); line-height: 1.25; margin: var(--space-1) 0; }
.post-card-body p { color: var(--color-text-muted); margin: 0; flex: 1; }
.post-card-link { font-weight: 600; color: var(--color-primary); margin-top: var(--space-3); }

/* ===== Single post ===== */
.page-hero .post-back,
.page-hero .post-meta { text-align: center; }
.post-back {
  display: inline-block; margin-bottom: var(--space-4);
  font-weight: 600; color: var(--color-primary); text-decoration: none;
}
.post-back:hover { text-decoration: underline; }
.post-meta { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-3) !important; }
.post-wrap { max-width: 760px; }
.post-cover {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  margin-bottom: var(--space-10); display: block;
}
.post-body { color: var(--color-text); }
.post-body h2 { font-size: var(--text-xl); margin: var(--space-10) 0 var(--space-4); }
.post-body h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); }
.post-body p { line-height: 1.75; margin-bottom: var(--space-5); color: var(--color-text-muted); }
.post-body a { color: var(--color-primary); font-weight: 600; }
.post-body a:hover { text-decoration: underline; }
.post-body .post-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.post-body .post-list li {
  position: relative; padding-left: var(--space-6); line-height: 1.6; color: var(--color-text-muted);
}
.post-body .post-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-gold);
}
.post-body strong { color: var(--color-text); font-weight: 700; }
.post-back-bottom {
  display: inline-block; margin-top: var(--space-10);
  font-weight: 600; color: var(--color-primary); text-decoration: none;
}
.post-back-bottom:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ===== Coaches ===== */
.coach-grid { display: flex; flex-direction: column; gap: var(--space-12); }
.coach-card {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--space-10);
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.coach-card:nth-child(even) { grid-template-columns: 1fr 300px; }
.coach-card:nth-child(even) .coach-photo { order: 2; }
.coach-photo {
  aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface-2); box-shadow: var(--shadow-sm);
}
.coach-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-body h2 { font-size: var(--text-xl); margin: 0; }
.coach-title {
  color: var(--color-gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: var(--text-sm);
  margin: var(--space-2) 0 var(--space-5) !important;
}
.coach-body p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.coach-body p:last-child { margin-bottom: 0; }

.coach-cta {
  text-align: center; margin-top: var(--space-20);
  background: var(--color-surface-2); border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl); padding: var(--space-12) var(--space-8);
}
.coach-cta h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.coach-cta p { color: var(--color-text-muted); margin-bottom: var(--space-6); }

@media (max-width: 760px) {
  .coach-card,
  .coach-card:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-6); }
  .coach-card:nth-child(even) .coach-photo { order: 0; }
  .coach-photo { max-width: 280px; margin-inline: auto; width: 100%; }
}
