/* --- GLOBAL STYLES & TYPOGRAPHY --- */
:root {
    --primary-color: #004466; /* Deep Ocean Blue */
    --accent-color: #C89932; /* Soft Gold/Bronze for CTAs */
    --background-color: #F8F8F8; /* Light Off-White */
    --text-color: #333333;
}

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

html {
    scroll-behavior: smooth; /* 🛑 Added for elegant navigation transition */
}

body, html {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif; /* Clean body text */
    color: var(--text-color);
    background-color: white;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif; /* Elegant headings */
    font-weight: 600;
}

/* --- 1. HERO/VIDEO SECTION STYLING --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 3;
    color: white; /* Text over video */
    background: rgba(0, 0, 0, 0.2); /* Subtle dark overlay for readability */
    padding: 30px 60px;
}

.villa-title {
    font-size: 5em;
    letter-spacing: 15px;
    margin-bottom: 5px;
}

.villa-tagline {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 40px;
}

/* --- CTA BUTTON STYLING (High Contrast) --- */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    border: 2px solid var(--accent-color);
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* --- 2. STICKY NAVIGATION STYLING --- */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 50px;
    border-bottom: 1px solid #EEEEEE;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    letter-spacing: 5px;
    font-weight: 600;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0 20px;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* --- 3. MAIN CONTENT STYLING --- */
main {
    padding-top: 50px;
}

.content-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.content-section h3 {
    font-size: 2.2em;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.content-section p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
    text-align: center;
}

.feature-item .icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* --- 4. INQUIRY SECTION STYLING --- */
.inquiry-form input:focus,
.inquiry-form textarea:focus {
    /* 🛑 This removes the default "clunky" browser border */
    outline: none; 
    
    /* This applies your elegant gold branding instead */
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(200, 153, 50, 0.5);
}
.inquiry-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: 100px 0;
}

.inquiry-section h2 {
    font-size: 3em;
    letter-spacing: 8px;
    margin-bottom: 15px;
}

.inquiry-section p {
    font-weight: 300;
    margin-bottom: 40px;
}

/* Specific styling for the CTA within the Inquiry section */
.inquiry-section .primary-cta {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.inquiry-section .primary-cta:hover {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--accent-color);
}

/* --- 5. FOOTER STYLING --- */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #333;
    color: #AAA;
    font-size: 0.9em;
}

footer a {
    color: #AAA;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* --- RATES SECTION STYLING --- */
.rates-section {
    padding: 60px 20px;
    background-color: var(--background-color); /* Light gray background */
}

.rates-section h2 {
    color: var(--primary-color);
    margin-bottom: 50px;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.rate-card {
    background: white;
    padding: 30px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.rate-card h3 {
    font-size: 1.6em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.rate-detail {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.rate-note {
    font-size: 0.9em;
    color: #666;
}

.availability-note {
    font-style: italic;
    color: #999;
}

/* --- FORM STYLING (The core of the conversion) --- */
.inquiry-section {
    /* Keep the existing general inquiry section styling for background/text color */
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.inquiry-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between form fields */
    padding-top: 30px;
}

.form-group {
    flex: 1 1 100%; /* Default to full width */
    margin-bottom: 15px;
}

.form-group.half-width {
    flex: 1 1 calc(50% - 10px); /* Two columns with gap */
}

.inquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="number"],
.inquiry-form input[type="date"],
.inquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(200, 153, 50, 0.5);
}

/* Form Footer and Privacy Checkbox */
.form-footer {
    flex: 1 1 100%;
    margin-top: 20px;
    text-align: center;
}

.form-footer label {
    font-size: 0.9em;
    display: inline;
    text-transform: none;
}

.form-footer a {
    color: var(--accent-color);
}

.form-footer button {
    margin-top: 25px;
    width: 100%;
}
/* --- EXPERIENCE SECTION STYLING --- */
.experience-section {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3em;
    margin-bottom: 60px;
    letter-spacing: 8px;
    color: var(--primary-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    text-align: left;
}

.experience-item {
    padding: 0 20px;
}

.experience-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid #F0F0F0;
}

.experience-item h3 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.experience-item p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

.scroll-link {
    display: inline-block;
    margin-top: 60px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.scroll-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- VILLA SERVICES SECTION STYLING --- */
.services-section {
    background-color: var(--primary-color); /* Dark section for contrast */
    padding: 100px 50px;
    text-align: center;
}

.white-text {
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.service-item {
    background: rgba(255, 255, 255, 0.05); /* Subtle white box for each service */
    padding: 30px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.service-item h4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--accent-color);
}
/* =========================================================
   MEDIA QUERIES: MOBILE AND TABLET RESPONSIVENESS
   ========================================================= */

/* --- TABLET STYLES (Max Width 1024px) --- */
@media (max-width: 1024px) {
    
    /* General Content Area Adjustment */
    .content-section {
        margin: 60px auto;
    }

    /* Navigation Adjustment */
    .sticky-nav {
        padding: 15px 30px;
    }

    /* Header Content Sizing */
    .header-content {
        padding: 20px 40px;
    }

    .villa-title {
        font-size: 3.5em; /* Scale down title */
        letter-spacing: 10px;
    }

    .villa-tagline {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    /* Experience Grid - Stack side-by-side items vertically */
    .experience-grid {
        grid-template-columns: 1fr; /* Two columns become one column */
        gap: 50px;
        text-align: center;
    }

    .experience-item {
        padding: 0;
    }

    .experience-img {
        height: 350px;
    }

    /* Rates Grid - Allow cards to flow into two columns */
    .rates-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
    }
}


/* --- MOBILE STYLES (Max Width 768px) --- */
@media (max-width: 768px) {
    
    /* Header Content Sizing */
    .hero-section {
        height: 80vh; /* Shorter on mobile */
    }

    .villa-title {
        font-size: 2.5em;
        letter-spacing: 5px;
    }

    .villa-tagline {
        font-size: 1em;
        margin-bottom: 25px;
    }

    /* Navigation - Stack vertically and hide extra links to simplify */
    .sticky-nav {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        text-align: center;
    }

    .nav-links {
        padding-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 10px 15px;
    }
    
    .nav-links li a {
        padding: 0 5px;
        font-size: 0.8em;
    }

    /* Feature Grid - Stack all features vertically */
    .feature-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    /* Services Grid - Stack all services vertically */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Inquiry Form - Full width fields */
    .inquiry-form {
        flex-direction: column;
    }

    .form-group.half-width {
        flex: 1 1 100%; /* Ensure all fields take full width */
    }

    .form-footer button {
        letter-spacing: 2px;
        font-size: 0.9em;
    }

    .villa-title {
        /* Ensure the title doesn't break the container on small screens */
        max-width: 100%; 
        /* Use a smaller letter-spacing than the 5px already set in this media query */
        letter-spacing: 3px; 
        /* The font-size here is 2.5em, which is already good */
    }

    /* Target the service section titles as well, which are also very wide */
    .services-section .section-title {
        /* This ensures the 'UNCOMPROMISING VILLA SERVICES' text fits */
        font-size: 2em; /* Reduced from 3em to 2em */
        letter-spacing: 5px; /* Reduced from 8px to 5px */
        /* Forces line breaks */
        word-break: break-word; 
    }
}
