:root {
  --navy: #13285a;
  --navy-deep: #0c1a3c;
  --blue: #1f4fa8;
  --gold: #e3b23c;
  --gold-deep: #a87a12;
  --cream: #faf7f0;
  --sand: #f1ebdd;
  --ink: #1a1d24;
  --muted: #5a606c;
  --line: #e2dccd;
  --white: #fff;

  --air: #2a64c9;
  --air-bg: #e4ecfa;
  --sporting: #2f7a47;
  --sporting-bg: #e1f1e6;
  --target: #a8740f;
  --target-bg: #f8ecd2;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 24px rgb(16 24 40 / 8%);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Placeholders that still need confirming */
.tbc {
  background: #fff3c4;
  border-bottom: 2px dashed var(--gold-deep);
  padding: 0 .25em;
  border-radius: 3px;
  color: #5c4300;
}
.mockup-ribbon {
  background: var(--navy-deep);
  color: #d7deef;
  font-size: .85rem;
  text-align: center;
  padding: 6px 16px;
}
.tbc-key { background: #fff3c4; color: #5c4300; padding: 0 .3em; border-radius: 3px; border-bottom: 2px dashed var(--gold-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  padding: .75em 1.4em;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #f0c453; }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / 55%); }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: .45em 1em; font-size: .95rem; }
[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(250 247 240 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 56px; height: 56px; }
.brand-name { font: 700 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.brand-name span { display: block; font-size: .95rem; color: var(--gold-deep); letter-spacing: .08em; margin-top: 2px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:not(.btn):hover { background: var(--sand); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); padding: 8px; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 420px) {
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.15rem; }
  .brand-name span { font-size: .8rem; }
}

/* Notice */
.notice { background: var(--gold); color: var(--navy-deep); }
.notice p { margin: 0; padding: 10px 0; font-weight: 500; text-align: center; }
.notice a { color: inherit; font-weight: 700; white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(100deg, rgb(12 26 60 / 94%) 0%, rgb(12 26 60 / 80%) 45%, rgb(12 26 60 / 35%) 100%),
    url("../img/gallery/match-day.jpg") center / cover no-repeat,
    var(--navy-deep);
}
.hero-inner { padding: clamp(64px, 11vw, 132px) 0; max-width: 1160px; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); max-width: 19ch; text-transform: uppercase; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40rem; color: #e3e8f4; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.open-now { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #e3e8f4; margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa6c2; flex: none; }
.dot-open { background: #4ade80; box-shadow: 0 0 0 4px rgb(74 222 128 / 25%); }

.eyebrow {
  font: 600 .85rem/1 var(--font);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

/* Stats */
.stats { background: var(--navy); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 26px 0; text-align: center; }
.stats strong { display: block; font: 700 2.4rem/1 var(--display); color: var(--gold); }
.stats span { font-size: .95rem; color: #c9d2e8; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > :last-child { grid-column: 1 / -1; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* Discipline cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border-top: 5px solid var(--accent);
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-points { font-weight: 600; color: var(--accent); margin-bottom: .6em; }
.card-times { list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.card-times li + li { margin-top: 4px; }
.card-air { --accent: var(--air); }
.card-sporting { --accent: var(--sporting); }
.card-target { --accent: var(--target); }

/* Timetable */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.chip-air { --c: var(--air); --bg: var(--air-bg); }
.chip-sporting { --c: var(--sporting); --bg: var(--sporting-bg); }
.chip-target { --c: var(--target); --bg: var(--target-bg); }
.chip { background: var(--bg); color: var(--c); }

.timetable { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { background: var(--white); border-radius: 12px; padding: 14px 12px; border: 2px solid transparent; min-width: 0; }
.day.is-today { border-color: var(--gold); }
.day h3 { font-size: 1.15rem; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.today-tag { font: 700 .7rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; background: var(--gold); color: var(--navy-deep); padding: 4px 6px; border-radius: 4px; }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.session { background: var(--bg); border-left: 4px solid var(--c); border-radius: 6px; padding: 8px 10px; font-size: .9rem; line-height: 1.35; }
.session strong { display: block; color: var(--c); }
.session em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.closed { color: var(--muted); font-size: .95rem; padding: 8px 0; }
@media (max-width: 1000px) {
  .timetable { grid-template-columns: 1fr; }
  .day { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
  .day h3 { margin: 6px 0 0; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .day { grid-template-columns: 1fr; }
}

/* Join */
.join-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font: 700 1.3rem/1 var(--display);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--line);
}
.steps h3 { color: var(--navy); margin-bottom: .25em; }
.steps p { color: var(--muted); }

.join-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 100px; }
.join-card h3 { color: var(--navy); }
.fees { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.fees th, .fees td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees th { font-weight: 500; padding-right: 12px; }
.fees td { text-align: right; font-weight: 600; white-space: nowrap; }
.join-actions { display: grid; gap: 10px; }
.small { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }

/* Diary */
.events { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border-radius: 12px; padding: 16px; }
.event time {
  flex: none; width: 64px; text-align: center; border-radius: 10px;
  background: var(--navy); color: #c9d2e8; padding: 8px 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
}
.event time strong { display: block; font: 700 1.8rem/1.05 var(--display); color: var(--white); }
.event h3 { font-size: 1.2rem; margin: 2px 0 6px; color: var(--ink); }
.event-type { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-deep); }
.event .tbc { font-size: .8rem; }
.diary-actions { margin: 28px 0 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery button {
  position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sand);
}
.gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 12px 10px; text-align: left;
  color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 65%));
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery button:nth-child(6) { grid-column: span 1; }
  .gallery button:nth-child(8) { grid-column: span 2; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgb(8 12 24 / 85%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox-caption { color: var(--white); text-align: center; margin: 12px 0 0; }
.lightbox-close {
  position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / 15%); color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* FAQ */
details { background: var(--white); border-radius: 12px; margin-bottom: 10px; }
summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font: 600 1.1rem/1.3 var(--font); color: var(--navy);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font); color: var(--gold-deep);
}
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Find us + contact */
.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .find-grid { grid-template-columns: 1fr; } }
.address { font-size: 1.15rem; font-weight: 600; }
#contact h2 { font-size: 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.contact-list a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 14px; background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfc8b6; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgb(227 178 60 / 45%); border-color: var(--gold-deep); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; color: var(--sporting); font-weight: 500; }
.form-status:empty { display: none; }

/* Members */
.members-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.members-inner p { color: #c9d2e8; margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d2e8; padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { margin: 0; color: var(--white); font-weight: 600; }
.footer-brand span { color: #9aa6c2; font-weight: 400; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: #c9d2e8; }
.copyright { margin: 0; color: #9aa6c2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Pages added for the live site: news, posts, members' area */
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--navy-deep); color: var(--white); font-size: .9rem; }
.admin-bar a { color: var(--gold); font-weight: 600; }
.admin-bar button { background: none; border: 0; padding: 0; color: var(--white); font: inherit; text-decoration: underline; cursor: pointer; }

.page { min-height: 55vh; }
.page h1 { font-family: var(--display); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; color: var(--navy); margin: 0 0 12px; }
.page h2 { margin-top: 40px; }
.page .eyebrow a { color: inherit; text-decoration: none; }
.page .eyebrow a:hover { text-decoration: underline; }

.news-latest { background: var(--white); border-bottom: 1px solid var(--line); }
.news-latest h2 a { color: inherit; text-decoration: none; }
.news-latest h2 a:hover { text-decoration: underline; }
.news-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.post-date { color: var(--muted); font-size: .95rem; margin: 4px 0 12px; }

.post-list, .file-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.post-list li, .file-list li { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.post-list h2, .post-list h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; }
.post-list a, .file-list a { color: var(--navy); }
.post-list p:last-child, .file-list p { margin-bottom: 0; }
.file-list a { font-weight: 600; font-size: 1.05rem; }
.file-meta { color: var(--muted); font-size: .9rem; margin-left: 8px; }
.file-list p { color: var(--muted); margin-top: 6px; }

.post-body { font-size: 1.08rem; line-height: 1.7; overflow-wrap: break-word; }
.post-body h1, .post-body h2, .post-body h3 { font-family: var(--display); color: var(--navy); line-height: 1.2; margin: 1.6em 0 .4em; }
.post-body h1 { font-size: 1.8rem; }
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body a { color: var(--blue); }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body blockquote { margin: 1em 0; padding: 4px 20px; border-left: 4px solid var(--gold); color: var(--muted); }
.post-body table { border-collapse: collapse; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 6px 12px; text-align: left; }

.login-form { max-width: 420px; margin-top: 24px; }
.form-error { background: #fdecea; color: #8a1c13; border-radius: 8px; padding: 12px 16px; font-weight: 600; }
