/* --- Basic Setup & Variables --- */
:root {
    --primary-color: #3a5a40; /* Muted Green */
    --secondary-color: #e9ecef; /* Light Gray */
    --accent-color: #c2a370; /* Soft Gold/Wood */
    --text-color-dark: #343a40; /* Dark Gray */
    --text-color-light: #f8f9fa; /* White */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: #ffffff;
    color: var(--text-color-dark);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
}

.nav-logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Hide logo initially to avoid overlap on video start */
.hidden-on-load {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hidden-on-load.visible {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color-dark);
    transition: all 0.3s ease-in-out;
}


/* --- Buttons --- */
.cta-button, .cta-button-light {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
}
.cta-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}
.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #2e4a37;
    text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* --- General Section Styling --- */
.content-section, .content-section-dark {
    padding: 80px 0;
}
.content-section-dark {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.content-section h2, .content-section-dark h2 {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #6c757d;
}
.content-section-dark .subtitle {
    color: var(--secondary-color);
}

/* --- Feature Grid (About Section) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.feature-item h3 {
    font-family: var(--font-secondary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* --- Parallax Section --- */
.parallax-section {
    position: relative;
    padding: 150px 0;
    background-image: url('assets/pool.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}
.parallax-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.parallax-content h2 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.parallax-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.cta-button-light {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}
.cta-button-light:hover {
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
}

/* --- Photo Gallery --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Video Gallery --- */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.video-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.video-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.gallery-video {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* YouTube iframe specific styling */
.gallery-video[src*="youtube.com"] {
    object-fit: cover;
    border: none;
    outline: none;
}

/* Hide YouTube branding and make it look more seamless */
.gallery-video[src*="youtube.com"] {
    filter: contrast(1.1) brightness(1.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-video[src*="youtube.com"]:hover {
    filter: contrast(1.15) brightness(1.1);
    transform: scale(1.02);
}

/* Try to hide YouTube branding elements with CSS */
.gallery-video[src*="youtube.com"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Additional YouTube iframe styling to minimize branding */
.gallery-video[src*="youtube.com"] {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.video-item h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color-light);
}
.video-item p {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* --- Location Section --- */
.location-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.location-details, .map-embed {
    flex: 1 1 400px;
}
.location-details h2 { text-align: left; }
.address-info { margin-top: 30px; }
.address-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.address-info i {
    color: var(--accent-color);
    width: 20px;
}
.map-embed iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: none;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.1);
}
.contact-form textarea {
    height: 150px;
    resize: vertical;
    margin-bottom: 20px;
}
.g-recaptcha {
    display: block;
    margin: 8px 0 16px 0; /* add space before the button */
}
.contact-form button {
    width: 100%;
    padding: 18px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Messages */
.form-messages {
    margin-bottom: 30px;
    text-align: center;
}
.success-message, .error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.success-message i, .error-message i {
    font-size: 1.2rem;
}

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Footer --- */
.footer {
    background-color: #f1f1f1;
    padding: 30px 0;
    text-align: center;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.social-links a {
    color: var(--text-color-dark);
    text-decoration: none;
    font-size: 1.4rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
}


/* --- Animations --- */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content p { animation-delay: 0.4s; }
.hero-content a { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */

/* Large Laptops and Desktops (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    .hero-content h1 { font-size: 4.5rem; }
    .content-section h2, .content-section-dark h2 { font-size: 3.2rem; }
}

/* Laptops and Small Desktops (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.3rem; }
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    .video-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .nav-menu {
        gap: 1.2rem;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; }
    .content-section h2, .content-section-dark h2 { font-size: 2.5rem; }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-video {
        height: 200px;
    }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-container {
        flex-direction: column;
        text-align: center;
    }
    .location-details h2 { text-align: center; }
}

/* Mobile Landscape and Small Tablets (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .container {
        padding: 0 1.5rem;
    }
    .navbar {
        padding: 0 1.5rem;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--secondary-color);
    }
    .nav-link {
        display: block;
        padding: 1.5rem 0;
        font-size: 1.1rem;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .content-section h2, .content-section-dark h2 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .feature-item {
        padding: 20px;
    }
    .feature-item i {
        font-size: 2rem;
    }
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .gallery-video {
        height: 220px;
    }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .location-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .location-details h2 { text-align: center; }
    .map-embed iframe {
        height: 300px;
    }
    
    .form-group { 
        flex-direction: column; 
        gap: 0; 
        margin-bottom: 0; 
    }
    .form-group input { 
        margin-bottom: 20px; 
    }
    .footer-container { 
        justify-content: center; 
        flex-direction: column;
        gap: 15px;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .navbar {
        padding: 0 1rem;
        height: 70px;
    }
    .nav-logo {
        font-size: 1.5rem;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--secondary-color);
    }
    .nav-link {
        display: block;
        padding: 1.2rem 0;
        font-size: 1rem;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-section {
        height: 100vh;
    }
    .hero-content h1 { 
        font-size: 2rem; 
        line-height: 1.2;
    }
    .hero-content p { 
        font-size: 1rem; 
        margin-bottom: 1.5rem;
    }
    .cta-button, .cta-button-light {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .content-section, .content-section-dark {
        padding: 60px 0;
    }
    .content-section h2, .content-section-dark h2 { 
        font-size: 1.8rem; 
        margin-bottom: 0.8rem;
    }
    .subtitle { 
        font-size: 0.95rem; 
        margin-bottom: 30px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .feature-item {
        padding: 20px 15px;
    }
    .feature-item i {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .feature-item h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .parallax-section {
        padding: 100px 0;
    }
    .parallax-content h2 {
        font-size: 2rem;
    }
    .parallax-content p {
        font-size: 1rem;
    }
    
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .video-item {
        padding: 15px;
    }
    .gallery-video {
        height: 180px;
        margin-bottom: 15px;
    }
    .video-item h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    .video-item p {
        font-size: 0.9rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .location-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .location-details h2 { 
        text-align: center; 
        font-size: 1.8rem;
    }
    .address-info { 
        margin-top: 20px; 
    }
    .address-info p {
        margin-bottom: 12px;
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .map-embed iframe {
        height: 250px;
    }
    
    .contact-form {
        margin: 0;
    }
    .form-group { 
        flex-direction: column; 
        gap: 0; 
        margin-bottom: 0; 
    }
    .form-group input { 
        margin-bottom: 15px; 
        padding: 12px;
        font-size: 0.9rem;
    }
    .contact-form textarea {
        height: 120px;
        margin-bottom: 15px;
        padding: 12px;
        font-size: 0.9rem;
    }
    .contact-form button {
        padding: 15px;
        font-size: 0.9rem;
    }
    .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
        margin: 6px 0 14px 0;
    }
    
    .footer {
        padding: 25px 0;
    }
    .footer-container { 
        justify-content: center; 
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .social-links a {
        font-size: 1.2rem;
        margin: 0 8px;
    }
}