header {
    color: var(--white-text);
    padding: 0; /* Remove padding, handle inside nav and #home */
    text-align: center;
    position: relative; /* Needed for absolute positioning of children */
    overflow: hidden; /* Hide video overflow */
    min-height: 100vh; /* Keep increased height */
    display: flex;
    flex-direction: column; /* Stack nav and content */
    width: 100%;
    max-width: 100%;
}

/* Background Video */
#header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    will-change: transform;
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.4s ease-in-out;
    z-index: -2; /* Behind overlay and content */
    object-fit: cover;
}

/* Overlay */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use a darker shade of the new primary green for overlay */
    background-color: rgba(58, 77, 57, 0.6); /* Darker version of --dark-green-text with opacity */
    z-index: -1; /* Between video and content */
}

/* Navigation */
nav {
    background-color: rgba(0, 0, 0, 0.2); /* Subtle dark background for luxury feel */
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: 0;
    position: fixed; /* Make navbar sticky */
    top: 0; /* Stick to the top */
    z-index: 1000; /* Ensure it stays on top */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Slightly more visible border */
    display: flex;
    justify-content: space-between; /* Default for desktop */
    align-items: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    backdrop-filter: blur(5px); /* Adds a modern blurred effect */
}

.quick-access {
    display: flex; /* Always display quick access buttons */
    align-items: center; /* Align items vertically */
}

.quick-access .cta-button {
    font-size: var(--text-sm);
    padding: var(--space-xs) var(--space-sm);
    margin-left: var(--space-md); /* Add space between buttons */
}

/* Navigation Links */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    display: flex; /* Ensure links are in a row */
    align-items: center; /* Align items vertically */
}

nav ul li {
    display: inline-block;
    margin: 0 var(--space-md);
}

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body); /* Use body font for nav */
    font-weight: 400; /* Regular weight */
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1.2px; /* Increased spacing for luxury feel */
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--space-xs);
    transition: all 0.3s ease;
    position: relative; /* For hover underline effect */
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--white-text);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--white-text);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 70%;
}

/* Header Content Area (#home) */
#home {
    padding: var(--space-xl) var(--space-lg); /* Add horizontal padding */
    position: relative; /* Ensure content is above overlay */
    z-index: 1;
    flex-grow: 1; /* Allow content to take up remaining space */
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header-content {
    /* Wrapper for the text and button */
    max-width: 800px; /* Limit width of text */
    width: 100%; /* Ensure wrapper is responsive */
    padding: 0 var(--space-md); /* Add side padding for small screens */
    box-sizing: border-box;
}

#home h1 {
    font-family: var(--font-heading); /* Use new heading font */
    font-size: var(--text-3xl);
    color: var(--white-text);
    margin-bottom: var(--space-sm);
    font-weight: 700; /* Bolder */
    text-shadow: 0 2px 5px rgba(0,0,0,0.4); /* Slightly stronger shadow */
}

#home p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    font-weight: 300; /* Lighter weight */
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    nav {
        padding: var(--space-xs) var(--space-md); /* Adjust padding for smaller screens */
        justify-content: flex-end; /* Push content (quick-access) to the right */
        /* Removed flex-wrap and justify-content center */
    }

    nav ul.nav-links {
        display: none; /* Hide the main navigation links on mobile */
        /* Removed all other mobile styles for nav-links */
    }

    .quick-access {
        /* Removed width: 100%, justify-content: center, margin-bottom, order */
        /* Buttons will now align to the right due to nav's justify-content: flex-end */
    }

    .quick-access .cta-button {
        font-size: calc(var(--text-sm) * 0.9);
        padding: calc(var(--space-xs) * 0.8) var(--space-sm);
        margin-left: var(--space-sm); /* Keep space between buttons */
        /* Removed margin: 0 var(--space-xs) */
    }

    /* ... existing mobile styles for #home h1, p, swiper ... */
    .swiper-container {
        width: 100% !important;
        overflow: hidden;
    }

    #home h1 {
        font-size: var(--text-2xl); /* Slightly smaller heading on mobile */
    }

    #home p {
        font-size: var(--text-base); /* Slightly smaller paragraph on mobile */
    }
}
