/* Blue Bentos FC — Global Styles
   Palette: #042C53 (navy) · #F7F6F2 (canvas)
   Type: Playfair Display (serif) · Inter (sans)
   Principle: Restraint, with reverence.
------------------------------------------------ */

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

:root {
  --navy:   #042C53;
  --canvas: #F7F6F2;
  --text:   #1C1C1E;
  --muted:  #6E6E73;
  --border: #D6D2C8;
  --white:  #FFFFFF;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --ease: 200ms ease;
  --max:  1080px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ──────────────────────────────────────── */

.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem clamp(1.25rem, 4vw, 2.5rem);
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(4,44,83,0.12));
  transition: filter var(--ease);
}
.nav-logo img:hover { filter: drop-shadow(0 2px 6px rgba(4,44,83,0.22)); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); }

.nav-links .cta-link {
  background: var(--navy); color: white;
  padding: 0.5rem 1.125rem; font-size: 0.85rem;
}
.nav-links .cta-link:hover { background: #063660; color: white; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: var(--ease); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; inset: 0; top: 73px;
    background: var(--canvas); border-top: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem); gap: 1.5rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-links .cta-link { padding: 0.75rem 1.5rem; }
}

/* ── HERO ─────────────────────────────────────── */

.hero {
  position: relative; height: 92vh;
  min-height: 520px; max-height: 900px; overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(4,44,83,.15) 0%, rgba(4,44,83,.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.hero-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.25rem, 5.5vw, 4rem);
  color: white; font-weight: 700; line-height: 1.1;
  max-width: 680px; margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem); color: rgba(255,255,255,.8);
  max-width: 460px; margin-bottom: 2rem; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; }

@media (max-width: 540px) {
  .hero-overlay { padding: 1.75rem 1.5rem 2.25rem; }
  .hero-sub { margin-bottom: 1.5rem; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
}

/* ── BUTTONS ──────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center;
  padding: 0.75rem 1.375rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  transition: all var(--ease); cursor: pointer; border: none; line-height: 1;
}
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: #e8e4dc; }
.btn-outline-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: #063660; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: white; }

/* ── SECTIONS ─────────────────────────────────── */

.section { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2.5rem); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-navy  { background: var(--navy); }
.section-white { background: white; }

/* ── TYPOGRAPHY ───────────────────────────────── */

.eyebrow {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 0.75rem;
}
.section-navy .eyebrow { color: rgba(255,255,255,.45); }

h2.serif {
  font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 1rem;
}
h3.serif {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700; line-height: 1.25; color: var(--text);
}
.section-navy h2.serif,
.section-navy h3.serif { color: white; }

.lead {
  font-size: clamp(1rem, 2vw, 1.1rem); color: var(--muted);
  line-height: 1.7; max-width: 580px;
}
.section-navy .lead { color: rgba(255,255,255,.65); }

p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.section-navy p { color: rgba(255,255,255,.65); }

/* ── PAGE HEADER ──────────────────────────────── */

.page-header {
  background: var(--navy);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}
.page-header-inner { max-width: var(--max); margin: 0 auto; }
.page-header .eyebrow { color: rgba(255,255,255,.45); }
.page-header h1 {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.25rem);
  color: white; font-weight: 700; line-height: 1.15; margin-bottom: 0.75rem;
}
.page-header p { color: rgba(255,255,255,.65); max-width: 520px; margin-bottom: 0; }

/* ── STATS BAR ────────────────────────────────── */

.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 2.25rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--navy); display: block; line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.375rem; display: block; }

/* ── VALUES ───────────────────────────────────── */

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem; margin-top: 3rem;
}
.value-item .rule { width: 28px; height: 2px; background: var(--navy); margin-bottom: 1rem; }
.value-item h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; }

/* ── TEAM CARDS ───────────────────────────────── */

.teams-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 2.5rem;
}
.team-card { background: var(--canvas); padding: 2rem 1.75rem; transition: background var(--ease); }
.team-card:hover { background: white; }
.team-card .squad-age {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem;
}
.team-card h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--text); margin-bottom: 0.25rem; }
.team-card .player-count { font-size: 0.875rem; color: var(--muted); }

/* ── HONOURS BOARD ────────────────────────────── */

.honours-list { margin-top: 2.5rem; border-top: 1px solid var(--border); }
.honour-entry {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 1.375rem 0; border-bottom: 1px solid var(--border); gap: 1.5rem;
}
.honour-title { font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text); }
.honour-detail { font-size: 0.8rem; color: var(--muted); text-align: right; flex-shrink: 0; }

/* ── PHOTO STRIP ──────────────────────────────── */
/* Photos are landscape — frame them landscape. The old 3/4 portrait crop
   was cutting players off at the legs. 4/3 lets the squad breathe. */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 35%;
}
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── SLIDESHOW (homepage hero ambience) ───────── */
/* Fade-only. No controls. No dots. No arrows.
   Two stacked images, cross-fade via opacity. Container never
   changes height → zero layout shift. */

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy); /* fallback while first image loads */
}

@media (max-width: 700px) {
  .slideshow { aspect-ratio: 4/3; }
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
  will-change: opacity;
}

.slideshow-slide.is-active { opacity: 1; }

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow-slide { transition: none; }
}

/* ── SPLIT LAYOUT ─────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; }
  .split-text  { order: 1; }
  .split-image { order: 0; }
}
.split-image { aspect-ratio: 1; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-text {
  background: var(--navy); color: white;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.split-text .lead { color: rgba(255,255,255,.65); max-width: 100%; }

/* ── ABOUT GRID (was inline + dead media query) ─ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ── JOIN STEPS ───────────────────────────────── */

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem; margin-top: 2.5rem; counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step);
  font-family: var(--serif); font-size: 1.75rem;
  color: var(--navy); opacity: .3; display: block;
  margin-bottom: 0.75rem; font-weight: 700;
}
.step h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

/* ── CONTACT GRID ─────────────────────────────── */

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem; margin-top: 2.5rem;
}
.contact-block h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin-bottom: 0.5rem; }
.contact-block p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.contact-block a { color: var(--navy); font-weight: 500; }

/* ── M-PESA BOX (was inline) ──────────────────── */

.mpesa-box {
  margin: 1.25rem 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.mpesa-box-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .35rem;
}
.mpesa-box-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: .05em;
}
.mpesa-box-recipient {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: .25rem;
}
.mpesa-receipt-note {
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ── FORM (class-based, was inline-heavy) ─────── */

.reg-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}
.reg-form legend {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding: 0;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid-2 + .form-grid-2 { margin-top: 1rem; }
.form-field-block { margin-top: 1rem; }

.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: .625rem .875rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(4,44,83,.1);
}

.form-field textarea { resize: vertical; min-height: 80px; }

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.25rem;
}

.form-hint {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .3rem;
  display: block;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.checkbox-label:last-child { margin-bottom: 0; }
.checkbox-label input[type="checkbox"] {
  margin-top: .2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--navy);
}
.checkbox-label span {
  font-size: .9rem;
  line-height: 1.5;
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: .875rem 1rem;
  border-radius: 6px;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.form-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: .875rem 1.5rem;
}
.form-submit:hover { background: #063660; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-submit-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .75rem;
  text-align: center;
}

.reg-success {
  text-align: center;
  padding: 3rem 1rem;
}
.reg-success-check {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.reg-success h3 {
  color: var(--navy);
  margin-bottom: .75rem;
}
.reg-success p {
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 540px) {
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 1rem; }

  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ── NEXT STEPS (post-form section) ───────────── */

.next-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.next-step-item .rule {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.next-step-item h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
}
.next-step-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
}

/* ── TROPHIES PHOTO BAND ──────────────────────── */

.trophy-photo-band {
  aspect-ratio: 16/6;
  overflow: hidden;
}
.trophy-photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ── RESULTS (live data) ──────────────────────── */

.results-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.results-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

/* ── FOOTER ───────────────────────────────────── */

.site-footer {
  background: var(--navy);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-logo img {
  height: 72px;
  margin-bottom: 0.75rem;
  /* Clean logo, no filter — it competes with the crest's own colours */
}
.footer-logo p { font-size: 0.8rem; color: rgba(255,255,255,.4); max-width: 220px; margin: 0; }

.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-nav-col h5 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem;
}
.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-col a { font-size: 0.875rem; color: rgba(255,255,255,.6); transition: color var(--ease); }
.footer-nav-col a:hover { color: white; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-top: 2rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,.3); margin: 0; }

/* UmojaServ credit — sits quietly alongside the copyright */
.footer-credit {
  font-size: 0.72rem;
  color: rgba(255,255,255,.3);
  letter-spacing: 0.04em;
  margin: 0;
}
.footer-credit a {
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}
.footer-credit a:hover,
.footer-credit a:focus { color: white; border-bottom-color: rgba(255,255,255,.6); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: rgba(255,255,255,.4); transition: color var(--ease); display: flex; }
.footer-social a:hover { color: white; }