/* ==========================================================================
   ATLAS EXPEDITIONS - LUXURY TRAVEL DEMO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap');

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #E86C45; /* Earthy vibrant terracotta */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1400px;
    --header-height: 100px;
    
    /* Animation */
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASICS
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Lenis handles this */
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Important for horizontal scroll sections */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-slow);
}

img {
    max-width: 100%;
    display: block;
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 150px 0;
    position: relative;
}

/* Masked Text Reveal utility */
.line-mask {
    overflow: hidden;
    display: block;
}

.line-mask span {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    will-change: transform, opacity;
}

/* Image Parallax utility */
.img-wrap {
    overflow: hidden;
    position: relative;
}

.img-wrap img {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    height: 80px;
}

.header-inner {
    width: 92%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-main);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::before {
    transform: translateX(0);
}

.btn-book {
    padding: 12px 28px;
    background: var(--text-main);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-book:hover {
    background: var(--accent);
    color: #fff;
}

@media (max-width: 900px) {
    .nav { display: none; }
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.1); /* Will be parallaxed by GSAP */
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: clamp(2.5rem, 12vw, 9rem);
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-search {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    display: inline-flex;
    gap: 20px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 10px 20px;
    border-right: 1px solid var(--border-color);
}

.search-field:last-child {
    border-right: none;
    padding-right: 10px;
}

.search-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.search-field span {
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-heading);
}

.search-btn {
    padding: 15px 30px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-slow);
}

.search-btn:hover {
    background: #fff;
    color: var(--bg-dark);
}

@media (max-width: 768px) {
    .hero-search {
        flex-direction: column;
        width: 90%;
        gap: 0;
    }
    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        padding: 15px;
    }
    .search-field:last-child {
        border-bottom: none;
        padding-top: 20px;
    }
    .search-btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   HORIZONTAL SCROLL SECTION (DESTINATIONS)
   -------------------------------------------------------------------------- */
.destinations-section {
    /* Height will be set by GSAP Pin based on container width */
    background: var(--bg-dark);
    position: relative;
}

.h-scroll-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    position: relative;
    padding-top: 100px;
}

.h-scroll-track {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 0 5vw;
    width: max-content;
}

.dest-intro {
    width: 400px;
    flex-shrink: 0;
    padding-right: 80px;
}

.dest-intro h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.dest-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dest-card {
    width: 450px;
    height: 600px;
    flex-shrink: 0;
    margin-right: 60px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.dest-img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.dest-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-card:hover .dest-img-wrapper img {
    transform: scale(1.1);
}

.dest-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.dest-region {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.dest-name {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.dest-price {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .dest-card {
        width: 300px;
        height: 450px;
        margin-right: 30px;
    }
    .dest-intro {
        width: 280px;
        padding-right: 30px;
    }
    .dest-intro h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .header {
        height: 70px;
    }
    .header.scrolled {
        height: 60px;
    }
    .header-inner {
        width: 95%;
    }
    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    .btn-book {
        padding: 8px 14px;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    .dest-card {
        width: 260px;
        height: 380px;
        margin-right: 20px;
    }
    .dest-intro {
        width: 220px;
        padding-right: 20px;
    }
    .dest-intro h2 {
        font-size: 2rem;
    }
    .h-scroll-container {
        padding-top: 40px;
    }
    .story-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat h4 {
        font-size: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   STORY / ABOUT SECTION
   -------------------------------------------------------------------------- */
.story-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 30px;
}

.story-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.stat h4 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.story-image {
    width: 100%;
    height: 800px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
    }
    .story-image {
        height: 500px;
    }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-dark);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

.footer-logo span {
    color: var(--accent);
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--text-main);
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    background: var(--text-main);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-slow);
}

.newsletter-form button:hover {
    background: var(--accent);
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
