/* =========================================================
   Wrexham United FC — modern club site
   Palette from the crest: forest green + heraldic gold,
   dragon red as a sparing live/accent colour
   ========================================================= */

:root {
  --green-950: #04150f;
  --green-900: #07201a;
  --green-850: #0a2a20;
  --green-800: #0e3b2c;
  --green-700: #14563f;
  --green-600: #1c7053;
  --gold-500: #e8b84b;
  --gold-400: #f5cd63;
  --gold-300: #ffdd84;
  --gold-600: #c99a34;
  --red-500: #d81f2a;
  --red-400: #f0434d;
  --cream: #f4ecd8;
  --ink: #ecf5ef;
  --ink-dim: #9fbcae;
  --line: rgba(232, 184, 75, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);
  --card: #0c2a20;
  --card-2: #0a2017;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 22px 55px -24px rgba(0, 0, 0, 0.75);
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(28, 112, 83, 0.25), transparent 60%),
    var(--green-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
}
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--tight { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); }
.muted { color: var(--ink-dim); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--display);
  background: var(--bg);
  color: var(--green-950);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--gold-600); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold-500); box-shadow: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 21, 15, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--display); font-weight: 800; }
.brand img {
  width: 50px; height: 50px; object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #0c2a20, #061711);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 4px;
}
.brand span { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; }
.brand small {
  display: block; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-400);
}

.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 999px;
  font-weight: 600; font-size: 0.93rem; color: var(--ink-dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(232, 184, 75, 0.08); }
.nav-links a.active { color: var(--gold-300); }
.nav-cta { margin-left: 0.35rem; }
/* CTA button in the nav must keep button colours, not inherit link colours */
.nav-links .nav-cta a,
.nav-links a.btn,
.nav-links a.btn.active { color: var(--green-950); background: var(--gold-500); }
.nav-links .nav-cta a:hover { color: var(--green-950); background: var(--gold-400); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto;
  position: relative; transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (photo crossfade) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 780px);
  padding-block: clamp(3rem, 9vw, 6rem);
  background: var(--green-950);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 28%;
  opacity: 0;
  will-change: opacity, transform;
  animation: heroFade 32s var(--ease) infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.05); }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.13); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(4, 21, 15, 0.95) 0%, rgba(4, 21, 15, 0.72) 40%, rgba(4, 21, 15, 0.3) 66%, rgba(4, 21, 15, 0.62) 100%),
    linear-gradient(0deg, var(--green-950) 1%, rgba(4, 21, 15, 0) 32%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  background: rgba(4, 21, 15, 0.45); backdrop-filter: blur(4px);
  margin-bottom: 1.4rem;
}
.hero-badge b { color: var(--gold-300); font-weight: 700; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4); }
.hero h1 span { color: var(--gold-400); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: #d7e6de; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stat strip ---------- */
.stat-strip { border-block: 1px solid var(--line); background: var(--green-900); }
.stat-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem; }
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--gold-400); line-height: 1;
}
.stat span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-dim); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(232, 184, 75, 0.4); }
.card .tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.card h3 { margin-top: 0.5rem; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.6rem; flex-wrap: wrap;
}
.section-head p { max-width: 54ch; margin: 0; }

/* ---------- Next match panel ---------- */
.match-panel {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(232, 184, 75, 0.14), transparent 60%),
    linear-gradient(180deg, var(--green-800), var(--green-900));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.match-panel .meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  color: var(--ink-dim); font-size: 0.9rem; font-weight: 600;
}
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem; margin-block: 1.6rem; }
.match-teams .team { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.match-teams .team .badge {
  width: 80px; height: 80px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem;
  background: radial-gradient(circle at 50% 40%, #0c2a20, #061711);
  border: 1px solid var(--line); color: var(--gold-400); overflow: hidden; padding: 8px;
}
.match-teams .team .badge img { width: 100%; height: 100%; object-fit: contain; }
.match-teams .team .badge--club { background: #fff; padding: 10px; }
.match-teams .team strong { font-family: var(--display); font-size: 1.05rem; }
.match-teams .vs { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--ink-dim); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 1rem; }
.countdown div { background: var(--green-950); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.4rem; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--gold-300); line-height: 1; }
.countdown span { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th {
  text-align: left; font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim); padding: 1rem 1.1rem;
  background: var(--green-900); border-bottom: 1px solid var(--line);
}
tbody td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); font-size: 0.94rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(232, 184, 75, 0.05); }
.num-col { text-align: center; width: 46px; color: var(--ink-dim); }
.club-cell { display: inline-flex; align-items: center; gap: 0.55rem; vertical-align: middle; }
.club-logo {
  width: 24px; height: 24px; object-fit: contain; flex-shrink: 0;
  background: #fff; border-radius: 6px; padding: 3px;
}
td .club-cell + b, td b + .club-cell { margin-inline: 0.35rem; }
.fixture-cell { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.fixture-cell b { color: var(--ink-dim); font-weight: 700; }
.result-pill { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: 0.8rem; font-family: var(--display); }
.result-pill.w { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
.result-pill.d { background: rgba(232, 184, 75, 0.18); color: var(--gold-300); }
.result-pill.l { background: rgba(240, 67, 77, 0.16); color: var(--red-400); }
.form-row { display: inline-flex; gap: 4px; }
.form-row .result-pill { width: 20px; height: 20px; font-size: 0.66rem; border-radius: 6px; }
.row-highlight td { background: rgba(232, 184, 75, 0.1); }
.row-highlight td:first-child { box-shadow: inset 3px 0 0 var(--gold-500); }
.zone-cl td:first-child { box-shadow: inset 3px 0 0 #4ade80; }
.zone-rel td:first-child { box-shadow: inset 3px 0 0 var(--red-500); }
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.82rem; color: var(--ink-dim); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.4rem; vertical-align: middle; }

/* ---------- Squad ---------- */
.squad-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-dim); font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--gold-500); color: var(--green-950); border-color: var(--gold-500); }

.player-card {
  position: relative; background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.player-card:hover { transform: translateY(-6px); border-color: rgba(232, 184, 75, 0.4); }
.player-card .num {
  position: absolute; top: 0.7rem; right: 1rem; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--gold-400); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}
.player-photo {
  aspect-ratio: 4 / 5; margin-bottom: 1rem;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--green-800), var(--green-950));
}
.player-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; transition: transform 0.4s var(--ease);
}
.player-card:hover .player-photo img { transform: scale(1.03); }
.player-photo--ph { display: grid; place-items: center; }
.player-photo--ph span {
  font-family: var(--display); font-weight: 800; font-size: 2.8rem;
  letter-spacing: 0.04em; color: rgba(232, 184, 75, 0.32);
}
.player-card h3 { margin-bottom: 0.15rem; }

/* compact 5-up squad grid */
.squad-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.squad-grid .player-card { padding: 1rem; }
.squad-grid .player-card .num { font-size: 2.1rem; top: 0.5rem; right: 0.75rem; }
.squad-grid .player-photo { margin-bottom: 0.8rem; }
.squad-grid .player-card h3 { font-size: 1.05rem; }
.squad-grid .player-card .pos { font-size: 0.68rem; letter-spacing: 0.12em; }
.squad-grid .player-card dl { font-size: 0.78rem; gap: 0.3rem 0.7rem; margin-top: 0.7rem; }
.squad-grid .player-photo--ph span { font-size: 2.2rem; }
@media (max-width: 1100px) { .squad-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .squad-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .squad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .squad-grid { grid-template-columns: 1fr; } }
.player-card .pos { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.player-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.9rem; margin: 1rem 0 0; font-size: 0.85rem; }
.player-card dt { color: var(--ink-dim); }
.player-card dd { margin: 0; font-weight: 700; white-space: nowrap; }
.player-card dd.nat { display: flex; align-items: center; gap: 0.4rem; }
.player-card dd.nat .flag {
  width: 18px; height: 13px; flex: 0 0 auto; object-fit: cover; border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.staff-grid { display: flex; flex-wrap: wrap; gap: 1.6rem 1.2rem; }
.staff-card { flex: 0 1 150px; background: none; border: none; padding: 0; text-align: center; }
.staff-photo {
  width: 92px; aspect-ratio: 1; margin: 0 auto 0.65rem;
  border-radius: 50%; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--green-800), var(--green-950));
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.4s var(--ease); }
.staff-card:hover .staff-photo img { transform: scale(1.06); }
.staff-card b { font-family: var(--display); display: block; font-size: 0.9rem; line-height: 1.25; }
.staff-card span { display: block; margin-top: 0.15rem; color: var(--gold-400); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- News ---------- */
.news-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem); margin-bottom: 2.4rem;
}
.thumb {
  border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center;
  background:
    radial-gradient(200px 200px at 68% 32%, rgba(232, 184, 75, 0.22), transparent 70%),
    linear-gradient(135deg, var(--green-700), var(--green-950));
}
.news-feature .thumb { aspect-ratio: 4 / 3; }
.news-feature .thumb img { width: 52%; opacity: 0.92; }
.article-card .thumb { aspect-ratio: 16 / 10; margin-bottom: 1rem; }
.article-card .thumb img { width: 44%; opacity: 0.85; }
.article-card .date, .news-feature .date { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Kits / 2D shirt vectors ---------- */
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.kit {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem;
  text-align: center; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.kit:hover { transform: translateY(-6px); border-color: rgba(232, 184, 75, 0.4); }
.kit-figure {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem;
  border: 1px solid var(--line);
}
.kit-photo { display: block; width: 100%; height: auto; transition: transform 0.4s var(--ease); }
.kit:hover .kit-photo { transform: scale(1.03); }
.kit-subhead {
  grid-column: 1 / -1; margin: 0.6rem 0 -0.4rem;
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-400);
}
.kit h3 { margin-bottom: 0.2rem; }
.kit .kit-role { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; }
.kit dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.8rem; margin: 1rem 0 0; font-size: 0.86rem; text-align: left; }
.kit dt { color: var(--ink-dim); }
.kit dd { margin: 0; font-weight: 700; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 0.45rem; vertical-align: middle; border: 1px solid rgba(255, 255, 255, 0.25); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 1.6rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.15);
}
.timeline .yr { font-family: var(--display); font-weight: 800; color: var(--gold-300); font-size: 0.9rem; letter-spacing: 0.05em; }
.timeline b { display: block; font-family: var(--display); margin: 0.1rem 0 0.2rem; }
.timeline span { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- Info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list .ic {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(232, 184, 75, 0.1); color: var(--gold-300); font-size: 1.1rem;
}
.info-list b { display: block; font-family: var(--display); }
.info-list span { color: var(--ink-dim); font-size: 0.92rem; }

/* ---------- Honours ---------- */
.honours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.honour {
  display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-2);
}
.honour .trophy { font-size: 1.5rem; }
.honour b { font-family: var(--display); display: block; }
.honour span { color: var(--ink-dim); font-size: 0.86rem; }

/* ---------- Partners / sponsors ---------- */
.partner-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.4rem 1rem;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.partner:hover { transform: translateY(-4px); border-color: rgba(232, 184, 75, 0.4); }
.partner small {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.3;
}
.partner--primary { border-color: rgba(232, 184, 75, 0.5); background: linear-gradient(180deg, #123a2c, var(--card-2)); }
.partner-logo-tile {
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-tile img {
  max-height: 32px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
.partner-logo-tile img.tall { max-height: 44px; }
@media (max-width: 1000px) { .partner-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partner-wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Press gallery (masonry columns) ---------- */
.gallery-grid { column-count: 3; column-gap: 1rem; }
.gallery-item {
  position: relative; display: block; width: 100%; margin: 0 0 1rem;
  overflow: hidden; cursor: pointer; break-inside: avoid;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-2);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.45s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.85rem;
  font-size: 0.8rem; color: #d7e6de;
  background: linear-gradient(0deg, rgba(4, 21, 15, 0.92), rgba(4, 21, 15, 0));
}
.gallery-item figcaption b { font-family: var(--display); display: block; font-size: 0.92rem; color: var(--ink); }

/* uniform 3-up strip (home teaser) */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-strip .gallery-item { margin: 0; aspect-ratio: 3 / 2; }
.gallery-strip .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-strip .gallery-item { aspect-ratio: 16 / 9; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(2, 10, 7, 0.93); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1120px; width: 100%; }
.lightbox img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 0.8rem; text-align: center; color: var(--ink-dim); font-size: 0.9rem; }
.lightbox figcaption b { font-family: var(--display); color: var(--ink); }
.lightbox button {
  position: absolute; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s var(--ease);
}
.lightbox button:hover { background: var(--gold-500); color: var(--green-950); }
.lightbox-close { top: 1.1rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox-nav.prev { left: 2.5vw; }
.lightbox-nav.next { right: 2.5vw; }

/* photo variant of the card thumb (specificity must beat .article-card .thumb img) */
.thumb.thumb--photo { display: block; padding: 0; border: 1px solid var(--line); overflow: hidden; }
.thumb.thumb--photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; display: block; }

@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 560px) { .gallery-grid { column-count: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(232, 184, 75, 0.16), transparent 65%),
    linear-gradient(180deg, var(--green-800), var(--green-900));
  border-block: 1px solid var(--line); text-align: center;
}
.cta-band .wrap { padding-block: clamp(3rem, 8vw, 5rem); }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-dim); }
.field input, .field select, .field textarea {
  background: var(--green-950); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem; color: var(--ink); font: inherit; transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; }
.form-ok {
  display: none; background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80; border-radius: 12px; padding: 0.9rem 1.1rem; font-weight: 600; margin-bottom: 1rem;
}
.form-ok.show { display: block; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(232, 184, 75, 0.14), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-950));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.page-hero p { max-width: 58ch; color: var(--ink-dim); margin: 0; }
.breadcrumb { font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 0.8rem; letter-spacing: 0.06em; }
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- Anchor offset for sticky nav ---------- */
[id] { scroll-margin-top: 90px; }

/* ---------- Prose ---------- */
.prose p { color: var(--ink-dim); max-width: 68ch; }
.prose h3 { margin-top: 2rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer h4 { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--ink-dim); font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-dim);
}
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; font-family: var(--display);
  color: var(--ink-dim); transition: all 0.2s var(--ease);
}
.social a:hover { color: var(--green-950); background: var(--gold-500); border-color: var(--gold-500); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-crest { order: -1; }
  .news-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kit-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .honours { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--green-900); border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem, 4vw, 2.4rem) 1.4rem; transform: translateY(-145%);
    transition: transform 0.35s var(--ease);
  }
  .nav-open .nav-links { transform: none; }
  .nav-links a { padding: 0.9rem 0.6rem; font-size: 1rem; }
  .nav-cta { margin: 0.6rem 0 0; text-align: center; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .match-teams { grid-template-columns: 1fr; }
  .match-teams .vs { rotate: 90deg; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
