/* =====================================================================
   Headland Strength Club · industry layer on top of Marquee
   Loads after tokens.css and marquee.css. Adds what a multi-page gym site
   needs: page nav and a small-screen menu, inner-page heroes, the weekly
   timetable with filters and demo booking, the free-week flow, coach
   cards, the facilities floor plan, hours and a contact form. Every colour
   comes from the block variables (--bg, --fg, --pop, --pop-fg); the blocks
   themselves are dialled in each page's <style>.
   ===================================================================== */

/* ---------------------------------------------------------------- nav additions */
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid currentColor; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 20px; height: 20px; }
.nav-menu[open] summary { background: var(--pop); color: var(--pop-fg); border-color: var(--pop); }
.nav-menu > div { position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); display: grid; padding: 10px; border-radius: 22px; box-shadow: var(--shadow-sticker); rotate: -1.5deg; }
.nav-menu > div a { padding: 12px 14px; font: 400 30px/0.95 var(--display); font-variation-settings: "wdth" 104, "wght" 880; text-transform: uppercase; border-bottom: 3px solid color-mix(in srgb, currentColor 18%, transparent); }
.nav-menu > div a:last-child { border-bottom: 0; }
.nav-menu > div a[aria-current="page"] { color: var(--pop); }
.u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- shared */
.more-row { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: 14px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 18px; border-top: 3px solid color-mix(in srgb, currentColor 22%, transparent); font: 600 12px/1.4 var(--body); font-variation-settings: "wdth" 110; text-transform: uppercase; letter-spacing: 0.06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 3px solid currentColor; background: none; font: 700 13px/1 var(--body); font-variation-settings: "wdth" 115; text-transform: uppercase; letter-spacing: 0.04em; transition: font-variation-settings 0.3s var(--ease), scale 0.3s var(--spring); }
.chip:hover { font-variation-settings: "wdth" 125, "wght" 850; }
.chip:active { scale: 1.06 0.9; }
.chip[aria-pressed="true"] { background: var(--pop); color: var(--pop-fg); border-color: var(--pop); }

/* ---------------------------------------------------------------- inner-page heroes */
.page-hero { padding-bottom: 0; }
.page-hero .hero-foot { padding-bottom: var(--s-8); }
.page-tape { --lead: 2%; position: relative; z-index: 3; rotate: -1.8deg; width: 106%; margin: 0 -3% -40px; font-size: clamp(30px, 4.2vw, 64px); box-shadow: 0 0 0 3px var(--ink); }
.page-hero + section { padding-top: calc(40px + var(--s-9)); }

/* ---------------------------------------------------------------- timetable */
.tt { padding-bottom: var(--s-9); overflow-x: clip; }
.tt-head { padding-bottom: var(--s-7); }
.tt-tools { display: flex; flex-wrap: wrap; gap: 20px 40px; padding: 24px 0; border-top: 4px solid currentColor; }
.tt-filter { display: grid; gap: 10px; }
.tt-tabs { display: none; }
.tt-days { display: grid; gap: 48px; }
.tt-day-h { font-size: clamp(40px, 5vw, 76px); margin-bottom: 18px; }
.tt-list { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: clamp(140px, 12vw, 180px) minmax(0, 1fr) auto auto; gap: 8px 28px; align-items: center; padding: 18px 24px; border-radius: var(--r-sm); transition: scale 0.4s var(--spring); }
.slot.hide { display: none; }
.slot-time { display: flex; align-items: baseline; gap: 6px; font-size: clamp(40px, 4.4vw, 64px); --rw: 96; --rg: 900; line-height: 0.84; }
.slot-time small { font: 700 13px/1 var(--body); font-variation-settings: "wdth" 120; letter-spacing: 0.06em; }
.slot-name { font-size: clamp(26px, 2.6vw, 40px); --rw: 104; line-height: 0.9; }
.slot-meta { margin-top: 6px; font: 600 13.5px/1.3 var(--body); font-variation-settings: "wdth" 110; text-transform: uppercase; letter-spacing: 0.05em; }
.slot-spots { font: 700 13px/1.2 var(--body); font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; white-space: nowrap; }
.slot.full .slot-spots, .slot.few .slot-spots { padding: 6px 10px; border: 2px solid currentColor; border-radius: 999px; }
.slot-btn { min-width: 9.5em; }
.slot-btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.slot.booked { box-shadow: inset 0 0 0 4px var(--fg); }
.slot.booked .slot-btn svg { display: inline; }
.slot.just { animation: booked 0.6s var(--spring); }
@keyframes booked { 40% { scale: 1.02 0.96; } }
.tt-empty { padding: 18px 0; }
.tt-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 40px; padding: 16px 24px; border-radius: 999px; box-shadow: 0 0 0 4px var(--ink), 0 14px 0 0 var(--ink); rotate: -0.6deg; }
.tt-bar b { font: 400 clamp(22px, 2.2vw, 30px)/1 var(--display); font-variation-settings: "wdth" 100, "wght" 880; text-transform: uppercase; }
.tt-demo { margin-left: auto; font: 700 12px/1.3 var(--body); font-variation-settings: "wdth" 115; text-transform: uppercase; letter-spacing: 0.06em; }
.tt-note { margin-top: 22px; }
/* With JS the week becomes a day at a time with tabs; without it every day is listed. */
.js-tt .tt-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 8px 0 28px; }
.js-tt .tt-day { display: none; }
.js-tt .tt-day.on { display: block; }
.js-tt .tt-day-h { display: none; }
.tt-tab { display: grid; justify-items: start; gap: 6px; padding: 14px 16px 12px; border-radius: 18px; border: 3px solid currentColor; background: none; text-align: left; transition: scale 0.3s var(--spring); }
.tt-tab .d { font-size: clamp(26px, 3vw, 46px); --rw: 100; }
.tt-tab small { font: 700 12px/1 var(--body); font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: 0.06em; }
.tt-tab:active { scale: 1.05 0.9; }
.tt-tab[aria-pressed="true"] { background: var(--pop); color: var(--pop-fg); border-color: var(--pop); }
.tt-tab.today small::after { content: " · today"; }

/* ---------------------------------------------------------------- class guide */
.guide { padding: var(--s-9) 0; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: var(--s-8); }
.gtile { display: grid; gap: 14px; align-content: start; padding: 26px 24px 28px; border-radius: var(--r-card); scroll-margin-top: 90px; }
.gtile:nth-child(odd) { rotate: -1deg; } .gtile:nth-child(even) { rotate: 1deg; margin-top: 28px; }
.gtile h3 { font-size: clamp(34px, 3vw, 50px); --rw: 92; }
.gtile dl { display: grid; gap: 10px; padding-top: 14px; border-top: 3px solid currentColor; }
.gtile dt { font: 700 12px/1.2 var(--body); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: 0.09em; }
.gtile dd { font-size: 15px; }

/* ---------------------------------------------------------------- memberships: plans grid, extras, trial flow */
.plans.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans.four .price { font-size: clamp(64px, 5.6vw, 96px); }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: var(--s-8); }
.extras div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 4px solid currentColor; }
.extras dt { font: 700 14px/1.25 var(--body); font-variation-settings: "wdth" 115; text-transform: uppercase; letter-spacing: 0.05em; }
.extras dd { font: 400 clamp(30px, 2.6vw, 42px)/0.9 var(--display); font-variation-settings: "wdth" 104, "wght" 900; white-space: nowrap; }
.trial { padding: var(--s-9) 0; overflow-x: clip; }
.trial-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; margin-top: var(--s-8); align-items: start; }
.trial-steps { display: grid; gap: 4px; counter-reset: t; }
.trial-steps li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 4px solid currentColor; opacity: 0.55; transition: opacity 0.3s; }
.trial-steps li:last-child { border-bottom: 4px solid currentColor; }
.trial-steps li b { font: 400 54px/0.8 var(--display); font-variation-settings: "wdth" 130, "wght" 900; width: 1.1em; }
.trial-steps li span { font: 400 clamp(24px, 2.4vw, 36px)/0.9 var(--display); font-variation-settings: "wdth" 96, "wght" 860; text-transform: uppercase; }
.trial-steps li.now, .trial-steps li.done { opacity: 1; }
.trial-steps li.done b { color: transparent; -webkit-text-stroke: 2.5px var(--fg); }
.trial-card { padding: 34px 32px 32px; border-radius: var(--r-card); box-shadow: var(--shadow-sticker); }
.trial-card h3 { font-size: clamp(40px, 4vw, 64px); --rw: 100; margin-bottom: 8px; }
.trial-card h3:focus { outline: none; }
.trial-card .sub { font-size: 17px; margin-bottom: 22px; max-width: 46ch; }
.tform { display: grid; gap: 18px; }
.tform .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tform label { display: grid; gap: 8px; font: 700 12.5px/1.2 var(--body); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: 0.09em; }
.tform input, .tform select, .tform textarea { width: 100%; min-width: 0; padding: 15px 16px; border-radius: 14px; border: 3px solid currentColor; background: transparent; color: inherit; font: 500 17px/1.3 var(--body); font-variation-settings: "wdth" 100; letter-spacing: 0; text-transform: none; }
.tform textarea { min-height: 120px; resize: vertical; }
.tform input::placeholder, .tform textarea::placeholder { color: inherit; opacity: 0.62; }
.tform select option { color: #0f1a24; }
.tform [aria-invalid="true"] { border-style: dashed; border-width: 4px; }
.tform .err { font: 700 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.04em; }
.tform .err:empty { display: none; }
.tform .fine { font: 600 12.5px/1.45 var(--body); font-variation-settings: "wdth" 110; text-transform: uppercase; letter-spacing: 0.05em; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpick { position: relative; display: block; }
.tpick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tpick span { display: grid; gap: 4px; padding: 16px 18px; border: 3px solid currentColor; border-radius: 16px; font: 400 24px/0.95 var(--display); font-variation-settings: "wdth" 100, "wght" 860; text-transform: uppercase; transition: font-variation-settings 0.3s var(--ease), scale 0.3s var(--spring); }
.tpick span small { font: 600 13px/1.3 var(--body); font-variation-settings: "wdth" 105; text-transform: none; letter-spacing: 0; }
.tpick:hover span { font-variation-settings: "wdth" 116, "wght" 900; }
.tpick input:checked + span { background: var(--fg); color: var(--bg); }
.tpick input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 4px; }
.tpick input:disabled + span { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
.t-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 8px; }
.t-done { display: grid; gap: 14px; }
.t-done .pass { display: grid; gap: 6px; padding: 22px 24px; border-radius: 18px; border: 4px dashed currentColor; rotate: -1.5deg; }
.t-done .pass b { font: 400 clamp(44px, 5vw, 72px)/0.84 var(--display); font-variation-settings: "wdth" 110, "wght" 900; text-transform: uppercase; }

/* ---------------------------------------------------------------- coaches */
.coach-quals { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-quals li { padding: 8px 14px; border: 2px solid currentColor; border-radius: 999px; font: 700 12.5px/1 var(--body); font-variation-settings: "wdth" 115; text-transform: uppercase; letter-spacing: 0.04em; }
.mono-ph { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; max-height: 46vh; border-radius: 22px; overflow: hidden; background: repeating-linear-gradient(-45deg, color-mix(in srgb, currentColor 14%, transparent) 0 14px, transparent 14px 28px); border: 3px solid currentColor; }
.mono-ph b { font: 400 clamp(64px, 7vw, 120px)/0.8 var(--display); font-variation-settings: "wdth" 112, "wght" 900; color: var(--pop); }
.on-chalk .mono-ph b, .on-red .mono-ph b { color: currentColor; }
.mono-ph span { position: absolute; left: 14px; bottom: 12px; font: 700 11px/1.2 var(--body); font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: 0.08em; }
.card-body.coach { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.7fr); }
.card-body.coach > .coach-quals, .card-body.coach > .times, .card-body.coach > .btn { grid-column: 2; }
.card-body.coach .mono-ph { grid-column: 3; grid-row: 1 / span 3; align-self: stretch; aspect-ratio: auto; min-height: 220px; max-height: 340px; }

/* ---------------------------------------------------------------- facilities floor plan */
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-top: var(--s-8); align-items: start; }
.floor { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(84px, auto)); gap: 8px; padding: 8px; border-radius: 22px; border: 4px solid currentColor; }
.zone { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 14px 14px 12px; border-radius: 14px; border: 0; text-align: left; font: inherit; transition: scale 0.35s var(--spring), box-shadow 0.2s; }
.zone b { font: 400 clamp(20px, 2.2vw, 34px)/0.86 var(--display); font-variation-settings: "wdth" var(--zw, 100), "wght" 900; text-transform: uppercase; transition: font-variation-settings 0.4s var(--spring); }
.zone small { font: 700 11.5px/1.2 var(--body); font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: 0.06em; }
.zone:hover, .zone[aria-pressed="true"] { scale: 1.03; box-shadow: var(--shadow-sticker); --zw: 130; z-index: 1; }
.z-plat { grid-column: 1 / 4; grid-row: 1 / 3; }
.z-rig { grid-column: 4 / 7; grid-row: 1 / 2; }
.z-turf { grid-column: 4 / 7; grid-row: 2 / 3; }
.z-cardio { grid-column: 1 / 3; grid-row: 3 / 5; }
.z-floor { grid-column: 3 / 5; grid-row: 3 / 5; }
.z-recov { grid-column: 5 / 7; grid-row: 3 / 4; }
.z-change { grid-column: 5 / 7; grid-row: 4 / 5; }
.z-door { grid-column: 1 / 7; grid-row: 5 / 6; min-height: 64px; flex-direction: row; align-items: center; }
.zone-info { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px; }
.zone-info h3 { font-size: clamp(48px, 5.4vw, 88px); --rw: 100; }
.zone-info h3:focus { outline: none; }
.zone-info p { font-size: var(--fs-lead); line-height: 1.42; max-width: 36ch; }
.zone-info ul { display: grid; gap: 10px; padding-top: 16px; border-top: 4px solid currentColor; }
.zone-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.zone-info li svg { width: 18px; height: 18px; margin-top: 2px; }

/* ---------------------------------------------------------------- contact */
.hours-big { display: grid; gap: 0; margin-top: var(--s-7); }
.hours-big div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 4px solid currentColor; }
.hours-big div:last-child { border-bottom: 4px solid currentColor; }
.hours-big dt { font: 700 14px/1.2 var(--body); font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: 0.07em; }
.hours-big dd { font: 400 clamp(34px, 4vw, 64px)/0.84 var(--display); font-variation-settings: "wdth" 100, "wght" 900; }
.hours-big div.today dt::after { content: "Today"; margin-left: 10px; padding: 4px 9px; border-radius: 999px; background: var(--pop); color: var(--pop-fg); font-size: 11px; vertical-align: 1px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: var(--s-8); align-items: start; }
.contact-lines { display: grid; gap: 22px; }
.contact-lines a, .contact-lines p { display: grid; gap: 6px; }
.contact-lines .label { opacity: 0.9; }
.contact-lines b { font: 400 clamp(28px, 3vw, 46px)/0.9 var(--display); font-variation-settings: "wdth" 96, "wght" 880; text-transform: uppercase; }
.type-map { position: relative; margin-top: var(--s-8); border-radius: var(--r-card); overflow: hidden; border: 4px solid currentColor; }
.type-map svg { display: block; width: 100%; height: auto; }
.type-map .road { fill: none; stroke: currentColor; stroke-width: 14; }
.type-map .road.minor { stroke-width: 7; }
.type-map .blockfill { fill: color-mix(in srgb, currentColor 12%, transparent); }
.type-map .sea { fill: var(--yellow); }
.type-map .pin { fill: var(--red); stroke: var(--ink); stroke-width: 4; }
.type-map .lbl { font: 400 26px var(--display); font-variation-settings: "wdth" 120, "wght" 900; fill: currentColor; text-transform: uppercase; letter-spacing: 0.02em; }
.type-map .lbl.s { font: 700 13px var(--body); font-variation-settings: "wdth" 125; letter-spacing: 0.12em; }
.type-map .lbl.sea-l { fill: var(--on-yellow); }
.type-map .pulse { fill: none; stroke: var(--red); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.type-map figcaption { padding: 12px 18px; font: 600 12.5px/1.4 var(--body); font-variation-settings: "wdth" 110; text-transform: uppercase; letter-spacing: 0.06em; border-top: 4px solid currentColor; }

/* ---------------------------------------------------------------- calm */
html.calm .slot, html.calm .chip, html.calm .tt-tab, html.calm .zone, html.calm .tpick span { transition: none; }
html.calm .slot.just, html.calm .type-map .pulse { animation: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-menu { display: block; }
  .nav .btn { margin-left: auto; }
  .plans.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gtile:nth-child(even) { margin-top: 0; }
  .slot { grid-template-columns: 136px minmax(0, 1fr) auto; }
  .slot-btn { grid-column: 2 / -1; justify-self: start; }
  .slot-spots { grid-column: 3; grid-row: 1; }
  .card-body.coach { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
  .card-body.coach .mono-ph { grid-column: 2; }
}
@media (max-width: 860px) {
  .trial-grid, .plan-wrap, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .zone-info { position: static; }
  .tt-demo { margin-left: 0; }
  .tt-bar { border-radius: 24px; }
}
@media (max-width: 480px) { .nav .btn { display: none; } .nav-menu { margin-left: auto; } }
@media (max-width: 640px) {
  .js-tt .tt-tabs { grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 5px; }
  .tt-tab { padding: 10px 6px 8px; border-radius: 12px; justify-items: center; text-align: center; border-width: 2px; }
  .tt-tab .d { font-size: 17px; --rw: 72; }
  .tt-tab small { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
  .tt-tab .mo { display: none; }
  .tt-tab.today small::after { content: ""; }
  .slot { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 10px 14px; }
  .slot-time { grid-column: 1; }
  .slot-spots { grid-column: 2; grid-row: 1; }
  .slot-main { grid-column: 1 / -1; }
  .slot-btn { grid-column: 1 / -1; justify-self: stretch; }
  .plans.four, .guide-grid, .goal-grid, .tform .row { grid-template-columns: minmax(0, 1fr); }
  .gtile:nth-child(n) { rotate: 0deg; }
  .trial-card { padding: 24px 18px; }
  .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .zone:nth-child(n) { grid-column: auto; grid-row: auto; min-height: 92px; }
  .z-plat, .z-door { grid-column: 1 / -1 !important; }
  .card-body.coach { grid-template-columns: minmax(0, 1fr); }
  .card-body.coach .mono-ph { display: none; }
  .tt-bar { rotate: 0deg; bottom: 8px; padding: 12px 16px; }
  .page-tape { margin-bottom: -28px; }
  .hours-big div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hours-big dd { font-size: 40px; }
}
[hidden] { display: none !important; }
.tform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.tform fieldset[hidden] { display: none; }
.slot.past { opacity: 0.55; }
.slot.past .slot-btn { cursor: not-allowed; }
