/* =========================================================
   Makanbola FC
   Type: Source Serif 4 with optical sizes. Sharp display cuts for
   headlines, text cuts for reading. Archivo only for the wordmark.
   Colour: white base, crest navy as ink, maroon for action,
   gold only for highlights.
   ========================================================= */

:root {
  --navy: #1b2949;
  --navy-2: #33456f;
  --red: #8c1d24;
  --red-dark: #721720;
  --gold: #c9962e;
  --gold-ink: #8a6417;
  --gold-soft: #fbf4e3;
  --ink: #161c2c;
  --body-ink: #4a5367;
  --muted: #7a8396;
  --line: #e5e8ee;
  --line-strong: #d3d8e1;
  --soft: #f5f6f9;
  --tint: #eef1f7;
  --white: #ffffff;
  --win: #2f8a57;
  --draw: #a3abba;

  --sans: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mark: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 1px rgba(27, 41, 73, 0.04), 0 10px 30px -8px rgba(27, 41, 73, 0.12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--navy); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* Matchday numerals: one voice for every number on the site */
.num {
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

h1, h2, h3 { margin: 0; color: var(--navy); }
h2 {
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.005em; }

/* Crest stripe */
.stripe { height: 4px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 80%, var(--gold) 80%); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem;
  background: var(--red); color: var(--white);
  font: 600 1rem/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid var(--red); border-radius: 999px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-line:hover { background: var(--soft); border-color: var(--navy-2); }
.btn-sm { min-height: 42px; padding: 0 1.25rem; font-size: 1.05rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 38px; }
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; line-height: 1; }
.brand-name { font-family: var(--mark); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.06em; color: var(--navy); }
.brand-sub { font-weight: 400; font-style: italic; font-size: 1rem; letter-spacing: 0.3em; margin-right: -0.3em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  position: relative; color: var(--ink); text-decoration: none;
  font-size: 1.12rem; font-weight: 500; padding: 0.4rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { color: var(--white); }
.menu-check { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; }

/* Hero */
.hero { padding: 5rem 0 4rem; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 2rem; }
.hero-in > * { min-width: 0; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 20ch;
  text-wrap: balance;
}
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.25rem; }

.hero-crest { margin: 0; display: grid; place-items: center; }
.hero-crest img { width: min(300px, 72%); filter: drop-shadow(0 22px 30px rgba(27, 41, 73, 0.25)); }

/* Scoreboard */
.board {
  margin: 4rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--navy);
}
.board div { padding: 1.25rem 1.5rem 0 0; }
.board div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.board dt { font-size: 0.88rem; color: var(--muted); }
.board dd { margin: 0.35rem 0 0; color: var(--navy); font-size: 3rem; line-height: 1; }
.board sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.12em; margin-left: 2px; font-weight: 700; }
.form-guide { display: flex; gap: 0.35rem; padding-top: 0.55rem; }
.form-guide i {
  width: 2rem; height: 2rem; border-radius: 7px;
  display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 0.95rem; color: var(--white);
}
.r-w { background: var(--win); }
.r-d { background: var(--draw); }
.r-l { background: var(--red); }

/* Sections */
.section { padding: 6.5rem 0; }
.section-soft { background: var(--soft); }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem;
  margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong);
}
.section-head p { margin: 0; color: var(--body-ink); font-style: italic; max-width: 40ch; justify-self: end; }

/* Fixture ticket */
.ticket {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 1.5rem;
}
.tk-main {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 2.5rem 2rem 2.25rem; text-align: center;
}
.tk-team { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.tk-team img, .opp { width: 64px; height: 73px; margin-bottom: 0.5rem; }
.tk-team strong { font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.tk-team span { font-size: 0.85rem; color: var(--muted); }
.opp {
  display: grid; place-items: center;
  background: var(--tint); color: var(--navy-2); font-weight: 800; font-size: 1.4rem;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.tk-mid { display: flex; flex-direction: column; align-items: center; padding: 0 1.5rem; }
.tk-comp { font-size: 0.95rem; font-style: italic; color: var(--muted); }
.tk-time { font-size: clamp(3.25rem, 7vw, 4.75rem); line-height: 1; color: var(--navy); margin: 0.35rem 0 0.5rem; }
.tk-date { font-weight: 600; color: var(--ink); }
.tk-count {
  margin-top: 0.75rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink); font-size: 0.82rem; font-weight: 600;
}
.tk-count:empty { display: none; }
.tk-venue {
  position: relative; margin: 0; padding: 1rem 2rem;
  border-top: 2px dashed var(--line); text-align: center;
  font-size: 0.92rem; color: var(--body-ink);
}
.tk-venue::before, .tk-venue::after {
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--soft);
}
.tk-venue::before { left: -11px; }
.tk-venue::after { right: -11px; }

.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; }
.panel { background: var(--white); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 1rem; }

.results { list-style: none; margin: 0; padding: 0; }
.results li {
  display: grid; grid-template-columns: 3.6rem 1fr auto 1fr; align-items: center; gap: 0.75rem;
  padding: 0.9rem 0 0.9rem 0.85rem; border-top: 1px solid var(--line);
  font-size: 0.95rem; position: relative;
}
.results li::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 3px; border-radius: 2px; }
.results .is-w::before { background: var(--win); }
.results .is-d::before { background: var(--draw); }
.results .is-l::before { background: var(--red); }
.r-date { color: var(--muted); font-size: 0.82rem; }
.r-home { text-align: right; }
.results .us { font-weight: 700; color: var(--navy); }
.score { font-size: 1.45rem; line-height: 1; color: var(--navy); min-width: 3.2rem; text-align: center; }

.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.table th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-align: center; padding: 0 0.5rem 0.65rem; }
.table td { text-align: center; padding: 0.7rem 0.5rem; border-top: 1px solid var(--line); }
.table .l { text-align: left; }
.table td.num { font-size: 1.15rem; line-height: 1; color: var(--navy); }
.table .us td { background: var(--gold-soft); font-weight: 700; color: var(--navy); }
.table .us td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* The club */
.club { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; }
.club-story p { color: var(--body-ink); max-width: 50ch; margin: 0 0 1.25rem; }
.club-story .story-lead { font-size: 1.6rem; line-height: 1.35; color: var(--navy); letter-spacing: -0.01em; }
.supporters { margin-top: 2rem !important; font-size: 0.95rem; }
.supporters a { font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.facts { margin: -1rem 0 0; }
.facts div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 0.6rem; }
.swatches { display: inline-flex; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--white); margin-left: -5px; }
.swatches i:first-child { margin-left: 0; }
.sw-navy { background: var(--navy); }
.sw-red { background: var(--red); }
.sw-gold { background: var(--gold); }

/* Squad: one team sheet */
.sheet {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.pos { padding: 1.75rem 1.75rem 1.5rem; }
.pos + .pos { border-left: 1px solid var(--line); }
.pos h3 { font-size: 0.9rem; color: var(--red); margin-bottom: 1rem; }
.pos ul { list-style: none; margin: 0; padding: 0; }
.pos li { display: flex; align-items: center; gap: 0.85rem; padding: 0.5rem 0; font-size: 0.98rem; }
.pos b { flex: none; width: 2rem; text-align: right; font-size: 1.4rem; line-height: 1; color: var(--navy); }
.pos em {
  font-style: normal; font-weight: 800; font-size: 0.78rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--white);
}

/* Contact */
.contact .section-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 2rem; }
.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.c-big {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.75rem 0 1.5rem; border-top: 1px solid var(--navy);
  text-decoration: none; color: var(--navy);
}
.c-big small { font-size: 0.9rem; color: var(--muted); }
.c-big span { font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 3px no-repeat;
  padding-bottom: 6px; width: fit-content;
  transition: background-size .3s var(--ease);
}
.c-big:hover span { background-size: 100% 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.25rem 0 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.95rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.socials a:hover { border-color: var(--navy-2); background: var(--soft); }
.socials span { color: var(--muted); font-weight: 400; }
.socials svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Footer */
.footer { background: var(--soft); }
.footer-in {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem 2rem;
  padding-top: 2.5rem; padding-bottom: 2rem;
}
.f-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.f-links a { text-decoration: none; color: var(--body-ink); font-size: 0.95rem; }
.f-links a:hover { color: var(--navy); }
.copy { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 0.85rem; }

/* One orchestrated entrance, hero only */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-text > *, .hero-crest, .board { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-crest { animation-delay: .12s; }
.board { animation-delay: .3s; }

/* Tablet */
@media (max-width: 960px) {
  .club { grid-template-columns: 1fr; gap: 3rem; }
  .cols { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr 1fr; }
  .pos:nth-child(3) { border-left: 0; }
  .pos:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1.25rem; }

  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); position: relative;
    transition: transform .2s var(--ease), background-color .2s;
  }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .menu-check:checked + .menu-btn span { background: transparent; }
  .menu-check:checked + .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .menu-check:checked + .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  .menu-check:focus-visible + .menu-btn { outline: 2px solid var(--gold); border-radius: 8px; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav a:not(.btn) { padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 0.75rem 1.25rem 1rem; min-height: 48px; }
  .menu-check:checked ~ .nav { display: flex; }

  .hero { padding: 1.5rem 0 3rem; }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .brand img { width: 34px; }
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: 0.9rem; letter-spacing: 0.27em; margin-right: -0.27em; }
  .header-in { height: 70px; }
  .hero-crest { order: -1; margin: 0 auto 1.25rem; }
  .hero-crest img { width: 160px; }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .actions { margin-top: 1.75rem; }
  .actions .btn { flex: 1 1 140px; }

  .board { grid-template-columns: 1fr 1fr; margin-top: 2.75rem; }
  .board div { padding: 1rem 1rem 1.1rem 0; }
  .board div + div { padding-left: 0; border-left: 0; }
  .board div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .board div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .board dd { font-size: 2.4rem; }

  .section { padding: 4.25rem 0; }
  .section-head { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 2rem; }
  .section-head p { justify-self: start; }

  .tk-main { grid-template-columns: 1fr 1fr; padding: 1.75rem 1.25rem; row-gap: 1.75rem; }
  .tk-mid { grid-column: 1 / -1; order: -1; padding: 0; }
  .tk-team img, .opp { width: 52px; height: 59px; }
  .tk-team strong { font-size: 1rem; }

  .panel { padding: 1.25rem; }
  .results li { grid-template-columns: 1fr auto 1fr; gap: 0.5rem; padding-left: 0.85rem; font-size: 0.9rem; }
  .r-date { grid-column: 1 / -1; margin-bottom: -0.35rem; }
  .score { font-size: 1.35rem; min-width: 2.6rem; }

  .club-story .story-lead { font-size: 1.3rem; }
  .facts div { grid-template-columns: 7.5rem 1fr; }

  .sheet { grid-template-columns: 1fr; }
  .pos { padding: 1.4rem 1.25rem 1.2rem; }
  .pos + .pos { border-left: 0; border-top: 1px solid var(--line); }
  .pos ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }

  .contact-main { grid-template-columns: 1fr; gap: 0; }
  .socials a { flex: 1 1 100%; }

  .footer-in { grid-template-columns: 1fr; }
  .f-links { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .pos ul { grid-template-columns: 1fr; }
}

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