@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Colour tokens — the club's real yellow & blue kit colours since 1980,
     grounded by the oak/woodland origin story on the badge */
  --navy: #3E9BD1;
  --navy-deep: #1C5D8C;
  --sky: #8AD1F2;
  --sky-deep: #57B6E3;
  --gold: #FFD400;
  --gold-deep: #E0B800;
  --oak: #7A4B2A;
  --oak-light: #A6764C;
  --pitch: #2E5339;
  --cream: #F7F2E6;
  --paper: #FBF8F1;
  --ink: #1B1B18;
  --ink-soft: #4A4741;
  --white: #FFFFFF;
  --line: rgba(27, 27, 24, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-mono: 'Barlow', -apple-system, sans-serif;

  --radius: 6px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak);
  display: inline-block;
  margin-bottom: 0.75em;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--sky);
  color: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--oak);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(28,93,140,0.8);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: rgba(28,93,140,0.08); color: var(--navy-deep); }
.nav-links a[aria-current="page"] {
  color: var(--navy-deep);
  background: var(--gold);
}
.nav-links .language-link {
  border: 1px solid rgba(28,93,140,0.35);
  color: var(--oak);
}
.nav-links .language-link:hover { background: rgba(122,75,42,0.08); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy-deep);
  border-radius: var(--radius);
  color: var(--navy-deep);
  width: 42px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sky);
    flex-direction: column;
    padding: 10px 24px 20px;
    display: none;
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); }

.btn-outline { border-color: rgba(28,93,140,0.4); color: var(--navy-deep); }
.btn-outline:hover { background: rgba(28,93,140,0.08); }

.btn-navy { background: var(--sky); color: var(--navy-deep); }
.btn-navy:hover { background: var(--sky-deep); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 78% 20%, rgba(255,212,0,0.22), transparent 55%), var(--sky);
  color: var(--navy-deep);
  padding: 90px 24px 70px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero h1 { color: var(--navy-deep); }
.hero .lede { color: rgba(28,93,140,0.8); font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-rings {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--gold);
  border-top: 3px solid var(--navy-deep);
  border-bottom: 3px solid var(--navy-deep);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
@media (max-width: 700px) {
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 22px 12px;
  border-left: 1px solid rgba(62,155,209,0.18);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--navy-deep);
  display: block;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
}

/* ---------- Sections ---------- */
.section { padding: 84px 24px; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--sky); color: var(--navy-deep); }
.section-navy h2, .section-navy h3 { color: var(--navy-deep); }
.section-navy p { color: rgba(28,93,140,0.8); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }


/* ---------- Origin story / rings ---------- */
.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
}
.rings-figure { position: relative; }
.rings-figure svg { width: 100%; height: auto; }
.ring-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--oak);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 12px 28px rgba(62,155,209,0.1); transform: translateY(-2px); }

.card .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pitch);
  background: rgba(46,83,57,0.09);
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}

.card .tag.senior { color: var(--navy); background: rgba(62,155,209,0.08); }
.card .tag.women { color: var(--oak); background: rgba(122,75,42,0.1); }

.team-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.team-photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.team-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease;
}
.team-photo-portrait img { object-position: center 52%; }
.team-photo-card:hover img { transform: scale(1.03); }
.team-photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .team-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .team-gallery { grid-template-columns: 1fr; }
}

.competition-links {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.competition-links li { border-top: 1px solid var(--line); }
.competition-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: var(--navy-deep);
  font-weight: 700;
  text-decoration: none;
}
.competition-links a:hover { color: var(--oak); }

/* ---------- Testimonial ---------- */
.testimonial {
  border-left: 4px solid var(--gold);
  padding-left: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-deep);
  font-style: italic;
  line-height: 1.4;
}
.testimonial cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Fixtures table ---------- */
.fixtures-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.fixtures-toolbar select, .fixtures-toolbar input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.fixtures-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fixtures-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 14px 16px;
}
.fixtures-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.fixtures-table tr:hover td { background: rgba(255,212,0,0.06); }
.fixtures-table .score {
  font-family: var(--font-mono);
  font-weight: 700;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill.upcoming { background: rgba(62,155,209,0.09); color: var(--navy); }
.pill.win { background: rgba(46,83,57,0.12); color: var(--pitch); }
.pill.loss { background: rgba(122,42,42,0.1); color: #7A2A2A; }
.pill.draw { background: rgba(122,75,42,0.1); color: var(--oak); }

.fixtures-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding: 6px 2px 14px;
}

/* ---------- News ---------- */
.news-card img, .news-card .thumb {
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.news-card { padding: 0; overflow: hidden; }
.news-card .body { padding: 22px; }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--oak);
  letter-spacing: 0.05em;
}

.thumb-placeholder {
  aspect-ratio: 16/10;
  width: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--pitch) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oak);
  margin-top: 20px;
}
.contact-info dd { margin: 4px 0 0; color: var(--ink-soft); }

.map-placeholder {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: 24px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sky);
  color: rgba(28,93,140,0.85);
  padding: 56px 24px 28px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-grid h4 {
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: rgba(28,93,140,0.85); }
.footer-grid a:hover { color: var(--oak); }

.footer-bottom {
  border-top: 1px solid rgba(28,93,140,0.18);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--oak); text-decoration: none; }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--sky);
  color: var(--navy-deep);
  padding: 56px 24px 44px;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--navy-deep); margin-bottom: 6px; }
.page-header p { color: rgba(28,93,140,0.8); max-width: 60ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
