/* ==========================================================================
   Nikki Jones Movement (NJM)
   site.css  |  All brand tokens live in :root. Change a value once here and
   it updates everywhere on the site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BRAND TOKENS
   Colors sampled directly from the NJM logo files.
   -------------------------------------------------------------------------- */
:root {
  /* Logo colors */
  --leaf:        #A4C83F;   /* the "njm" wordmark green */
  --lotus:       #EBDF93;   /* the lotus flower cream/gold */

  /* Derived support colors */
  --leaf-deep:   #6E8F22;   /* darker leaf, for text on light backgrounds */
  --moss:        #3F5416;   /* deepest green, headings */
  --lotus-soft:  #F7F1D6;   /* washed lotus, section backgrounds */

  /* Neutrals */
  --paper:       #FCFBF7;   /* page background */
  --mist:        #F1F0E9;   /* alternating band */
  --ink:         #1B1D16;   /* body text */
  --ink-soft:    #5B6053;   /* secondary text */
  --line:        #E2E1D6;   /* hairlines */
  --white:       #FFFFFF;

  /* Type */
  --display: "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --gutter:      clamp(1.25rem, 5vw, 3.5rem);
  --section-y:   clamp(4rem, 10vw, 8rem);
  --max:         1180px;
  --max-narrow:  680px;

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

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--leaf-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--moss); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--moss); color: var(--white);
  padding: .75rem 1.25rem; font-family: var(--display);
}
.skip-link:focus { left: 0; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   Headings echo the logo: lowercase, light weight, open letterspacing.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--moss);
  text-transform: lowercase;
  letter-spacing: .04em;
  line-height: 1.12;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: .05em; }
h4 { font-size: 1.05rem; letter-spacing: .08em; }

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

.eyebrow {
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--leaf-deep);
  margin: 0 0 1.25rem;
  display: block;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.fine {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--mist { background: var(--mist); }
.section--lotus { background: var(--lotus-soft); }

.center { text-align: center; }

/* Signature element: hairline rule interrupted by the lotus mark ------------ */
.lotus-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  max-width: 420px;
}
.lotus-rule::before,
.lotus-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--lotus), transparent);
}
.lotus-rule img { width: 34px; height: auto; opacity: .95; }

/* --------------------------------------------------------------------------
   5. HEADER + NAVIGATION
   Logo left, navigation right.
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 251, 247, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand { display: block; line-height: 0; flex-shrink: 0; }
.brand img {
  width: clamp(118px, 15vw, 178px);
  height: auto;
  transition: opacity .2s var(--ease);
}
.brand:hover img { opacity: .78; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--moss);
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .6rem 1.1rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--leaf); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.9rem, 2.4vw, 2.25rem);
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(.86rem, 1.1vw, 1rem);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
  padding: .55rem .2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover { color: var(--leaf-deep); }

/* Current page sits in an outlined box, matching the NJM header treatment. */
.site-nav a[aria-current="page"] {
  border-color: var(--ink);
  padding-inline: 1.15rem;
  color: var(--ink);
}

/* The booking link is the one action in the bar, so it carries brand color. */
.site-nav .nav-cta a {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--white);
  padding-inline: 1.15rem;
  border-radius: 999px;
}
.site-nav .nav-cta a:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); color: var(--white); }
.site-nav .nav-cta a[aria-current="page"] {
  background: var(--leaf-deep);
  border-color: var(--leaf-deep);
  color: var(--white);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line);
    margin-top: .85rem;
    padding-top: .85rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .35rem; }
  .site-nav a { display: block; text-align: center; font-size: 1rem; padding: .8rem; }
  .site-nav .nav-cta a { margin-top: .4rem; }
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: .2em;
  padding: 1rem 2.1rem;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  background: var(--leaf);
  color: var(--white);
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { background: var(--leaf-deep); border-color: var(--leaf-deep); color: var(--white); }

.btn--ghost { background: transparent; color: var(--moss); border-color: var(--leaf); }
.btn--ghost:hover { background: var(--leaf); color: var(--white); }

.btn--light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn--light:hover { background: var(--white); color: var(--moss); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 840px);
  display: grid;
  /* Copy sits in the lower portion so it clears her face. */
  place-items: end center;
  overflow: hidden;
  background: var(--mist);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Vertical framing knob. Raising this percentage slides the visible window
     further down the photo, which moves her face UP on screen. Lower it to
     bring her back down. */
  object-position: center 28%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,29,22,.18) 0%, rgba(27,29,22,.20) 40%, rgba(27,29,22,.62) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--gutter);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 780px;
}
.hero__content h1 { color: var(--white); margin-bottom: .25em; }
.hero__kicker {
  font-family: var(--display);
  font-size: clamp(.78rem, 2vw, .95rem);
  text-transform: uppercase;
  letter-spacing: .34em;
  color: var(--lotus);
  margin: 0 0 1.6rem;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.92);
  max-width: 42ch;
  margin: 0 auto 2.2rem;
}

/* Page banner (interior pages) --------------------------------------------- */
.page-banner {
  position: relative;
  min-height: clamp(300px, 46vh, 460px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--mist);
}
.page-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(27,29,22,.40);
}
.page-banner__title {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: var(--gutter);
}
.page-banner__title h1 { color: var(--white); margin: 0; }
.page-banner__title .eyebrow { color: var(--lotus); }

.page-head { text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.page-head h1 { margin-bottom: .3em; }

/* A page-head already supplies generous space, so the next section eases off. */
.page-head + .section,
.page-head + .lotus-rule + .section { padding-top: clamp(2.25rem, 5vw, 3.5rem); }

/* --------------------------------------------------------------------------
   8. CARDS + GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--leaf); transform: translateY(-3px); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card__num {
  font-family: var(--display);
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--leaf);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Split (image + text) ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media img { border-radius: 4px; width: 100%; }

/* --------------------------------------------------------------------------
   9. EVENTS
   -------------------------------------------------------------------------- */
.event {
  display: grid;
  grid-template-columns: 96px 300px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.event:last-of-type { border-bottom: 1px solid var(--line); }

.event__date {
  text-align: center;
  font-family: var(--display);
  color: var(--moss);
  border: 1px solid var(--lotus);
  border-radius: 4px;
  padding: .85rem .5rem;
  background: var(--lotus-soft);
}
.event__month {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--leaf-deep);
}
.event__day { display: block; font-size: 2.1rem; font-weight: 300; line-height: 1.15; }
.event__thru { display: block; font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft); }

.event__media img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.event__body h3 { margin-bottom: .45rem; }
.event__meta {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.event__links { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1rem; }
.event__links a {
  font-family: var(--display);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: lowercase;
  border-bottom: 1px solid var(--leaf);
  padding-bottom: 2px;
}

@media (max-width: 860px) {
  .event { grid-template-columns: 84px 1fr; }
  .event__media { grid-column: 1 / -1; order: 3; }
  .event__media img { aspect-ratio: 16 / 9; }
}

/* Instagram reel embed ----------------------------------------------------- */
.reel {
  max-width: 540px;
  margin-inline: auto;
}
.reel .instagram-media { margin: 0 auto !important; }
.reel__fallback {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  padding: 2rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. GALLERY
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--mist);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item figcaption {
  font-family: var(--display);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding-top: .75rem;
}

/* --------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .85rem 1rem;
  width: 100%;
  transition: border-color .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--leaf); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }

.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   12. BOOKING PAGE
   -------------------------------------------------------------------------- */
.booking-cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
/* A thin brand bar across the top, so the card reads as the primary action. */
.booking-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(to right, var(--lotus), var(--leaf));
}
.booking-cta h2,
.booking-cta h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5em; }

.btn--lg { font-size: .86rem; padding: 1.15rem 2.6rem; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: .85rem;
  color: var(--moss);
  background: var(--lotus);
  width: 2.6rem; height: 2.6rem;
  border-radius: 999px;
  display: grid; place-items: center;
}
.steps strong { display: block; font-family: var(--display); font-weight: 400; letter-spacing: .04em; color: var(--moss); }
.steps p { margin: .15rem 0 0; color: var(--ink-soft); font-size: .97rem; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
/* Cream drawn from the lotus in the logo, so the footer sits in the brand
   palette without the heavy dark green block. */
.site-footer {
  background: var(--lotus-soft);
  color: var(--ink);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  margin-top: 0;
  border-top: 1px solid rgba(110,143,34,.20);
}
.site-footer h4 { color: var(--leaf-deep); margin-bottom: .9rem; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; }
.site-footer a { color: var(--moss); }
.site-footer a:hover { color: var(--leaf-deep); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer ul a { font-family: var(--display); font-size: .85rem; letter-spacing: .1em; text-transform: lowercase; }
.site-footer__mark img { width: 140px; height: auto; }
.site-footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(110,143,34,.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(27,29,22,.62);
}

/* --------------------------------------------------------------------------
   14. MOTION
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   16. FULL-FRAME BANNER  (Contact)
   Shows the entire photo, uncropped. A blurred copy of the same image fills
   the space either side so the uncropped shot never looks letterboxed.
   -------------------------------------------------------------------------- */
.page-banner--full {
  min-height: clamp(420px, 78vh, 780px);
  background: var(--mist);
}
.page-banner__blur {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(.75);
  transform: scale(1.15);
  opacity: .6;
}
.page-banner--full img {
  object-fit: contain;      /* the whole frame, nothing cropped away */
  object-position: center;
}
/* With the full figure visible, a centred title would sit on her face,
   so it drops to the lower third and carries its own scrim. */
.page-banner--full { place-items: end center; }
.page-banner--full .page-banner__title {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 1px 18px rgba(27,29,22,.55);
}
.page-banner--full::after {
  background: linear-gradient(to bottom,
              rgba(27,29,22,.12) 0%,
              rgba(27,29,22,.10) 45%,
              rgba(27,29,22,.55) 100%);
}

/* --------------------------------------------------------------------------
   17. ABOUT SPLIT
   Portrait held on the left at full strength, copy running down the right.
   The photo is sticky rather than a fixed background, which keeps it in
   frame while the text scrolls and still lets the footer close the page.
   -------------------------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  align-items: start;
  background: var(--paper);
}

/* ---- Portrait pane ---- */
.about-split__portrait {
  position: sticky;
  /* Sits below the sticky header rather than sliding under it.
     --header-h is measured in site.js; the fallback covers a JS failure. */
  top: var(--header-h, 96px);
  height: calc(100vh - var(--header-h, 96px));
  overflow: hidden;
  background: var(--mist);
}
.about-split__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sits her face in the upper third of the pane rather than dead centre. */
  object-position: 60% 22%;
}
/* Soft feather on the inner edge so the photo meets the paper instead of
   ending on a hard vertical line. */
.about-split__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
              rgba(252,251,247,0) 72%,
              rgba(252,251,247,.55) 90%,
              rgba(252,251,247,.95) 100%);
  pointer-events: none;
}

/* ---- Copy column ---- */
.about-split__copy {
  padding-inline: clamp(1.5rem, 4.5vw, 4.5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.about-split__inner {
  max-width: 48ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
.about-split__title { margin-bottom: 0; }

/* The centred rule reads wrong in a left-aligned column. */
.lotus-rule--left { justify-content: flex-start; margin-block: 0; }
.lotus-rule--left::before { display: none; }
.lotus-rule--left::after { flex: 0 0 clamp(3rem, 8vw, 6rem); }

/* ---- Principles ---- */
/* Three cards side by side would be cramped in a half-width column, so the
   principles become a stacked definition list instead. */
.principles { margin: 1.75rem 0 0; display: grid; gap: 1.5rem; }
.principles__item {
  padding-left: 1.1rem;
  border-left: 2px solid var(--leaf);
}
.principles dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--moss);
  margin-bottom: .35rem;
}
.principles dd { margin: 0; color: var(--ink-soft, inherit); }

/* ---- Stacked layout ---- */
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__portrait {
    position: static;
    height: clamp(340px, 62vh, 520px);
  }
  .about-split__portrait img { object-position: 60% 20%; }
  /* Feather runs bottom-to-top once the photo sits above the copy. */
  .about-split__portrait::after {
    background: linear-gradient(to bottom,
                rgba(252,251,247,0) 78%,
                rgba(252,251,247,.9) 100%);
  }
  .about-split__inner { max-width: none; }
}

/* --------------------------------------------------------------------------
   18. PAST EVENTS
   Archived entries stay readable but sit back visually so the eye lands on
   what is coming up first.
   -------------------------------------------------------------------------- */
.event--past { opacity: .62; }
.event--past:hover,
.event--past:focus-within { opacity: 1; }
.event--past .event__date { background: var(--mist); color: var(--ink-soft); }
#events-empty { padding-block: clamp(1.5rem, 4vw, 3rem); }

/* --------------------------------------------------------------------------
   19. WEEKLY SCHEDULE  (Book a Session, group classes)
   The recurring teaching schedule, shown before the how-to-book steps so a
   visitor sees when Nikki actually teaches before being asked to click away.
   -------------------------------------------------------------------------- */
.schedule {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--leaf);
  border-radius: 4px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  /* Times on the left, the call to action filling the right, so four short
     rows don't leave half the card empty. */
  display: grid;
  grid-template-columns: 1.7fr 1fr;
}
.schedule__main { padding: clamp(1.75rem, 4vw, 2.75rem); }
.schedule__cta {
  background: var(--lotus-soft);
  border-left: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  /* Aligned to the top so it sits level with the schedule heading rather
     than floating in the middle of a tall card. */
  justify-content: flex-start;
}
.schedule__cta h4 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  text-transform: lowercase;
  letter-spacing: .02em;
  color: var(--moss);
  margin: 0 0 .6rem;
}
.schedule__cta .btn-row { margin-top: 1.4rem; }
.schedule__note { margin-top: 1.4rem; }
.schedule__head { margin-bottom: 1.5rem; }
.schedule__head h3 { margin-bottom: .35rem; }

.schedule__list { list-style: none; margin: 0; padding: 0; }
.schedule__row {
  display: grid;
  /* Four tracks. The location column collapses to nothing when a row has no
     .schedule__where, so adding a second studio later needs no CSS change. */
  grid-template-columns: minmax(5.5rem, .9fr) minmax(5rem, .8fr) 1.2fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.schedule__row:last-child { border-bottom: 0; }

.schedule__day {
  font-family: var(--display);
  letter-spacing: .06em;
  color: var(--moss);
}
.schedule__time {
  font-variant-numeric: tabular-nums;  /* times line up down the column */
  color: var(--ink);
}
.schedule__class {
  color: var(--ink);
  letter-spacing: .04em;
}
/* Location sits quieter than the class name; it is a qualifier, not the point. */
.schedule__where { color: var(--ink-soft); font-size: .9rem; }

.schedule__foot {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.schedule__foot .fine { margin-top: 1rem; }

@media (max-width: 560px) {
  /* Day and time pair up on one line, class name drops below. */
  .schedule__row {
    grid-template-columns: minmax(6rem, auto) 1fr;
    gap: .3rem 1rem;
    padding-block: 1rem;
  }
  /* Day and time share the top line; class and location share the next. */
  .schedule__class { grid-column: 1; }
  .schedule__where { grid-column: 2; }
}

/* Stack the card below the two-column breakpoint. */
@media (max-width: 900px) {
  .schedule { grid-template-columns: 1fr; }
  .schedule__cta {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   20. EVENT FLYERS
   Promo flyers are portrait and carry text, so cropping them to the default
   4:3 landscape cuts the details off. These show the whole flyer instead.
   -------------------------------------------------------------------------- */
.event__media--flyer img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--mist);
}
@media (max-width: 700px) {
  /* Full width on a phone would be enormous, so cap it and centre it. */
  .event__media--flyer img {
    aspect-ratio: 3 / 4;
    max-width: 260px;
    margin-inline: auto;
    display: block;
  }
}

/* --------------------------------------------------------------------------
   21. VIDEO GRID  (Gallery)
   Two up on desktop, one up on a phone. Videos never autoplay and never
   preload, so an unwatched clip costs the visitor nothing.
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  /* Capped column width so a single clip sits at a sensible size instead of
     stretching the full page. Two fit side by side, then it wraps. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 480px));
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.video-item { margin: 0; }
.video-item video {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Vertical clips shot on a phone. Add class="video-item video-item--portrait" */
.video-item--portrait video {
  aspect-ratio: 9 / 16;
  max-height: 70vh;
  object-fit: contain;
}
.video-item figcaption {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: .65rem .85rem;
}

/* --------------------------------------------------------------------------
   22. MODAL  (full teaching schedule)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(27, 29, 22, .72);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  background: var(--paper);
  border-top: 3px solid var(--leaf);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 3rem);
  width: min(100%, 620px);
  max-height: 90vh;
  overflow-y: auto;
}
.modal__panel h2 { margin-bottom: .35rem; }
.modal__close {
  position: absolute;
  top: .9rem;
  right: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding: .4rem .5rem;
}
.modal__close:hover { color: var(--moss); }

/* A button that reads as a link, used alongside real links in event rows. */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--leaf-deep);
  border-bottom: 1px solid currentColor;
}
.linkish:hover { color: var(--moss); }

/* --------------------------------------------------------------------------
   23. STACKED SCHEDULE
   One row per day, several class times inside it. Used in the modal and on
   the booking page now that a day can hold three classes.
   -------------------------------------------------------------------------- */
.schedule__list--stacked .schedule__row {
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  align-items: start;
  gap: 1rem;
}
.schedule__slots {
  display: grid;
  gap: .45rem;
}
.schedule__slot {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .75rem;
  color: var(--ink-soft);
}
.schedule__slot b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

@media (max-width: 520px) {
  .schedule__list--stacked .schedule__row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .schedule__slot { grid-template-columns: 5rem 1fr; }
}

/* --------------------------------------------------------------------------
   24. BOOKING CHOOSER  (book.html)
   Two routes, one decision. Whole card is the link so the target is large on
   a phone rather than a small line of text.
   -------------------------------------------------------------------------- */
.choose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.choose__card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--leaf);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.choose__card:hover,
.choose__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(27, 29, 22, .10);
}
.choose__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.choose__body { padding: clamp(1.5rem, 3vw, 2rem); }
.choose__body h2 { margin-bottom: .6rem; }
.choose__go {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: lowercase;
  color: var(--leaf-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.choose__card:hover .choose__go { color: var(--moss); }

/* --------------------------------------------------------------------------
   25. CALENDAR EMBED  (book-private.html)
   -------------------------------------------------------------------------- */
.calendar-embed {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.calendar-embed iframe {
  width: 100%;
  /* form_embed.js resizes this to fit; the min-height stops the box
     collapsing to nothing if that script is blocked. */
  min-height: 780px;
  border: 0;
  display: block;
}
@media (max-width: 600px) {
  .calendar-embed iframe { min-height: 900px; }
}

/* --------------------------------------------------------------------------
   26. RESERVE CARD  (book-group.html)
   Replaces the inline schedule. Summary on the left, the two actions on the
   right, with the full schedule one click away in the modal.
   -------------------------------------------------------------------------- */
.reserve-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--leaf);
  border-radius: 4px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.reserve-card__text { padding: clamp(1.75rem, 4vw, 2.75rem); }
.reserve-card__text h3 { margin-bottom: .6rem; }
.reserve-card__actions {
  background: var(--lotus-soft);
  border-left: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  align-items: flex-start;
}
.reserve-card__actions .btn-row { margin: 0; }
.reserve-card__actions .fine { margin-top: .4rem; }

@media (max-width: 900px) {
  .reserve-card { grid-template-columns: 1fr; }
  .reserve-card__actions {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   27. INTRO SPLIT  (book-private.html)
   Copy on the left, a pair of photos on the right. The smaller photo overlaps
   the larger one so the size difference between the two sources reads as a
   deliberate arrangement rather than a mismatch.
   -------------------------------------------------------------------------- */
.intro-split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.intro-split__copy h1 { margin-bottom: .5rem; }
.intro-split__copy .fine { margin-top: 1.5rem; }

.intro-split__media { position: relative; }
.intro-split__main {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.intro-split__inset {
  position: absolute;
  /* Left side: Nikki sits right of centre in the main photo, so an inset on
     the right covers her. */
  left: -2rem;
  bottom: -3rem;
  width: 40%;
  max-width: 215px;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 6px solid var(--paper);
  box-shadow: 0 10px 28px rgba(27, 29, 22, .12);
}

@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 6vw, 3rem);
  }
  .intro-split__media { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 520px) {
  /* Overlapping in a narrow column crowds the image, so they stack instead. */
  .intro-split__inset {
    position: static;
    width: 55%;
    margin: .75rem 0 0 auto;
    border-width: 0;
    box-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   28. LOCATION NOTE  (book-private.html)
   Where private sessions are held. Town only, since the full address goes
   out with the booking confirmation.
   -------------------------------------------------------------------------- */
.location-note {
  /* Not flex: the pin and the <strong> would each become flex items and the
     sentence would break into columns. */
  position: relative;
  margin-top: 1.5rem;
  padding: .85rem 1rem .85rem 2.1rem;
  background: var(--lotus-soft);
  border-radius: 4px;
  font-size: .95rem;
  line-height: 1.6;
}
.location-note strong { display: inline; color: var(--moss); }
/* Simple drawn pin, so no icon font is needed for one mark. */
.loc-pin {
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--leaf-deep);
}


/* Two stacked fine-print lines under the booking button need a little air. */
.booking-cta .fine { margin-top: 1.1rem; }
.booking-cta .fine + .fine { margin-top: .6rem; }

/* --------------------------------------------------------------------------
   29. SESSION OFFERINGS  (book-private.html)
   Cards sit centred and cap their width, so a single offering does not
   stretch across the page while two or three still sit side by side.
   -------------------------------------------------------------------------- */
.offerings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.offering {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--leaf);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.offering h3 { margin-bottom: .5rem; }
/* A short label in place of a price, so each card still has a clear
   second line under the name. */
.offering__meta {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--leaf-deep);
}
.offering .fine { margin-top: .9rem; }
