/* ==========================================================================
   Premium Scroll Reveal Animations
   ========================================================================== */

.reveal { 
    opacity: 0; 
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform, opacity;
}

.reveal.fade-up { transform: translateY(50px); }
.reveal.fade-left { transform: translateX(-60px); }
.reveal.fade-right { transform: translateX(60px); }
.reveal.fade-scale { transform: scale(0.92); }
.reveal.fade-rotate { transform: translateY(30px) rotate(-2deg); }

.reveal.is-visible { 
    opacity: 1; 
    transform: none; 
}

/* Stagger Delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* Accessibility: Disable animations if prefers-reduced-motion is set */
@media (prefers-reduced-motion: reduce) { 
    .reveal { 
        opacity: 1 !important; 
        transform: none !important; 
        transition: none !important; 
        will-change: auto !important;
    }
}

/* Legacy overrides for elements still using .scroll-animate */
.scroll-animate {
    opacity: 1;
}

/* ==========================================================================
   Custom Premium Cursor
   ========================================================================== */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    
    /* Restore cursor for inputs and textareas */
    input, textarea {
        cursor: auto;
    }

    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #c9a84c;
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease-out, opacity 0.2s, background-color 0.2s;
    }

    .cursor-ring {
        width: 32px;
        height: 32px;
        border: 1.5px solid #c9a84c;
        border-radius: 50%;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s, border-width 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cursor-ring::after {
        content: "VIEW";
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        color: #c9a84c;
        opacity: 0;
        transition: opacity 0.3s;
    }

    /* Hover State: Links & Buttons */
    .cursor-ring.hover-action {
        width: 52px;
        height: 52px;
        background-color: rgba(201,168,76,0.15);
    }
    .cursor-dot.hover-action {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0; /* Fallback for scale */
    }

    /* Hover State: Images/Cards */
    .cursor-ring.hover-view {
        width: 64px;
        height: 64px;
        border-color: #c9a84c;
        border-style: solid;
    }
    .cursor-ring.hover-view::after {
        opacity: 1;
    }
    .cursor-dot.hover-view {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    /* Hover State: Hero Area */
    .cursor-ring.hover-hero {
        width: 80px;
        height: 80px;
        border-color: rgba(201,168,76, 0.4);
    }
}


/* ==========================================================================
   Parallax & Floating Elements
   ========================================================================== */
@media (min-width: 1025px) {
    /* Subtle background fixed parallax for philosophy/intro strips */
    .philosophy-strip, .intro-strip, .bg-dark, .bg-primary {
        background-attachment: fixed !important;
    }
    
    .hero, .journey-hero, .contact-hero {
        overflow: hidden !important;
    }
}
@media (max-width: 1024px) {
    .philosophy-strip, .intro-strip, .bg-dark, .bg-primary {
        background-attachment: scroll !important;
    }
}


/* ==========================================================================
   Premium Hover Effects
   ========================================================================== */
/* Common Cubic Bezier Transition */
:root {
    --hover-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- 1. Journey Cards & Blog Cards --- */
.journey-card, .experience-card, .blog-card {
    transition: transform var(--hover-transition), box-shadow var(--hover-transition), border var(--hover-transition);
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
}

.journey-card .card-image-wrapper, .experience-card .card-image-wrapper, .blog-card .blog-image-wrapper, .journey-card .image-wrapper, .experience-card .image-wrapper {
    overflow: hidden;
    position: relative;
}

.journey-card img, .experience-card img, .blog-card img {
    transition: transform var(--hover-transition);
}

.journey-card .card-image-wrapper::after, .experience-card .card-image-wrapper::after, .journey-card .image-wrapper::after, .experience-card .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(201,168,76,0.15);
    opacity: 0;
    transition: opacity var(--hover-transition);
    pointer-events: none;
}

.journey-card .card-link-arrow, .experience-card .card-link-arrow, .card-link svg {
    transition: transform var(--hover-transition);
    display: inline-block;
}

/* Hover States for Cards */
.journey-card:hover, .experience-card:hover, .blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.18);
    border: 1px solid rgba(201,168,76,0.4);
}

.journey-card:hover img, .experience-card:hover img, .blog-card:hover img {
    transform: scale(1.08);
}

.journey-card:hover .card-image-wrapper::after, .experience-card:hover .card-image-wrapper::after, .journey-card:hover .image-wrapper::after, .experience-card:hover .image-wrapper::after {
    opacity: 1;
}

.journey-card:hover .card-link-arrow, .experience-card:hover .card-link-arrow, .journey-card:hover .card-link svg, .experience-card:hover .card-link svg {
    transform: translateX(6px);
}

/* Blog Specifics */
.blog-card:hover .category-tag {
    background-color: var(--color-gold, #c9a84c);
    color: #ffffff;
}

.blog-card .card-title, .blog-card h3 {
    transition: color var(--hover-transition);
}

.blog-card:hover .card-title, .blog-card:hover h3 {
    color: var(--color-gold, #c9a84c);
}

.blog-card .category-tag {
    transition: background-color var(--hover-transition), color var(--hover-transition);
}


/* --- 2. Featured Journey Block --- */
.featured-journey-card, .journey-block {
    transition: background-color var(--hover-transition);
}

.featured-journey-card .featured-image img, .journey-block .block-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-journey-card:hover, .journey-block:hover {
    background-color: rgba(201,168,76,0.04);
}

.featured-journey-card:hover .featured-image img, .journey-block:hover .block-image img {
    transform: scale(1.04);
}


/* --- 3. Testimonial Cards --- */
.testimonial-card, .testimonial-slide {
    transition: transform var(--hover-transition), box-shadow var(--hover-transition);
}

.testimonial-card:hover, .testimonial-slide:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.testimonial-card .quote-icon, .testimonial-slide .quote-mark {
    transition: color var(--hover-transition);
}
.testimonial-card:hover .quote-icon, .testimonial-slide:hover .quote-mark {
    color: #b8972a;
}


/* --- 4. Team Cards --- */
.team-card {
    position: relative;
    overflow: hidden;
}

.team-card img {
    filter: grayscale(20%);
    transition: filter var(--hover-transition), transform var(--hover-transition);
}

.team-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-card .team-name, .team-card h4 {
    transition: transform var(--hover-transition);
}

.team-card:hover .team-name, .team-card:hover h4 {
    transform: translateY(-4px);
}

.team-card .team-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(201,168,76,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--hover-transition);
    pointer-events: none;
}
.team-card:hover .team-image-wrapper::after {
    opacity: 1;
}


/* --- 5. CTA Buttons --- */
.btn-gold, .btn.primary {
    transition: background-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-gold:hover, .btn.primary:hover {
    background-color: #b8972a;
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

.btn-gold:active, .btn.primary:active {
    transform: scale(0.98);
}

/* Button Outline Fill Animation */
.btn-outline, .btn.secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline::before, .btn.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-gold, #c9a84c);
    z-index: -1;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline:hover, .btn.secondary:hover {
    color: #ffffff !important;
}

.btn-outline:hover::before, .btn.secondary:hover::before {
    transform: scaleX(1);
}

/* Ripple Effect Styles */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/* --- 6. Nav Links --- */
.main-nav a, .nav-links a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a::after, .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-gold, #c9a84c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-nav a:hover::after, .nav-links a:hover::after, .main-nav a.active::after, .nav-links a.active::after {
    transform: scaleX(1);
}

.main-nav a.active, .nav-links a.active {
    color: var(--color-gold, #c9a84c);
}


/* --- 7. Input Fields --- */
.form-input, .form-textarea, .form-select, input, textarea, select {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #ddd;
}

.form-input:focus, .form-textarea:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
    border-color: var(--color-gold, #c9a84c);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    outline: none;
}



/* ==========================================================================
   Page Transition Animations
   ========================================================================== */
.page-transition-overlay {
    position: fixed; 
    inset: 0; 
    z-index: 99999;
    background: #f7f3ed;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}
.page-transition-overlay.slide-in { 
    transform: translateX(0); 
    pointer-events: all; 
}
.page-transition-overlay.slide-out { 
    transform: translateX(100%); 
}

.page-transition-logo {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    color: var(--color-gold, #c9a84c);
    font-size: 2.5rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition-overlay.slide-in .page-transition-logo {
    opacity: 1;
    transition-delay: 0.2s; /* Fades in after wipe starts covering screen */
}

.page-transition-overlay.slide-out .page-transition-logo {
    opacity: 0;
    transition-delay: 0s; /* Fades out immediately as wipe leaves */
}


/* ==========================================================================
   Premium Loader
   ========================================================================== */
.premium-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background-color: #1a2e1a; /* deep forest green */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.premium-loader.exit {
    transform: scale(1.05);
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-brand {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    color: var(--color-gold, #c9a84c);
    font-size: 3rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    overflow: visible;
}

.loader-brand span {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader-brand span.show {
    opacity: 1;
    transform: translateY(0);
}

.loader-line {
    width: 0;
    height: 1px;
    background-color: var(--color-gold, #c9a84c);
    margin: 0 auto 1.5rem auto;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader-line.show {
    width: 80px;
}

.loader-tagline {
    font-family: var(--font-body, 'Inter', sans-serif);
    color: rgba(247, 243, 237, 0.6); /* ivory/60% */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.loader-tagline.show {
    opacity: 1;
}

/* Hide scrollbar while loading */
body.loading {
    overflow: hidden !important;
}


/* ==========================================================================
   Premium Glassmorphism & Textures
   ========================================================================== */

/* --- 1. Glassmorphism --- */

/* Nav on scroll (assuming .scrolled or sticky header classes) */
.main-header.scrolled, header.scrolled, .header-scrolled {
    backdrop-filter: blur(20px) saturate(180%) !important;
    background: rgba(247, 243, 237, 0.92) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15) !important;
}

/* Trip Detail Sticky Sidebar & Forms */
.sticky-booking-sidebar, .consultation-sidebar {
    background: rgba(247, 243, 237, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(201, 168, 76, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
}

/* Mobile Bottom Booking Bar */
#mobile-book-toggle {
    background: rgba(247, 243, 237, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(201, 168, 76, 0.2) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08) !important;
}

/* Floating CTA (Mid-scroll on Mobile) */
.mobile-floating-cta {
    backdrop-filter: blur(12px) !important;
    background: rgba(26, 46, 26, 0.85) !important; /* dark glass */
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
    border-radius: 50px !important; /* pill shape */
}


/* --- 2. Texture Accents --- */

/* Section Dividers */
.section-divider {
    display: block;
    text-align: center;
    position: relative;
    width: 120px;
    margin: 4rem auto;
    height: 1px;
    background: rgba(201, 168, 76, 0.4);
}
.section-divider::before {
    content: "◆";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(201, 168, 76, 0.4);
    font-size: 0.8rem;
    background: var(--color-ivory, #f7f3ed);
    padding: 0 10px;
}

/* Hero Grain Texture */
.hero::after, .journey-hero::after, .contact-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1; 
}

/* Quote Section Backgrounds */
.bg-dark {
    position: relative;
}
.bg-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.bg-dark > * {
    position: relative;
    z-index: 1; /* ensure content sits above the radial gradient */
}

/* Card Borders */
.journey-card, .blog-card, .experience-card {
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform var(--hover-transition), box-shadow var(--hover-transition), border-color 0.4s ease;
}
.journey-card:hover, .blog-card:hover, .experience-card:hover {
    border-color: rgba(201,168,76,0.35);
}

/* Gold Shimmer on Badges */
.badge-featured, .badge-popular, .pricing-badge, .tag-featured {
    background: linear-gradient(90deg, #c9a84c, #e8c96d, #c9a84c) !important;
    background-size: 200% auto !important;
    animation: shimmer 3s linear infinite !important;
    color: #fff !important;
    border: none !important;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}



/* ==========================================================================
   Micro-Details & Interactions
   ========================================================================== */

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a84c, #e8c96d);
    z-index: 99999;
    width: 0%;
    pointer-events: none;
    transition: width 0.1s ease-out;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-gold, #c9a84c);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.5);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(201,168,76,0.5);
}

@media (max-width: 767px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
    }
}

/* --- Premium Link Hover Underline --- */
p a:not(.btn), .body-text a:not(.btn), .blog-content a:not(.btn) {
    text-decoration: none;
    background-image: linear-gradient(var(--color-gold, #c9a84c), var(--color-gold, #c9a84c));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s ease;
    color: var(--color-charcoal, #2a2a2a);
}

p a:not(.btn):hover, .body-text a:not(.btn):hover, .blog-content a:not(.btn):hover {
    background-size: 100% 1px;
    color: var(--color-gold, #c9a84c);
}

/* --- Image Loading Placeholder --- */
img {
    opacity: 0; /* start hidden until load or skeleton applied */
}
img.skeleton-loading {
    background: linear-gradient(90deg, #f7f3ed 25%, #fffdfa 50%, #f7f3ed 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    color: transparent; 
    opacity: 1;
}

img.loaded {
    animation: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid var(--color-gold, #c9a84c) !important;
    outline-offset: 3px !important;
    transition: outline-offset 0.2s ease, outline-color 0.2s ease;
}
*:focus:not(:focus-visible) {
    outline: none;
}
