/*
Theme Name: BFT Blackburn
Theme URI: https://www.bodyfittraining.au/club/blackburn
Author: Skedyul
Description: One-page website for BFT Blackburn on Cottage Street. Enquiries are stored immediately and emailed after the form has already answered.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bft-blackburn
*/

@font-face {
  font-family: "D-DIN Italic";
  src: url("assets/fonts/D-DIN-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #00b5cc;
  --blue-dark: #0097ad;
  --ink: #101214;
  --body: #1c2124;
  --muted: #5c676c;
  --line: #e3e7ea;
  --paper: #f3f5f6;
  --white: #ffffff;
  --headline: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--headline); font-weight: 800; letter-spacing: -0.02em; line-height: 0.92; text-transform: uppercase; margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 40;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-note { max-width: 40rem; color: var(--muted); margin: 0.8rem 0 0; }
.lede { font-size: 1.12rem; max-width: 38rem; }

.nav, .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.menu a { text-decoration: none; font-size: 0.84rem; font-weight: 650; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--blue); }
.nav-cta, .submit, .dock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #042226;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.nav-cta { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
.nav-cta:hover, .submit:hover, .dock:hover { background: var(--blue-dark); color: var(--white); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: clip;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: brightness(0.78) contrast(1.04); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 48%, rgba(0,0,0,.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.12) 36%, rgba(0,0,0,.48) 100%);
}
.hero .nav, .hero-grid { position: relative; z-index: 1; }
.hero .nav { padding: 1.2rem 1.4rem 0; }
.hero .menu a, .hero .brand { color: var(--white); }
.hero .menu a[aria-current="page"], .hero .menu a:hover { color: var(--blue); }
.hero-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: auto auto 2.2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.2rem 0 1rem;
}
.hero h1 { font-size: clamp(3.5rem, 6.4vw, 6rem); color: var(--white); }
.hero h1 span { display: block; color: var(--blue); }
.hero-sub { margin: 0.9rem 0 0.35rem; font-family: var(--headline); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.8rem); text-transform: uppercase; }
.hero-date { margin: 0 0 1.1rem; max-width: 34rem; color: rgba(255,255,255,.88); }
.pills, .checks { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.pills li, .checks li { border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.checks li { border-color: var(--line); color: var(--ink); }

.form-card {
  background: var(--white);
  color: var(--body);
  border-radius: 28px;
  padding: 1.05rem 1.1rem 0.9rem;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
.form-card h2, .band .form-card h2 { font-size: 1.7rem; max-width: none; color: var(--ink); margin-bottom: 1.25rem; }
.form-lead { margin: 0.2rem 0 0.55rem; color: var(--muted); font-size: 0.92rem; }
.form-error { display: none; margin: 0 0 0.7rem; color: #8d1d1d; font-weight: 650; }
.form-error.is-on { display: block; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.field { display: block; margin: 0 0 0.45rem; }
.field span, .intent legend { display: block; margin-bottom: 0.28rem; font-size: 0.78rem; font-weight: 700; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.phone { display: flex; align-items: center; gap: 0.55rem; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 0.8rem; }
.phone:focus-within { outline: 2px solid var(--blue); border-color: var(--blue); }
.phone strong { font-size: 0.95rem; }
.phone input { border: 0; padding: 0.72rem 0; outline: none; }
.age, .consent { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.2rem 0 0.6rem; font-size: 0.84rem; }
.age input, .consent input { margin-top: 0.2rem; }
.intent { border: 0; margin: 0 0 0.7rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.38rem 0.7rem; font-size: 0.82rem; font-weight: 650; }
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); }
.hp { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
.submit { width: 100%; border-radius: 14px; padding: 0.9rem 1rem; font-size: 1.02rem; }
.submit[aria-busy="true"] { opacity: 0.75; }
.reassure { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin: 0.7rem 0 0; color: var(--muted); font-size: 0.78rem; }
.form-proof { margin: 0.45rem 0 0; font-size: 0.82rem; font-weight: 650; color: var(--ink); }
.form-proof .stars { color: #f5b400; letter-spacing: 0.04em; }
.form-thanks { padding: 0.4rem 0 0.2rem; }
.form-thanks h3 { font-size: 2.4rem; }
.form-thanks p:last-child { color: var(--muted); }
.form-card.is-done .lead-form { display: none; }

.band { padding: 4.5rem 0; }
.band h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; }
.paper { background: var(--paper); }
.ink { background: var(--ink); color: var(--white); }
.ink .section-note, .ink p { color: rgba(255,255,255,.78); }
.ink .eyebrow { color: var(--blue); }

.fit-grid, .card-grid, .review-grid, .team-grid { display: grid; gap: 1rem; margin-top: 1.6rem; }
.fit-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.review-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card, .review, .coach, .price {
  background: var(--white);
  border-radius: 20px;
  padding: 1.15rem 1.1rem 1.2rem;
}
.ink .card { background: #1a1d20; }
.card h3, .coach h3, .price h3, .review strong { font-size: 1.45rem; }
.card p, .coach p, .review p, .price p { margin: 0.45rem 0 0; }
.card .num { color: var(--blue); font-family: var(--headline); font-size: 1.4rem; margin: 0 0 0.4rem; }

.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 360px 360px; gap: 0.7rem; margin-top: 1.5rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; border-radius: 18px; }
.mosaic img:first-child { grid-row: 1 / span 2; object-position: center 42%; }
address { font-style: normal; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }
.times-board { align-items: start; gap: 2.4rem; }
.times-board h2 { max-width: none; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1; white-space: nowrap; margin-bottom: 0; }
.times-board .rhythm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split img, .frame img, video.clip { width: 100%; border-radius: 22px; object-fit: cover; }
video.clip { background: #000; max-height: 640px; }
.caption { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.88rem; }

.day-block { margin-top: 1.8rem; }
.day-block h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.day-block .rhythm { margin-top: 0.75rem; }
.day-block .rhythm.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.day-block .rhythm.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.day-block .rhythm.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day-block .closed { display: inline-block; margin: 0.75rem 0 0; background: var(--paper); border-radius: 18px; padding: 1rem 1.15rem; font-family: var(--headline); font-size: 1.45rem; text-transform: uppercase; }
.rhythm { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.rhythm li { background: var(--paper); border-radius: 18px; padding: 1rem; }
.ink .rhythm li { background: #1a1d20; }
.rhythm span { display: block; color: var(--blue); font-weight: 800; letter-spacing: 0.04em; }
.rhythm strong { display: block; margin: 0.25rem 0; font-family: var(--headline); font-size: 1.45rem; text-transform: uppercase; }
.rhythm p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.hours { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours th, .hours td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; }

.ink .review,
.ink .review p,
.ink .review strong { color: var(--ink); }
.ink .review small { color: var(--muted); }
.ink .review .stars { color: #f5b400; }
.review header { display: flex; gap: 0.6rem; align-items: center; }
.g-mark { width: 18px; height: 18px; flex: none; }
.stars { color: #f5b400; letter-spacing: 0.08em; margin: 0.45rem 0; }
.review small { color: var(--muted); }

.faq-list details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { margin: 0.45rem 0 0.2rem; color: var(--muted); }

.price-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; margin-top: 1.4rem; align-items: stretch; }
.price { background: var(--ink); color: var(--white); }
.price .amount { font-family: var(--headline); font-size: clamp(4rem, 8vw, 6.5rem); line-height: 0.85; color: var(--blue); margin: 0.2rem 0; }
.price .also { margin: 0.35rem 0 0; font-size: 1.15rem; }
.price .also strong { font-family: var(--headline); font-weight: 700; font-size: 2rem; color: var(--blue); }
.price ul { margin: 0.8rem 0 0; padding-left: 1.1rem; }
.price li + li { margin-top: 0.35rem; }

.page-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: end; padding: 2.5rem 0 1rem; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.page-hero img { width: 100%; height: 520px; object-fit: cover; object-position: center 16%; border-radius: 22px; }
.topbar { padding: 1rem 0; width: 100%; }
.top { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; }

.footer { background: var(--paper); padding: 2rem 0 5.5rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: start; }
.footer a { font-weight: 650; }
.tagline { font-family: "D-DIN Italic", var(--text); font-style: italic; font-size: 1.4rem; letter-spacing: 0.01em; text-transform: none; margin: 0.4rem 0; }

.dock {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  border-radius: 0;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}
.dock.is-hidden { display: none; }

@media (max-width: 1200px) {
  .hero .nav, .topbar { align-items: flex-start; flex-wrap: wrap; }
  .menu { width: 100%; justify-content: flex-start; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .page-hero, .price-row, .fit-grid, .card-grid, .review-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .rhythm, .day-block .rhythm.six, .day-block .rhythm.five, .day-block .rhythm.three { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 340px 340px; }
  .mosaic img:first-child { grid-row: auto; grid-column: 1 / span 2; height: 260px; }
  .page-hero img { height: 420px; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero-grid { margin-top: 1.5rem; }
  .dock { display: flex; }
  body { padding-bottom: 3.4rem; }
  .team-grid, .rhythm, .mosaic, .name-row { grid-template-columns: 1fr; }
  .times-board h2 { white-space: normal; }
  .times-board .rhythm { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .mosaic img { height: 420px; }
  .mosaic img:first-child { grid-column: auto; height: 280px; }
  .menu a { font-size: 0.8rem; }
}
