/* Langkawi Retreat Program 2026 
    Theme: Tropical Zen (Teals, Sands, and Deep Greens)
*/


/* --- 1. Variables & Reset --- */
:root {
    --primary-teal: #2d6a4f;    /* Jungle Green */
    --accent-gold: #d4a373;     /* Beach Sand */
    --deep-blue: #1b4332;       /* Deep Forest */
    --soft-white: #fdfdfd;      /* Clouds/Shells */
    --text-gray: #4a4a4a;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--soft-white);
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
}

/* --- 2. Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-teal);
    letter-spacing: 1px;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--deep-blue);
    font-weight: 500;
    transition: var(--transition);
}

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

#book-btn {
    background-color: var(--primary-teal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#book-btn:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* --- 3. Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-teal);
    margin: 4px 0;
    transition: var(--transition);
}

/* --- 4. Hero Section --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1544947950-fa07a98d237f?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    background: var(--accent-gold);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
}

.cta:hover {
    background: var(--primary-teal);
}

/* --- 5. Content Sections --- */
section {
    padding: 80px 10%;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--deep-blue);
}

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

/* Update the Card to handle images properly */
.card {
    background: white;
    padding: 0; /* Remove default padding so image can touch edges if desired */
    border-radius: 15px;
    overflow: hidden; /* Clips the image corners to the card's radius */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

/* Ensure text still has padding since we removed it from .card */
.card h3, .card p {
    padding: 0 30px;
}

.card h3 {
    margin-top: 25px;
}

.card p {
    margin-bottom: 30px;
}

/* Image Container */
.image-box {
    width: 100%;
    height: 220px; /* Fixed height for consistency across all cards */
    overflow: hidden;
}

/* The Photo itself */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY: Fits the photo without stretching */
    object-position: center;
    transition: transform 0.5s ease;
}

/* Zoom effect on hover */
.card:hover .card-img {
    transform: scale(1.1);
}

/* --- 6. Mobile Responsiveness (The Magic) --- */
@media (max-width: 768px) {
    /* Navbar transformation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        height: 100vh;
        width: 100%;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%); /* Hidden off-screen */
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        transform: translateX(0%); /* Slide in */
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Hero adjustments */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Hamburger Animation to 'X' */
    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}
/* Carousel Styles */
.carousel-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

/* Controls */
.prev, .next {
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border: none;
    z-index: 10;
}

.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 0 3px 3px 0; }

/* Photo Gallery Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.photo-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

/* Ensure SVGs look good in cards */
.card svg {
    margin-bottom: 20px;
}
:root {
    --primary: #1b4332;
    --accent: #d4a373;
    --light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--light); color: #333; }

/* Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: #fff; position: fixed; width: 100%; top: 0; z-index: 1000;
}
.logo span { color: var(--accent); font-weight: bold; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }

/* Carousel Hero */
.carousel-container { position: relative; height: 100vh; overflow: hidden; }
.carousel-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; text-align: center; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; }

/* Info Section */
.luxury-info { padding: 60px 10%; background: var(--primary); color: white; text-align: center; }
.info-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.info-item svg { stroke: var(--accent); margin-bottom: 15px; }

/* Grid & Cards */
#packages { padding: 80px 10%; text-align: center; }
.section-subtitle { margin-bottom: 40px; color: #666; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Map */
.map-container { margin-top: 30px; border-radius: 15px; overflow: hidden; }

/* Mobile View */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Add menu toggle logic in JS */
    .hero-text h1 { font-size: 2.2rem; }
}
/* Container for alignment */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout: 2x2 on Desktop, 1x4 on Mobile */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card:has(form) { 
    position: relative;
    z-index: 10; /* Ensures the form card sits above the cards below it */
}

/* If you are using a custom dropdown (like a <ul> or <div>) */
.custom-dropdown-list {
    position: absolute;
    z-index: 9999; /* Higher than everything else in the form */
    top: 100%;
    left: 0;
}
select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    appearance: none; /* Removes default styling for a cleaner look */
    background-color: white;
    cursor: pointer;
}

/* Ensure the form group doesn't clip the dropdown */
.form-group {
    position: relative;
    margin-bottom: 20px;
    overflow: visible; 
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--accent-gold);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: #f1f8f4; /* Very light jungle green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: var(--deep-blue);
    font-size: 1.4rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* Section Subtitle Logic */
.section-subtitle {
    max-width: 700px;
    margin: 0 auto 20px auto;
    color: #555;
    font-size: 1.1rem;
}
/* Styling the specific link to look like a button */
#book-btn-link {
    background-color: var(--primary); /* or your teal color */
    color: white !important; /* Ensure text is white */
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

#book-btn-link:hover {
    background-color: var(--accent); /* or your gold color */
    transform: translateY(-2px);
}

/* Ensure mobile menu doesn't break the button look */
@media (max-width: 768px) {
    #book-btn-link {
        margin-top: 10px;
        width: 80%; /* Make it prominent on mobile */
    }
}
#pricing {
    padding: 100px 5%;
    background-color: #fff;
    text-align: center;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.price-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 50px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: var(--transition);
}

.price-card.featured {
    border: 2px solid var(--primary);
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #888;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.price-card li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.check {
    width: 20px;
    height: 20px;
    stroke: #2d6a4f;
    stroke-width: 3;
    fill: none;
    margin-right: 10px;
}

.x-icon {
    width: 20px;
    height: 20px;
    stroke: #e63946;
    stroke-width: 3;
    fill: none;
    margin-right: 10px;
}

.price-btn {
    display: block;
    padding: 15px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
}

.price-btn.secondary {
    background: #eee;
    color: #333;
}

.price-btn:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .price-card.featured {
        transform: scale(1);
    }
}
/* Pricing Section Adjustments */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-top: 50px;
}

.price-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.package-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    min-height: 40px; /* Keeps cards aligned */
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.price-features li {
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.check { width: 18px; height: 18px; color: var(--primary); margin-right: 10px; flex-shrink: 0; }
.x-icon { width: 18px; height: 18px; color: #e63946; margin-right: 10px; flex-shrink: 0; }

.price-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.15);
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .price-card.featured {
        transform: scale(1);
    }
}
/* FAQ Styling */
#faq {
    padding: 100px 10%;
    background-color: #fcfcfc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.faq-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

/* Subtle accent line for questions */
.faq-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 18px;
    background-color: var(--accent);
    border-radius: 2px;
}

.faq-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Navigation Link Styling */
.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent); /* Your gold/brown accent color */
}

/* Specific styling for the Book Now button in the nav */
.nav-book-btn {
    background-color: var(--primary); /* Your deep green color */
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.3s ease !important;
}

.nav-book-btn:hover {
    background-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        display: none; /* Controlled by JS toggle */
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }
}