/* Variables - Racquet Theme */
:root {
    --lime: #ccff00;
    /* Vibrant Tennis Ball */
    --burgundy: #800020;
    /* Deep Red/Burgundy */
    --black: #111111;
    /* Deep Black */
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --gray-text: #666666;

    --font-display: 'Montserrat', sans-serif;
    /* Headlines */
    --font-body: 'Open Sans', sans-serif;

    --spacing-section: 8rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
}

.display-1 {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    margin-bottom: 2rem;
}

.display-2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--burgundy);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--white);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--lime);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn-primary:hover {
    color: var(--black);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.95);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -2px;
}

.logo span {
    color: var(--lime);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--lime);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--black);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(100%) contrast(1.2);
    /* Fallback generic high contract image */
    background: url('https://images.unsplash.com/photo-1622279457486-62dcc4a431d6?q=80&w=2670&auto=format&fit=crop') center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
}

.hero-sub {
    color: var(--lime);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

/* Overlapping Intro Section */
.intro {
    padding: var(--spacing-section) 0;
    background-color: var(--white);
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image-wrapper {
    position: relative;
}

/* Premium Tennis Ball Photo */
.premium-ball-img {
    width: 380px;
    height: auto;
    max-width: 100%;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) contrast(1.1) brightness(1.1);
    animation: floatPremium 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes floatPremium {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

/* Base intro-graphic needs to ensure no clipping */
.intro-graphic {
    min-height: 400px;
    perspective: 1000px;
}

.intro-card {
    position: absolute;
    bottom: -30px;
    right: 0;
    background-color: var(--black);
    color: var(--white);
    padding: 2.5rem;
    width: 60%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 5;
    border-bottom: 4px solid var(--lime);
}

.intro-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.intro-text p {
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background-color: var(--gray-light);
    display: flex;
    justify-content: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: #e0e0e0;
    /* Subtle but visible */
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--lime);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
    font-size: 1rem;
}

/* Programs - Dark Section */
.programs {
    background-color: var(--black);
    color: var(--white);
    padding: var(--spacing-section) 0;
}

.programs-header {
    margin-bottom: 4rem;
    text-align: center;
}

.programs-header h2 {
    color: var(--white);
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2px;
    /* Tight grid */
    background-color: #222;
    /* Gap color */
    border: 1px solid #222;
}

.program-item {
    background-color: var(--black);
    padding: 3rem;
    transition: background 0.3s ease;
    border: 1px solid #222;
}

.program-item:hover {
    background-color: #1a1a1a;
}

.program-item h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.program-item h3 span {
    color: var(--lime);
}

.program-item p {
    color: #888;
    margin-bottom: 2rem;
}

.program-link {
    color: var(--lime);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact Section */
.contact {
    padding: var(--spacing-section) 0;
    background-color: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-details h2 {
    margin-bottom: 2rem;
    font-size: 3rem;
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h5 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-block p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
}

.map-wrapper {
    height: 100%;
    min-height: 500px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-top: 5px solid var(--lime);
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Utilities */
.text-lime {
    color: var(--lime);
}

.text-burgundy {
    color: var(--burgundy);
}

/* Mobile */
@media (max-width: 768px) {

    /* Mobile Adjustments */
    .intro-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .intro-card {
        width: 100%;
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: -2rem;
    }

    .display-1 {
        font-size: 3rem;
    }

    .display-2 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: none;
        /* Add toggle logic if needed or full screen menu */
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 4rem;
        /* Ensure contrast on light background */
        color: #ddd;
    }

    .stat-item:hover .stat-number {
        color: var(--lime);
    }
}

/* End Mobile Media Query */

/* Social Feed Section */
.social-feed {
    padding: var(--spacing-section) 0;
    background-color: var(--gray-light);
    text-align: center;
}

.fb-feed-container {
    display: flex;
    justify-content: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 532px;
    /* 500px for FB + 32px padding */
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Aggressive overrides for FB SDK injected elements */
.fb-page,
.fb-page span,
.fb-page iframe {
    width: 100% !important;
    max-width: 500px !important;
}

.fb-page iframe {
    min-width: 500px !important;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Add toggle logic if needed or full screen menu */
    }

    .display-1 {
        font-size: 3rem;
    }

    .display-2 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 4rem;
        /* Ensure contrast on light background */
        color: #ddd;
    }

    .stat-item:hover .stat-number {
        color: var(--lime);
    }
}