/* Slough Badminton Club — site styles */
:root {
  --navy: #0B1F4D;
  --navy-2: #14306E;
  --volt: #D7F205;
  --blue: #1546FF;
  --ink: #0B1F4D;
  --ink-2: #2A3A63;
  --ink-3: #3A4A73;
  --soft: #F2F5FC;
  --soft-2: #E8EEFA;
  --line: #9AA8CC;
  --on-navy: #DCE3F5;
  --white: #FFFFFF;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; }
h2 { font-size: clamp(2.4rem, 5vw, 3.25rem); }
h3 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--volt); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: 48px 20px; }
.eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: 4px; color: var(--blue); text-transform: uppercase; }
.eyebrow--volt { color: var(--volt); }
.muted { color: var(--ink-2); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.head-row > p { max-width: 460px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 28px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn--volt { background: var(--volt); color: var(--navy); }
.btn--volt:hover { background: #E6FF3A; color: var(--navy); }
.btn--ghost { color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.link { font-weight: 700; display: inline-block; padding: 8px 0; }

/* Header */
.site-header { background: var(--navy); padding: 12px 20px; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { width: 48px; height: 48px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 2px; line-height: 1; }
.brand-name small { display: block; font-size: 15px; letter-spacing: 4px; font-weight: 700; color: var(--volt); }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); border-radius: 10px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--white); text-decoration: none; display: inline-block; padding: 12px 0; }
.site-nav a:hover { color: var(--volt); }
.site-nav a.nav-cta { color: var(--navy); background: var(--volt); padding: 12px 20px; border-radius: 999px; font-weight: 700; }
.site-nav a.nav-cta:hover { color: var(--navy); background: #E6FF3A; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .site-nav a { display: block; padding: 12px 4px; border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav a.nav-cta { margin-top: 12px; text-align: center; border-top: none; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 64px 20px 104px; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-style: italic; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 span { color: var(--volt); }
.hero-copy > p { max-width: 560px; font-size: 19px; color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-crest { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-crest svg { width: min(400px, 100%); height: auto; }

/* Glance strip */
.glance { padding: 0 20px; }
.glance .wrap { margin-top: -56px; background: var(--volt); border-radius: var(--radius); padding: 28px 32px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.glance strong { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.glance span { font-weight: 600; }

/* About */
.about { padding-top: 88px; }
.about .wrap { display: flex; flex-wrap: wrap; gap: 40px; }
.about-head { flex: 1 1 320px; }
.about-head h2 { margin-top: 8px; }
.about-body { flex: 2 1 520px; display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); }
.about-body .lead { font-weight: 600; color: var(--ink); }

/* Cards */
.card { background: var(--soft); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card--line { background: transparent; border: 2px solid var(--navy); }
.card--navy { background: var(--navy); color: var(--white); }
.card--navy .muted, .card--navy li { color: var(--on-navy); }

/* Map */
.map { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; background: var(--soft-2); min-height: 340px; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Join */
.join .wrap { background: var(--navy); color: var(--white); border-radius: 24px; padding: 48px 40px; display: flex; flex-direction: column; gap: 32px; }
.join .head-row > p { color: var(--on-navy); }
.join h2 { margin-top: 8px; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { background: var(--navy-2); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--volt); }
.steps strong { font-size: 19px; }
.steps span:last-child { color: var(--on-navy); }
@media (max-width: 600px) { .join .wrap { padding: 36px 22px; } }

/* First visit */
.visit .wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.visit-main { flex: 2 1 560px; min-width: 0; gap: 20px; }
.visit-main h2 { margin-top: 8px; }
.visit-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.visit-list li { background: var(--white); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.visit-list span { color: var(--ink-2); }
.visit-new { flex: 1 1 340px; min-width: 0; gap: 14px; }
.visit-new li small { display: block; font-size: 15px; color: var(--ink-2); }

/* Kit */
.kit ul.kit-list { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.kit svg { width: 40px; height: 40px; }
.kit-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Follow cards */
.follow { flex-direction: row; align-items: center; gap: 20px; text-decoration: none; }
.follow svg { width: 44px; height: 44px; flex-shrink: 0; }
.follow:hover { background: var(--soft-2); }
.follow strong { display: block; font-size: 20px; }
.follow span { color: var(--ink-2); }

/* Committee */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.people li { background: var(--soft); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.people span { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--ink-3); text-transform: uppercase; }
.people strong { font-size: 19px; }

/* Welfare */
.welfare .wrap { background: var(--soft); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.welfare-copy { flex: 2 1 480px; min-width: 0; }
.welfare-contact { flex: 1 1 280px; background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.welfare-contact .label { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--ink-3); }
.welfare-contact strong { font-size: 22px; }
.welfare-contact small { font-size: 15px; color: var(--ink-3); }
.break { word-break: break-word; }

/* Slideshow */
.slideshow { display: flex; flex-direction: column; gap: 16px; }
.slides { position: relative; height: clamp(340px, 52vw, 620px); border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; padding-bottom: 56px; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 84px 16px 20px; background: rgba(11,31,77,.82); color: var(--white); font-weight: 600; }
.slide-count { position: absolute; right: 20px; bottom: 16px; color: var(--white); font-family: var(--display); font-weight: 700; letter-spacing: 2px; z-index: 2; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; border: none; background: var(--volt); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.slide-btn--prev { left: 16px; }
.slide-btn--next { right: 16px; }
.slide-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dot { width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.dot span { width: 14px; height: 14px; border-radius: 999px; background: var(--line); }
.dot[aria-current="true"] span { background: var(--navy); }
.photos-empty { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--soft); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (max-width: 600px) { .slide-btn { width: 44px; height: 44px; } .slide-btn--prev { left: 8px; } .slide-btn--next { right: 8px; } }

/* Form */
.enquire .wrap { display: flex; flex-wrap: wrap; gap: 40px; border: 2px solid var(--navy); border-radius: 24px; padding: 40px 32px; }
.enquire-intro { flex: 1 1 300px; }
.form { flex: 2 1 520px; min-width: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .consent, .form .btn { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; min-height: 48px; background: var(--white); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(21,70,255,.2); }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.consent label { font-size: 15px; color: var(--ink-2); }
.form .btn { justify-self: start; }
.hidden { position: absolute; left: -9999px; }
@media (max-width: 600px) { .enquire .wrap { padding: 32px 20px; } }

/* Footer */
.site-footer { margin-top: 48px; background: var(--navy); color: var(--white); padding: 64px 20px 32px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-cta { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.footer-cta h2 { font-style: italic; }
.footer-cta h2 span { color: var(--volt); }
.footer-cta p { color: var(--on-navy); }
.footer-email { color: var(--volt); font-weight: 700; font-size: 20px; padding: 8px 0; word-break: break-word; }
.footer-email:hover { color: var(--white); }
.footer-social { flex: 0 1 320px; display: flex; flex-direction: column; gap: 8px; }
.footer-social a { color: var(--white); font-weight: 600; display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.footer-social a:hover { color: var(--volt); }
.footer-base { border-top: 1px solid #2B4380; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #C3CCE6; }
.footer-base .full { flex-basis: 100%; }
.footer-base a { color: var(--white); font-weight: 600; }

/* Simple pages */
.page-hero { background: var(--navy); color: var(--white); padding: 56px 20px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-style: italic; margin-top: 8px; }
.prose { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.prose h2 { font-size: 2rem; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
