/* --- Variables & Reset --- */

:root {
    --bg-green: #0a2e1b;
    --accent: #f37b2d;
    --text-dark: #2d2d2d;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #fafafa;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}


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


body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.force-white { filter: brightness(0) invert(1); }
.text-accent { color: var(--accent); }


/* --- Hero & Pattern Overlay --- */
.hero-wrapper {
    background-color: var(--bg-green);
    color: var(--white);
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    min-height: 850px;
    z-index: 1;
}

/* Mobile menu hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-green);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}


.global-pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/images/hero-pattern-overlay.svg');
    background-size: 400px;
    opacity: 0.12;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
}


.brand-logo { height: 40px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.login-link { color: var(--white) !important; text-decoration: none; font-weight: 700; font-size: 0.9rem; }


.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}


.hero-text h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; margin-bottom: 20px; text-transform: uppercase; font-family: var(--font-heading); font-weight: 900; }
.hero-text p { font-size: 1rem; color: #cccccc; max-width: 450px; margin-bottom: 40px; }
.hero-label { color: var(--accent); font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }


/* Parallax Slider */
.hero-visual { position: relative; height: 500px; width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.hero-scene { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out; }
.hero-scene.active { opacity: 1; visibility: visible; }


.scene-full-bg { position: absolute; top: -100px; left: -10%; width: 120%; height: 140%; background-size: cover; background-position: center; filter: brightness(0.3) blur(8px); z-index: 1; transform: scale(1.1); transition: transform 8s ease-out; }
.hero-scene.active .scene-full-bg { transform: scale(1); }


.scene-masked-bg { position: absolute; width: 380px; height: 380px; bottom: 30px; z-index: 5; -webkit-mask-image: url('assets/images/Motif_logo.svg'); mask-image: url('assets/images/Motif_logo.svg'); mask-size: contain; mask-repeat: no-repeat; mask-position: center bottom; background-size: cover; background-position: center; opacity: 0; transform: scale(0.9); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.hero-scene.active .scene-masked-bg { opacity: 1; transform: scale(1); }


.scene-fg { position: relative; width: 420px; height: auto; z-index: 10; opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s; }
.hero-scene.active .scene-fg { opacity: 1; transform: translateY(0); }


/* Search Box */
.search-box { display: flex; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 15px 25px; border-radius: 15px; gap: 20px; width: fit-content; border: 1px solid rgba(255,255,255,0.1); }
.search-field label { display: block; font-size: 0.65rem; font-weight: 800; color: #aaa; text-transform: uppercase; margin-bottom: 5px; }
.search-field select { background: transparent; border: none; color: white; font-weight: 700; outline: none; cursor: pointer; }
.btn-search { background: var(--accent); border: none; color: white; padding: 0 30px; border-radius: 10px; font-weight: 800; cursor: pointer; }


/* --- Curation & Filters --- */
.destinations { padding: 100px 20px; background: var(--white); position: relative; }
.filter-header { display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { font-size: 3rem; font-family: var(--font-heading); font-weight: 900; line-height: 1.1; }


.category-pills { display: flex; gap: 12px; margin-top: 30px; list-style: none; flex-wrap: wrap; }
.pill-btn { background: var(--white); border: 2px solid var(--bg-green); padding: 10px 24px; border-radius: 30px; font-weight: 700; color: var(--bg-green); cursor: pointer; transition: 0.3s; }
.pill-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }


/* Region Selector Dropdown */
.region-selector { position: relative; }
.region-btn { display: flex; align-items: center; gap: 12px; background: var(--bg-green); border: none; padding: 12px 24px; border-radius: 30px; font-weight: 700; color: var(--white); cursor: pointer; }


.region-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    width: 250px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    z-index: 100;
    border: 1px solid #eee;
}


.region-selector.open .region-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.region-group ul { list-style: none; padding: 10px 0; margin: 0; }
.region-group li { padding: 12px 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); transition: 0.2s; }
.region-group li:hover { background: rgba(243, 123, 45, 0.05); color: var(--accent); }


/* --- Curation Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #f0f0f0; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-img { width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; }
.rating { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); color: white; padding: 5px 12px; border-radius: 10px; font-weight: 700; font-size: 0.8rem; backdrop-filter: blur(5px); }
.card-content { padding: 25px; }
.meta-tag { font-size: 0.75rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; margin-bottom: 8px; }
.card-content h3 { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; margin-bottom: 5px; text-transform: uppercase; }
.location { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }


/* FIX: Card Footer layout so long text doesn't squish the button */
.card-footer { display: flex; justify-content: space-between; align-items: flex-start; border-top: 1px solid #eee; padding-top: 20px; gap: 15px; }
.price { font-size: 1rem; line-height: 1.3; }
.btn-outline { flex-shrink: 0; color: var(--bg-green); font-weight: 700; text-decoration: none; border: 1.5px solid var(--bg-green); padding: 8px 16px; border-radius: 10px; transition: 0.2s; white-space: nowrap; }
.btn-outline:hover { background: var(--bg-green); color: white; }


/* --- Inside Scoop --- */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 100px 20px; background: var(--white); }
.stories-img { width: 100%; max-width: 450px; border-radius: 50%; border: 15px solid white; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; gap: 20px; border-top: 1px solid #eee; padding-top: 30px; }
.stat h3 { color: var(--accent); font-size: 2.5rem; font-family: var(--font-heading); font-weight: 900; line-height: 1; margin-bottom: 5px; }
.stat p { font-size: 0.85rem; font-weight: 700; color: var(--text-light); }


/* --- Footer --- */
.footer { text-align: center; padding: 100px 20px; background: var(--bg-green); color: var(--white); }
.cta-subtext { max-width: 600px; margin: 20px auto 40px; color: #ccc; font-size: 1.1rem; line-height: 1.6; }
.btn-primary { background: var(--accent); color: white; padding: 14px 35px; border-radius: 40px; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; }
.copyright { margin-top: 60px; font-size: 0.8rem; color: #666; }


/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and smaller (max-width: 768px) */
@media (max-width: 768px) {
    
    /* --- Navbar Mobile --- */
    .navbar {
        flex-wrap: nowrap;
        padding: 20px 15px;
        gap: 10px;
    }
    
    .nav-links {
        display: none; /* Hide nav links on mobile */
    }
    
    .nav-actions {
        display: none; /* Hide desktop nav actions */
    }
    
    .mobile-menu-toggle {
        display: block; /* Show hamburger */
    }
    
    /* --- Hero Mobile --- */
    .hero-wrapper {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "text"
            "visual";
        gap: 40px;
        margin-top: 20px;
        text-align: center;
    }
    
    .hero-text {
        grid-area: text;
        position: relative;
        z-index: 10;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-text p {
        max-width: 100%;
        padding: 0 10px;
        font-size: 0.95rem;
    }
    
    /* --- Search Box Mobile --- */
    .search-box {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
        gap: 15px;
    }
    
    .search-field {
        width: 100%;
    }
    
    .search-field select {
        width: 100%;
        padding: 8px 0;
    }
    
    .btn-search {
        width: 100%;
        padding: 15px;
    }
    
    /* --- Hero Visual Mobile --- */
    .hero-visual {
        grid-area: visual;
        position: relative;
        height: 350px;
        width: 100%;
        margin-top: 20px;
    }
    
    .scene-masked-bg {
        width: 250px;
        height: 250px;
        bottom: 20px;
    }
    
    .scene-fg {
        width: 280px;
    }
    
    /* --- Destinations Section Mobile --- */
    .destinations {
        padding: 60px 15px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .region-selector {
        width: 100%;
    }
    
    .region-btn {
        width: 100%;
        justify-content: center;
    }
    
    .region-dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
    }
    
    /* --- Category Pills Mobile --- */
    .category-pills {
        gap: 8px;
        margin-top: 20px;
    }
    
    .pill-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* --- Card Grid Mobile --- */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .card {
        border-radius: 16px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    /* --- Stories Section Mobile --- */
    .stories {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 15px;
        text-align: center;
    }
    
    .stories-visual {
        order: 2;
        display: flex;
        justify-content: center;
    }
    
    .stories-img {
        max-width: 280px;
    }
    
    .stories-text {
        order: 1;
    }
    
    .stories-text h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 30px;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .stat p {
        font-size: 0.75rem;
    }
    
    /* --- Footer Mobile --- */
    .footer {
        padding: 60px 15px;
    }
    
    .footer h2 {
        font-size: 1.8rem;
    }
    
    .cta-subtext {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .copyright {
        margin-top: 40px;
        font-size: 0.75rem;
    }
}

/* Small mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    
    .container {
        padding: 0 15px;
    }
    
    .brand-logo {
        height: 32px;
    }
    
    /* --- Hero Small Mobile --- */
    .hero {
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .hero-visual {
        height: 280px;
        margin-top: 10px;
    }
    
    .scene-masked-bg {
        width: 180px;
        height: 180px;
        bottom: 15px;
    }
    
    .scene-fg {
        width: 200px;
    }
    
    .scene-full-bg {
        top: -50px;
    }
    
    /* --- Search Box Small Mobile --- */
    .search-box {
        padding: 15px;
        gap: 12px;
    }
    
    .search-field label {
        font-size: 0.6rem;
    }
    
    .search-field select {
        font-size: 0.9rem;
    }
    
    /* --- Cards Small Mobile --- */
    .card-img {
        aspect-ratio: 16/9;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn-outline {
        text-align: center;
        white-space: normal;
    }
    
    /* --- Stats Small Mobile --- */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .stat p br {
        display: none;
    }
}

/* Large tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    
    .hero {
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .scene-masked-bg {
        width: 300px;
        height: 300px;
    }
    
    .scene-fg {
        width: 340px;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Fix for very small devices */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .hero-visual {
        height: 240px;
    }
    
    .scene-masked-bg {
        width: 150px;
        height: 150px;
    }
    
    .scene-fg {
        width: 170px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .pill-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
