/* --- Global Styles & Variables --- */
:root {
    --primary-green: #0f5132; /* Deeper, richer green */
    --secondary-green: #198754; /* Lighter green for accents */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-text: #212529;
    --light-text: #ffffff;
    --accent-gold: #ffc107;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15, 81, 50, 0.8) 0%, rgba(25, 135, 84, 0.8) 100%);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-section {
    padding: 3.5rem 0;
}

.alt-bg {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

/* --- Header & Navigation --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    height: 70px;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    display: none;
}

.logo:hover {
    color: var(--secondary-green);
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    transition: var(--transition);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    position: absolute;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger-inner { 
    top: 50%; 
    transform: translateY(-50%); 
}

.hamburger-inner::before, .hamburger-inner::after { 
    content: ''; 
}

.hamburger-inner::before { 
    top: -10px; 
}

.hamburger-inner::after { 
    bottom: -10px; 
}

/* Mobile Nav */
.main-nav.is-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-medium);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav.is-active .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.main-nav.is-active .nav-links li {
    text-align: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.main-nav.is-active .nav-links li:hover {
    background: var(--light-bg);
}

.main-nav.is-active .nav-links li:last-child {
    border-bottom: none;
}

/* Hamburger animation */
.is-active .hamburger-inner { 
    transform: rotate(45deg); 
}

.is-active .hamburger-inner::before { 
    top: 0; 
    transform: rotate(-90deg); 
}

.is-active .hamburger-inner::after { 
    bottom: 0; 
    opacity: 0; 
}

/* --- Hero Section --- */
.hero-section {
    height: 90vh;
    min-height: 550px;
    background: url('../banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Add a subtle animated background pattern */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--white);
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-text .subtitle {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-family: var(--font-body);
    font-weight: 300;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Info Banner --- */
.info-banner {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-light);
}

.info-banner a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.info-banner a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.feature-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 2rem 1.75rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    color: var(--dark-text);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.feature-box p {
    color: #6c757d;
    margin-bottom: 0;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.info-box {
    background: var(--white);
    border-left: 5px solid var(--secondary-green);
    padding: 1.75rem;
    margin-top: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

/* --- Pricing Section --- */
.pricing-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.pricing-table {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.pricing-table:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.pricing-table h3 {
    text-align: center;
    border-bottom: 3px solid var(--secondary-green);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.pricing-table ul {
    list-style: none;
    margin-top: 1.25rem;
}

.pricing-table li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.pricing-table li:hover {
    background: var(--light-bg);
    padding-left: 0.75rem;
    border-radius: var(--border-radius);
}

.pricing-table li:last-child { 
    border-bottom: none; 
}

.pricing-table li span:last-child { 
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.pricing-table .pass-note { 
    font-style: italic; 
    text-align: center; 
    margin: 1.25rem 0;
    color: #6c757d;
}

.pricing-table small { 
    display: block; 
    text-align: center; 
    margin-top: 1.25rem; 
    font-style: italic;
    color: #6c757d;
}

.family-pass { 
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    margin: 0 -0.75rem;
}

/* --- Leagues & Outings --- */
.leagues-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.league-info, .outings-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.league-info:hover, .outings-info:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.league-info ul {
    list-style: none;
    margin-top: 1.25rem;
}

.league-info li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.75rem;
}

.league-info li::before {
    content: '🏌️';
    position: absolute;
    left: 0;
    top: 0.625rem;
}

.league-info li:last-child {
    border-bottom: none;
}

.cta-box {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2.5rem;
    box-shadow: var(--shadow-medium);
}

.cta-box a {
    color: var(--accent-gold);
    font-weight: 700;
    text-decoration: none;
}

.cta-box a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* --- Driving Range --- */
.range-pricing {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    flex-wrap: wrap;
}

.range-price-item {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.range-price-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.range-price-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.range-price-item:hover::before {
    opacity: 0.05;
}

.range-price-item h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 0.75rem;
}

.range-price-item .price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.contact-info p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--primary-green);
    font-weight: 700;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--primary-green);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    margin-top: 0.75rem;
}

/* --- Footer --- */
.main-footer {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* --- Media Queries for Larger Screens --- */
@media (min-width: 768px) {
    .hamburger { 
        display: none; 
    }
    
    .nav-links { 
        display: flex; 
    }

    .logo-text {
        display: block;
    }

    .hero-text h1 { 
        font-size: clamp(3rem, 6vw, 5rem); 
    }
    
    .info-banner { 
        flex-direction: row; 
        justify-content: center; 
        gap: 2.5rem; 
        padding: 1.5rem;
    }

    .features-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .gallery-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .pricing-container { 
        flex-direction: row; 
        align-items: stretch; 
    }
    
    .pricing-table {
        flex: 1;
    }
    
    .leagues-content { 
        flex-direction: row; 
    }
    
    .league-info, .outings-info { 
        flex: 1; 
    }

    .contact-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .contact-form button { 
        width: auto; 
        min-width: 200px;
    }
    
    .range-pricing {
        flex-wrap: nowrap;
    }
}

@media (min-width: 992px) {
    .features-grid { 
        grid-template-columns: repeat(4, 1fr); 
    }
    
    .hero-section {
        height: 85vh;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .header-content {
        padding: 0 2rem;
    }
}

/* --- Additional Mobile Optimizations --- */
@media (max-width: 767px) {
    .hero-section {
        height: 75vh;
        min-height: 450px;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .pricing-table {
        padding: 1.75rem 1.25rem;
    }
    
    .contact-form {
        padding: 1.75rem 1.25rem;
    }
    
    .range-price-item {
        min-width: 140px;
        padding: 1.75rem 1.25rem;
    }
    
    .range-price-item .price {
        font-size: 2.25rem;
    }
    
    /* Enhanced mobile navigation */
    .main-nav.is-active {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .main-nav.is-active .nav-links li {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.25rem;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved spacing for mobile */
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    /* Better form experience on mobile */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem;
    }
    
    /* Enhanced gallery on mobile */
    .gallery-grid img {
        height: 180px;
    }
    
    /* Better pricing display on mobile */
    .pricing-table li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pricing-table li span:last-child {
        align-self: flex-end;
        font-size: 1.2rem;
    }
    
    /* Improved feature boxes on mobile */
    .feature-box {
        padding: 1.75rem 1.25rem;
    }
    
    /* Better range pricing on mobile */
    .range-pricing {
        flex-direction: column;
        align-items: center;
    }
    
    .range-price-item {
        width: 100%;
        max-width: 220px;
    }
}

/* --- Extra Small Mobile Devices --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .info-banner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .feature-box {
        padding: 1.5rem 1rem;
    }
    
    .pricing-table {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .range-price-item {
        padding: 1.5rem 1rem;
    }
    
    .league-info,
    .outings-info {
        padding: 1.5rem 1rem;
    }
    
    .cta-box {
        padding: 2rem 1rem;
    }
}

/* --- Print Styles --- */
@media print {
    .main-header,
    .hamburger,
    .contact-form {
        display: none;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .content-section {
        padding: 1rem 0;
    }
}