/* Halesowen Town Colts FC — 2026 site
   Palette is built from the club's blue home kit, with the volt away-kit
   colour used sparingly as the single accent. */

:root {
  --navy-900: #061225;
  --navy-800: #0a1c35;
  --navy-700: #0f2a4d;
  --blue-700: #0a47a8;
  --blue-600: #0d5ce0;
  --blue-500: #2b7bff;
  --blue-100: #e6efff;
  --blue-50:  #f2f7ff;
  --volt:     #d8ff3e;

  --ink:      #0d1726;
  --body:     #43536b;
  --muted:    #6b7c96;
  --line:     #e2e9f3;
  --surface:  #ffffff;
  --bg:       #f5f8fd;

  --radius:   16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6, 18, 37, .06), 0 2px 8px rgba(6, 18, 37, .04);
  --shadow-md: 0 4px 12px rgba(6, 18, 37, .07), 0 12px 32px rgba(6, 18, 37, .08);
  --shadow-lg: 0 24px 60px rgba(6, 18, 37, .16);

  --wrap: 1160px;
  --display: "Barlow Condensed", "Haettenschweiler", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p  { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--volt); color: var(--navy-900); padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%; background: #fff;
  border: 2px solid var(--blue-100); object-fit: cover; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  text-transform: uppercase; color: var(--navy-900); letter-spacing: .01em;
}
.brand-sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .92rem; font-weight: 600; color: var(--navy-800); text-decoration: none;
  padding: 9px 14px; border-radius: 10px; transition: background .18s, color .18s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-100); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-800);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: -1; margin-right: 14px; }
  .nav {
    position: absolute; inset: 76px 0 auto; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .95rem; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 22px rgba(13, 92, 224, .32); }
.btn-primary:hover { background: var(--blue-700); }
.btn-volt { background: var(--volt); color: var(--navy-900); box-shadow: 0 8px 22px rgba(216, 255, 62, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--line); color: var(--navy-800); background: #fff; }
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 520px at 78% -8%, rgba(43, 123, 255, .5), transparent 62%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 42%, var(--blue-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 26px);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center;
  padding: 92px 24px 104px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--volt); }
.hero p.lede { font-size: 1.16rem; color: rgba(255, 255, 255, .84); max-width: 48ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-partner {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  padding: 10px 20px 10px 12px; border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-partner:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.hero-partner img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.hero-partner-label {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero-partner-name { display: block; font-size: 1rem; font-weight: 700; color: #fff; }
@media (max-width: 860px) { .hero-partner { margin-inline: auto; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--volt); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--volt); }
.eyebrow.on-light { color: var(--blue-600); }
.eyebrow.on-light::before { background: var(--blue-600); }

.crest-badge {
  justify-self: center; width: min(320px, 78vw); height: min(320px, 78vw); border-radius: 50%;
  background: #fff; display: grid; place-items: center; padding: min(48px, 11.7vw);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .1), 0 0 0 24px rgba(255, 255, 255, .05), var(--shadow-lg);
}
.crest-badge img { width: 86%; height: auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 76px; text-align: center; }
  .hero .eyebrow, .hero-actions { justify-content: center; }
  .hero p.lede { margin-inline: auto; }
  .crest-badge { order: -1; width: min(220px, 60vw); height: min(220px, 60vw); padding: min(33px, 9vw); }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-900); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.stat { background: var(--navy-900); padding: 30px 20px; text-align: center; }
.stat dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; }
.stat dd {
  margin: 6px 0 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700; line-height: 1; color: var(--volt);
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head p { font-size: 1.08rem; }
.section-head.centre { margin-inline: auto; text-align: center; }
.section-head.centre .eyebrow { justify-content: center; }
.bg-white { background: var(--surface); }
.bg-tint  { background: var(--blue-50); }

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

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-100);
  color: var(--blue-700); display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
}

/* ---------- Team cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter {
  font: 600 .88rem/1 var(--sans); padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.filter:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filter[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.team-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.team-slot { position: relative; min-height: 190px; }
.team-card {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, inset .2s ease;
}

.team-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(var(--blue-500), var(--blue-700));
  border-radius: var(--radius) 0 0 var(--radius);
}
.team-card .age {
  font-family: var(--display); font-size: 2.1rem; font-weight: 700; color: var(--navy-900); line-height: 1;
}
.team-card .side { font-size: 1rem; font-weight: 600; color: var(--blue-700); margin-top: 2px; }
.team-card .league { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.team-card .team-badge {
  position: absolute; top: 14px; right: 14px; width: 88px; height: 88px;
  object-fit: contain;
}
.team-card .age, .team-card .side { padding-right: 102px; }
.team-card .team-link {
  display: inline-block; margin-top: 10px; font-size: .82rem; font-weight: 600;
  color: var(--blue-600); text-decoration: none;
}
.team-card .team-link:hover { text-decoration: underline; }
.team-empty { padding: 40px; text-align: center; color: var(--muted); }

/* Expanding detail panel: hover on pointer devices, tap on touch, focus for keyboard */
.team-card.has-details { cursor: pointer; }
.team-card.has-details::after {
  content: "+"; position: absolute; right: 16px; bottom: 12px;
  font: 700 18px/1 var(--sans); color: var(--muted); opacity: .5; transition: opacity .2s, transform .2s;
}
.team-details {
  max-height: 0; overflow: hidden; opacity: 0; margin-top: 0;
  transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease;
}
.team-manager { margin: 10px 0 0; font-size: .85rem; color: var(--body); }
.team-details .map-link { font-size: .85rem; font-weight: 600; }
.team-map { display: none; margin: 14px 0 0; }
.team-map img {
  width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line);
}
.team-map figcaption { font-size: .68rem; color: var(--muted); margin-top: 5px; }
.team-card.is-open .team-map { display: block; }

.team-details p { margin: 0 0 8px; font-size: .9rem; }
.team-details p:last-child { margin-bottom: 0; }
.team-details .dt, .team-manager .dt {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.team-card.has-details:focus-visible { box-shadow: var(--shadow-md); }
/* Hover is just a lift; opening zooms the card to the centre of the screen. */
.team-card.has-details:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.team-backdrop {
  position: fixed; inset: 0; z-index: 90; opacity: 0; pointer-events: none;
  background: rgba(6, 18, 37, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .22s ease;
}
.team-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.team-card.is-open {
  position: fixed; inset: auto; top: 50%; left: 50%;
  width: min(430px, 92vw); max-height: 86vh; overflow: auto;
  padding: 34px; z-index: 100; border-color: transparent;
  box-shadow: 0 30px 80px rgba(6, 18, 37, .45);
  animation: team-zoom .24s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes team-zoom {
  from { transform: translate(-50%, -50%) scale(.9); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);  opacity: 1; }
}
.team-card.is-open .team-details { max-height: none; opacity: 1; margin-top: 20px; }
.team-card.is-open .team-badge { width: 92px; height: 92px; top: 26px; right: 26px; }
.team-card.is-open .age { font-size: 3.2rem; padding-right: 110px; }
.team-card.is-open .side { font-size: 1.2rem; padding-right: 110px; }
.team-card.is-open .team-details p { font-size: 1rem; }
.team-card.is-open::after { display: none; }
body.team-modal-open { overflow: hidden; }
.team-card.has-details:hover::after { opacity: .9; }

/* No hover expansion on touch — tapping handles it, so the panel doesn't stick open */



/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; }
.news-meta {
  display: flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.tag {
  background: var(--blue-100); color: var(--blue-700); padding: 4px 10px; border-radius: 999px;
  font-size: .68rem; letter-spacing: .1em;
}
.article { max-width: 72ch; }
.article + .article { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.article h2 { margin-bottom: .3em; }

/* ---------- Featured announcement ---------- */
.latest-news {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--volt);
  border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.latest-news:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.latest-news h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; }
.latest-news p { color: var(--body); max-width: 70ch; margin-bottom: 14px; }
.latest-news-cta { font-size: .92rem; font-weight: 700; color: var(--blue-600); }
@media (max-width: 600px) { .latest-news { padding: 24px 22px; } }

/* ---------- People ---------- */
.person { text-align: left; }
.person .avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-600), var(--navy-800)); color: #fff;
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-bottom: 18px;
}
.person .role {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 14px;
}
.person .bio { font-size: .95rem; }
.person a { font-size: .9rem; font-weight: 600; word-break: break-word; }

/* ---------- Documents ---------- */
.doc-list { display: grid; gap: 12px; }
.doc {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc:hover { border-color: var(--blue-500); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.doc .doc-ico {
  width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--blue-100);
  color: var(--blue-700); display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.doc .doc-name { font-weight: 600; color: var(--ink); }
.doc .doc-arrow { margin-left: auto; color: var(--blue-600); font-size: 1.2rem; }

/* ---------- Leagues ---------- */
.leagues { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.leagues img {
  height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6;
  transition: filter .25s, opacity .25s;
}
.leagues img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  color: #fff; border-radius: var(--radius-lg); padding: 56px;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(43, 123, 255, .55), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--blue-700));
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .84); max-width: 54ch; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
@media (max-width: 600px) { .cta-band { padding: 36px 26px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--navy-800); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(43, 123, 255, .16);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); padding: 72px 0 32px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.site-footer a:hover { color: var(--volt); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; }
.footer-brand span { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: #fff; text-transform: uppercase; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: .85rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  color: #fff; padding: 72px 0 64px;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(43, 123, 255, .45), transparent 62%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 26px);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin-bottom: .25em; }
.page-banner p { color: rgba(255, 255, 255, .8); max-width: 58ch; font-size: 1.08rem; margin: 0; }

.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.note {
  border-left: 4px solid var(--volt); background: var(--blue-50);
  padding: 20px 24px; border-radius: 0 12px 12px 0;
}
.note p:last-child { margin-bottom: 0; }
