/* Average Joe's — a painted gym floor. Green court, gold court lines, one red rubber ball. */
:root {
  --court: #2e8b57;
  --court-deep: #1f6b43;
  --gold: #f2b33d;
  --gold-dark: #c98f1c;
  --ball: #d13b2e;
  --ball-dark: #a52a20;
  --chalk: #f6f6f3;
  --chalk-dark: #e6e6df;
  --ink: #15181f;
  --ink-soft: #4a4f5c;
  --line: #d6d6cc;
  --display: 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --body: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: 0.005em; margin: 0; }
h1 { font-size: clamp(2.75rem, 7.5vw, 5.75rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .75rem 1rem; border-radius: 4px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Painted court lines: a double gold stripe, used wherever one section ends. */
.court-line { height: 14px; background: repeating-linear-gradient(90deg, var(--gold) 0 48px, transparent 48px 64px); }
.court-line.solid { background: var(--gold); height: 10px; }

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-ball { background: var(--ball); color: #fff; }
.btn-ball:hover { background: var(--ball-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.on-light .btn-ghost:hover { background: rgba(21, 24, 31, .06); }

/* ----- header ----- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--court); color: #fff; border-bottom: 4px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1.375rem; line-height: 1; }
.brand svg { width: 2.25rem; height: 2.25rem; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .02em; color: var(--gold); margin-top: .25rem; }
.site-nav { margin-left: auto; display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .85rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.site-nav a:hover { background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 3px; background: var(--gold); border-radius: 2px; }
.header-actions { margin-left: auto; display: none; align-items: center; gap: .75rem; }
.site-nav + .header-actions { margin-left: 1rem; }
.header-actions .login { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); font-weight: 600; font-size: .95rem; }
.header-actions .btn { min-height: 2.75rem; padding: .5rem 1.25rem; font-size: .95rem; }
.menu-btn { margin-left: auto; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; }
.menu-btn span { display: block; width: 1.25rem; height: 2px; background: currentColor; margin: 2.5px 0; }
.mobile-menu { display: none; background: var(--court-deep); color: #fff; border-bottom: 4px solid var(--gold); }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.mobile-menu li a { display: flex; align-items: center; min-height: 3rem; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-menu li a[aria-current="page"] { color: var(--gold); }
.mobile-menu .mobile-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1rem var(--gutter) 1.25rem; }
@media (min-width: 56rem) {
  .site-nav, .header-actions { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; background: var(--court-deep); color: #fff; isolation: isolate; }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 7.5rem); max-width: var(--wrap); }
.hero-copy { max-width: 36rem; position: relative; z-index: 2; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 32rem; color: #dff0e6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-note { margin-top: 1rem; font-size: .9rem; color: #bfe0cc; }
/* The memorable thing: one oversized red rubber ball, rolling in from the right edge. */
.hero-ball { position: absolute; right: -18vw; bottom: -26vw; width: 70vw; aspect-ratio: 1; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
/* Phones and tablets: the copy sits above the ball, so the ball never runs behind the buttons. */
@media (max-width: 55.99rem) { .hero .wrap { padding-bottom: 42vw; } }
@media (min-width: 56rem) { .hero-ball { width: clamp(22rem, 60vw, 46rem); right: -8rem; bottom: -14rem; } }
.hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--gold); }

/* ----- sections ----- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 40rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.125rem; }
.section.court { background: var(--court); color: #fff; }
.section.court .section-head p { color: #d6ecdf; }
.section.gold { background: var(--gold); color: var(--ink); }

/* Three plain facts, divided by painted lines rather than boxed into cards. */
.facts { margin-top: 2.5rem; display: grid; gap: 0; border-top: 4px solid var(--gold); }
.fact { padding: 1.5rem 0; border-bottom: 2px solid var(--line); }
.fact h3 { margin-bottom: .5rem; }
.fact p { color: var(--ink-soft); }
@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(3, 1fr); border-top: none; }
  .fact { border-bottom: none; border-top: 4px solid var(--gold); padding: 1.5rem 1.5rem 0 0; }
}

/* Class board: a gym's whiteboard list, one row per class. */
.board { margin-top: 2.5rem; border: 3px solid var(--ink); background: #fff; }
.board-row { display: grid; grid-template-columns: 3.25rem 1fr; gap: .25rem 1rem; padding: 1.1rem 1.25rem; border-bottom: 2px solid var(--line); align-items: start; }
.board-row:last-child { border-bottom: none; }
.board-row .icon { grid-row: span 3; width: 2.75rem; height: 2.75rem; }
.board-row h3 { font-size: 1.2rem; }
.board-row .meta { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.board-row .meta b { color: var(--ball); font-weight: 700; }
.board-row p { color: var(--ink-soft); }
@media (min-width: 48rem) {
  .board-row { grid-template-columns: 3.25rem 15rem 1fr; }
  .board-row .icon { grid-row: span 2; }
  .board-row .meta { grid-column: 2; }
  .board-row p { grid-column: 3; grid-row: 1 / span 2; }
}

/* Schedule page */
.schedule-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.schedule-embed { margin-top: 2.5rem; }
.fitfam-schedule {
  --ff-font: var(--body); --ff-text: var(--ink); --ff-muted: var(--ink-soft); --ff-bg: transparent;
  --ff-surface: #fff; --ff-border: var(--line); --ff-accent: var(--court); --ff-radius: 8px;
  --ff-cat-hiit: var(--ball); --ff-cat-strength: var(--court); --ff-cat-cardio: var(--gold-dark);
  --ff-cat-core: #2e7d5b; --ff-cat-recovery: #5b8a6b; --ff-cat-dodgeball: var(--ball);
}
.week-grid { margin-top: 2.5rem; display: grid; gap: 1px; background: var(--line); border: 3px solid var(--ink); }
.week-day { background: #fff; padding: 1rem 1.1rem; }
.week-day h3 { font-size: 1.05rem; color: var(--court); margin-bottom: .5rem; }
.week-day ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.week-day li { display: flex; gap: .6rem; padding: .3rem 0; border-top: 1px solid var(--chalk-dark); }
.week-day li:first-child { border-top: none; }
.week-day time { flex: none; width: 4.4rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 48rem) { .week-grid { grid-template-columns: repeat(7, 1fr); } .week-day li { flex-direction: column; gap: 0; } .week-day time { width: auto; } }

/* Trial band */
.trial { display: grid; gap: 2rem; align-items: center; }
.trial h2 { text-wrap: balance; }
.trial .steps { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: step; display: grid; gap: .75rem; }
.trial .steps li { position: relative; padding-left: 3rem; font-size: 1.05rem; }
.trial .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--display); display: grid; place-items: center; font-size: 1.05rem; }
.trial-art { justify-self: center; width: min(100%, 20rem); }
@media (min-width: 56rem) { .trial { grid-template-columns: 1.2fr .8fr; } }

/* Contact */
.contact-grid { margin-top: 2.5rem; display: grid; gap: 2.5rem; }
.sign { border: 3px solid var(--ink); background: #fff; padding: 1.5rem; }
.sign h3 { margin-bottom: .75rem; }
.sign dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.sign dt { font-weight: 600; color: var(--ink-soft); }
.sign dd { margin: 0; }
.sign a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.map { border: 3px solid var(--ink); background: var(--court); aspect-ratio: 4 / 3; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ----- footer ----- */
.site-footer { background: var(--court-deep); color: #d6ecdf; border-top: 10px solid var(--gold); padding-block: 2rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer address { font-style: normal; }
.site-footer address b { display: block; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer .fine { font-size: .8rem; color: #a3cdb4; }
@media (min-width: 48rem) { .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
