/* ============================================================
   Swing Football Academy — Design Tokens
   Palette pulls from the Ghana flag (pitch green, gold, red)
   with a warm cream/ink pairing for legibility.
   ============================================================ */
:root {
    --pitch:        #0E3B2E;
    --pitch-dark:   #0A2A21;
    --pitch-deeper: #071E17;
    --gold:         #F5B942;
    --gold-dark:    #D89A2A;
    --red:          #CE1126;
    --cream:        #F5F0E1;
    --cream-dim:    #E7E0CB;
    --ink:          #14140F;
    --muted:        #6B7A70;
    --muted-light:  #B9C7BC;

    --font-display: 'Anton', Impact, sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'Space Mono', 'Courier New', monospace;

    --radius: 4px;
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.08;
    margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(245, 240, 225, 0.1); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-block { width: 100%; }

.link-arrow, .link-arrow-light {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-block;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}
.link-arrow { color: var(--pitch); }
.link-arrow-light { color: var(--cream); }

.eyebrow {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 10px;
}
.eyebrow-light { color: var(--gold); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }

/* ---------- Topbar ---------- */
.topbar { background: var(--pitch-deeper); color: var(--muted-light); font-size: 0.82rem; }
.topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 6px; padding: 8px 24px;
}
.topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contact a:hover { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--pitch);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 3px solid var(--gold);
}
.site-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-badge {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold); color: var(--ink);
    font-family: var(--font-display); font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); color: var(--cream); font-size: 1.25rem; letter-spacing: 1px; }
.brand-sub { font-family: var(--font-mono); color: var(--muted-light); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
    color: var(--muted-light); font-family: var(--font-mono); font-size: 0.82rem;
    letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700;
    padding: 6px 2px; border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); border-color: var(--gold); }
.nav-cta { flex-shrink: 0; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--cream); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; background: var(--pitch); color: var(--cream);
    overflow: hidden; padding: 90px 0 70px;
}
.hero-stripes {
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        115deg, rgba(245,185,66,0.05) 0 60px, rgba(245,185,66,0) 60px 120px
    );
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero-lede { color: var(--muted-light); font-size: 1.08rem; max-width: 560px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--cream); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-clock {
    position: relative; display: flex; border-top: 1px solid rgba(245,240,225,0.15);
    margin-top: 60px;
}
.hero-clock span {
    flex: 1; text-align: center; padding: 16px 8px;
    font-family: var(--font-mono); font-weight: 700; letter-spacing: 2px;
    color: var(--muted-light); border-right: 1px solid rgba(245,240,225,0.15);
    font-size: 0.85rem;
}
.hero-clock span:last-child { border-right: none; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--cream-dim); }
.section-dark { background: var(--pitch-dark); color: var(--cream); }
.section-dark p { color: var(--muted-light); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.contact-grid { align-items: start; }

.img-block { width: 100%; aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: var(--radius); }

/* ---------- Stat board ---------- */
.stat-board { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--pitch); color: var(--cream); padding: 32px 20px; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Team cards ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.team-grid-page { margin-top: 40px; }
.team-card {
    position: relative; display: block; padding: 28px 22px 24px;
    background: var(--pitch); border: 1px solid rgba(245,185,66,0.25);
    border-radius: var(--radius); transition: transform 0.18s ease, border-color 0.18s ease;
}
.team-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.team-card h3 { color: var(--cream); font-size: 1.35rem; margin-bottom: 4px; }
.team-card p { color: var(--muted-light); font-size: 0.9rem; margin-bottom: 14px; }
.team-card-clock {
    display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 2px;
    color: var(--gold); margin-bottom: 10px;
}
.team-card-code {
    display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem;
    color: var(--gold); border: 2px solid var(--gold); border-radius: 50%;
    width: 54px; height: 54px; line-height: 50px; text-align: center; margin-bottom: 14px;
}
.team-card-light { background: #fff; border: 1px solid #e2ddca; }
.team-card-light h3 { color: var(--pitch); }
.team-card-light p { color: var(--muted); }
.team-card-light .team-card-clock { color: var(--red); }
.team-card-summary { font-size: 0.85rem; }

/* ---------- Join strip ---------- */
.join-strip { background: var(--gold); }
.join-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.join-strip h2 { color: var(--ink); font-size: 1.7rem; max-width: 560px; margin-bottom: 8px; }
.join-strip p { color: #5a4a1f; margin: 0; max-width: 480px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid #e2ddca; border-radius: var(--radius); overflow: hidden; display: block; }
.news-card-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.news-card-body { padding: 20px; }
.news-card h3 { font-size: 1.1rem; margin: 6px 0 8px; color: var(--pitch); }
.news-card p { font-size: 0.9rem; }
.news-date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1px; color: var(--red); text-transform: uppercase; }

.article { max-width: 760px; }
.article-img { aspect-ratio: 16/9; background-size: cover; background-position: center; border-radius: var(--radius); margin: 16px 0 24px; }
.article-body { font-size: 1.05rem; color: var(--ink); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--pitch); padding: 70px 0 50px; border-bottom: 3px solid var(--gold); }
.page-hero-lede { color: var(--muted-light); max-width: 620px; font-size: 1.05rem; margin: 0; }

/* ---------- Values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.value-card { background: #fff; border: 1px solid #e2ddca; border-radius: var(--radius); padding: 26px 22px; }
.value-num { font-family: var(--font-mono); color: var(--red); font-weight: 700; }
.value-card h3 { font-size: 1.1rem; color: var(--pitch); margin: 10px 0 8px; }
.value-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Staff ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
.staff-photo { aspect-ratio: 3/4; background-size: cover; background-position: center; border-radius: var(--radius); margin-bottom: 14px; }
.staff-card h3 { font-size: 1rem; color: var(--cream); margin-bottom: 4px; }
.staff-card span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-light); }

/* ---------- Team tabs / detail ---------- */
.team-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.team-tab {
    display: flex; align-items: center; gap: 10px; padding: 10px 18px;
    border: 2px solid var(--pitch); border-radius: 30px; font-family: var(--font-mono);
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; color: var(--pitch);
    text-transform: uppercase; transition: background 0.15s ease, color 0.15s ease;
}
.team-tab-code { background: var(--pitch); color: var(--gold); border-radius: 50%; width: 26px; height: 26px; line-height: 26px; text-align: center; font-size: 0.68rem; }
.team-tab:hover, .team-tab.active { background: var(--pitch); color: var(--cream); }
.team-tab.active .team-tab-code, .team-tab:hover .team-tab-code { background: var(--gold); color: var(--ink); }

.team-detail { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 50px; }
.team-philosophy { font-family: var(--font-display); font-size: 1.4rem; text-transform: none; letter-spacing: 0; color: var(--pitch); line-height: 1.35; margin-bottom: 30px; }
.focus-list li {
    padding: 12px 0 12px 30px; border-bottom: 1px solid #e2ddca; position: relative; color: var(--ink);
}
.focus-list li::before {
    content: '›'; position: absolute; left: 0; color: var(--red); font-weight: 700; font-size: 1.3rem; line-height: 1;
}

.info-card { background: var(--pitch); color: var(--cream); border-radius: var(--radius); padding: 28px; }
.info-row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(245,240,225,0.15); }
.info-row span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.info-row strong { font-weight: 600; }
.info-card .btn { margin-top: 22px; }
.info-card h3 { color: var(--gold); font-size: 1rem; margin-top: 22px; }
.info-card h3:first-child { margin-top: 0; }
.info-card p { color: var(--muted-light); font-size: 0.92rem; }
.info-card a:hover { color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn {
    background: none; border: 2px solid var(--pitch); color: var(--pitch);
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 8px 16px; border-radius: 30px; cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.filter-btn:hover, .filter-btn.active { background: var(--pitch); color: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
    aspect-ratio: 1/1; background-size: cover; background-position: center; border-radius: var(--radius);
    position: relative; display: flex; align-items: flex-end; overflow: hidden;
}
.gallery-item figcaption {
    width: 100%; padding: 10px 12px; font-size: 0.78rem; color: var(--cream);
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

/* ---------- Contact form ---------- */
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--pitch); }
.form-row input, .form-row select, .form-row textarea {
    padding: 12px 14px; border: 2px solid #d8d2b8; border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.95rem; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--pitch); outline: none; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e2f0e6; border: 1px solid var(--pitch); color: var(--pitch); }
.alert-error { background: #fbe4e4; border: 1px solid var(--red); color: #7a0f1b; }
.alert-error ul { padding-left: 18px; list-style: disc; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--cream); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-brand p { max-width: 260px; margin-top: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(245,240,225,0.3);
    display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.85rem;
}
.social-row a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(245,240,225,0.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
    .two-col, .team-detail { grid-template-columns: 1fr; }
    .team-grid, .value-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid, .news-grid-page { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--pitch);
        border-bottom: 3px solid var(--gold); max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
    }
    .main-nav.open { max-height: 420px; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
    .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(245,240,225,0.08); }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .site-header-inner { position: relative; }

    .stat-board, .team-grid, .value-grid, .staff-grid, .news-grid, .news-grid-page { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .join-strip-inner { flex-direction: column; align-items: flex-start; }
    .hero-clock { flex-wrap: wrap; }
    .hero-clock span { flex: 1 1 50%; }
}
