/* ============================================
   Cheddington FC — Styles
   ============================================ */

:root {
    --green-dark: #1B5E20;
    --green-mid: #2E7D32;
    --green: #4CAF50;
    --green-light: #81C784;
    --green-pale: #E8F5E9;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --grey-light: #F0F0F0;
    --grey: #888888;
    --text: #1A1A1A;
    --text-muted: #555555;
    --shadow: 0 2px 12px rgba(27, 94, 32, 0.08);
    --shadow-hover: 0 4px 20px rgba(27, 94, 32, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    transition: background var(--transition);
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--green-dark);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--green-dark) 0%, #145218 50%, #0D3B12 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(76, 175, 80, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, rgba(129, 199, 132, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 20px 60px;
}

.hero-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 28px;
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.15);
    background: white url('logo-cropped.jpg') no-repeat center center;
    background-size: cover;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--green-light);
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    font-weight: 400;
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--grey-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.section-title-light {
    color: var(--white);
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

.about-text strong {
    color: var(--green-dark);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.detail-card:hover {
    box-shadow: var(--shadow-hover);
}

.detail-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.detail-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.detail-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Fixtures ---- */
.fixture-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tab {
    padding: 10px 28px;
    border: 2px solid var(--green);
    background: transparent;
    color: var(--green-dark);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
}

.tab:hover {
    background: var(--green-pale);
}

.tab.active {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

.fixture-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixture-loading {
    text-align: center;
    color: var(--grey);
    font-style: italic;
    padding: 40px 0;
}

.fixture-empty {
    text-align: center;
    color: var(--grey);
    padding: 40px 0;
    font-size: 1rem;
}

/* Fixture Card */
.fixture-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.fixture-card:hover {
    box-shadow: var(--shadow-hover);
}

.fixture-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.fixture-competition {
    display: inline-block;
    padding: 3px 12px;
    background: var(--green-pale);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fixture-date {
    font-size: 0.85rem;
    color: var(--grey);
    font-weight: 500;
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 12px;
}

.fixture-team {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.fixture-team.is-ched {
    color: var(--green-dark);
}

.fixture-score {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green-dark);
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.05em;
}

.fixture-score.tbc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
}

.fixture-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--grey);
    flex-wrap: wrap;
}

.fixture-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Team Photo ---- */
.team-photo-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.team-photo {
    width: 100%;
    display: block;
}

/* ---- CTA / Join ---- */
.section-cta {
    background: linear-gradient(135deg, var(--green-dark) 0%, #145218 100%);
    text-align: center;
    padding: 80px 0;
}

.cta-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-light {
    background: var(--white);
    color: var(--green-dark);
}

.btn-light:hover {
    background: var(--green-pale);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ---- Footer ---- */
.footer {
    background: #0D2E10;
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open {
        max-height: 240px;
        padding: 12px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: 1.05rem;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 28px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fixture-teams {
        gap: 10px;
    }

    .fixture-team {
        font-size: 0.95rem;
    }

    .fixture-score {
        font-size: 1.2rem;
        min-width: 48px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .fixture-card {
        padding: 16px;
    }

    .tab {
        padding: 8px 20px;
        font-size: 0.88rem;
    }
}

