/* --- Basic Setup & Variables --- */
:root {
    --primary-color: #1a2a45; /* Deep Navy Blue */
    --secondary-color: #d4af37; /* Gold Accent */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white-color: #ffffff;
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
}

/* Prevent main content scroll when a page-view is open */
body.page-view-is-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--primary-color);
}

h1 { font-size: 4rem; line-height: 1.1; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Style for headers on sub-pages (always scrolled) or when the main header is scrolled */
.main-header.is-scrolled,
.main-header.header-scrolled {
    background-color: var(--primary-color);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
    text-decoration: none;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: var(--white-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.cta-button {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.cta-button:hover,
.cta-button-large:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Mobile Nav Toggle Button --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    position: relative;
    width: 50px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle .hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 2px;
    background-color: var(--white-color);
    transition: transform 0.3s ease;
}

.mobile-nav-toggle .hamburger::before,
.mobile-nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white-color);
    transition: transform 0.3s ease, top 0.3s ease;
}

.mobile-nav-toggle .hamburger::before { top: -8px; }
.mobile-nav-toggle .hamburger::after { top: 8px; }

/* Animate hamburger to 'X' */
body.nav-open .mobile-nav-toggle .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
body.nav-open .mobile-nav-toggle .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
body.nav-open .mobile-nav-toggle .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#bgvideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after { /* Video overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 42, 69, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button-large {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #777;
}

/* --- Destination Grid --- */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: var(--white-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.destination-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.destination-card .card-content {
    padding: 1.5rem;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* --- About & Contact Page Specifics --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 60px; /* Adjust based on header height */
}

.page-header h1 {
    color: var(--white-color);
    font-size: 3rem;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.text-container {
    max-width: 800px;
    margin: 0 auto;
}

.text-container ul {
    list-style-position: inside;
    margin: 1.5rem 0;
}

.image-showcase {
    margin: 3rem 0;
}

.image-showcase img {
    width: 100%;
    border-radius: 5px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.contact-details h3 {
    margin-bottom: 1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-details a:hover {
    border-color: var(--primary-color);
}

/* --- Single Page App "Page View" Styles --- */
.page-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.page-view.is-visible {
    transform: translateY(0);
}

.page-view-content {
    flex-grow: 1;
    overflow-y: auto;
}

.page-view-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 210;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.page-view-close:hover { opacity: 1; }

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--white-color);
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
}

.footer-links {
    list-style: none;
    display: flex;
}

.footer-links a {
    text-decoration: none;
    color: #777;
    margin-left: 1.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .content-section { padding: 4rem 0; }

    /* --- Mobile Navigation --- */
    .main-nav {
        display: none; /* Hide by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    body.nav-open .main-nav {
        display: flex; /* Show when body has class */
    }

    .main-nav .nav-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle {
        display: inline-block;
    }

    .page-view-close {
        color: var(--white-color);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
