/* --- CSS Custom Variables (Bound to Brand Palette) --- */
:root {
    --brand-primary: #76bc21;
    /* Turf green accent */
    --brand-secondary: #0d233a;
    /* Dark Navy Stadium Background */
    --text-light: #ffffff;
    --text-muted: #b3c0ce;
    --bg-dark-translucent: rgba(13, 27, 42, 0.75);
    --bg-widget: rgba(25, 42, 61, 0.65);
    --input-bg: #f8fafc;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-secondary);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- Header Styling --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
    padding: 20px 0;
}

.main-header.scrolled {
    background: rgba(10, 22, 37, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-light);
    outline: none;
    font-size: 14px;
    width: 140px;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.contact-btn {
    background: #ffffff;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.phone-icon-wrapper {
    background: var(--brand-primary);
    color: var(--brand-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section Styling --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* Replicating stadium background layout */
    background: radial-gradient(circle at top, rgba(20, 50, 40, 0.4) 0%, rgba(13, 35, 58, 1) 80%),
        url('../images/banner-bg.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px 40px;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(13, 35, 58, 1), transparent);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Hero Typography */
.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Membership Social Proof Badge */
.membership-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--brand-secondary);
    margin-left: -12px;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.membership-count {
    font-weight: 700;
    font-size: 16px;
    display: block;
}

.membership-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Right Booking Card Component */
.booking-widget {
    background: var(--bg-widget);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.widget-lead {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 24px;
}

.brand-text {
    color: var(--brand-primary);
    font-weight: 600;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: capitalize;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #8898aa;
    font-size: 14px;
    pointer-events: none;
}

.textarea-icon {
    top: 15px;
}

.booking-form select,
.booking-form input,
.booking-form textarea {
    width: 100%;
    padding: 12px 14px 12px 42px;
    background: var(--input-bg);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #333333;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.booking-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    background-size: 20px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.half-width {
    width: 50%;
}

.booking-form input[type="date"],
.booking-form input[type="time"] {
    padding-left: 38px;
}

.submit-booking-btn {
    background: #ffffff;
    color: #0e2238;
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.submit-booking-btn:hover {
    background: #f1f5f9;
}

.btn-get-started {
    background: var(--brand-primary);
    color: var(--brand-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 6px 6px 24px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(118, 188, 33, 0.3);
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-get-started:hover {
    background: #ffffff;
    color: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-arrow-wrapper {
    background: var(--brand-secondary);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-get-started:hover .btn-arrow-wrapper {
    transform: rotate(-45deg);
    background: var(--brand-primary);
    color: var(--brand-secondary);
}

/* --- Footer Section Styling --- */
.main-footer {
    background: #091929;
    padding: 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.designer-link {
    color: var(--brand-primary);
    text-decoration: none;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--brand-primary);
}


/* --- Common Section Styles --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
    margin-bottom: 50px;
}

/* --- About Section --- */
.about-section {
    background: var(--brand-secondary);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    list-style: none;
}

.about-features li {
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-features i {
    color: var(--brand-primary);
    font-size: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

/* --- Programs Section --- */
.programs-section {
    background: #091929;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--brand-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.program-icon {
    font-size: 48px;
    color: var(--brand-primary);
    margin-bottom: 24px;
}

.program-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.program-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* --- Schedule Section --- */
.schedule-section {
    background: var(--brand-secondary);
}

.schedule-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    padding: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table th,
.schedule-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-table th {
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.schedule-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* --- Events Section --- */
.events-section {
    background: #091929;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--brand-primary);
}

.event-date {
    background: rgba(118, 188, 33, 0.1);
    color: var(--brand-primary);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    min-width: 90px;
    margin-right: 30px;
}

.event-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 14px;
    font-weight: 600;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.event-details p {
    color: var(--text-muted);
    font-size: 14px;
}

.event-details i {
    margin-right: 6px;
    color: var(--brand-primary);
}

.event-btn {
    background: var(--brand-primary);
    color: #0e2238;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.event-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--brand-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info .info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.info-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(118, 188, 33, 0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-light);
}

.info-text p,
.info-text a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.info-text a:hover {
    color: var(--brand-primary);
}

/* --- Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 25, 41, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show-modal {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-widget);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show-modal .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal .section-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.modal .widget-lead {
    margin-bottom: 25px;
}

/* --- Responsive Breakpoints --- */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-section {
        padding-top: 14px;
    }

    .header-container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        /* Controlled via JavaScript class toggle */
        position: absolute;
        top: 80px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: rgba(13, 35, 58, 0.98);
        border-radius: 12px;
        padding: 15px;
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .search-bar {
        display: none;
        /* Hide non-critical component on small layouts */
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 20px 40px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .half-width {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .about-section .container {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .event-date {
        margin-right: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .event-date .day {
        font-size: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}