/* Gyrus Olympic Gymnastics Club — red, white and blue */
:root {
  --navy: #0d2463;
  --blue: #1f4fbf;
  --sky: #e9effb;
  --red: #d2142f;
  --red-dark: #a80f25;
  --white: #ffffff;
  --paper: #f6f8fc;
  --ink: #111a33;
  --muted: #4d5875;
  --line: #d6deef;
  --destructive: #b3121f;
  --radius-md: 12px;
  --radius-lg: 22px;
  --radius-control: 999px;
  --shadow: 0 14px 34px -18px rgba(13, 36, 99, .45);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1220px, 100% - 2.5rem); margin-inline: auto; }
.kicker { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--red); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 99; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: .85rem 1.6rem; border-radius: var(--radius-control); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #ffb800; outline-offset: 2px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(210, 20, 47, .8); }
.btn-red:hover { background: var(--red-dark); }
.btn-red[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 3px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-mark { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; line-height: 1.05; }
.brand-name small { display: block; font-size: .66rem; letter-spacing: .16em; font-weight: 700; color: var(--red); margin-top: .25rem; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .btn { color: #fff; padding: .6rem 1.15rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 79px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 3px solid var(--red); display: none; padding: .5rem 1.25rem 1.25rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #2a5fd6 0%, var(--navy) 55%, #081843 100%); color: #fff; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 260px; } }
.hero h1 { color: #fff; }
.hero h1 span { color: #ff5d72; }
.hero .kicker { color: #9fc0ff; }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.28rem); color: #dbe5ff; max-width: 44ch; margin: 1rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 1; }
.hero-visual .disc { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55); display: grid; place-items: center; padding: 7%; animation: float 7s ease-in-out infinite; }
.hero-visual .disc img { width: 100%; height: 100%; object-fit: contain; }
.hero-visual .disc .fallback { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 2.4rem; text-align: center; line-height: 1; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.swoosh { position: absolute; z-index: 1; pointer-events: none; }
.swoosh.one { right: -10%; top: -20%; width: 70%; opacity: .5; }
.swoosh.two { left: -15%; bottom: -35%; width: 60%; opacity: .35; }
@media (prefers-reduced-motion: reduce) { .hero-visual .disc { animation: none; } html { scroll-behavior: auto; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.hero-stats span { color: #b8c9f2; font-size: .92rem; }

/* Stripe */
.stripe { height: 10px; background: linear-gradient(90deg, var(--red) 0 33.3%, #fff 33.3% 66.6%, var(--blue) 66.6%); }

/* Sections */
.section { padding-block: clamp(3.8rem, 7.5vw, 6rem); }
.section.alt { background: var(--paper); }
.section.navy { background: var(--navy); color: #dbe5ff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 50ch; margin: 0; color: var(--muted); }

/* Programme cards */
.programmes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .programmes { grid-template-columns: 1fr; } }
.prog { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.7rem 1.8rem; box-shadow: var(--shadow); border-top: 6px solid var(--blue); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s; }
.prog:hover { transform: translateY(-4px); }
.prog.red { border-top-color: var(--red); }
.prog.navy { border-top-color: var(--navy); }
.prog .tag { align-self: flex-start; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--radius-control); background: var(--sky); color: var(--navy); margin-bottom: 1rem; }
.prog.red .tag { background: #fde7ea; color: var(--red-dark); }
.prog p { color: var(--muted); }
.prog ul { list-style: none; padding: 0; margin: .2rem 0 1.2rem; display: grid; gap: .35rem; font-weight: 600; font-size: .96rem; }
.prog li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: .55rem; vertical-align: middle; }
.prog .more { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--red); }

/* Timetable */
.timetable { display: grid; gap: .7rem; }
.tt-row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: .85rem 1.1rem; }
.tt-day { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.tt-sessions { display: flex; flex-wrap: wrap; gap: .5rem; }
.tt-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: var(--radius-control); font-size: .92rem; font-weight: 700; background: var(--sky); color: var(--navy); }
.tt-chip.beginner { background: #fde7ea; color: var(--red-dark); }
.tt-chip.squad { background: var(--navy); color: #fff; }
.tt-chip .star { color: #e0a100; font-size: 1rem; line-height: 1; }
.tt-legend { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.2rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) { .tt-row { grid-template-columns: 1fr; gap: .4rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 1.6rem 1.3rem; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: .9rem; }
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; font-size: .96rem; color: #c3d2f5; }

/* Values / safeguarding */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.pill-list { display: grid; gap: .8rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.pill-list li { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: .9rem 1rem; }
.pill-list svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: .1rem; }
.badge-panel { background: linear-gradient(160deg, var(--navy), #183a8f); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); position: relative; overflow: hidden; }
.badge-panel h3 { color: #fff; font-size: 1.5rem; }
.badge-panel p { color: #cdd9f7; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }
.partner { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; border: 1px solid var(--line); }
.partner p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Page hero */
.page-hero { background: radial-gradient(120% 120% at 90% 0%, #2a5fd6 0%, var(--navy) 60%); color: #fff; padding-block: 4rem 3.2rem; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero p { color: #d1ddff; max-width: 58ch; font-size: 1.12rem; margin: 0; }
.page-hero .kicker { color: #ff8e9c; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 1.15rem; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: .4rem; color: var(--navy); font-size: .98rem; }
.req { color: var(--red); margin-left: .15rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field textarea, .field select { width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid #c6d0e6; border-radius: var(--radius-md); background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-list { display: grid; gap: .5rem; }
.radio-list label, .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; color: var(--ink); cursor: pointer; }
.radio-list input, .check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--red); flex: none; }
.hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.error { color: var(--destructive); font-size: .9rem; margin: .35rem 0 0; font-weight: 700; }
.form-error { color: var(--destructive); font-weight: 700; margin-bottom: 1rem; }
.thanks { text-align: center; padding: 2rem 1rem; }
.thanks svg { width: 64px; height: 64px; color: var(--blue); margin: 0 auto 1rem; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .book-grid { grid-template-columns: 1fr; } }
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; align-items: stretch; }
.days button { flex: none; min-width: 84px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-md); padding: .55rem .6rem; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; text-align: center; line-height: 1.2; }
.days button small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.days button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.days button[aria-pressed="true"] small { color: #c9d6f7; }
.days button:disabled { opacity: .4; cursor: default; }
.days .week { min-width: 44px; font-size: 1.2rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: 1.2rem; }
.slots button { border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-md); padding: .8rem; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; text-align: left; }
.slots button small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.slots button[aria-pressed="true"] { border-color: var(--red); background: #fff2f4; box-shadow: 0 0 0 2px var(--red) inset; }
.slots button:disabled { opacity: .45; cursor: not-allowed; }
.rec { display: inline-block; margin-top: .3rem; font-size: .74rem; font-weight: 800; color: #8a6200; background: #fff3cc; padding: .1rem .45rem; border-radius: var(--radius-control); }
.summary { background: var(--sky); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 700; color: var(--navy); }
.notice { background: #fff8e1; border: 1px solid #f3d27a; border-radius: var(--radius-md); padding: 1rem 1.2rem; color: #5b4500; font-size: .96rem; }
.state { padding: 2rem; border-radius: var(--radius-lg); background: var(--paper); color: var(--muted); text-align: center; }

/* Policies */
.policy-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .policy-groups { grid-template-columns: 1fr; } }
.policy-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.2rem; }
.policy-group h3 { display: flex; align-items: center; gap: .6rem; }
.policy-group h3::before { content: ""; width: 10px; height: 26px; border-radius: 4px; background: var(--red); }
.policy-group > p { color: var(--muted); font-size: .98rem; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; }
.doc-list a:hover { color: var(--red); }
.doc-list span { font-size: .76rem; font-weight: 800; color: var(--muted); white-space: nowrap; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.contact-list a, .contact-list div { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: var(--navy); background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-md); border: 1px solid var(--line); font-weight: 700; word-break: break-word; }
.contact-list a:hover { border-color: var(--navy); }
.contact-list svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.contact-list small { display: block; font-weight: 600; color: var(--muted); font-size: .84rem; }

/* CTA band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3rem; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: .4rem 0 0; color: #ffe1e5; }
.cta-band .btn { background: #fff; color: var(--red); }

/* Footer */
.site-footer { background: #081843; color: #b8c6ea; padding-block: 3.4rem 6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff8e9c; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 3px; }
.footer-base { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .7rem; background: rgba(8, 24, 67, .97); }
.call-bar .btn { padding: .75rem .5rem; font-size: .96rem; }
@media (max-width: 760px) { .call-bar { display: grid; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }