/* Legacy Dojo
   Look: black as the main color, with red accents, light grey and white.
   Fonts: Saira Condensed for headings, Source Sans 3 for text. Phone first, then wider screens. */

:root {
  --ink: #0a0a0a;
  --black: #111111;       /* main color */
  --black-2: #1d1d1d;     /* cards on black */
  --paper: #ececec;       /* light grey bands */
  --white: #ffffff;
  --red: #d0302a;         /* buttons and accents */
  --red-dark: #a8241f;
  --red-soft: #ff6b5e;    /* red for small text on black */
  --text: #141414;
  --muted: #4d4d4d;
  --muted-on-dark: #b8b8b8;
  --line: #d2d2d2;
  --line-dark: #333333;

  --display: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --pad: 20px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.5rem, 10vw, 4.25rem); }
h3 { font-size: 1.625rem; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.band-black :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 12px 16px; background: var(--white); color: var(--ink); font-weight: 700;
}
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 26px;
  border: 2px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--black-2); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-logo { height: 40px; width: auto; }
.brand-seal {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.brand-text small { margin-top: 4px; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.nav { display: none; }
.header-book { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--black);
  /* tatami-style seams */
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 120px 240px;
  color: var(--white);
  padding: 44px 0 52px;
}
.hero-inner { display: grid; gap: 32px; }
.hero .eyebrow { color: var(--red-soft); }
.hero-title { margin-top: 14px; font-size: clamp(3rem, 12vw, 5.25rem); }
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--red-soft); }
.hero-sub { margin-top: 18px; max-width: 40ch; font-size: 1.1875rem; color: var(--muted-on-dark); }
.hero-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  font-weight: 700;
  font-size: 1.1875rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 220px; }

/* ---------- Photos (placeholders show until the real photos are added) ---------- */

.photo { position: relative; overflow: hidden; background: var(--black-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { display: none; }
.photo.is-empty {
  background: repeating-linear-gradient(135deg, var(--black-2) 0 2px, var(--black) 2px 16px);
  border: 1px dashed var(--line-dark);
}
.photo.is-empty .photo-note {
  display: block;
  position: absolute;
  inset: auto 14px 14px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted-on-dark);
}
.photo-note b { display: block; font-weight: 400; }
.hero-photo { aspect-ratio: 3 / 2; width: 100%; }
.hero-photo img { object-position: center 40%; }
@media (max-width: 959px) { .hero-photo.is-empty { display: none; } }
@media (min-width: 960px) { .hero-photo { aspect-ratio: 4 / 5; max-height: 560px; } }

/* ---------- Bands ---------- */

.band { padding: 72px 0; }
.band-paper { background: var(--paper); color: var(--text); }
.band-white { background: var(--white); color: var(--text); }
.band-black { background: var(--black); color: var(--white); }
.band-lead { margin-top: 14px; max-width: 54ch; font-size: 1.1875rem; color: var(--muted); }
.band-black .band-lead { color: var(--muted-on-dark); }

/* ---------- Booking ---------- */

.book { display: grid; gap: 32px; }
.book-intro p { margin-top: 14px; max-width: 46ch; font-size: 1.1875rem; color: var(--muted); }
.steps { margin-top: 22px; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 1.0625rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}
.steps b { font-weight: 700; }

.book-panel {
  background: var(--white);
  border-top: 6px solid var(--red);
  padding: 26px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.book-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 1rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 12px 14px; background: #fbe9e7; color: #7a1b14; font-weight: 600; }
.small-print { font-size: 0.9375rem; color: var(--muted); text-align: center; }
.small-print a { color: var(--black); font-weight: 700; }

.booked { display: grid; gap: 14px; }
.booked h3 { font-size: 2.25rem; }
.booked-where { color: var(--muted); }
.booked-where b { color: var(--text); }

/* ---------- Built for adults ---------- */

.reasons { list-style: none; margin-top: 32px; display: grid; gap: 14px; }
.reasons li { padding: 22px 20px; background: var(--paper); border-left: 4px solid var(--red); }
.reasons p { margin-top: 8px; color: var(--muted); }

.gym-strip { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gym-strip .photo { aspect-ratio: 4 / 3; }
.gym-strip .photo:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gym-strip .photo:nth-child(2) img { object-position: left center; }

/* ---------- Training ---------- */

.disciplines { list-style: none; margin-top: 32px; display: grid; gap: 12px; }
.disciplines li { padding: 22px 20px; background: var(--black-2); border-top: 4px solid var(--red); }
.disciplines p { margin-top: 8px; color: var(--muted-on-dark); }

/* ---------- Coach ---------- */

.coach { display: grid; gap: 36px; }
.coach-line { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 1.75rem; text-transform: uppercase; color: var(--red); }
.creds { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.creds li { position: relative; padding-left: 26px; font-size: 1.125rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--red); }
.coach-copy { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.coach-text .btn { margin-top: 22px; }
.coach-text .eyebrow + h2 { margin-top: 10px; }
.coach-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-photo { aspect-ratio: 4 / 5; }

/* ---------- Classes & pricing ---------- */

.options { margin-top: 32px; display: grid; gap: 16px; }
.option { display: grid; gap: 12px; align-content: start; padding: 26px 22px; background: var(--white); color: var(--text); border-top: 6px solid var(--red); }
.option-tag { font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.option-name { font-size: 2.25rem; }
.option-price { font-family: var(--display); font-weight: 700; font-size: 3.5rem; line-height: 1; }
.option-price small { font-size: 1.5rem; color: var(--muted); }
.option-per, .option-note { color: var(--muted); }
.schedule { display: grid; gap: 10px; }
.day { padding: 14px 16px; background: var(--paper); }
.day p { font-size: 1.0625rem; }
.day-name { font-family: var(--display); font-weight: 700; font-size: 1.375rem !important; text-transform: uppercase; }
.time { display: inline-block; min-width: 7.5em; font-weight: 700; color: var(--red-dark); }
.blocks { list-style: none; display: grid; }
.block { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.block:last-child { border-bottom: 1px solid var(--line); }
.block-name { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; line-height: 1.1; }
.block-per { font-size: 0.9375rem; color: var(--muted); }
.block-price { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
@media (min-width: 640px) { .block-name { font-size: 1.5rem; } .block-price { font-size: 2rem; } .block { gap: 14px; } }
.block .btn { min-height: 46px; padding: 6px 14px; font-size: 1.125rem; }
.pricing-note { margin-top: 22px; color: var(--muted-on-dark); }
.pricing-free { margin-top: 16px; }

/* ---------- Location ---------- */

.location { display: grid; gap: 28px; }
.address { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; text-transform: uppercase; }
.details { margin: 20px 0 24px; display: grid; gap: 4px; }
.details dt { margin-top: 10px; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.details a { color: var(--black); font-weight: 700; }
.map { min-height: 300px; background: var(--line); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* ---------- Footer ---------- */

.footer { padding: 36px 0 120px; background: var(--ink); color: var(--muted-on-dark); font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: var(--white); }
.footer-brand img { height: 44px; width: auto; }
.footer a { color: var(--white); }

/* ---------- Sticky phone button ---------- */

.sticky-book {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 10, 0.96);
  transition: transform 0.2s ease;
}
.sticky-book.is-hidden { transform: translateY(120%); }

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .disciplines { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  :root { --pad: 32px; --header-h: 84px; }

  .nav { display: flex; gap: 28px; margin-right: 8px; }
  .nav a {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .header-book { display: inline-flex; min-height: 46px; padding: 6px 18px; font-size: 1.125rem; }

  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 7fr 5fr; align-items: center; gap: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }

  .band { padding: 100px 0; }
  .book { grid-template-columns: 5fr 6fr; align-items: start; gap: 64px; }
  .book-panel { padding: 34px 32px; }
  .reasons { grid-template-columns: repeat(4, 1fr); }
  .gym-strip { grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
  .gym-strip .photo, .gym-strip .photo:first-child { grid-column: auto; aspect-ratio: auto; height: 300px; }
  .disciplines { grid-template-columns: repeat(4, 1fr); }
  .options { grid-template-columns: 1fr 1fr; gap: 24px; }
  .option { padding: 32px 30px; }
  .coach { grid-template-columns: 6fr 5fr; align-items: center; gap: 64px; }
  .location { grid-template-columns: 5fr 7fr; align-items: stretch; gap: 64px; }
  .map { min-height: 420px; }

  .footer { padding-bottom: 40px; }
  .footer-inner { grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .sticky-book { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

