/* Universal Styles & Base */
:root {
    --primary-color: #004d40; /* Dark Teal */
    --secondary-color: #b2dfdb; /* Light Teal */
    /* --accent-color: #ffb74d; Orange/Gold Accent */
    --accent-color: #fb7185; /* Red/Pink Accent */
    --text-color: #333;
    --bg-color: #dbeafe;/* #f8f9fa;*/
    --light-bg-color: #eff6ff; /* #e9ecef;*/
    --bg-color-dark: #60a5fa;
    --testimonial-bgcolor: #eff6ff ;
    --testimonial-color: #004d40;
    --footer-color: #a7f3d0;
    --th-color: #93c5fd;
    --th-text: #004d40;
    --font-montserrat: 'Montserrat', sans-serif;
}
/* :root {
    --primary-color: #004d40; / Dark Teal /
    --secondary-color: #b2dfdb; / Light Teal /
    --accent-color: #fb7185; / Red/Pink Accent /
    --text-color: #333;
    --bg-color: #def6f8;
    --package-bg-color: #a7f3d0;
    --light-bg-color: #fef9c3;
    --font-montserrat: 'Montserrat', sans-serif;
} */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-montserrat);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden; /* Prevents horizontal scroll from menu */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    font-family: var(--font-montserrat);
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; }

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.section-padded {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-bg-light {
    background-color: var(--light-bg-color);
}
.section-bg-dark {
    background-color: var(--bg-color-dark);
}
.section-packages {
    background-color: var(--package-bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header & Navigation */
header {
    background: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
}

/* Hamburger menu button - only visible on mobile */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile menu styling */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: auto; /* Corrected: Changed height from 100% to auto */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 999;
    padding-top: 5rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2); /* Corrected: Updated shadow */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.main-nav.is-open {
    transform: translateX(0);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--light-bg-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: white;
    overflow: hidden;
    padding-top: 160px; /* To account for the fixed header */
}

.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color); /* Fallback color */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
}

.hero-video-placeholder .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #ffc977;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-content .text-content p {
    line-height: 1.8;
    font-size: large;
}

.about-content .image-placeholder {
    width: 100%;
    /* Add this line to prevent overflow if content size is inconsistent */
    max-width: 100%; 
    height: 300px;
    background-color: var(--bg-color);
    /*padding-bottom: 25px; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content .image-placeholder img {
    /* Existing responsive styles */
    max-width: 100%; 
    height: auto; 
    display: block; 
    
    /* NEW STYLES FOR ROUNDED CORNERS AND DROP SHADOW */
    
    /* 1. Rounded Corners (Adjust 10px to your preferred size) */
    border-radius: 10px; 

    /* 2. Drop Shadow (Subtle shadow for depth) 
       Syntax: offset-x | offset-y | blur-radius | spread-radius | color 
    */
    box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.2);
}

.image-placeholder .image-description {
    text-align: center;
    font-style: italic;
    color: #6c757d;
    padding: 1rem;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* Card Grid for Who We Serve & Why Choose Us */
.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    margin-bottom: 0.75rem;
}

/* Packages Table */
.packages-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table thead {
    /* Apply border-radius to the thead element */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden; /* This is crucial to clip the child elements and show the rounded corners */
}

/* Apply rounded corners to the first and last table headers */
table thead {
    /* The overflow: hidden property is necessary to clip the child elements */
    overflow: hidden;
    /* This rule also applies the top rounded corners to the thead container */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Apply rounded corners to the first and last table headers */
table th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

table th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    background-color: var(--th-color);
    color: var(--th-text);
    font-weight: 700;
}

/* Make table rows clickable */
table tr:hover {
    cursor: pointer;
    background-color: var(--light-bg-color);
    transition: background-color 0.2s ease-in-out;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* A large enough value to accommodate content */
    padding-bottom: 1rem;
}

/* Testimonials */
.testimonial {
    background-color: var(--testimonial-bgcolor);
    color: var(--testimonial-color);
    padding: 4rem 0;
}
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.testimonial-item {
    min-width: 85%;
    scroll-snap-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.testimonial-item blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 500;
    color: var(--primary-color);
}


/* Footer */
footer {
    background-color: var(--footer-color);
    color: var(--primary-color);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.footer-brand img {
    height: 100px ;
    width: auto;
    margin-bottom: 1rem;
}

.footer-grid h4 {
    margin-bottom: 1rem;
    font-family: var(--font-montserrat);
    font-weight: 500;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid ul li a {
    color: white;
    opacity: 0.8;
}

.footer-grid ul li a:hover {
    opacity: 1;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social ul li a:hover {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Adds a fade-in on scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* New CSS for Mobile Menu Logo */
.mobile-menu-logo {
    /* Removed display:none; rule from here so it shows up on mobile */
    padding: 1.5rem;
    text-align: center;
}

.mobile-menu-logo img {
    height: 80px; /* Adjust size as needed */
    width: auto;
    margin-bottom: 1rem;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.is-visible {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    width: 500px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

.close-button:hover {
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media query for desktop */
@media (min-width: 768px) {
    header {
        padding: 1.5rem 0;
    }

    .logo img {
        height: 120px;
        width: auto;
    }
    .footer-brand img {
        height: 80px;
        width: auto;
    }

    .menu-toggle {
        display: none; /* Hide hamburger menu on desktop */
    }

    .mobile-menu-logo {
        display: none; /* Hides the new logo inside the mobile menu on desktop */
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        transform: translateX(0);
        padding-top: 0;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    .main-nav ul li a {
        padding: 0;
        border: none;
        color: var(--primary-color);
        position: relative;
        transition: color 0.3s ease;
    }

    .main-nav ul li a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background-color: var(--accent-color);
        transition: all 0.3s ease-in-out;
    }

    .main-nav ul li a:hover::after {
        width: 100%;
        left: 0;
    }

}


/* --- ANIMATED MAURITIAN FLAG WAVES (Replacing old wave CSS) --- */

/* Keyframes for the animation */
@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% { 
        transform: translate3d(85px, 0, 0);
    }
}

/* Base styles for the wrapper DIV */
.wave-divider-wrapper {
    position: relative;
    width: 100%;
    height: 130px; /* Default Desktop Height */
    margin-bottom: -7px; /* Fix for safari gap from example */
    overflow: hidden;
    z-index: 5; /* Ensure waves are above sections if needed */
}

/* Styles for the SVG itself */
.waves {
    position: relative;
    width: 100%;
    height: 100%; /* Fill the wrapper height */
    min-height: 100px;
    max-height: 150px;
}

/* Animation setup for the parallax group */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
/* Animation layer adjustments for depth and speed */
.parallax > use:nth-child(1) { /* Red */
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) { /* Blue */
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) { /* Yellow */
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) { /* Green */
    animation-delay: -5s;
    animation-duration: 20s;
}

/* Responsive adjustments for mobile (to fix the previous gap issue) */
@media (max-width: 768px) {
    .wave-divider-wrapper {
        height: 60px; /* Reduced overall height on mobile */
    }
    .waves {
        height: 60px;
        min-height: 40px;
    }
}

/* ADD THIS BLOCK TO YOUR CSS */
@media (max-width: 768px) {
    /* Reintroduce a controlled top padding to the section following the wave. 
       This creates the desired space below the wave and above the next heading. 
       Adjust 1.5rem (approx 24px) to your desired spacing. 
    */
    .section-padded {
        padding-top: 1.5rem; 
    }
}

/* --- CAROUSEL STYLES --- */

/* Reuses the existing .image-placeholder dimensions */
.image-placeholder.carousel-container {
    position: relative;
    overflow: hidden; /* CRUCIAL: Hides slides outside the viewport */
    height: auto;
    min-height: 250px ;
    padding-bottom: 55px; /* Added space for navigation dots */
}

/* Track holding all slides side-by-side */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
    width: 100%;
    height: auto;
}

/* Individual slides */
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Ensure images fill the slide and respect responsive styles */
.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* Retain previous rounded corners and shadow from your existing styles */
}


/* Navigation Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 0;
    border-radius: 50%;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background: var(--accent-color); /* Uses your primary accent color for the active dot */
}

/* Mobile adjustments to make buttons smaller */
@media (max-width: 576px) {
    .carousel-button {
        padding: 5px;
        font-size: 1rem;
    }
}