/* ===========================================================================
   S30 Maroochydore site styles
   Hand-written, no framework, no build step. Edit directly.
   Design tokens live in :root; change a value there and it applies sitewide.
   ========================================================================= */

:root {
  /* Palette */
  --bg:          #090909;
  --surface:     #0e0e0e;
  --surface-2:   #161616;
  --surface-3:   #1f1f1f;
  --border:      #2a2a2a;
  --text:        #e8e8e8;
  --text-muted:  #8a8a8a;
  --text-faint:  #5a5a5a;
  --accent:      #ffffff;
  --accent-hover:#d4d4d4;
  --on-accent:   #000000;
  --error:       #ef4444;
  --success:     #22c55e;

  /* Type */
  --font-body: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font-body);

  /* Fluid type scale */
  --t-eyebrow: .75rem;
  --t-body:    clamp(1rem, .96rem + .2vw, 1.0625rem);
  --t-lede:    clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --t-h3:      clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --t-h2:      clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --t-h1:      clamp(2.75rem, 1.6rem + 5.2vw, 6rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --radius:    .625rem;
  --radius-lg: 1rem;
  --ease: .25s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.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: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--accent); color: var(--on-accent); padding: .7rem 1.2rem;
  z-index: 200; font-weight: 700; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; transition: transform var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--t-h2); text-transform: uppercase; font-weight: 800; }
.section-sub { color: var(--text-muted); font-size: var(--t-lede); margin-top: 1rem; }

.eyebrow {
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-weight: 700; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); }
.btn-primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn-ghost:hover { --btn-bg: var(--surface-3); --btn-bd: #3a3a3a; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Inline spinner, shown only while a form is submitting */
.spinner {
  width: 1em; height: 1em; flex: none; display: none;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .6s linear infinite;
}
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(9, 9, 9, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { height: 26px; width: auto; }
.brand-text {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--text-muted);
  padding-left: .7rem; border-left: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  text-decoration: none; font-size: .875rem; font-weight: 600;
  color: var(--text-muted); transition: color var(--ease);
}
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--on-accent); padding: .6rem 1.25rem; }
.nav .nav-cta:hover { color: var(--on-accent); }

.nav-toggle {
  display: none; background: none; border: 0; padding: .6rem;
  cursor: pointer; border-radius: var(--radius);
}
.nav-toggle-bars { display: block; width: 22px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle-bars span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-140%); transition: transform var(--ease);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav .nav-cta { margin-top: 1.25rem; border-bottom: 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100svh; padding-block: 8rem var(--section-y);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9,9,9,.97) 0%, rgba(9,9,9,.75) 38%, rgba(9,9,9,.35) 70%, rgba(9,9,9,.6) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: var(--t-h1); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.lede { font-size: var(--t-lede); color: #c9c9c9; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-note {
  margin-top: 1.5rem; font-size: .8125rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 600;
}

/* ---------- Split feature rows ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
.split + .split { margin-top: var(--section-y); }
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.split-copy h2 {
  font-size: var(--t-h2); text-transform: uppercase; font-weight: 800; margin-bottom: 1.1rem;
}
.split-copy > p { color: var(--text-muted); font-size: var(--t-lede); }
.ticks { margin: 1.75rem 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .38rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse .split-media { order: 2; }
}

/* ---------- Coaches ---------- */
.coach-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.coach-photo { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); }
.coach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.coach:hover .coach-photo img { transform: scale(1.04); }
.coach-name { font-size: var(--t-h3); font-weight: 700; margin-top: 1.25rem; }
.coach-role {
  color: var(--text-muted); font-size: .8125rem; text-transform: uppercase;
  letter-spacing: .14em; font-weight: 600; margin-top: .4rem;
}

/* ---------- Intro offer ---------- */
.offer-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 820px; margin-inline: auto; text-align: center;
}
.offer-card h2 { font-size: var(--t-h2); text-transform: uppercase; font-weight: 800; }
.offer-body { color: var(--text-muted); font-size: var(--t-lede); margin-top: 1rem; }
.steps { display: grid; gap: 1.25rem; margin: 2.5rem 0; text-align: left; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-n {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: .875rem;
}
.step-t { color: var(--text-muted); }
.step-t strong { color: var(--text); font-weight: 700; }

/* ---------- Visit / location ---------- */
.visit-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.visit-block {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem);
}
.visit-h {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .16em;
  font-weight: 700; color: var(--text-faint); margin-bottom: 1rem;
}
.visit-address { font-style: normal; font-size: 1.0625rem; line-height: 1.5; }
.visit-address a { text-decoration: none; transition: color var(--ease); }
.visit-address a:hover { color: var(--accent); }
.visit-note { color: var(--text-muted); font-size: .9375rem; margin-top: 1rem; }
.visit-block .btn { margin-top: 1.5rem; }

@media (min-width: 900px) { .visit-block-wide { grid-column: 1 / -1; } }

.timetable { display: grid; gap: 1rem; }
.timetable li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.timetable li:last-child { padding-bottom: 0; border-bottom: 0; }
.tt-days {
  flex: 0 0 auto; min-width: 6.5rem;
  font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em;
}
.tt-times { display: flex; flex-wrap: wrap; gap: .5rem; }
.tt-times time {
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: .3rem .85rem;
  font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 3.25rem 1.25rem 1.5rem;
  font-weight: 700; font-size: 1.0625rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.5rem; top: 50%;
  width: .6rem; height: .6rem; margin-top: -.45rem;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -.2rem; }
.faq-item summary:hover { background: var(--surface-3); }
.faq-a { padding: 0 1.5rem 1.4rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.lead-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.req { color: var(--accent); }

.field input, .field select {
  width: 100%; padding: .95rem 1.1rem;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.4rem) 1.35rem, calc(100% - 1.05rem) 1.35rem;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface-3); }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field-err { color: var(--error); font-size: .8125rem; }

.form-hint { color: var(--text-faint); font-size: .875rem; }
.form-error {
  color: var(--error); font-size: .9375rem;
  background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3);
  padding: .8rem 1rem; border-radius: var(--radius);
}
.form-fineprint { color: var(--text-faint); font-size: .8125rem; text-align: center; }
.form-fineprint a { color: var(--text-muted); }

/* Alternative to filling in the form, sat below it */
.form-alt {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: .9375rem;
}
.form-alt a { color: var(--text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 1px; transition: border-color var(--ease); }
.form-alt a:hover { border-bottom-color: var(--accent); }

.form-success, .popup-success { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.form-success { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form-success h3 { font-size: var(--t-h2); text-transform: uppercase; font-weight: 800; margin-bottom: .9rem; }
.form-success p, .popup-success p { color: var(--text-muted); }
.tick {
  width: 3rem; height: 3rem; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--success); color: #05210f; font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 28px; width: auto; }
.footer-tag { color: var(--text-muted); margin-top: 1rem; max-width: 22rem; font-size: .9375rem; }
.footer-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-faint); font-weight: 700; margin-bottom: 1rem; }
.footer-col p, .footer-col address { font-style: normal; color: var(--text-muted); font-size: .9375rem; }
.footer-col p + p { margin-top: .5rem; }
.footer-col a { text-decoration: none; transition: color var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-socials { display: grid; gap: .5rem; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  color: var(--text-faint); font-size: .8125rem;
}
.footer-base a { color: var(--text-faint); }
.footer-base a:hover { color: var(--text); }

/* ---------- Popup ---------- */
.popup { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); }
.popup-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.popup-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.5rem);
  max-height: 90dvh; overflow-y: auto;
  animation: popIn .32s cubic-bezier(.16, 1, .3, 1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.popup-card h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); text-transform: uppercase; font-weight: 800; }
.popup-body { color: var(--text-muted); margin-top: .85rem; font-size: .9375rem; }
.popup-form { display: grid; gap: .85rem; margin-top: 1.5rem; }
.popup-close {
  position: absolute; top: .6rem; right: .6rem;
  width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.popup-close:hover { background: var(--surface-3); color: var(--text); }

/* Locks background scroll while the popup or mobile nav is open */
body.is-locked { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .popup, .hero-bg, .hero-scrim, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
