:root {
    --bg-dark: #07231a;
    --bg-dark-2: #0b3d2e;
    --accent: #39ff8a;
    --accent-2: #2ecc71;
    --ink: #111417;
    --paper: #f6f8f6;
    --muted: #8fa79b;
    --shadow: 0 10px 30px rgba(0,0,0,0.25);
    --radius: 14px;
    --header-h: 68px;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
    padding-top: var(--header-h);
}

a { text-decoration: none; color: inherit; }

/* Header / nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 35, 26, 0.9);
    backdrop-filter: blur(6px);
    transition: box-shadow 0.3s ease;
}

section[id] { scroll-margin-top: var(--header-h); }

.site-header.scrolled { box-shadow: var(--shadow); }

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 24px;
}

.nav-left { justify-self: start; display: flex; align-items: center; gap: 10px; }
.nav-team-badge { font-size: 0.65rem; padding: 3px 12px; }
.nav-center { justify-self: center; }
.nav-right { justify-self: end; }

.nav-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.nav-logo:hover { transform: scale(1.06); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #dfe9e4;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-wrap .logo-mark {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: #dfe9e4;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: color 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--accent); }

.live-pill {
    background: #e63946;
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse 1.6s infinite;
}

.live-pill.hidden { display: none; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* Full-page fixed photo backdrop (behind everything, including all sections) */
.page-backdrop-wrap {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    transform: scale(1.35);
}

.page-backdrop-wrap.zoom-enter {
    animation: heroZoomEnter 0.9s ease forwards;
}

@keyframes heroZoomEnter {
    from { transform: scale(1.35); }
    to { transform: scale(1); }
}

.page-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-flash {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: #07231a;
    opacity: 1;
}

.page-flash.fade-out {
    animation: heroFlashFadeOut 0.6s ease forwards;
}

@keyframes heroFlashFadeOut {
    to { opacity: 0; }
}

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7,35,26,0.5), rgba(7,35,26,0.85));
}

/* Minimal logo + team name intro (replaces the old big hero) */
.logo-intro {
    text-align: center;
    padding: 90px 20px 50px;
}

.logo-intro .intro-logo {
    width: 156px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
    animation: floatIn 0.8s ease both;
}

.logo-intro .team-badge {
    display: block;
    margin: 20px auto 0;
    width: fit-content;
    animation: floatIn 0.8s ease 0.15s both;
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section headings need to read on the dark photo backdrop everywhere now */
main section h2 { color: #ffffff; }

.choice-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-card {
    position: relative;
    width: 280px;
    height: 170px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, #123d2d, #0a241a);
    border: 1px solid rgba(57,255,138,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, border-color 0.35s ease;
    animation: floatIn 0.8s ease 0.3s both;
}

.choice-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
}

.choice-card .label {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

.choice-card .sub {
    position: absolute;
    bottom: 14px;
    color: #a9c4b8;
    font-size: 0.75rem;
    z-index: 2;
}

.choice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(57,255,138,0.15), transparent 60%);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Section basics */
section { padding: 64px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.eyebrow {
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #b7cbc0;
    text-align: center;
    padding: 28px 20px;
}

footer .watermark { font-size: 0.75rem; opacity: 0.6; margin-top: 8px; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dfe9e4;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* ===== Responsive breakpoints ===== */

/* Tablets and below: switch to hamburger nav */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(7, 35, 26, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 24px;
    }

    .nav-links.open {
        max-height: 500px;
        padding: 14px 24px 20px;
    }

    .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { font-size: 0.9rem; }
    .live-pill { display: inline-flex; }

    .choice-card { width: 100%; max-width: 340px; }
    .roster-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Small tablets / large phones */
@media (max-width: 700px) {
    :root { --header-h: 62px; }
    .nav-left .logo-mark { font-size: 0.85rem; }
    .nav-logo { height: 36px; }
    .nav-team-badge { font-size: 0.6rem; padding: 2px 9px; }

    .choice-grid { flex-direction: column; align-items: center; }
    .matches-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    section { padding: 48px 18px; }
    .logo-intro { padding: 70px 16px 40px; }
    .intro-logo { width: 130px; }
}

/* Phones */
@media (max-width: 480px) {
    :root { --header-h: 54px; }
    .nav-wrap { padding: 8px 14px; }
    .nav-left .logo-mark { font-size: 0.7rem; }
    .nav-logo { height: 30px; }
    .nav-team-badge { display: none; }

    .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-tabs { justify-content: center; }

    .choice-card { height: 130px; }
    .hero-content p { font-size: 0.9rem; }

    .lightbox { padding: 14px; }
    .article-box { padding: 22px; max-height: 88vh; }
    .article-image { margin: -22px -22px 16px; }
    .article-box h3 { font-size: 1.1rem; }
    .lightbox-close { top: 10px; right: 16px; font-size: 1.6rem; }
}

/* Large / ultra-wide screens: cap content width, avoid over-stretched layouts */
@media (min-width: 1600px) {
    .section-inner, .nav-wrap { max-width: 1360px; }
    .hero-content { max-width: 820px; }
}

/* Team page nav */
.nav-links.team-nav a.active { color: var(--accent); }
.nav-links.team-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.switch-team {
    font-size: 0.75rem;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: #dfe9e4 !important;
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.switch-team:hover { border-color: var(--accent); color: var(--accent) !important; }

.breadcrumb {
    font-size: 0.75rem;
    color: #7fa896;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.breadcrumb a { color: #a9c4b8; }
.breadcrumb a:hover { color: var(--accent); }

/* Team badge shown under the logo */
.team-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(57,255,138,0.12);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Matches / calendar - redesigned as spotlight + history */
.matches-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 28px;
}

.match-spotlight {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    color: white;
}

.spotlight-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.spotlight-opponent {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.spotlight-meta {
    font-size: 0.85rem;
    color: #cfe3da;
    margin-bottom: 24px;
}

.countdown-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 76px;
}

.countdown-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a9c4b8;
    margin-top: 6px;
}

.match-history {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.match-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border-top: 4px solid #ccc;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0,0,0,0.25);
}

.match-card.result-win { border-top-color: #2ecc71; }
.match-card.result-draw { border-top-color: #f0a500; }
.match-card.result-loss { border-top-color: #e63946; }

.match-status-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 10px;
}

.match-opponent {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.match-score {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 10px 0;
}

.match-card.result-win .match-score { color: #1c9d54; }
.match-card.result-draw .match-score { color: #c98600; }
.match-card.result-loss .match-score { color: #c92f3d; }

.match-date { font-size: 0.8rem; color: var(--muted); }

/* Team logos flanking the score */
.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.match-team-logo {
    width: var(--match-logo-size, 46px);
    height: var(--match-logo-size, 46px);
    border-radius: 8px;
    object-fit: contain;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 5px;
    flex-shrink: 0;
}

.match-team-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4f1;
    color: var(--bg-dark-2);
    font-weight: 800;
    font-size: 0.7rem;
}

.match-score-block { text-align: center; flex: 1; min-width: 0; }

/* Goal scorers, split left (us) / right (opponent) to mirror the logo sides */
.match-scorers-split {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.scorers-col { flex: 1; min-width: 0; }
.scorers-col.scorers-us { text-align: left; }
.scorers-col.scorers-opp { text-align: right; }

.scorer-row {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: break-word;
}

.scorer-row.scorer-us { color: var(--accent-2); font-weight: 600; }
.scorer-row.scorer-opp { color: var(--muted); }

/* Spotlight (upcoming match) teams row */
.spotlight-teams { justify-content: center; gap: 22px; margin-bottom: 16px; }
.spotlight-teams .match-team-logo,
.spotlight-teams .match-team-logo-fallback { width: calc(var(--match-logo-size, 46px) + 12px); height: calc(var(--match-logo-size, 46px) + 12px); }
.spotlight-vs {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .match-team-logo, .match-team-logo-fallback {
        width: min(var(--match-logo-size, 46px), 38px);
        height: min(var(--match-logo-size, 46px), 38px);
        font-size: 0.6rem;
    }
    .spotlight-teams .match-team-logo,
    .spotlight-teams .match-team-logo-fallback { width: min(calc(var(--match-logo-size, 46px) + 12px), 46px); height: min(calc(var(--match-logo-size, 46px) + 12px), 46px); }
    .match-teams-row { gap: 6px; }
    .match-scorers-split { gap: 8px; }
    .scorer-row { font-size: 0.7rem; }
}

@media (max-width: 800px) {
    .match-history { grid-template-columns: 1fr; }
    .countdown-box { min-width: 64px; padding: 10px 12px; }
    .countdown-value { font-size: 1.5rem; }
}

/* Roster */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.player-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.15);
}

.player-avatar {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 10px;
    margin: 0 0 14px;
    overflow: hidden;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-number {
    position: relative;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(46,204,113,0.12);
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 8px;
}

.player-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.player-position {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Gallery */
.gallery-tabs {
    display: flex;
    gap: 10px;
    margin: 26px 0 22px;
}

.gallery-tab {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    background: white;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-tab.active {
    background: var(--bg-dark-2);
    border-color: var(--bg-dark-2);
    color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7,35,26,0.35);
    font-size: 2.2rem;
    color: white;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--bg-dark-2), #0a1a14);
}

.gallery-item .caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 10px;
    font-size: 0.75rem;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.gallery-hidden { display: none !important; }

/* Lightbox modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7,10,9,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox.open { display: flex; }

.lightbox-content {
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
}

.lightbox-content img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 10px;
}

.video-fallback-link {
    text-align: center;
    margin-top: 10px;
}

.video-fallback-link a {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.news-card-body { padding: 20px 24px 24px; }

.news-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.15);
}

.news-date {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.35;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-readmore {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-2);
}

/* Article modal (reuses .lightbox overlay) */
.article-box {
    background: white;
    border-radius: 14px;
    padding: 36px;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    color: var(--ink);
}

.article-image {
    margin: -36px -36px 20px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-box .news-date { margin-bottom: 14px; }
.article-box h3 { margin: 0 0 18px; font-size: 1.3rem; line-height: 1.35; }
.article-box p { line-height: 1.7; font-size: 0.95rem; margin-bottom: 16px; }
.article-box .article-source {
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 6px;
}

/* About page */
.about-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.about-section .section-inner {
    max-width: 760px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: var(--shadow);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    margin-top: 18px;
}

.about-section h2 { color: var(--ink); }
