/* ==========================================================================
   JK FOOTBALL ACADEMY — LANDING PAGE
   Palette: Navy #001335 + Gold #FFD700 (corporate colours).
   Layout: photo-led hero, light content sections, navy accents.
   ========================================================================== */

:root {
  --navy-950: #000a1f;
  --navy-900: #001335;
  --navy-800: #0a2150;
  --navy-50: #eef2f9;
  --gold-300: #ffe066;
  --gold-400: #ffd700;
  --gold-500: #d4af37;
  --gold-600: #b8860b;
  --surface: #f4f6fa;
  --line: #e3e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --danger: #dc2626;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;

  /* kept for translated strings that still reference old variable names */
  --gold-bright: var(--gold-400);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--gold-400); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy-900); }
.hero-title, .squad-name, .stat strong, .brand-name, .footer-brand strong { font-family: var(--font-display); letter-spacing: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 14px;
}
.eyebrow.dark { color: var(--gold-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px; border-radius: 8px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn i, .btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-400); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-300); }
.btn-gold:disabled { opacity: .6; cursor: not-allowed; }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-text-mobile { display: none; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--navy-900); border-bottom: 2px solid var(--gold-400); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-tag { font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); margin-top: 5px; font-weight: 600; }

.topnav { display: flex; gap: 6px; justify-content: center; flex: 1; }
.topnav a { white-space: nowrap; color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 6px; transition: color .15s; }
.topnav a:hover { color: #fff; }

.topbar-actions { display: flex; align-items: stretch; gap: 12px; margin-left: auto; }
.lang { display: inline-flex; align-items: stretch; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 3px; }
.lang-btn { background: transparent; border: 0; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 6px; transition: all .15s; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--gold-400); color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,19,53,.94) 0%, rgba(0,19,53,.82) 38%, rgba(0,19,53,.35) 70%, rgba(0,19,53,.2) 100%),
    linear-gradient(0deg, rgba(0,19,53,.95) 0%, rgba(0,19,53,0) 38%);
}
.hero-content { position: relative; padding-top: 80px; padding-bottom: 150px; max-width: 1200px; }
.hero-title { font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1; font-weight: 600; color: #fff; max-width: 14ch; }
.gold-gradient-text { color: var(--gold-400); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 46ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255,255,255,.18); background: rgba(0,10,31,.55); backdrop-filter: blur(6px); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 20px 8px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(255,255,255,.14); padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold-400); font-weight: 700; }
.stat span { font-size: .8rem; color: rgba(255,255,255,.75); font-weight: 500; }

/* ---------- Partners ---------- */
.partners { background: #fff; border-bottom: 1px solid var(--line); }
.partners-inner { display: flex; align-items: center; gap: 40px; padding-top: 22px; padding-bottom: 22px; }
.partners-title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: 22ch; flex-shrink: 0; }
.partners-logos { display: flex; align-items: center; gap: 24px; flex: 1; flex-wrap: wrap; justify-content: space-around; }
.partners-logos img { height: 56px; width: auto; object-fit: contain; }
.partners-logos .logo-fifa { filter: brightness(0) opacity(.8); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2, .register-copy h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Squads */
.squad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
@media (min-width: 1000px) { .squad-grid { grid-template-columns: repeat(7, 1fr); } }
.squad-card {
  position: relative; background: var(--navy-900); color: #fff; border-radius: 10px;
  padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.squad-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-400); }
.squad-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(0,19,53,.45); }
.squad-tag { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); }
.squad-name { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 700; }
.squad-age { font-size: .85rem; color: rgba(255,255,255,.7); }
.squad-card.girls { background: var(--navy-800); }
.schedule-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.schedule-note i, .schedule-note svg { width: 20px; height: 20px; color: var(--gold-600); flex-shrink: 0; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px 28px; transition: box-shadow .2s, transform .2s; }
.why-card:hover { box-shadow: 0 16px 32px -16px rgba(0,19,53,.25); transform: translateY(-3px); }
.why-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-900); color: var(--gold-400); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon i, .why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: .98rem; }

/* Portal */
.section.dark { background: var(--navy-900); color: #fff; }
.section.dark h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
.portal-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.portal-intro { color: rgba(255,255,255,.8); margin: 20px 0 30px; max-width: 50ch; }
.portal-intro a { color: var(--gold-400); font-weight: 600; }
.portal-intro strong { color: #fff; }
.portal-list { display: flex; flex-direction: column; gap: 14px; }
.portal-list li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 18px 20px; color: rgba(255,255,255,.85); font-size: .95rem; }
.portal-list strong { color: #fff; }
.portal-list .tick { color: var(--gold-400); font-weight: 700; flex-shrink: 0; }

/* Register */
.register { background: var(--surface); }
.register-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.register-copy { position: sticky; top: 100px; }
.steps { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > span { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .95rem; }
.steps strong { display: block; color: var(--navy-900); }
.steps p { color: var(--muted); font-size: .92rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: 0 24px 48px -24px rgba(0,19,53,.25); border-top: 4px solid var(--gold-400); }
.registration-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-label { font-size: .82rem; font-weight: 600; color: var(--navy-900); }
.form-label .req { color: var(--danger); }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i, .input-wrapper svg { position: absolute; left: 13px; width: 17px; height: 17px; color: #94a3b8; pointer-events: none; }
.input-wrapper:focus-within i, .input-wrapper:focus-within svg { color: var(--navy-900); }
.form-input, .form-select {
  width: 100%; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px;
  padding: 11px 14px 11px 40px; font-size: .95rem; font-family: inherit; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus, .form-select:focus { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(255,215,0,.35); }
.uppercase-input { text-transform: uppercase; }
.uppercase-input::placeholder { text-transform: none; }
.child-details-divider { border-top: 1px dashed var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.child-details-header { font-size: 1rem; color: var(--navy-900); display: flex; align-items: center; gap: 8px; }
.child-details-header i, .child-details-header svg { width: 18px; height: 18px; color: var(--gold-600); }
.checkbox-group { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-group input { width: 18px; height: 18px; accent-color: var(--navy-900); margin-top: 3px; }
.checkbox-label { font-size: .85rem; color: var(--muted); }
.checkbox-label a { color: var(--navy-900); font-weight: 600; }
.form-footer-note { text-align: center; font-size: .9rem; color: var(--muted); }
.form-footer-note a { color: var(--navy-900); font-weight: 700; }

.form-alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; }
.form-alert i, .form-alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); border-top: 3px solid var(--gold-400); padding: 48px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-brand span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-copy a:hover { color: var(--gold-400); }
.footer-copy { width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-copy a { color: var(--gold-400); text-decoration: none; font-weight: 600; }

/* ---------- Terms modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,10,31,.7); backdrop-filter: blur(4px); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-content { background: #fff; border-radius: 14px; max-width: 600px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 32px 64px -16px rgba(0,19,53,.5); transform: translateY(12px); transition: transform .25s; }
.modal-backdrop.open .modal-content { transform: none; }
.modal-header { padding: 18px 24px; background: var(--navy-900); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-header h3 { color: #fff; font-size: 1.1rem; }
.modal-close { background: transparent; border: 0; color: rgba(255,255,255,.7); font-size: 1.8rem; line-height: 1; padding: 0 6px; border-radius: 6px; }
.modal-close:hover { color: #fff; }
.modal-body { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.terms-section h4 { font-size: 1rem; margin-bottom: 4px; }
.terms-section p { color: var(--muted); font-size: .92rem; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .topnav { display: none; }
  .portal-grid, .register-grid { grid-template-columns: 1fr; gap: 40px; }
  .register-copy { position: static; }
  .why-grid { grid-template-columns: 1fr; }
  .partners-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .partners-logos { margin-left: 0; justify-content: flex-start; gap: 36px; }
}

@media (max-width: 700px) {
  .container { padding: 0 18px; }
  .topbar-inner { padding: 0 16px; height: 64px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.3rem; }
  .brand-tag { display: none; }
  .btn-text-desktop { display: none; }
  .btn-text-mobile { display: inline; }

  .hero-content { padding-top: 64px; padding-bottom: 210px; }
  .hero-media img { object-position: 45% 70%; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,19,53,.97) 0%, rgba(0,19,53,.8) 55%, rgba(0,19,53,.55) 100%); }
  .hero-lead { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 12px 8px 12px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .stat strong { font-size: 1.6rem; }

  .section { padding: 48px 0; }
  .squad-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .form-input, .form-select { font-size: 16px; } /* stops iOS zoom-on-focus */
}

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