/* Moran Trails - Core Styling */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand Colors */
    --mt-radius: 14px;
    --mt-primary: #ab4721;
    --mt-accent: #572815;
    --mt-orange: #f78f2e;
    --mt-font-heading: 'Montserrat', sans-serif;
    --mt-font-body: 'Inter', 'Open Sans', sans-serif;
    --mt-bg-light: #f9f9f9;
    --mt-text: #333333;
    --mt-white: #ffffff;
}

/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--mt-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--mt-text);
    background-color: var(--mt-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--mt-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

a {
    color: var(--mt-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--mt-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities & Visibility */
.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-inline-flex {
        display: inline-flex !important;
    }

    .d-lg-block {
        display: block !important;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--mt-radius);
    font-family: var(--mt-font-body);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--mt-primary);
    color: var(--mt-white);
}

.btn-primary:hover {
    background-color: var(--mt-accent);
    color: var(--mt-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--mt-primary);
    color: var(--mt-primary);
}

.btn-outline:hover {
    background-color: var(--mt-primary);
    color: var(--mt-white);
}

/* Glass Button (Hero) */
.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}


/* ==========================================================================
   TOPBAR — Premium Redesign
   ========================================================================== */

/* ==========================================================================
   TOPBAR — Premium Redesign
   ========================================================================== */

.site-topbar {
    position: relative;
    z-index: 1002;
    padding: 16px 0;
    /* Increased height */
    background: linear-gradient(90deg, #572815 0%, #ab4721 100%);
    /* Requested gradient */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--mt-font-body);
    font-size: 14px;
    /* Slightly larger */
    color: rgba(255, 255, 255, 0.95);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Contact Items */
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: background 0.2s;
}

.topbar-item:hover .topbar-icon {
    background: rgba(255, 255, 255, 0.25);
}

.topbar-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.topbar-label {
    letter-spacing: 0.02em;
}

/* Promo Section */
.topbar-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.promo-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fff;
    color: var(--mt-primary);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.promo-text {
    color: #fff;
    font-size: 13px;
}

/* Social Icons */
.topbar-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-social-link:hover {
    background: #fff;
    color: var(--mt-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.topbar-social-link svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   HERO SECTION — Slider + Thumbnails
   ========================================================================== */

.hero-section {
    position: relative;
    height: 95vh;
    /* Increased height */
    min-height: 700px;
    max-height: 950px;
    overflow: hidden;
    background: #0a0a0a;
}

.hero-main-slider {
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Background with Ken Burns */
.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.swiper-slide-active .hero-bg {
    animation: kenBurns 14s ease-out forwards;
    /* Slower zoom */
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.5) 100%);
}

/* Content */
.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 120px;
    padding-top: 120px;
    /* Added spacing from header */
    /* Space for thumbnails */
}

.hero-content {
    max-width: 800px;
    color: #fff;
    margin-top: 40px;
    /* Additional optical spacing */
}

/* Typography */
.hero-tagline {
    display: inline-block;
    font-family: var(--mt-font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 24px;
    padding: 8px 20px;
    /* Highlighter effect */
    background: rgba(171, 71, 33, 0.85);
    /* Primary color w/ opacity */
    backdrop-filter: blur(4px);
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    /* Highlighter / Visibility boost */
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
}

/* Optional: Add a subtle text background if shadow isn't enough */
.hero-title span {
    display: inline;
    font-weight: 300;
    font-style: italic;
    background: rgba(0, 0, 0, 0.3);
    /* Subtle dark mark */
    padding: 0 10px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 40px;
    /* Highlighter effect */
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-left: 4px solid var(--mt-orange);
    backdrop-filter: blur(5px);
    border-radius: 0 8px 8px 0;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.btn.hero-btn {
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn.hero-btn.btn-primary {
    box-shadow: 0 8px 24px rgba(171, 71, 33, 0.35);
}

.btn.hero-btn.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(171, 71, 33, 0.45);
    transform: translateY(-2px);
}

/* Staggered Entry Animations */
.swiper-slide-active .hero-tagline {
    animation: slideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

.swiper-slide-active .hero-title {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.swiper-slide-active .hero-description {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.7s;
}

.swiper-slide-active .hero-actions {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ── Progress Bar ── */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--mt-primary), var(--mt-orange));
    transition: width 0.1s linear;
}

.hero-progress-bar.is-running {
    animation: progressFill 6000ms linear forwards;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}


/* ── Thumbnail Pagination ── */
.hero-thumbs-wrap {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-thumbs-slider {
    overflow: visible !important;
}

.hero-thumb {
    width: 180px !important;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    opacity: 0.6;
}

.hero-thumb:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.swiper-slide-thumb-active.hero-thumb {
    opacity: 1;
    border-color: var(--mt-orange);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(247, 143, 46, 0.3);
    transform: translateY(-4px);
}

.hero-thumb-img {
    width: 100%;
    height: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-thumb-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-thumb-info {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-thumb-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--mt-orange);
    font-family: var(--mt-font-heading);
    line-height: 1;
}

.hero-thumb-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}


/* ── Scroll Indicator ── */
.hero-scroll-indicator {
    position: absolute;
    right: 30px;
    bottom: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}


/* ── Responsive ── */
@media (max-width: 992px) {
    .topbar-promo {
        display: none;
    }

    .topbar-contact {
        gap: 12px;
    }

    .topbar-label {
        display: none;
    }

    .hero-section {
        height: 85vh;
        /* Increased on small mobile to fit content better */
        min-height: 550px;
    }

    .hero-container {
        padding-top: 100px;
        /* Space for the header */
        padding-bottom: 180px;
        /* Space for thumbnails */
        text-align: center;
        align-items: center;
        justify-content: flex-start;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-tagline {
        border-left: 0;
        border-bottom: 3px solid var(--mt-orange);
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        /* Smaller for better fit on tiny mobile */
        margin-bottom: 12px;
    }

    .header-cta {
        margin-left: 5px !important;
        /* Reduced from 20px */
        gap: 8px !important;
        /* Reduced gap */
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 10px 15px;
        margin-bottom: 25px;
    }

    .hero-thumb {
        width: 130px !important;
    }

    .hero-thumb-img {
        height: 50px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 576px) {
    .site-topbar {
        padding: 10px 0;
    }

    .topbar-inner {
        justify-content: center;
    }

    .topbar-socials {
        display: none;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-thumbs-wrap {
        bottom: 12px;
    }

    .hero-thumb {
        width: 110px !important;
    }

    .hero-thumb-info {
        padding: 6px 8px;
    }

    .hero-thumb-number {
        font-size: 14px;
    }

    .hero-thumb-label {
        font-size: 9px;
    }
}

/* ── Mobile Slider Overrides ── */
/* ── Mobile Slider Overrides ── */
@media (max-width: 768px) {
    .hero-container {
        padding-top: 90px;
        /* Reduced from 120px to move content up */
        padding-bottom: 160px;
        /* Kept space for thumbs/buttons */
        justify-content: flex-start;
        /* Align top-ish (with padding) instead of center to avoid float */
        text-align: center;
    }

    .hero-tag {
        margin-bottom: 8px;
        /* Tighter */
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero-title {
        font-size: 2rem;
        /* Slightly smaller for better fit */
        margin-bottom: 10px;
        /* Tighter */
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 10px 14px;
        background: rgba(0, 0, 0, 0.6);
        border-left: 2px solid var(--mt-orange);
        margin-bottom: 16px;
        /* Space before buttons */
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        /* Reduced from 16px */
        width: 100%;
        max-width: 280px;
        /* Tighter width */
        margin: 0 auto;
    }

    .btn.hero-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* Restore & Style Thumbnails for Mobile */
    .hero-thumbs-wrap {
        display: block !important;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .hero-thumbs-slider {
        padding-bottom: 10px;
    }

    .hero-thumb {
        width: 80px !important;
        /* Smaller thumbs */
        height: auto;
        border-width: 1px;
    }

    .hero-thumb-img {
        height: 50px;
        /* Shorter images */
    }

    .hero-thumb-info {
        display: none;
        /* Hide text on mobile to save space, just use images */
    }

    /* Progress bar */
    .hero-progress {
        bottom: 0px;
    }
}

/* ==========================================================================
   Video Parallax Section (Rebuilt)
   ========================================================================== */
/* ==========================================================================
   Video Parallax Section (Clean Rebuild)
   ========================================================================== */
.mt-video-section {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Adjust as needed */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.mt-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* No interaction with video layer */
}

/* The element that YT API replaces */
#mtVideoPlayer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    z-index: 1;
}

.mt-video-placeholder {
    width: 100%;
    height: 100%;
    background: #111;
}

.mt-video-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23000000' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 2;
}

.mt-video-content-wrap {
    position: relative;
    z-index: 10;
}

.mt-video-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--mt-orange);
    margin-bottom: 15px;
}

.mt-video-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}


.mt-video-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mt-video-btn {
    padding: 14px 28px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mute Toggle */
.mt-video-mute-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--mt-font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.mt-video-mute-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mt-video-mute-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .mt-video-section {
        height: auto;
        min-height: 450px;
        padding: 60px 20px;
    }

    .mt-video-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .mt-video-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .mt-video-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .mt-video-btn,
    .mt-video-mute-toggle {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* ==========================================================================
   TOAST NOTIFICATIONS (Global Utility)
   ========================================================================== */
#mt-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    /* Let clicks pass through container */
}

.mt-toast {
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px 16px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    max-width: 450px;
    pointer-events: auto;
    border-left: 5px solid #cbd5e0;

    /* Animation Initial State */
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mt-toast.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.mt-toast-success {
    border-left-color: #38c172;
}

.mt-toast-success .mt-toast-icon {
    background: rgba(56, 193, 114, 0.1);
    color: #38c172;
}

.mt-toast-error {
    border-left-color: #e3342f;
}

.mt-toast-error .mt-toast-icon {
    background: rgba(227, 52, 47, 0.1);
    color: #e3342f;
}

.mt-toast-info {
    border-left-color: #3490dc;
}

.mt-toast-info .mt-toast-icon {
    background: rgba(52, 144, 220, 0.1);
    color: #3490dc;
}

.mt-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mt-toast-icon svg {
    width: 20px;
    height: 20px;
}

.mt-toast-message {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.4;
}

.mt-toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

.mt-toast-close:hover {
    color: #e3342f;
}