@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Mountain Adventure Color Palette - Premium Edition */
    --background: #fdfdfd;
    /* 30 10% 97% approx */
    --foreground: #0F172A;
    /* 222 47% 11% approx */

    --card: #ffffff;
    --card-foreground: #0F172A;

    /* Deep Mountain Blue - Richer (hsl(224 76% 28%)) */
    --primary: #112d7e;
    --primary-foreground: #ffffff;

    /* Sunset Orange - More Vibrant (hsl(24 100% 50%)) */
    --secondary: #ff6600;
    --secondary-foreground: #ffffff;

    /* Forest Green (hsl(158 90% 28%)) */
    --accent: #07875b;
    --accent-foreground: #ffffff;

    /* Warm Gray */
    --muted: #f2f0ed;
    --muted-foreground: #64748b;

    --border: #e2e8f0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Premium Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(17, 45, 126, 0.95), rgba(7, 135, 91, 0.8));
    --gradient-sunset: linear-gradient(135deg, #ff6600, #ff9933);

    /* Shadows */
    --shadow-card: 0 4px 24px -4px rgba(17, 45, 126, 0.12), 0 2px 8px -2px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 25px 50px -12px rgba(17, 45, 126, 0.25);
    --shadow-button: 0 6px 20px rgba(255, 102, 0, 0.4), 0 2px 8px rgba(255, 102, 0, 0.2);

    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Layout Utilities matches Tailwinds container-custom */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-md-4 {
    width: 100%;
    padding: 0 12px;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333%;
    }
}

/* Premium Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s ease;
    padding: 20px 0;
    background: transparent;
}

/* Scrolled state (matches isScrolled logic) */
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon-text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    /* Default to white on transparent header */
    transition: color 0.3s;
}

.site-header.is-scrolled .site-title a,
.site-header.is-scrolled .main-navigation a,
.site-header.is-scrolled .menu-toggle {
    color: var(--foreground);
}

/* Navigation */
.main-navigation {
    position: relative;
}

/* Mobile Menu (Default) */
.nav-menu-wrapper {
    display: none;
    /* Hidden on mobile by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    /* Dark background for mobile menu */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    flex-direction: column;
    gap: 24px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
}

.site-header.is-scrolled .main-navigation a {
    color: #fff;
    /* Keep white on mobile dark menu even if scrolled */
}

/* Desktop Menu (> 992px) */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu-wrapper {
        display: flex !important;
        /* Force flex on desktop */
        position: static;
        background: transparent;
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 0;
        backdrop-filter: none;
        box-shadow: none;
    }

    .nav-menu {
        flex-direction: row;
        gap: 32px;
    }

    .main-navigation a {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .site-header.is-scrolled .main-navigation a {
        color: var(--foreground);
    }

    .main-navigation a:hover {
        color: #fff;
    }

    .site-header.is-scrolled .main-navigation a:hover {
        color: var(--primary);
    }

    /* Nav Link Underline Effect */
    .main-navigation .nav-menu a {
        position: relative;
    }

    .main-navigation .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--gradient-sunset);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    .main-navigation .nav-menu a:hover::after {
        transform: scaleX(1);
    }
}

.cta-button {
    background: var(--gradient-sunset);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-button);
    display: inline-block;
    /* Always visible in wrapper */
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.5);
}

.cta-button::after {
    content: none !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    margin-top: -80px;
    /* Pull behind header */
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Minimal parallax feel */
}

/* Premium Hero Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg,
            rgba(15, 23, 42, 0.3) 0%,
            rgba(15, 23, 42, 0.5) 40%,
            rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-title .main-text {
    color: #fff;
}

.hero-title .sub-text {
    font-size: 0.5em;
    /* relative to main */
    font-weight: 400;
    margin-top: 16px;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 48rem;
    margin: 0 auto 48px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 7rem;
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn-sunset {
    background: var(--gradient-sunset);
    color: #fff;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    box-shadow: var(--shadow-button);
}

.btn-sunset:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.5);
}

.btn-glass {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.125rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

/* Other Sections */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: var(--gradient-sunset);
    margin: 0 auto;
    border-radius: 2px;
}

/* Mobile Toggle */
.menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

.site-header.is-scrolled .menu-toggle {
    color: var(--foreground);
}

/* Trek Cards Fix */
.trek-thumbnail {
    position: relative;
    /* Fixes floating badges */
    overflow: hidden;
    border-radius: 16px;
    height: 240px;
}

.trek-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trek-card:hover .trek-thumbnail img {
    transform: scale(1.1);
}

.trek-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border);
}

.trek-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

/* About Section */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        flex-direction: row;
        gap: 64px;
    }

    .about-image {
        flex: 1;
    }

    .about-content {
        flex: 1;
    }
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 200px);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-wrapper {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}