/* ==========================================================================
   KADORANA — Concept A: Editorial Minimalism
   Apple x Montessori magazine. Typography-driven, asymmetric, restrained.
   Shared stylesheet across all 5 pages of concept /a.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand palette */
  --sage: #D9DED2;
  --green: #7D9688;
  --terracotta: #D97A5A;
  --mustard: #D8A84B;
  --lavender: #A99BC9;
  --ink: #2D3748;

  /* AA-accessible text variants of the accents (decorative tokens above
     keep their original hues for borders/icons/fills only) */
  --terracotta-text: #9C4626;  /* >=4.5:1 on surface, sage-soft, sage & mustard-wash */
  --green-text: #4F6357;       /* >=4.5:1 on surface, sage-soft & sage */

  /* Soft surface tints */
  --sage-soft: #E6EAE0;
  --sage-deep: #CBD2C2;
  --surface: #FBFCFA;
  --terracotta-wash: #F4E2DA;
  --lavender-wash: #ECE8F3;
  --mustard-wash: #F4EBD7;

  /* Ink scale */
  --ink-soft: #4A5568;
  --ink-faint: #54606F;  /* darkened to clear AA (>=4.5:1) on surface/sage-soft/sage for small labels */
  --hairline: #C4CCBC;

  /* Type */
  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.4rem, 6vw + 0.5rem, 4rem);      /* 56-64px */
  --fs-h2: clamp(1.9rem, 3.2vw + 0.5rem, 2.625rem);  /* 36-42px */
  --fs-h3: clamp(1.3rem, 1.4vw + 0.6rem, 1.6rem);
  --fs-body: 1.125rem;                                /* 18px */
  --fs-lead: clamp(1.2rem, 1vw + 0.9rem, 1.5rem);
  --fs-small: 0.95rem;
  --fs-numeral: clamp(2.4rem, 4vw + 1rem, 3.75rem);

  /* Layout */
  --maxw: 1280px;
  --content: 1100px;
  --space-section: clamp(4.5rem, 9vw, 7.5rem);  /* 72 -> 120px */
  --space-inner: 2.5rem;                         /* 40px */
  --gap-card: 1.5rem;                            /* 24px */
  --gap-btn: 1rem;                               /* 16px */
  --radius-btn: 14px;
  --radius-card: 18px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);

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

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--sage);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-text); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--terracotta-text); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Layout primitives ---- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.wrap--wide { max-width: var(--maxw); }

.section { padding-block: var(--space-section); }
.section--tint { background: var(--surface); }
.section--sage { background: var(--sage-soft); }

/* Editorial eyebrow label */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin: 0 0 1.1rem;
  display: block;
}

.section-head { max-width: 42ch; margin-bottom: 3rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  font-weight: 400;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(217, 222, 210, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav__brand:hover { color: var(--ink); }
.nav__logo { height: 60px; width: auto; border-radius: 8px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.nav__cta { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(217, 122, 90, 0.7);
}
.btn--primary:hover {
  color: #fff;
  background: #cf6e4d;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(217, 122, 90, 0.8);
}
.btn--secondary {
  background: #fff;
  color: var(--green-text);
  border-color: var(--green);
}
.btn--secondary:hover {
  color: var(--green-text);
  background: var(--sage-soft);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.92rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-btn);
  margin-top: 2rem;
}

/* ==========================================================================
   HERO (asymmetric editorial)
   ========================================================================== */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__logo {
  height: 70px;
  width: auto;
  border-radius: 12px;
  margin-bottom: 1.75rem;
}
.hero__title { font-size: var(--fs-hero); margin-bottom: 1rem; }
.hero__subhead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 32ch;
  margin-bottom: 0.75rem;
}
.hero__line {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-text);
  margin-bottom: 0.5rem;
}
.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__ou {
  width: min(280px, 70%);
  height: auto;
}

/* ==========================================================================
   BRAND STORY
   ========================================================================== */
.story__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story__body { font-size: var(--fs-lead); color: var(--ink-soft); }
.story__pull {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.5rem;
  line-height: 1.4;
}

/* O/U concept mini-legend (text only, no extra illustration) */
.ou-legend {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.ou-legend li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.ou-legend b { font-family: var(--font-head); color: var(--ink); }

/* ==========================================================================
   CLUBS — refined vertical editorial list (NOT cards)
   Large numerals 01-05, big titles, hairline dividers, thin line icons
   ========================================================================== */
.clubs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.club {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.3s var(--ease);
}
.club:hover { padding-left: 0.75rem; }
.club__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-numeral);
  color: var(--sage-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.club:hover .club__num { color: var(--terracotta); }
.club__body { min-width: 0; }
.club__day {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.club__title { font-size: var(--fs-h3); margin: 0 0 0.35rem; }
.club__desc { color: var(--ink-soft); margin: 0; max-width: 52ch; }
.club__icon {
  width: 52px;
  height: 52px;
  flex: none;
  color: var(--green);
}
.club__icon svg { width: 100%; height: 100%; }

/* ==========================================================================
   TIMELINE — vertical editorial
   ========================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 720px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--hairline);
}
.timeline__item {
  position: relative;
  padding: 0 0 2rem 2.25rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--green);
}
/* Per-phase accent — one quiet brand color per step (lively but restrained) */
.timeline__item { --phase: var(--green); }
.timeline__item:nth-child(1) { --phase: var(--green); }
.timeline__item:nth-child(2) { --phase: var(--terracotta); }
.timeline__item:nth-child(3) { --phase: var(--mustard); }
.timeline__item:nth-child(4) { --phase: var(--lavender); }
.timeline__item:nth-child(5) { --phase: var(--green); }
.timeline__item::before { border-color: var(--phase); }
.timeline__icon {
  position: absolute;
  right: 0;
  top: 0.35rem;
  width: 28px; height: 28px;
  color: var(--phase);
  transition: transform 0.3s var(--ease);
}
.timeline__item:hover .timeline__icon { transform: translateY(-3px) rotate(-6deg); }
.timeline__icon svg { width: 100%; height: 100%; }
.timeline__time {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--terracotta-text);
  display: block;
  margin-bottom: 0.15rem;
}
.timeline__label { font-size: 1.05rem; color: var(--ink); }

/* ==========================================================================
   WHY KADORANA — pillars
   ========================================================================== */
.why__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 60ch;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-card);
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}
.pillar {
  padding: 1.5rem 1.25rem;
  border-top: 2px solid var(--green);
  background: var(--surface);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.pillar h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.pillar p { font-size: var(--fs-small); color: var(--ink-soft); margin: 0; }

.quote-bar {
  margin-top: 3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-h3);
  text-align: center;
  color: var(--green-text);
}

/* Parent-trust strip — restrained reassurance (small groups / educator / safe space) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-card);
  margin: 3rem auto 0;
  max-width: 880px;
  list-style: none;
  padding: 0;
}
.trust-strip li {
  text-align: center;
  padding: 0 0.75rem;
  border-left: 1px solid var(--hairline);
}
.trust-strip li:first-child { border-left: 0; }
.trust-strip b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.trust-strip span { font-size: var(--fs-small); color: var(--ink-soft); }

/* ==========================================================================
   SUMMER teaser
   ========================================================================== */
.teaser {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--mustard-wash);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.teaser__facts {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.teaser__facts li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--ink-soft);
}
.teaser__facts b { font-family: var(--font-head); color: var(--ink); font-weight: 600; }

/* ==========================================================================
   ENROLLMENT FORM
   ========================================================================== */
.cta-band { background: #52685B; }  /* deepened green: #fff body text clears AA (>=4.5:1) */
.cta-band .wrap { text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: #fff; max-width: 50ch; margin-inline: auto; }
.cta-band .btn--secondary { background: #fff; border-color: #fff; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 720px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(125, 150, 136, 0.25);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; margin-top: 0.5rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.footer__brand:hover { color: #fff; }
.footer__tag { color: rgba(255, 255, 255, 0.7); max-width: 34ch; font-size: var(--fs-small); }
.footer h3 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__links a { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-small); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   THANKS page
   ========================================================================== */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.thanks__inner { max-width: 36ch; }
.thanks__ou { width: 120px; margin: 0 auto 2rem; }
.thanks h1 { font-size: var(--fs-hero); }
.thanks p { font-size: var(--fs-lead); color: var(--ink-soft); margin-bottom: 2rem; }

/* ==========================================================================
   DELIGHT LAYER — refined energy (v2: fun for kids, premium for parents)
   Per-day color accents, interactive day-list, animated underlines/arrows,
   icon nudge-on-hover, O/U self-drawing, kid-facing micro-copy.
   ========================================================================== */

/* Per-day brand-color accent tokens (one accent per club row) */
.club--mon { --day-accent: var(--terracotta); --day-accent-text: var(--terracotta-text); --day-wash: var(--terracotta-wash); }
.club--tue { --day-accent: var(--green);      --day-accent-text: var(--green-text);      --day-wash: var(--sage-soft); }
.club--wed { --day-accent: var(--lavender);   --day-accent-text: #5B4E7A;                 --day-wash: var(--lavender-wash); }
.club--thu { --day-accent: var(--mustard);    --day-accent-text: #7E5B13;                 --day-wash: var(--mustard-wash); }
.club--fri { --day-accent: var(--green);      --day-accent-text: var(--green-text);      --day-wash: var(--sage-soft); }

/* Kid-facing micro-copy accent — energetic but restrained */
.kid-spark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--terracotta-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.kid-spark::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
  flex: none;
  box-shadow: 0 0 0 4px var(--terracotta-wash);
}

/* ---- Interactive day-list (index) — expandable, keyboard-accessible ---- */
.clubs-list--interactive .club {
  grid-template-columns: auto 1fr auto auto;
  padding-left: 1rem;
  border-left: 3px solid var(--day-accent);   /* always-on per-day hairline */
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  transition: padding-left 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.club__toggle {
  display: contents;            /* num/body/icon/chevron become grid items of .club */
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.clubs-list--interactive .club:hover,
.clubs-list--interactive .club:focus-within {
  padding-left: 1.75rem;
  background: var(--day-wash);
  border-left-width: 5px;
}
/* Visible keyboard focus (the button is display:contents, so ring the row) */
.clubs-list--interactive .club:focus-within {
  outline: 3px solid var(--day-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Always-on per-day color cue: the numeral carries its day accent at rest so the
   five-color rhythm ("всеки ден е различен") reads at a glance, before any interaction */
.clubs-list--interactive .club__num { color: var(--day-accent-text); }
.clubs-list--interactive .club:hover .club__num,
.clubs-list--interactive .club:focus-within .club__num { color: var(--day-accent); }
.clubs-list--interactive .club .club__icon { color: var(--day-accent); transition: transform 0.3s var(--ease); }
.clubs-list--interactive .club:hover .club__icon,
.clubs-list--interactive .club:focus-within .club__icon { transform: translateY(-3px) rotate(-6deg); }

.club__toggle .club__title { transition: color 0.25s var(--ease); }
.club__toggle[aria-expanded="true"] .club__title { color: var(--day-accent-text); }

/* Chevron cue */
.club__chevron {
  width: 20px; height: 20px;
  margin-top: 0.4rem;
  color: var(--day-accent-text);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.club__toggle[aria-expanded="true"] .club__chevron { transform: rotate(180deg); }

/* Expanding detail panel */
.club__detail {
  grid-column: 2 / 3;
  display: grid;
  grid-template-rows: 1fr;          /* fail-safe: open without JS */
  transition: grid-template-rows 0.4s var(--ease), opacity 0.3s var(--ease);
  opacity: 1;
}
/* With JS, start collapsed and open only on the JS-toggled aria-expanded state */
html.js .club__detail {
  grid-template-rows: 0fr;
  opacity: 0;
}
.club__detail > div { overflow: hidden; }
.club__detail p {
  margin: 0.85rem 0 0;
  font-size: var(--fs-small);
  color: var(--ink-soft);
  max-width: 52ch;
}
.club__detail .club__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--day-accent-text);
  margin-right: 0.5rem;
}
/* Open the panel ONLY via the JS-toggled aria-expanded state (no hover auto-open,
   so aria-expanded, chevron and rendered panel always agree) */
html.js .club__toggle[aria-expanded="true"] + .club__detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* ---- Animated link underline + arrow (text links inside content) ---- */
.link-arrow {
  font-family: var(--font-head);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: right 0.3s var(--ease);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { right: 0; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg,
.link-arrow:focus-visible svg { transform: translateX(4px); }

/* Button arrow nudge */
.btn .btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---- O/U "draws itself" on load ----
   The approved O/U is an <img> (used as-is, no recolor / no extra art), so the
   self-drawing effect is a left-to-right clip-path wipe — reads as the squiggle
   being drawn, without modifying the asset. */
html.js .ou-draw {
  animation: ou-draw-wipe 1.6s var(--ease) 0.15s both;
}
@keyframes ou-draw-wipe {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  10%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ---- Thanks page celebratory cue (subtle, classy — no confetti) ---- */
.thanks__ou.ou-draw { animation: thanks-pop 0.7s var(--ease) both; }
@keyframes thanks-pop {
  0% { transform: scale(0.82); opacity: 0; }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}
.thanks__spark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  margin-bottom: 1.25rem;
}
/* Three brand-color dots that pop in sequence — a small earned celebration */
.thanks__dots { display: inline-flex; gap: 0.35rem; }
.thanks__dots i {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;       /* visible at rest (fail-safe without JS) */
}
html.js .thanks__dots i { transform: scale(0); }
.thanks__dots i:nth-child(1) { background: var(--terracotta); }
.thanks__dots i:nth-child(2) { background: var(--mustard); }
.thanks__dots i:nth-child(3) { background: var(--lavender); }
html.js .thanks__dots i { animation: thanks-dot 0.45s var(--ease) both; }
html.js .thanks__dots i:nth-child(1) { animation-delay: 0.45s; }
html.js .thanks__dots i:nth-child(2) { animation-delay: 0.6s; }
html.js .thanks__dots i:nth-child(3) { animation-delay: 0.75s; }
@keyframes thanks-dot {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
/* One-shot underline sweep under the spark line */
.thanks__spark { position: relative; padding-bottom: 0.5rem; }
.thanks__spark::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--terracotta);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}
html.js .thanks__spark::after { animation: thanks-sweep 0.6s var(--ease) 0.9s both; }
@keyframes thanks-sweep { to { transform: scaleX(1); } }

@media (max-width: 860px) {
  .club__detail { grid-column: 1 / -1; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
/* JS-gated: without JS the content is always visible (fail-safe) */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
  /* Pure-CSS backstop: if main.js fails to load/throws and never adds
     .is-visible, this keyframe still un-hides content after 3s so nothing
     can be stuck invisible. The IntersectionObserver path reveals earlier. */
  animation: reveal-failsafe 0s linear 3s forwards;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  animation: none;
}
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sage-soft);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--pad-x) 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav__menu.is-open { max-height: 480px; }
  .nav__link { padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta { margin: 1rem 0 0; width: 100%; }

  .hero__grid,
  .story__grid,
  .teaser { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .club {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num icon" "body body";
    gap: 0.5rem 1.25rem;
  }
  .club__num { grid-area: num; }
  .club__icon { grid-area: icon; justify-self: end; width: 40px; height: 40px; }
  .club__body { grid-area: body; }

  /* Interactive day-list on mobile: num + icon top row, body, chevron, detail */
  .clubs-list--interactive .club {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num icon chev"
      "body body body"
      "detail detail detail";
  }
  .clubs-list--interactive .club__num { grid-area: num; align-self: center; }
  .clubs-list--interactive .club__icon { grid-area: icon; justify-self: end; }
  .clubs-list--interactive .club__body { grid-area: body; }
  .clubs-list--interactive .club__chevron { grid-area: chev; align-self: center; margin-top: 0; }
  .clubs-list--interactive .club__detail { grid-area: detail; grid-column: auto; }
}

@media (max-width: 520px) {
  .pillars,
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}

/* ---- Motion guard ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .ou-draw { animation: none; clip-path: none; opacity: 1; }
  .thanks__ou.ou-draw { animation: none; }
  html.js .thanks__dots i { animation: none; transform: none; }
  html.js .thanks__spark::after { animation: none; transform: scaleX(1); }
}
