/* Eight Seas Jiu-Jitsu — shared styles
   Brand: black page, logo-yellow headings and buttons, white text. Light surfaces (title banners, footer,
   testimonials, sponsor cards, social tiles, coach quotes) are yellow or white with black text.
   Headings, nav, buttons: Cinzel (bold). Body and write-ups: Lora.
   Simplicity first: thin rules, small radius, gentle colour-shift hovers, no hard shadows. */

:root {
  color-scheme: dark;
  --black: #0B0B0B;        /* page background, and text on yellow/white */
  --surface: #181818;      /* raised black: hover tint, today row, image fills */
  --gold: #F5C523;         /* logo yellow (sampled from images/logo.png): headings, buttons, banners (12:1 with --black) */
  --gold-hover: #FFD94D;   /* lighter yellow: button hover */
  --text: #fff;            /* body text on black (19:1) */
  --white: #fff;
  --paper-tint: #FFF6D4;   /* pale yellow: hover on white tiles */
  --line: rgba(245, 197, 35, 0.32);         /* thin yellow rule on black */
  --line-strong: rgba(245, 197, 35, 0.65);  /* form borders, timetable rules */
  --line-ink: rgba(11, 11, 11, 0.16);       /* thin rule on white/yellow */
  --focus: var(--gold);
  --radius: 0.375rem;
  --font-display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --max: 76rem;
  --nav-h: 5rem;
  --nav-h-scrolled: 4.25rem;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Swappable photos */
  --maunga: url("/images/maunga.jpg");  /* AI-generated Pouakai-tarn reflection; TODO(owner): replace images/maunga.jpg with a real Mount Taranaki photo */
  --contact-bg: url("/images/contact-bg.jpg");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-family: var(--font-body); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--black);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--gold);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.5rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
strong, b { font-weight: 600; }

/* Light surfaces: black text, black focus ring */
.page-header,
.section--light,
.site-footer,
.testimonial,
.partner-card,
.social-tile,
.coach-words { --focus: var(--black); }

/* ---------- Links: quiet underline, gentle colour shift ---------- */
a { color: inherit; }
main a:not(.btn):not(.maunga-tile):not(.social-tile):not(.partner-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--link-line, var(--gold));
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
main a:not(.btn):not(.maunga-tile):not(.social-tile):not(.partner-link):hover { color: var(--link-hover, var(--gold)); text-decoration-color: currentColor; }
/* On white, yellow text would not read: links stay black with a black underline */
.section--light,
.partner-card { --link-line: var(--black); --link-hover: var(--black); }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; outline-color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
@media (min-width: 860px) { .section { padding: 5.5rem 0; } }
.section--flush-top { padding-top: 0 !important; }
.section--rule { border-top: 1px solid var(--line); }
.section--light { background: var(--white); color: var(--black); }
.section--light h2 { color: var(--black); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; line-height: 1.6; max-width: 40rem; }

.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.section-head--center { margin-inline: auto; text-align: center; }
/* short yellow rule under section headings */
.rule-under::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--gold);
}
.section-head--center .rule-under::after { margin-inline: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 11, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  transition: min-height 0.3s var(--ease-out);
}
.is-scrolled .nav { min-height: var(--nav-h-scrolled); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  line-height: 1;
}
.logo img {
  width: 3.25rem;
  height: 3.25rem;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.is-scrolled .logo img { width: 2.75rem; height: 2.75rem; }
.logo span small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  background: var(--gold);
  border: 0;
  border-radius: 50%;
  color: var(--black);
  cursor: pointer;
}
.nav-toggle svg { width: 1.375rem; height: 1.375rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem 1.5rem;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}
.nav-menu.is-open { display: block; animation: menu-in 0.25s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
/* Without JS, keep the menu reachable */
.no-js .nav-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 1rem; width: 100%; }
.no-js .nav-toggle { display: none; }
.no-js .nav { flex-wrap: wrap; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-links a {
  display: block;
  padding: 0.9rem 0.25rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-menu .btn { margin-top: 1.25rem; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu,
  .no-js .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .nav-links { flex-direction: row; gap: 1.75rem; }
  .nav-links a {
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid transparent;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav-menu .btn { margin: 0; width: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost { background: var(--black); color: var(--text); border-color: var(--text); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--surface); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* Arrow nudge */
.arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
a:hover .arrow,
a:focus-visible .arrow { transform: translateX(4px); }

/* ---------- Hero (Home): Back Beach photo ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 40rem; padding: 3.5rem 0; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; font-style: italic; }
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .btn-row { animation: fade-up 0.8s var(--ease-out) both; }
.hero h1 { animation-delay: 0.1s; }
.hero .lead { animation-delay: 0.2s; }
.hero .btn-row { animation-delay: 0.3s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* On phones the photo sits behind the text with a black wash so the headline stays readable */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.05) 0%, rgba(11, 11, 11, 0.45) 30%, rgba(11, 11, 11, 0.86) 58%, rgba(11, 11, 11, 0.94) 100%);
}

@media (min-width: 960px) {
  .hero {
    min-height: min(44rem, calc(100svh - var(--nav-h)));
    align-items: center;
    padding: 5rem 0 6rem;
  }
  .hero-copy > * { max-width: 52%; }
  .hero-art {
    inset: auto 0 0 auto;
    width: 58%;
    height: 100%;
    /* fade the photo into the black page behind the headline */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
    mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  }
  .hero-art::after { display: none; }
}

/* ---------- Page title banner: yellow with black text ---------- */
.page-header {
  padding: 3.5rem 0 3rem;
  background: var(--gold);
  color: var(--black);
}
@media (min-width: 860px) { .page-header { padding: 5rem 0 4rem; } }
.page-header h1 { color: var(--black); margin-bottom: 0; animation: fade-up 0.8s var(--ease-out) both; }
/* the short rule under the title: black (white only reaches 1.6:1 on this yellow) */
.page-header h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 1rem;
  background: var(--black);
}
.page-header .lead { margin: 1rem 0 0; font-style: italic; animation: fade-up 0.8s 0.15s var(--ease-out) both; }

/* Photo header (Contact): the mat photo under a light wash; title stays yellow */
.page-header--photo {
  --focus: var(--gold);
  background:
    linear-gradient(to right, rgba(11, 11, 11, 0.5) 0%, rgba(11, 11, 11, 0.22) 55%, rgba(11, 11, 11, 0.05) 100%),
    var(--contact-bg) 50% 38% / cover no-repeat,
    var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: 22rem;
}
.page-header--photo > .container { width: 100%; }
@media (min-width: 860px) { .page-header--photo { min-height: min(34rem, 36vw); } }
/* Desktop: the photo is zoomed out a touch so the elbow down to the whole back fits the banner.
   It is centred and fades into the black page on both sides. */
@media (min-width: 860px) {
  .page-header--photo { position: relative; isolation: isolate; background: var(--black); overflow: hidden; }
  .page-header--photo::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    top: -30.6%;          /* 160% of the banner tall, nudged up so the elbow shows */
    height: 160%;
    aspect-ratio: 4 / 3;  /* the photo's own shape, so the fade starts at its left edge */
    background:
      linear-gradient(to right, rgba(11, 11, 11, 0.45) 0%, rgba(11, 11, 11, 0) 55%),
      var(--contact-bg) 50% 50% / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 12%, #000 30%, #000 70%, rgba(0, 0, 0, 0.5) 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.5) 12%, #000 30%, #000 70%, rgba(0, 0, 0, 0.5) 88%, transparent 100%);
  }
}
.page-header--photo h1 { color: var(--gold); }
.page-header--photo h1::after { background: var(--gold); }
@media (min-width: 860px) { .page-header--photo { padding: 7rem 0 6rem; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
/* Home "He Tāngata": the Regionals photo is portrait; trim a little sky so it sits beside the text */
.photo--people { aspect-ratio: 4 / 5; object-position: 50% 70%; }
.class-photos { display: grid; gap: 1.25rem; }

/* ---------- Split layout ---------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; align-items: center; }
  .split--photo { grid-template-columns: 1.2fr 0.8fr; gap: 3.5rem; }
}
.split .tagline {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ---------- About "Our Story": layered photos of Henrique and Dani beside the text ---------- */
#our-story { scroll-margin-top: calc(var(--nav-h-scrolled) - 1.75rem); }  /* clears the sticky header when linked from Home */
.story-layout { display: grid; gap: 3rem; }
.story { max-width: 40rem; }
.story-signoff { margin-top: 2rem; font-style: italic; font-size: 1.15rem; line-height: 1.5; }
.story-signoff span { font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; }
.story-photos { position: relative; max-width: 34rem; }
.story-photo { margin: 0; }
.story-photo figcaption { margin-top: 0.5rem; font-size: 0.9rem; font-style: italic; line-height: 1.45; }
.story-photo--main figcaption { padding-right: 62%; }  /* keeps the caption clear of the overlapping inset photo */
.story-photo--inset {
  position: relative;
  width: 58%;
  margin: -16% 0 0 auto;
}
.story-photo--inset img { border: 6px solid var(--black); border-radius: calc(var(--radius) + 6px); }
.story-photo--inset figcaption { padding-left: 6px; }
@media (min-width: 860px) {
  .story-layout { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; align-items: start; }
  .story { grid-column: 2; grid-row: 1; }
  .story-photos { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--nav-h-scrolled) + 2rem); }
}

/* ---------- Home: "Nau Mai, Haere Mai" tiles over one maunga photo ---------- */
/* One picture sits behind all four tiles (2x2 on phones, 4 across on desktop), split by thin black gutters */
.maunga {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--maunga) center 40% / cover no-repeat, var(--surface);
}
.maunga li { display: flex; }
.maunga li:nth-child(even) { border-left: 4px solid var(--black); }
.maunga li:nth-child(n+3) { border-top: 4px solid var(--black); }
.maunga-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 12rem;
  padding: 1rem;
  color: var(--white);
  text-decoration: none;
}
.maunga-tile::before {
  /* dark wash so the white text always reads */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.05) 0%, rgba(11, 11, 11, 0.82) 100%);
  transition: background-color 0.3s ease;
}
.maunga-tile:hover::before,
.maunga-tile:focus-visible::before { background-color: rgba(11, 11, 11, 0.3); }
.maunga-tile h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 0.25rem; }
.maunga-tile p { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.maunga-tile .arrow { margin-top: 0.5rem; font-size: 1.2rem; }

@media (min-width: 860px) {
  .maunga { grid-template-columns: repeat(4, 1fr); background-position: center 18%; }
  .maunga li:nth-child(n) { border-top: 0; border-left: 6px solid var(--black); }
  .maunga li:first-child { border-left: 0; }
  .maunga-tile { min-height: 24rem; padding: 1.5rem; }
  .maunga-tile h3 { font-size: 1.35rem; }
  .maunga-tile p { font-size: 1rem; line-height: 1.45; }
}

/* ---------- Home: testimonials (white cards, black text) ---------- */
.testimonials { list-style: none; margin: 0 auto; padding: 0; max-width: 62rem; }
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
}
.testimonial blockquote { margin: 0 0 1.25rem; font-style: italic; font-size: 1.1rem; }
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}
.testimonial figcaption {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.testimonial__src {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0;
}

/* ---------- Home: sponsors strip (white, logos in their own colours) ---------- */
.partners-title { font-size: 1.25rem; letter-spacing: 0.12em; text-align: center; margin-bottom: 2rem; }
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.partners img { width: auto; height: 4rem; max-width: 15rem; object-fit: contain; }
.partners .partner--stacked img { height: 4.75rem; }
@media (max-width: 479px) { .partners { flex-direction: column; } }
.partners-more { margin: 2rem 0 0; text-align: center; }

/* ---------- Sponsors page (white cards, black text) ---------- */
.partner-list { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 860px) { .partner-list { grid-template-columns: repeat(3, 1fr); } }
.partner-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  overflow: hidden;
}
.partner-card__logo {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 2rem;
  border-bottom: 1px solid var(--line-ink);
}
.partner-card__logo img { width: auto; height: auto; max-width: 100%; max-height: 6rem; object-fit: contain; }
.partner-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; text-align: center; }
.partner-card__body p { margin: 0.75rem 0 0; }
.partner-card__body p:first-child { margin-top: 0; }
.partner-card__body .partner-card__link { margin-top: auto; padding-top: 1.25rem; }
.partner-link { text-decoration: none; }

/* ---------- Coaches ---------- */
.coach-grid {
  display: grid;
  gap: 3rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
@media (min-width: 600px) { .coach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .coach-grid { grid-template-columns: repeat(4, 1fr); } }
.coach { display: flex; flex-direction: column; }
.coach-photo {
  width: 15rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 35%;
  background: var(--surface);
}
.coach h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.coach p { margin: 0; }
.coach-role { font-weight: 500; }
.coach-belt { font-style: italic; }
/* Each coach's own words: a white card under the details.
   script.js clamps long quotes to six lines and adds a Read more toggle inside the card; without JS the full text shows. */
.coach-words {
  width: 100%;
  max-width: 18rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  text-align: left;
}
.coach-quote { margin: 0; }
.coach-quote::before {
  content: "\201C";
  display: block;
  height: 1.6rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
}
.coach .coach-quote p { font-style: italic; font-size: 0.98rem; line-height: 1.65; }
.coach-quote.is-clamped p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
.coach-quote__toggle {
  display: block;
  margin: 0.6rem 0 0;
  padding: 0.35rem 0;
  background: none;
  border: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}
.coach-quote__toggle span { border-bottom: 2px solid var(--gold); transition: border-color 0.2s ease; }
.coach-quote__toggle:hover span { border-color: var(--black); }

/* ---------- Timetable (classes) ---------- */
.tt2 { width: 100%; max-width: 46rem; border-collapse: collapse; margin: 0; border-top: 1px solid var(--line-strong); }
.tt2 th, .tt2 td { text-align: left; vertical-align: top; padding: 1rem 0.75rem; border-bottom: 1px solid var(--line-strong); }
.tt2 th {
  width: 10rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tt2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
/* the time column grows for long times (e.g. "8:30–10:30am") instead of running into the class name */
.tt2 li { display: grid; grid-template-columns: minmax(8.25rem, max-content) 1fr; gap: 0.75rem; font-size: 1.1rem; line-height: 1.45; }
.tt2-time { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.tt2-none { font-style: italic; }
.tt2 tr.is-today th,
.tt2 tr.is-today td { background: var(--surface); }
.tt2 tr.is-today th { box-shadow: inset 3px 0 0 var(--gold); }
.tt2 tr.is-today th::after {
  content: "Today";
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
}
@media (max-width: 36rem) {
  .tt2 tr { display: block; border-bottom: 1px solid var(--line-strong); }
  .tt2 th { width: auto; display: block; padding: 1rem 0.75rem 0.25rem; border-bottom: 0; }
  .tt2 td { display: block; padding: 0.25rem 0.75rem 1rem; border-bottom: 0; }
  .tt2 tr.is-today th::after { display: inline; margin: 0 0 0 0.6rem; }
  .tt2 li { grid-template-columns: minmax(7.75rem, max-content) 1fr; gap: 0.5rem; font-size: 1.05rem; }
}

/* ---------- Social tiles (about): white, black text ---------- */
.social-grid { display: grid; gap: 1.25rem; max-width: 48rem; }
@media (min-width: 640px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
.social-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.social-tile:hover,
.social-tile:focus-visible { background: var(--paper-tint); border-color: var(--gold); }
.social-tile__top { display: flex; align-items: center; gap: 0.75rem; }
.social-tile__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
}
.social-tile__mark svg { width: 1.4rem; height: 1.4rem; }
.social-tile__platform { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; }
.social-tile__handle { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }
.social-tile__action { margin-top: auto; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { padding-left: 1rem; border-left: 3px solid var(--gold); }
.contact-list h3 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.contact-list p,
.contact-list address { margin: 0; font-size: 1.1rem; font-style: normal; overflow-wrap: anywhere; }
.contact-list .muted { font-size: 1rem; margin-top: 0.4rem; }
.map {
  width: 100%;
  min-height: 20rem;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.map-wrap { display: flex; flex-direction: column; min-height: 20rem; }
.map-wrap .map { flex: 1; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 0.4rem; font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 0.8rem 1rem; background: var(--black); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 1.05rem;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem; }
.form-choices legend { font-weight: 500; padding: 0; margin-bottom: 0.6rem; }
.form-choices legend small { font-style: italic; font-size: 0.95rem; }
.form-choices label { display: block; position: relative; }
.form-choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.form-choices span { display: block; text-align: center; padding: 0.75rem 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--black); transition: background-color 0.2s ease; }
.form-choices label:hover span { background: var(--surface); }
.form-choices input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--black); font-weight: 600; }
.form-choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.is-error { color: #FF9C8A; }
.form-status:focus { outline: none; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; width: 100%; } }

/* ---------- Footer (yellow, black text) ---------- */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--gold);
  color: var(--black);
  font-size: 1rem;
}
.footer-grid { display: grid; gap: 2.25rem; margin-bottom: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.site-footer .logo { color: var(--black); }
.site-footer .logo img { width: 5rem; height: 5rem; }
.footer-tagline { margin-top: 1.25rem; font-style: italic; }
.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--black);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--black); }
.footer-links a,
.site-footer address a { text-decoration: none; border-bottom: 1px solid rgba(11, 11, 11, 0.45); transition: border-color 0.2s ease; overflow-wrap: anywhere; }
.footer-links a:hover,
.site-footer address a:hover { border-bottom-color: var(--black); }
.site-footer address { font-style: normal; }
.footer-social { display: flex !important; flex-wrap: wrap; gap: 0.5rem !important; margin-top: 1.25rem !important; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border: 1px solid var(--black);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.social-chip svg {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
}
.site-footer .social-chip:hover,
.site-footer .social-chip:focus-visible { background: var(--black); color: var(--gold); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 11, 11, 0.25);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (only when script.js adds .reveal) ---------- */
.reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; translate: none; }
}
