/* ============================================================
   HILLINGDON STAGS FC — Brand stylesheet
   Brand palette: black #1A1A1A · gold #F5B82E · white #FFFFFF
   ============================================================ */

:root {
  --stag-black: #1A1A1A;
  --stag-black-soft: #232323;
  --stag-gold: #F5B82E;
  --stag-gold-dark: #C99317;
  --stag-white: #FFFFFF;
  --stag-cream: #FAF7F1;
  --stag-grey-100: #F2F2F0;
  --stag-grey-300: #BBBBBB;
  --stag-grey-500: #777777;
  --stag-grey-700: #3A3A3A;
  --stag-win: #2BA84A;
  --stag-loss: #C84444;
  --stag-draw: #888888;

  --font-display: "Oswald", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --max-width: 1200px;
  --radius: 6px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--stag-cream);
  color: var(--stag-black);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Display font for headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  line-height: 1.1;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--stag-black);
  color: var(--stag-white);
  border-bottom: 4px solid var(--stag-gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--stag-white);
}

.brand img, .brand svg { height: 48px; width: auto; }

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

.brand-text .club-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text .club-tag {
  font-size: 0.7rem;
  color: var(--stag-gold);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

nav.primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav.primary a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stag-white);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

nav.primary a:hover {
  background: var(--stag-grey-700);
  color: var(--stag-gold);
}

nav.primary a.active {
  color: var(--stag-gold);
}

/* ===== Hero ===== */
.hero {
  background: var(--stag-black);
  color: var(--stag-white);
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 184, 46, 0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 12px);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero .league-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--stag-gold);
  border: 1px solid var(--stag-gold);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin: 0;
}

.hero h1 .accent { color: var(--stag-gold); }

.hero .tagline {
  font-style: italic;
  color: var(--stag-grey-300);
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* ===== Section base ===== */
.section {
  padding: 2.5rem 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 28px;
  background: var(--stag-gold);
  border-radius: 2px;
}

.section-title h2 { margin: 0; }

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

.card {
  background: var(--stag-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--stag-gold);
}

.card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--stag-grey-500);
  margin-bottom: 0.85rem;
}

.card .meta {
  font-size: 0.85rem;
  color: var(--stag-grey-500);
  margin-bottom: 0.5rem;
}

/* Fixture / result rows in cards */
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.match-row .home, .match-row .away {
  font-weight: 600;
  font-size: 1rem;
}

.match-row .away { text-align: right; }

.match-row .score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--stag-black);
  background: var(--stag-gold);
  padding: 0.1rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
}

.match-row .vs {
  font-size: 0.75rem;
  color: var(--stag-grey-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.is-stags { color: var(--stag-black); }

/* League position card */
.position-card .pos-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--stag-gold);
  line-height: 1;
}

.position-card .pos-of {
  color: var(--stag-grey-500);
  font-size: 0.9rem;
}

.position-card .pos-stats {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--stag-grey-700);
}

.position-card .pos-stats span strong { color: var(--stag-black); }

/* Form chips */
.form-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.form-chip {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--stag-white);
}

.form-chip.W { background: var(--stag-win); }
.form-chip.D { background: var(--stag-draw); }
.form-chip.L { background: var(--stag-loss); }

/* ===== League table ===== */
.table-wrap {
  overflow-x: auto;
  background: var(--stag-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.league-table th, .league-table td {
  padding: 0.7rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--stag-grey-100);
}

.league-table th {
  background: var(--stag-black);
  color: var(--stag-white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.league-table td.team { text-align: left; font-weight: 600; }
.league-table td.pos { font-family: var(--font-display); font-size: 1.05rem; color: var(--stag-grey-500); }

.league-table tr.us {
  background: rgba(245, 184, 46, 0.18);
  border-left: 4px solid var(--stag-gold);
}

.league-table tr.us td.team { color: var(--stag-black); }
.league-table tr.us td.pos { color: var(--stag-black); }

/* ===== Squad grid ===== */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.player-card {
  background: var(--stag-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.player-card .photo {
  background: var(--stag-black);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stag-gold);
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
}

.player-card .info { padding: 0.85rem 0.5rem 1rem; }

.player-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--stag-black);
}

.player-card .nick {
  font-style: italic;
  color: var(--stag-grey-500);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.player-card .pos {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--stag-gold-dark);
  text-transform: uppercase;
}

.player-card .number {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  font-family: var(--font-display);
  color: var(--stag-white);
  font-size: 1.3rem;
  background: var(--stag-gold);
  color: var(--stag-black);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary { background: var(--stag-gold); color: var(--stag-black); }
.btn-primary:hover { background: var(--stag-gold-dark); color: var(--stag-white); }

.btn-ghost {
  background: transparent;
  color: var(--stag-white);
  border-color: var(--stag-white);
}

.btn-ghost:hover { background: var(--stag-white); color: var(--stag-black); }

/* ===== Forms ===== */
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  color: var(--stag-grey-700);
}

.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--stag-grey-300);
  border-radius: var(--radius);
  background: var(--stag-white);
}

.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--stag-gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.25);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--stag-black);
  color: var(--stag-grey-300);
  padding: 2rem 0 1.25rem;
  margin-top: 3rem;
  border-top: 4px solid var(--stag-gold);
  font-size: 0.85rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a { color: var(--stag-gold); }

/* ===== Match report ===== */
.report {
  background: var(--stag-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
  border-left: 4px solid var(--stag-gold);
}

.report .report-meta {
  font-size: 0.8rem;
  color: var(--stag-grey-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.report .report-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.muted { color: var(--stag-grey-500); }
.gold { color: var(--stag-gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  nav.primary ul { gap: 0; }
  nav.primary a { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
  .brand-text .club-name { font-size: 1rem; }
  .hero { padding: 2rem 0 2.5rem; }
}
