/* =========================================================
   HOFMAN SQUASH ACADEMY — premium light design system
   Newsreader (display serif) + Hanken Grotesk (sans)
   Warm paper · near-black ink · squash-lime accent
   ========================================================= */

:root {
  /* Palette — Hofman Squash Academy: red · black · white */
  --paper:      oklch(0.992 0.0015 250);  /* clean near-white page */
  --paper-2:    oklch(0.969 0.002 250);   /* soft section bg */
  --paper-3:    oklch(0.949 0.003 255);   /* slightly deeper */
  --ink:        oklch(0.205 0.006 270);   /* near-black */
  --ink-2:      oklch(0.355 0.006 270);   /* secondary text */
  --ink-soft:   oklch(0.515 0.006 270);   /* muted text */
  --line:       oklch(0.902 0.003 270);   /* hairline borders */
  --line-2:     oklch(0.838 0.004 270);   /* stronger hairline */

  --accent:       oklch(0.575 0.218 26);   /* brand red */
  --accent-bright:oklch(0.625 0.224 28);   /* lighter red — hover */
  --accent-deep:  oklch(0.535 0.214 26);   /* red for text on light */
  --accent-ink:   oklch(0.995 0 0);        /* white — text on red */

  --dark:       oklch(0.195 0.006 270);   /* dark section bg */
  --dark-2:     oklch(0.255 0.006 270);
  --on-dark:    oklch(0.972 0.002 250);
  --on-dark-soft: oklch(0.74 0.005 270);
  --dark-line:  oklch(0.33 0.006 270);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.018em; color: var(--ink); }
h1 em, h2 em, h3 em { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent-deep);
}
.eyebrow-light { color: var(--on-dark-soft); }
.eyebrow-light::before { background: var(--accent); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-soft { background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--on-dark); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-block: 0.5rem 0; }
.section-intro { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.12rem; max-width: 52ch; text-wrap: pretty; }
.section-head-light h2 { color: var(--on-dark); }
.section-head-light .section-intro { color: var(--on-dark-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.two-col h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn-primary:hover { --btn-bg: var(--accent-bright); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-dark:hover { --btn-bg: var(--dark-2); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: transparent; }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn-outline-light:hover { border-color: var(--on-dark); }
.btn-block { display: flex; width: 100%; }

.btn-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-icon:hover { border-color: var(--ink); background: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in oklch, var(--paper) 92%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--serif); font-size: 1.18rem; letter-spacing: -0.01em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent);
  display: inline-grid; place-items: center;
  font-size: 0.7rem; color: var(--accent-ink);
  font-family: var(--sans);
}
.logo-text { font-weight: 500; }
.logo-light .logo-text { color: var(--on-dark); }
.logo-img { height: 46px; width: auto; display: block; }

/* footer logo on dark — white chip keeps the black wordmark legible */
.footer-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 14px 18px; }
.footer-logo img { height: 104px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.6rem); }
.site-nav ul { display: flex; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.site-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); position: relative; padding-block: 4px; transition: color 0.25s var(--ease); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent-deep); border-radius: 2px;
}
.nav-socials { display: flex; gap: 0.6rem; }
.nav-socials a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.nav-socials a:hover { border-color: var(--ink); color: var(--ink); }

/* Header "Book your spot" CTA */
.header-cta { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); padding: 0.62em 1.25em; font-size: 0.86rem; }
.header-cta:hover { --btn-bg: var(--accent-bright); }
.header-cta.active { box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 24%, transparent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-copy { max-width: 36ch; }
.hero-title {
  font-size: clamp(3rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-block: 1.5rem 0;
}
.hero-lead { margin-top: 1.6rem; font-size: 1.18rem; color: var(--ink-2); max-width: 42ch; text-wrap: pretty; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-venue {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.92rem; color: var(--ink-soft);
}
.hero-venue strong { color: var(--ink); font-weight: 600; }
.hero-venue .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); flex: none; }

.hero-figure { position: relative; }
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-badge {
  position: absolute; left: -18px; bottom: 30px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem 1.2rem;
  box-shadow: 0 20px 50px -28px oklch(0.2 0.02 96 / 0.5);
}
.hero-badge .hb-num { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.hero-badge .hb-num em { color: var(--accent-deep); }
.hero-badge .hb-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.25rem; }

/* ---------- Image placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, oklch(0.93 0.01 95) 0 14px, oklch(0.955 0.008 95) 14px 28px);
  color: var(--ink-soft);
  display: grid; place-items: center;
  isolation: isolate;
}
.ph::after {
  content: attr(data-ph);
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.55 0.01 95);
  background: color-mix(in oklch, var(--paper) 70%, transparent);
  padding: 0.4em 0.8em; border-radius: 100px;
  border: 1px solid var(--line);
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg, oklch(0.27 0.012 96) 0 14px, oklch(0.3 0.012 96) 14px 28px);
}
.ph-dark::after { color: var(--on-dark-soft); background: color-mix(in oklch, var(--dark) 60%, transparent); border-color: var(--dark-line); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 1.05rem; }
.marquee-track { display: inline-flex; align-items: center; gap: 2rem; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.marquee-track .dot-sep { color: var(--accent); font-style: normal; font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Media gallery (why join) ---------- */
.media-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.media-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; }
.media-tile:first-child { aspect-ratio: 3 / 4; }
.media-tile figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; font-size: 0.86rem; color: var(--on-dark); text-shadow: 0 1px 12px oklch(0.2 0 0 / 0.6); }
.media-label {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  background: color-mix(in oklch, var(--paper) 88%, transparent); color: var(--ink);
  padding: 0.35em 0.7em; border-radius: 100px;
}
.media-tile .ph::after { display: none; }
.media-tile .ph { background: repeating-linear-gradient(135deg, oklch(0.3 0.012 96) 0 16px, oklch(0.34 0.012 96) 16px 32px); }
.media-play {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
.media-play:hover { transform: scale(1.08); }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.programs-4 { grid-template-columns: repeat(4, 1fr); }
.programs-4 .program-body h3 { font-size: 1.35rem; }
.programs-4 .program-body > p { font-size: 0.95rem; }
.program-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.program-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -40px oklch(0.2 0.02 96 / 0.45); }
.program-media { position: relative; aspect-ratio: 16 / 11; }
.program-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.4em 0.8em; border-radius: 100px;
}
.program-body { padding: clamp(1.4rem, 2.4vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.program-body h3 { font-size: 1.5rem; }
.program-body > p { margin-top: 0.7rem; color: var(--ink-2); font-size: 1rem; }
.program-meta { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.program-meta span:first-child { font-size: 0.88rem; color: var(--ink-soft); }
.program-price { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.program-card .btn { margin-top: 1.4rem; }

.programs-footer { margin-top: clamp(2.4rem, 4vw, 3.4rem); display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; }
.programs-footer-note { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Checklist ---------- */
.checklist { margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.stat { border-top: 1px solid var(--dark-line); padding-top: 1.8rem; }
.stat-num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--accent); }
.stat-label { margin-top: 0.7rem; font-size: 1.05rem; font-weight: 500; color: var(--on-dark); }
.stat-sub { margin-top: 0.35rem; font-size: 0.86rem; color: var(--on-dark-soft); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.testimonial { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; }
.stars { color: var(--accent-deep); letter-spacing: 0.12em; font-size: 0.95rem; }
.testimonial blockquote { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--ink); margin-top: 1rem; flex: 1; text-wrap: pretty; }
.testimonial-author { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-3); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-meta { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Calendar ---------- */
.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 2rem); background: var(--paper); }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.calendar-nav h3 { font-size: 1.3rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.7rem; }
.cal-day { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 0.6rem; min-height: 150px; display: flex; flex-direction: column; }
.cal-day-head { text-align: center; margin-bottom: 0.7rem; }
.cal-day-name { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.cal-day-date { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.cal-day.is-closed { background: var(--paper-2); opacity: 0.7; }
.cal-closed-label { font-size: 0.78rem; color: var(--ink-soft); text-align: center; margin: auto 0; }
.cal-slots { display: flex; flex-direction: column; gap: 0.4rem; }
.cal-slot {
  font-size: 0.82rem; font-weight: 500; padding: 0.5em 0.3em; border-radius: 7px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  transition: all 0.2s var(--ease); text-align: center;
}
.cal-slot:hover:not(:disabled) { border-color: var(--accent-deep); color: var(--ink); }
.cal-slot.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cal-slot:disabled { color: var(--line-2); background: var(--paper-2); cursor: not-allowed; text-decoration: line-through; }
.calendar-legend { margin-top: 1.4rem; display: flex; gap: 1.5rem; align-items: center; font-size: 0.86rem; color: var(--ink-soft); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 0.4rem; vertical-align: middle; }
.dot-free { background: var(--accent); }
.dot-booked { background: var(--line-2); }
.booking-summary { margin-top: 1.8rem; padding: 1.4rem 1.6rem; border: 1px solid var(--accent-deep); border-radius: var(--radius); background: color-mix(in oklch, var(--accent) 12%, var(--paper)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.booking-summary p { font-size: 1.02rem; }

/* ---------- CTA ---------- */
.cta-section { text-align: center; }
.cta-inner { max-width: 620px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--on-dark); }
.cta-inner p { margin-top: 1.1rem; color: var(--on-dark-soft); font-size: 1.12rem; }
.cta-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--paper); }
.contact-line { display: flex; flex-direction: column; gap: 0.2rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.contact-line:first-child { padding-top: 0; }
.contact-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-line a, .contact-line span:last-child { font-size: 1.1rem; color: var(--ink); }
.contact-line a:hover { color: var(--accent-deep); }
.socials { margin-top: 1.4rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
.socials a { font-size: 0.86rem; padding: 0.5em 1em; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); transition: all 0.25s var(--ease); }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
#contact .two-col > div:first-child p { margin-top: 1.1rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer-tag { margin-top: 1rem; max-width: 28ch; font-size: 0.95rem; }
.footer-grid h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 600; margin-bottom: 1.1rem; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid li a { color: var(--on-dark); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer-grid li a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.8rem; border-top: 1px solid var(--dark-line); font-size: 0.86rem; }
.footer-bottom .muted { color: var(--on-dark-soft); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 760px; }
.page-hero-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.025em; margin-block: 1.3rem 0; }
.page-hero-lead { margin-top: 1.4rem; font-size: 1.18rem; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.page-hero-jumps { margin-top: 1.8rem; display: flex; gap: 1rem; align-items: center; font-size: 0.95rem; color: var(--ink-soft); flex-wrap: wrap; }
.page-hero-jumps a { color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.25s var(--ease); }
.page-hero-jumps a:hover { border-color: var(--accent-deep); }

/* ---------- Membership / pricing mode ---------- */
.pricing-mode { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pricing-mode-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; padding-block: 1.8rem; }
.pricing-mode-label p { margin-top: 0.3rem; font-size: 0.95rem; color: var(--ink-soft); }
.membership-switcher { display: inline-flex; gap: 0.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 0.4rem; }
.membership-tab { display: flex; flex-direction: column; align-items: center; padding: 0.6em 1.5em; border-radius: 100px; transition: all 0.3s var(--ease); }
.membership-tab-title { font-weight: 600; font-size: 0.95rem; }
.membership-tab-sub { font-size: 0.74rem; color: var(--ink-soft); }
.membership-tab.active { background: var(--ink); color: var(--paper); }
.membership-tab.active .membership-tab-sub { color: var(--on-dark-soft); }
.pricing-mode-note { font-size: 0.9rem; color: var(--ink-soft); text-align: right; }
.pricing-mode-note a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-deep); }

/* ---------- Packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); align-items: stretch; }
.package-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.package-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px oklch(0.2 0.02 96 / 0.4); }
.package-card-featured { border-color: var(--ink); }
.package-card-featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 2px solid var(--accent); pointer-events: none;
}
.package-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: 0.45em 1em; border-radius: 100px; }
.package-card h3 { font-size: 1.6rem; }
.price { margin-top: 1rem; }
.price-amount { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; color: var(--ink); }
.price-sub { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.package-features { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; flex: 1; }
.package-features li { position: relative; padding-left: 1.7rem; font-size: 0.96rem; color: var(--ink-2); }
.package-features li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>"); background-size: 10px; background-repeat: no-repeat; background-position: center; }
.package-card .btn { margin-top: 1.8rem; }

/* Starter package — wide highlighted entry card */
.starter-package { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.package-card-starter { padding: clamp(1.8rem, 3vw, 2.6rem); }
.package-card-starter:hover { transform: none; box-shadow: none; }
.starter-package-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.starter-package-main h3 { font-size: 1.8rem; }
.starter-package-lead { margin-top: 0.7rem; color: var(--ink-2); max-width: 42ch; text-wrap: pretty; }
.starter-package-main .price { margin-top: 1.4rem; }
.starter-package-aside { display: flex; flex-direction: column; }
.starter-package-aside .btn { margin-top: 1.6rem; }
.package-tag-soft { background: var(--ink); }

/* Sub-head between starter and full packages */
.section-subhead { max-width: 640px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-subhead-lead { margin-top: 0.7rem; color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; text-wrap: pretty; }

@media (max-width: 720px) {
  .starter-package-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---------- Checkout modal ---------- */
.pay-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: oklch(0.2 0.006 270 / 0.55);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 1.2rem;
  animation: pay-fade 0.18s var(--ease, ease) both;
}
.pay-modal-overlay[hidden] { display: none; }
@keyframes pay-fade { from { opacity: 0; } to { opacity: 1; } }
.pay-modal {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 40px 80px -40px oklch(0.2 0.02 96 / 0.5);
  animation: pay-rise 0.22s var(--ease, ease) both;
}
@keyframes pay-rise { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pay-modal-close {
  position: absolute; top: 0.8rem; right: 0.9rem;
  width: 38px; height: 38px; border: none; background: transparent;
  font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
  border-radius: 50%;
}
.pay-modal-close:hover { background: var(--paper-3, oklch(0.949 0.003 255)); color: var(--ink); }
.pay-modal-title { font-size: 1.5rem; margin-top: 0.5rem; }
.pay-modal-summary { margin-top: 0.4rem; color: var(--ink-2); font-size: 0.98rem; }
.pay-form { margin-top: 1.4rem; display: grid; gap: 1rem; }
.pay-field { display: grid; gap: 0.35rem; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.pay-field input {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm, 10px);
  background: var(--paper);
}
.pay-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pay-error { color: var(--accent-deep); font-size: 0.88rem; margin: 0; }
.pay-error[hidden] { display: none; }
.pay-submit[disabled] { opacity: 0.6; cursor: progress; }
.pay-fineprint { font-size: 0.78rem; color: var(--ink-soft); margin: 0; text-wrap: pretty; }

.level-switcher { display: inline-flex; gap: 0.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 0.35rem; margin-bottom: 2.4rem; }
.level-tab { padding: 0.6em 1.5em; border-radius: 100px; font-weight: 500; font-size: 0.94rem; color: var(--ink-2); transition: all 0.3s var(--ease); }
.level-tab.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* ---------- Plan-type tabs (Private / Duo / Group) ---------- */
.cat-switcher-section { border-bottom: 1px solid var(--line); }
.cat-switcher-inner { display: flex; justify-content: center; padding-block: 1.6rem; }
.cat-switcher { display: inline-flex; gap: 0.3rem; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 0.4rem; flex-wrap: wrap; justify-content: center; }
.cat-tab { padding: 0.72em 1.8em; border-radius: 100px; font-weight: 500; font-size: 1rem; color: var(--ink-2); transition: all 0.3s var(--ease); white-space: nowrap; }
.cat-tab:hover { color: var(--ink); }
.cat-tab.active { background: var(--ink); color: var(--paper); font-weight: 600; }
.cat-panel[hidden] { display: none; }

/* ---------- Events ---------- */
.events { display: grid; gap: 1.4rem; }
.event-card { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.event-media { position: relative; min-height: 200px; }
.event-media-1 { background: repeating-linear-gradient(135deg, oklch(0.575 0.218 26) 0 18px, oklch(0.625 0.224 28) 18px 36px); }
.event-media-2 { background: repeating-linear-gradient(135deg, oklch(0.3 0.012 96) 0 18px, oklch(0.34 0.012 96) 18px 36px); }
.event-media-3 { background: repeating-linear-gradient(135deg, oklch(0.78 0.04 75) 0 18px, oklch(0.82 0.05 78) 18px 36px); }
.event-date { position: absolute; top: 18px; left: 18px; background: var(--paper); border-radius: 12px; padding: 0.7rem 0.9rem; text-align: center; line-height: 1.1; }
.event-date strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.event-date { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.event-body { padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.event-body h3 { font-size: 1.5rem; }
.event-meta { margin-top: 0.4rem; font-size: 0.9rem; color: var(--accent-deep); font-weight: 600; }
.event-body > p:not(.event-meta) { margin-top: 0.9rem; color: var(--ink-2); }
.event-footer { margin-top: auto; padding-top: 1.6rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.event-price { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.event-price-sub { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.gallery-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-tile:nth-child(1), .gallery-tile:nth-child(6) { aspect-ratio: 4 / 5; grid-row: span 1; }
.gallery-tile span { position: absolute; bottom: 14px; left: 14px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); background: color-mix(in oklch, var(--paper) 85%, transparent); padding: 0.35em 0.7em; border-radius: 100px; z-index: 2; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
/* ---------- Direction B — full-bleed hero (homepage only) ---------- */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.home .site-header:not(.scrolled) .logo-text { color: var(--on-dark); }
.home .site-header:not(.scrolled) .menu-toggle span { background: #fff; }
.home .site-header.scrolled { background: color-mix(in oklch, var(--paper) 92%, transparent); border-bottom-color: var(--line); }
.home .site-header.scrolled .logo-text { color: var(--ink); }

@media (min-width: 721px) {
  .home .site-header:not(.scrolled) .site-nav ul li a { color: rgba(255,255,255,.88); }
  .home .site-header:not(.scrolled) .site-nav ul li a:hover { color: #fff; }
  .home .site-header:not(.scrolled) .nav-socials a { color: var(--on-dark); border-color: rgba(255,255,255,.45); }
  .home .site-header:not(.scrolled) .nav-socials a:hover { border-color: #fff; color: #fff; }
}

.hero-full { position: relative; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(17,16,12,.88) 0%, rgba(17,16,12,.6) 38%, rgba(17,16,12,.12) 72%, rgba(17,16,12,0) 100%),
    linear-gradient(180deg, rgba(17,16,12,.42) 0%, rgba(17,16,12,0) 26%, rgba(17,16,12,0) 52%, rgba(17,16,12,.86) 100%);
}
.hero-full-inner {
  flex: 1; display: flex; align-items: center; width: 100%;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.5rem, 5vw, 4rem) 3rem;
}
.hero-full-copy { max-width: 42ch; }
.hero-full-title {
  font-family: var(--serif); color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.98;
  letter-spacing: -0.022em; margin: 1.5rem 0 0; text-wrap: balance;
}
.hero-full-title em { font-style: italic; }
.hero-full-lead {
  margin-top: 1.5rem; font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  color: rgba(255,255,255,.86); max-width: 46ch; line-height: 1.55; text-wrap: pretty;
}
.hero-full .hero-actions { margin-top: 2.3rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-strip {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-stat { padding: clamp(1.1rem, 2vw, 1.55rem) clamp(1.2rem, 2.4vw, 2rem); border-right: 1px solid rgba(255,255,255,.22); }
.hero-stat:first-child { padding-left: clamp(1.5rem, 5vw, 4rem); }
.hero-stat:last-child { padding-right: clamp(1.5rem, 5vw, 4rem); border-right: none; }
.hs-num { display: block; font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--accent); line-height: 1.05; }
.hs-label { display: block; font-size: 0.86rem; color: rgba(255,255,255,.74); margin-top: 0.4rem; }

@media (max-width: 720px) {
  .hero-strip { grid-template-columns: 1fr; }
  .hero-stat,
  .hero-stat:first-child,
  .hero-stat:last-child {
    border-right: none; border-bottom: 1px solid rgba(255,255,255,.18);
    padding-left: clamp(1.5rem, 5vw, 4rem); padding-right: clamp(1.5rem, 5vw, 4rem);
  }
  .hero-stat:last-child { border-bottom: none; }
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .hero-copy { max-width: 100%; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .programs, .testimonials, .stats, .media-gallery, .packages, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .programs-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-mode-inner { grid-template-columns: 1fr; text-align: left; }
  .pricing-mode-note { text-align: left; }
  .calendar-grid { grid-template-columns: 1fr; }
  .cal-day { min-height: auto; flex-direction: row; align-items: center; gap: 1rem; }
  .cal-day-head { margin-bottom: 0; display: flex; gap: 0.5rem; align-items: baseline; min-width: 90px; }
  .cal-slots { flex-direction: row; flex-wrap: wrap; flex: 1; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.8rem;
    transform: translateY(-120%); transition: transform 0.4s var(--ease);
    box-shadow: 0 30px 60px -40px oklch(0.2 0.02 96 / 0.5);
  }
  body.nav-open .site-nav { transform: none; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul li a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
  .header-cta { margin-top: 1.2rem; align-self: stretch; }
  .nav-socials { margin-top: 1rem; }
  .programs, .testimonials, .stats, .media-gallery, .packages, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .programs-4 { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-media { min-height: 140px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
