/* Tait Fitness — main stylesheet (no build step) */

/* ---------- Fonts (self-hosted Poppins, latin subset, SIL OFL) ---------- */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format("woff2"); }

/* ---------- Tokens (from the live site's theme) ---------- */
:root {
  --orange: #ef6024;
  --orange-dark: #6a2609;
  /* Text on orange (buttons, header links, badges, value boxes). Andy chose near-black (option A, 2026-11-03): 6.4:1.
     White would be 3.3:1, which passes AA only for large text (>= 19px bold). */
  --on-orange: var(--bg);
  --bg: #121212;
  --panel: #1a1a1a;
  --black: #000;
  --white: #fff;
  --muted: #c9c9c9;
  --font: Poppins, Arial, Helvetica, sans-serif;
  --max: 1170px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --header-h: 72px;
  --section-pad: clamp(3rem, 8vw, 5.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font: 400 1rem/1.65 var(--font);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--orange); text-underline-offset: 0.15em; }
a:hover { color: var(--white); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
p { margin: 0 0 1em; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--black);
}

.visually-hidden {
  position: absolute !important; 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: -100px; z-index: 100;
  background: var(--white); color: var(--black); padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--panel { background: var(--panel); }
.section__title { text-align: center; }
.section__title::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 0.45em auto 0; background: var(--orange); border-radius: 2px;
}

/* ---------- Buttons ---------- */
/* Text on orange buttons: --on-orange (near-black 6.4:1 by default; white is only 3.3:1) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.6em;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--dark { background: var(--bg); color: var(--white); }
.btn--dark:hover { background: var(--orange-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--bg); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--orange); color: var(--on-orange); }
.site-header__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: 120px; height: auto; }

.nav-toggle {
  display: none; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.4rem 0.8rem;
  background: var(--bg); color: var(--white); border: 0; border-radius: var(--radius); font-weight: 500; cursor: pointer;
}
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0.4rem 0.8rem;
  background: none; border: 0; border-radius: var(--radius); color: var(--on-orange); font-weight: 500; text-decoration: none; cursor: pointer;
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"] { background: rgb(0 0 0 / 0.12); color: var(--on-orange); }
.site-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.site-nav__sub-toggle svg { transition: transform 0.15s; }
.site-nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.site-nav__sub {
  display: none; list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 300px;
  background: var(--bg); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.site-nav__sub a {
  display: block; padding: 0.6rem 0.8rem; border-radius: 4px; color: var(--white); text-decoration: none;
}
.site-nav__sub a:hover { background: var(--orange); color: var(--on-orange); }
.site-nav__sub a[aria-current="page"] { color: var(--orange); }
.site-nav__sub a[aria-current="page"]:hover { color: var(--on-orange); }
.site-nav__sub-toggle[aria-expanded="true"] + .site-nav__sub { display: block; }
/* No-JS fallback: open on hover / keyboard focus */
html:not(.js) .has-sub:hover > .site-nav__sub,
html:not(.js) .has-sub:focus-within > .site-nav__sub { display: block; }
.site-nav__book { margin-left: 0.5rem; min-height: 44px; padding-block: 0.5em; }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); padding: 0.75rem var(--gutter) 1.25rem; max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 12px 24px rgb(0 0 0 / 0.4);
  }
  .js .site-nav.is-open { display: block; }
  .site-header__inner { position: relative; flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 0.75rem; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .js .site-nav__link { color: var(--white); width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .js .site-nav__link:hover, .js .site-nav__link[aria-expanded="true"] { background: var(--panel); color: var(--white); }
  .site-nav__sub { position: static; box-shadow: none; min-width: 0; padding: 0 0 0.4rem 1rem; }
  .site-nav__book { margin: 0.75rem 0 0; width: 100%; }
  .js .site-nav__book { background: var(--orange); color: var(--on-orange); }
}

/* ---------- Hero ---------- */
/* Square photo of Andy under the sign (1254x1254, 2026-11-08). Phones/tablets: the whole photo, name over the bottom of it, button
   below. Desktop: photo on the right, faded into black on its left edge, name and button on the left. */
.hero { display: grid; background: var(--black); }
.hero__media { grid-area: 1 / 1; position: relative; overflow: hidden; }
.hero__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 45%;
  max-height: calc(100svh - var(--header-h) - 5.5rem); min-height: 300px;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.85) 0%, rgb(0 0 0 / 0.45) 22%, rgb(0 0 0 / 0) 40%);
}
.hero__content { display: contents; }
.hero__title {
  grid-area: 1 / 1; align-self: end; z-index: 1; text-align: center;
  padding: 0 var(--gutter) 0.9rem; margin: 0; text-shadow: 0 2px 12px rgb(0 0 0 / 0.8);
}
.hero__name { display: block; font-size: clamp(2.4rem, 7vw, 4.75rem); letter-spacing: 0.01em; }
.hero__role { display: block; font-weight: 500; font-size: clamp(1.1rem, 2.6vw, 1.6rem); color: var(--white); margin-top: 0.15em; }
.hero__cta { grid-area: 2 / 1; justify-self: center; margin: 1.1rem var(--gutter) 1.5rem; }

@media (min-width: 900px) {
  .hero { --hero-h: min(calc(100svh - var(--header-h)), 860px, 62vw); min-height: var(--hero-h); }
  .hero__media {
    justify-self: end; width: var(--hero-h); height: var(--hero-h);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%); mask-image: linear-gradient(to right, transparent 0, #000 35%);
  }
  .hero__media img { width: 100%; height: 100%; max-height: none; min-height: 0; }
  .hero__media::after { background: linear-gradient(to top, rgb(0 0 0 / 0.5) 0%, rgb(0 0 0 / 0) 25%); }
  .hero__content {
    grid-area: 1 / 1; align-self: center; z-index: 1;
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  }
  .hero__title { align-self: auto; padding: 0; margin: 0 0 1.5rem; text-align: left; }
  .hero__cta { margin: 0; }
}

/* ---------- Carousel (shared) ---------- */
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; position: relative; border-radius: var(--radius);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--carousel-gap, 1rem); }
.carousel__slide { flex: none; scroll-snap-align: start; }
.carousel__slide img { border-radius: var(--radius); background: var(--panel); }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.carousel__btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 2px solid var(--white); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer;
}
.carousel__btn:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.carousel__status { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
html:not(.js) .carousel__controls { display: none; }

/* Testimonials: 1 / 2 / 3 square cards */
.carousel--testimonials .carousel__slide { width: 100%; }
@media (min-width: 640px) { .carousel--testimonials .carousel__slide { width: calc((100% - var(--carousel-gap, 1rem)) / 2); } }
@media (min-width: 1000px) { .carousel--testimonials .carousel__slide { width: calc((100% - 2 * var(--carousel-gap, 1rem)) / 3); } }
.carousel--testimonials img { width: 100%; aspect-ratio: 1; }

/* Gym: fixed-height strip, natural widths */
.carousel--gym { --strip-h: 300px; }
@media (min-width: 700px) { .carousel--gym { --strip-h: 420px; } }
.carousel--gym .carousel__slide img { height: var(--strip-h); width: auto; }

/* ---------- Coaches ---------- */
.coaches { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 820px; margin-inline: auto; }
.coach { margin: 0; text-align: center; }
.coach img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.coach__name { margin: 1rem 0 0.1rem; font-size: 1.6rem; }
.coach__role { margin: 0; color: var(--orange); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Welcome over video ---------- */
.welcome { position: relative; isolation: isolate; overflow: hidden; background: var(--black); }
.welcome__bg { position: absolute; inset: 0; z-index: -2; }
.welcome__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.welcome__overlay { position: absolute; inset: 0; z-index: -1; background: rgb(0 0 0 / 0.72); }
@media (min-width: 900px) {
  .welcome__overlay { background: rgb(0 0 0 / 0.75); }
  /* Andy's choice (variant B): soften the heavily-cropped portrait clip so the text stands out. Scaled up so the
     blurred edges stay outside the frame. Phones show the clip full-bleed, unblurred. */
  .welcome__video { filter: blur(10px); transform: scale(1.12); }
}
.welcome__content { max-width: 760px; padding-block: var(--section-pad); text-shadow: 0 1px 8px rgb(0 0 0 / 0.6); }
.welcome__content .btn { text-shadow: none; display: flex; width: fit-content; margin-inline: auto; }
.welcome__subtitle { font-size: clamp(1.2rem, 2.4vw, 1.4rem); margin: 1.75rem 0 0.75rem; }
.welcome__content strong { font-weight: 500; color: var(--orange); }
.welcome__list { padding-left: 1.2em; margin: 0 0 1.75rem; }
.welcome__list li { margin-bottom: 0.4em; }
.welcome__list li::marker { color: var(--orange); }
.quote { margin: 0 0 2rem; padding-left: 1.1rem; border-left: 4px solid var(--orange); }
.quote p { font-size: 1.1rem; font-style: italic; }
.quote footer { font-weight: 800; color: var(--orange); }
.video-toggle {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 40px; padding: 0.3rem 0.8rem; border: 1px solid rgb(255 255 255 / 0.6); border-radius: 999px;
  background: rgb(0 0 0 / 0.55); color: var(--white); font-size: 0.85rem; cursor: pointer;
}
.video-toggle:hover { background: rgb(0 0 0 / 0.8); }
html:not(.js) .video-toggle { display: none; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
/* Placeholder business card — to be restyled from Andy's card photo */
.biz-card {
  position: relative; overflow: hidden;
  background: var(--black); border: 1px solid #2a2a2a; border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
}
.biz-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--orange); }
.biz-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.biz-card__logo { width: 110px; border-radius: 4px; }
.biz-card__name { margin: 0; font-size: 1.5rem; font-weight: 800; }
.biz-card__role { margin: 0; color: var(--orange); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.biz-card__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
.biz-card__list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.biz-card__list svg { flex: none; margin-top: 0.2em; color: var(--orange); }
.biz-card__list a { color: var(--white); text-decoration-color: var(--orange); }
.biz-card__list a:hover { color: var(--orange); }
.map { margin: 0; }
.map a { display: block; border-radius: var(--radius); overflow: hidden; }
.map img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform 0.3s; }
.map a:hover img { transform: scale(1.02); }
.map figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.map figcaption a { color: var(--muted); }
.map figcaption > span { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); padding-block: 2rem 6rem; font-size: 0.95rem; } /* bottom space: floating button */
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__links a, .link-button { color: var(--white); }
.site-footer__links a:hover, .link-button:hover { color: var(--orange); }
.site-footer__copy { margin: 0; color: var(--muted); }
.link-button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

/* Floating "Book a free consultation": always shown, on every page and screen size (Mark, 2026-11-08) */
.float-book {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0.6rem 1.2rem;
  background: var(--orange); color: var(--on-orange); border-radius: 999px; font-weight: 800; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.45);
}
.float-book:hover { background: var(--orange-dark); color: var(--white); }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--panel); border-top: 4px solid var(--orange); box-shadow: 0 -10px 30px rgb(0 0 0 / 0.5);
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: var(--max); margin-inline: auto; padding: 1rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.consent__text { flex: 1 1 420px; }
.consent__title { font-size: 1.1rem; margin: 0 0 0.25rem; }
.consent__text p { margin: 0; font-size: 0.95rem; }
.consent__text a { color: var(--white); }
.consent__actions { display: flex; gap: 0.75rem; flex: 0 0 auto; }
/* Accept and Reject are deliberately identical */
.btn--consent { background: var(--white); color: var(--bg); min-width: 120px; }
.btn--consent:hover { background: var(--orange); color: var(--on-orange); }
@media (max-width: 480px) { .consent__actions { width: 100%; } .btn--consent { flex: 1; } }
body:has(.consent:not([hidden])) .float-book { visibility: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 404 ---------- */
.not-found { padding-block: var(--section-pad); text-align: center; min-height: 60vh; }
.not-found__code { margin: 0; font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; color: var(--orange); }
.not-found h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.not-found__lead { color: var(--muted); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.5rem 0 3rem; }
.not-found__sub { font-size: 1.3rem; }
.not-found__links { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; display: grid; gap: 0.25rem; }
.not-found__links a {
  display: block; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--panel);
  color: var(--white); text-decoration: none; font-weight: 500;
}
.not-found__links a:hover { background: var(--orange); color: var(--on-orange); }

/* ---------- Content pages (forms, privacy) ---------- */
.page { padding-block: clamp(2rem, 6vw, 3.5rem) var(--section-pad); }
.page__title { text-align: center; font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 0.9em; }
.page--prose .container { max-width: 820px; }
/* Google Forms embeds have a fixed height (they don't resize to their content); the iframe scrolls if needed */
.form-embed { max-width: 820px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; }
.form-embed iframe { display: block; width: 100%; border: 0; }
@media (max-width: 600px) { .form-embed iframe { height: 2400px; } }
.form-embed__fallback { max-width: 820px; margin: 1rem auto 0; text-align: center; color: var(--muted); font-size: 0.95rem; }
.page--prose h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-top: 2.2rem; }
.page--prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.page--prose ul { padding-left: 1.2em; }
.page--prose li { margin-bottom: 0.4em; }
.page--prose code { font-size: 0.92em; padding: 0.05em 0.3em; border-radius: 3px; background: #2a2a2a; }
/* DRAFT privacy notice: the draft box and every [placeholder] stay visible until Andy has filled them in */
.draft-box { margin: 0 0 2rem; padding: 1rem 1.25rem; border: 2px dashed #ffd43b; border-radius: var(--radius); background: #2b2610; }
.draft-box p { margin: 0 0 0.4em; }
.draft-box p:last-child { margin: 0; }
mark.ph { padding: 0 0.2em; border-radius: 3px; background: #ffd43b; color: var(--black); font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.ph mark.ph { background: #ffb000; }
