/* ===========================
   BASE & UTILITIES
   =========================== */
/* Custom Scrollbar Styles */
/* Modern thin scrollbar for WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #14b8a6; /* teal-500 secondary accent */
    border-radius: 9999px;
    border: 3px solid #f1f5f9; /* Creates a beautiful inset padding effect */
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488; /* teal-600 */
}

/* Firefox compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: #14b8a6 #f1f5f9;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .editorial-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }
}

/* ===========================
   MEGA MENU
   =========================== */
nav .mega-menu {
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
}

nav .group:hover > .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   NAVBAR MODERN STYLES
   =========================== */
#main-nav {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8) !important;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

#main-nav.navbar-scrolled,
#main-nav.scrolled {
    background: #ffffff !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(241, 245, 249, 1) !important;
}

#main-nav #nav-container {
    height: 4rem !important; /* 64px on mobile default */
    transition: height 0.4s ease !important;
}

#main-nav.navbar-scrolled #nav-container,
#main-nav.scrolled #nav-container {
    height: 3.5rem !important; /* 56px on mobile scrolled */
}

@media (min-width: 640px) {
    #main-nav #nav-container {
        height: 5rem !important; /* 80px on desktop default */
    }

    #main-nav.navbar-scrolled #nav-container,
    #main-nav.scrolled #nav-container {
        height: 4.5rem !important; /* 72px on desktop scrolled - spacious and readable */
    }
}

/* Smooth Links */
nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #14b8a6;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    border-radius: 2px;
}

nav .nav-link:hover::after,
nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav .nav-link:hover {
    color: #064e3b;
}

/* Mega Menu Polish — light panel matching the site's editorial style */
nav .mega-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 24px 60px -18px rgba(2, 44, 34, 0.22), 0 4px 16px -8px rgba(2, 44, 34, 0.08) !important;
}

/* Invisible hover bridge so the pointer can travel from trigger to panel
   without the menu closing over the mt-3 gap. */
nav .mega-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

/* ===========================
   MOBILE MENU
   =========================== */
#mobile-menu {
    background-color: rgba(2, 15, 12, 0.98) !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
    transform: translateX(0) !important;
}

#mobile-menu .menu-item-anim {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active .menu-item-anim {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in Stagger Delays */
#mobile-menu.active .menu-item-anim:nth-child(1) { transition-delay: 0.12s; }
#mobile-menu.active .menu-item-anim:nth-child(2) { transition-delay: 0.18s; }
#mobile-menu.active .menu-item-anim:nth-child(3) { transition-delay: 0.24s; }
#mobile-menu.active .menu-item-anim:nth-child(4) { transition-delay: 0.30s; }
#mobile-menu.active .menu-item-anim:nth-child(5) { transition-delay: 0.36s; }
#mobile-menu.active .menu-item-anim:nth-child(6) { transition-delay: 0.42s; }
#mobile-menu.active .menu-item-anim:nth-child(7) { transition-delay: 0.48s; }

/* ===========================
   HERO SLIDER
   =========================== */
#hero-slider {
    background: #04261a;
}

/* Slides stack on top of each other */
.slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 1.4s;
    z-index: 1;
    overflow: hidden;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Background image with Ken Burns */
.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    filter: blur(6px);
    transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1), filter 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-slide.active .slider-img {
    transform: scale(1);
    filter: blur(0);
    animation: kenBurns 18s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* Dark overlay — improved gradient for readability */
.slider-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Bottom anchor for headline + controls */
        linear-gradient(180deg, rgba(2, 18, 14, 0) 0%, rgba(2, 18, 14, 0.12) 42%, rgba(2, 18, 14, 0.88) 100%),
        /* Left wash for text legibility */
        linear-gradient(90deg, rgba(3, 20, 16, 0.82) 0%, rgba(3, 20, 16, 0.35) 46%, rgba(3, 20, 16, 0) 74%),
        /* Cinematic vignette, lifts the top-right of the photo */
        radial-gradient(130% 130% at 72% 28%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* Content positioned */
.slider-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-bottom: 4rem;
}

/* Content Reveal Animations */
.slider-badge, .slider-heading, .slider-desc, .slider-cta {
    opacity: 0;
    filter: blur(12px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 1s cubic-bezier(0.23, 1, 0.32, 1), 
                filter 1s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Directional Starts */
#hero-slider.is-next .slider-slide:not(.active) .slider-badge, 
#hero-slider.is-next .slider-slide:not(.active) .slider-heading, 
#hero-slider.is-next .slider-slide:not(.active) .slider-desc, 
#hero-slider.is-next .slider-slide:not(.active) .slider-cta {
    transform: translateX(50px);
}

#hero-slider.is-prev .slider-slide:not(.active) .slider-badge, 
#hero-slider.is-prev .slider-slide:not(.active) .slider-heading, 
#hero-slider.is-prev .slider-slide:not(.active) .slider-desc, 
#hero-slider.is-prev .slider-slide:not(.active) .slider-cta {
    transform: translateX(-50px);
}

/* Exit stagger — smooth departure instead of snap */
.slider-badge, .slider-heading, .slider-desc, .slider-cta {
    transition-delay: 0s;
}

/* Active States with Stagger */
#hero-slider .slider-slide.active .slider-badge,
#hero-slider .slider-slide.active .slider-heading,
#hero-slider .slider-slide.active .slider-desc,
#hero-slider .slider-slide.active .slider-cta {
    opacity: 1;
    transform: translateY(0) translateX(0);
    filter: blur(0);
}

#hero-slider .slider-slide.active .slider-badge { transition-delay: 0.15s; }
#hero-slider .slider-slide.active .slider-heading { transition-delay: 0.3s; }
#hero-slider .slider-slide.active .slider-desc { transition-delay: 0.45s; }
#hero-slider .slider-slide.active .slider-cta { transition-delay: 0.6s; }

/* Base Element Styles */
.slider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(20, 184, 166, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 9999px;
    color: #5eead4;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.625rem, 0.15vw + 0.58rem, 0.6875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    width: fit-content;
    margin-bottom: 1.25rem;
}

/* Premium Minimalist Badge */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: rgba(6, 78, 59, 0.55); /* emerald-900 tint, solid feel, no blur */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(45, 212, 191, 0.35); /* teal hairline */
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.6rem, 0.15vw + 0.55rem, 0.65rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    width: fit-content;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.badge-pulse-dot {
    width: 5px;
    height: 5px;
    background-color: #14b8a6; /* Sky blue signaling accent */
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.badge-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #14b8a6;
    animation: badgeDotPulse 2s infinite;
}

@keyframes badgeDotPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.slider-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Heading specific */
.slider-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw + 1.25rem, 4.25rem);
    max-width: 20ch;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Description specific */
.slider-desc {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    max-width: 36rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: clamp(0.875rem, 1vw + 0.5rem, 1.0625rem);
}

/* Hero headline — highlighted rotating word */
.hero-type-box {
    display: inline-block;
    background: #064e3b; /* primary dark green */
    color: #ffffff;
    font-size: 0.85em; /* 15% smaller than the heading */
    padding: 0.04em 0.36em 0.1em;
    border-radius: 0.32em;
    line-height: 1.1;
    white-space: nowrap;
}
.hero-type-box::after {
    content: '|';
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    animation: heroCaretBlink 1s step-end infinite;
}
@keyframes heroCaretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero heading accent — teal -> aqua -> emerald gradient text */
.slider-heading .text-secondary {
    background: linear-gradient(115deg, #2dd4bf 0%, #5eead4 45%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hero badge — live pulse dot */
.premium-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #2dd4bf;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
    animation: heroBadgePulse 2.2s ease-out infinite;
}

@keyframes heroBadgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

/* Primary and Creative Fish Button */
.slider-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 2rem;
    background: #14b8a6;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.slider-btn-primary:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
}

/* Premium Glassmorphic Fish Button Wrapper */
.fish-btn-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.premium-fish-btn {
    position: relative;
    overflow: hidden; /* Clips the internal ripple wave */
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2.25rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 16px; /* Smooth elegant architectural blocky radius */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
}

.fish-btn-wrapper:hover .premium-fish-btn {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.45);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

/* Vector swimming fish illustration */
.swimming-fish {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Wiggling tail animation */
.fish-tail-group {
    transform-origin: 17.5px 12px; /* Center-right hinge where tail meets body */
    transition: transform 0.3s ease;
}

/* Wiggle the tail when button is hovered! */
.fish-btn-wrapper:hover .fish-tail-group {
    animation: swimWiggle 0.4s infinite ease-in-out;
}

@keyframes swimWiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-18deg); } /* Beautiful natural swimming tail sweep */
}

/* Glowing eye pulse */
.fish-eye-dot {
    transition: fill 0.3s ease;
}

.fish-btn-wrapper:hover .fish-eye-dot {
    fill: #facc15;
    animation: eyeGlow 0.8s infinite alternate;
}

@keyframes eyeGlow {
    from { opacity: 0.6; }
    to { opacity: 1; filter: drop-shadow(0 0 2px #facc15); }
}

/* Dynamic Ripple Water Wave inside the button on hover */
.ripple-wave {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.fish-btn-wrapper:hover .ripple-wave {
    opacity: 1;
    transform: scale(1.6);
}

/* Bubbles coming out of fish mouth (aligned on left side of wrapper) */
.fish-mouth-bubbles {
    position: absolute;
    top: 50%;
    left: 1.5rem; /* Exactly near the fish mouth inside the button */
    transform: translateY(-50%);
    width: 0;
    height: 0;
    overflow: visible;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5);
    pointer-events: none;
}

.fish-btn-wrapper:hover .bubble {
    animation-fill-mode: forwards;
}

/* Bubble scaling/swaying animations adjusted relative to the fish mouth */
.fish-btn-wrapper:hover .bubble-1 { animation: floatMouthBubble1 1.2s infinite ease-out; }
.fish-btn-wrapper:hover .bubble-2 { animation: floatMouthBubble2 1.4s infinite ease-out 0.15s; }
.fish-btn-wrapper:hover .bubble-3 { animation: floatMouthBubble3 1s infinite ease-out 0.3s; }
.fish-btn-wrapper:hover .bubble-4 { animation: floatMouthBubble4 1.3s infinite ease-out 0.08s; }
.fish-btn-wrapper:hover .bubble-5 { animation: floatMouthBubble5 1.1s infinite ease-out 0.22s; }

@keyframes floatMouthBubble1 {
    0% { bottom: 0; left: 0; opacity: 0; transform: scale(0.3) translateX(0); }
    20% { opacity: 0.85; }
    90% { opacity: 0.3; }
    100% { bottom: 140px; left: -12px; opacity: 0; transform: scale(1.1) translateX(-10px); }
}

@keyframes floatMouthBubble2 {
    0% { bottom: 0; left: -2px; opacity: 0; transform: scale(0.25) translateX(0); }
    20% { opacity: 0.9; }
    90% { opacity: 0.2; }
    100% { bottom: 160px; left: 8px; opacity: 0; transform: scale(1.4) translateX(12px); }
}

@keyframes floatMouthBubble3 {
    0% { bottom: 0; left: 2px; opacity: 0; transform: scale(0.4) translateX(0); }
    20% { opacity: 0.75; }
    90% { opacity: 0.25; }
    100% { bottom: 130px; left: -6px; opacity: 0; transform: scale(1) translateX(-8px); }
}

@keyframes floatMouthBubble4 {
    0% { bottom: 0; left: -1px; opacity: 0; transform: scale(0.35) translateX(0); }
    20% { opacity: 0.85; }
    90% { opacity: 0.15; }
    100% { bottom: 170px; left: -15px; opacity: 0; transform: scale(1.2) translateX(-18px); }
}

@keyframes floatMouthBubble5 {
    0% { bottom: 0; left: 1px; opacity: 0; transform: scale(0.2) translateX(0); }
    20% { opacity: 0.95; }
    90% { opacity: 0.3; }
    100% { bottom: 150px; left: 4px; opacity: 0; transform: scale(1.5) translateX(6px); }
}

.slider-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-btn-secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #064e3b;
}

/* ===========================
   SLIDER ARROWS
   =========================== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

#hero-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow-left { left: 1.25rem; }
.slider-arrow-right { right: 1.25rem; }

/* ===========================
   SLIDER DOTS
   =========================== */
.slider-dots {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-dot {
    position: relative;
    width: 24px;
    height: 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
}

.slider-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
}

.slider-dot.active {
    width: 40px;
    background: #14b8a6;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.5);
}

.slider-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */
@media (min-width: 640px) {
    .slider-content {
        padding: 0 2.5rem;
        padding-bottom: 3.5rem;
    }

    .slider-badge {
        padding: 0.5rem 1.25rem;
        margin-bottom: 1.25rem;
    }

    .slider-cta {
        gap: 1rem;
    }
}

/* ===========================
   RESPONSIVE - DESKTOP
   =========================== */
@media (min-width: 1024px) {
    .slider-content {
        padding: 0 5rem;
        padding-bottom: 4rem;
    }

    .slider-arrow {
        display: flex;
    }
}

/* ===========================
   RESPONSIVE - LARGE DESKTOP
   =========================== */
@media (min-width: 1280px) {
    .slider-content {
        padding: 0 7rem;
        padding-bottom: 4rem;
    }

    .slider-arrow {
        width: 52px;
        height: 52px;
    }

    .slider-arrow-left { left: 2.5rem; }
    .slider-arrow-right { right: 2.5rem; }
}

/* ===========================
   TOPO MAP TEXTURE
   =========================== */
.topo-map {
    background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 Q 50 80, 100 100 T 200 100 T 300 100 T 400 100 M0 150 Q 50 130, 100 150 T 200 150 T 300 150 T 400 150 M0 200 Q 50 180, 100 200 T 200 200 T 300 200 T 400 200 M0 250 Q 50 230, 100 250 T 200 250 T 300 250 T 400 250' fill='none' stroke='white' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
    background-size: 600px 600px;
    /* Removed mix-blend-mode: overlay — it created a stacking context that leaked into sticky sidebar rendering */
}

/* ===========================
   SECTION REVEAL (Scroll)
   =========================== */
@keyframes textReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-reveal {
    animation: textReveal 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }/* ===========================
   GRID PATTERN TEXTURE
   =========================== */
.grid-pattern {
    background-image: 
        linear-gradient(to right, #cbd5e1 1px, transparent 1px),
        linear-gradient(to bottom, #cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===========================
   RIVER ATMOSPHERE (Species Section)
   =========================== */
.river-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #14b8a6;
    top: -100px;
    left: -100px;
    animation: drift 25s infinite alternate ease-in-out;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #064e3b;
    bottom: -200px;
    right: -100px;
    animation: drift 35s infinite alternate-reverse ease-in-out;
}

.river-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #14b8a6;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.particle-1 { top: 20%; left: 10%; animation: float 15s infinite; }
.particle-2 { top: 60%; left: 15%; animation: float 22s infinite 2s; }
.particle-3 { top: 40%; right: 20%; animation: float 18s infinite 1s; }
.particle-4 { top: 80%; right: 10%; animation: float 25s infinite 3s; }
.particle-5 { top: 10%; right: 40%; animation: float 20s infinite 0.5s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 30px) scale(1.1); }
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    30% { opacity: 0.4; }
    80% { opacity: 0.2; }
    100% { transform: translateY(-100px) translateX(20px); opacity: 0; }
}




/* ===========================
   FISH DETAIL REDESIGN
   =========================== */

/* Gallery Masonry-ish Grid */
.fish-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Card Styling */
.modern-card {
    background: #ffffff;
    border-radius: 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
    padding: 2.5rem;
}

/* Read More Logic */
.expandable-content {
    max-height: 500px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content.expanded {
    max-height: 2000px;
}

.expandable-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    transition: opacity 0.3s ease;
}

.expandable-content.expanded::after {
    opacity: 0;
    pointer-events: none;
}

/* Inquiry Floating Button */
.inquiry-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #14b8a6;
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.inquiry-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #0f766e;
}

.inquiry-btn.hidden-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(20, 184, 166, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

/* Inquiry Panel */
.inquiry-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    background: white;
    z-index: 100;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.inquiry-panel.active {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .inquiry-panel {
        bottom: 2rem;
        right: 2rem;
        border-radius: 2rem;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-item:hover .lightbox-trigger {
    transform: scale(1.05);
}

/* ==========================================================================
   PREMIUM REDESIGN UTILITIES & INTERACTIVE STYLES
   ========================================================================== */

/* 1. Transparent-to-Glassmorphic Navbar Transition */
nav.navbar-transparent {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

nav.navbar-transparent .navbar-logo-text {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(4, 38, 26, 0.45) !important;
}

nav.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 4px rgba(4, 38, 26, 0.4) !important;
}

nav.navbar-transparent .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 1px 8px rgba(20, 184, 166, 0.6) !important;
}

nav.navbar-transparent .nav-link::after {
    background: #ffffff !important;
}

nav.navbar-transparent #burger-menu {
    color: #ffffff !important;
}

nav.navbar-transparent .mega-menu-trigger {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 4px rgba(4, 38, 26, 0.4) !important;
}

nav.navbar-transparent .mega-menu-trigger:hover {
    color: #ffffff !important;
}

nav.navbar-transparent .mega-menu-trigger span.material-symbols-outlined {
    color: rgba(255, 255, 255, 0.7) !important;
}

nav.navbar-transparent .mega-menu-trigger:hover span.material-symbols-outlined {
    color: #ffffff !important;
}

/* Scrolled/Glassmorphic Navbar overrides */
nav.navbar-scrolled {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(20, 184, 166, 0.16) !important;
    box-shadow: 0 10px 40px -10px rgba(6, 78, 59, 0.12) !important;
}

/* Fluid Navigation Container Shrink */
nav.navbar-scrolled #nav-container {
    height: 3.25rem !important; /* Shrunk from h-16 */
}

/* 2. Frosted Glass Card Badges */
.glass-frosted-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.glass-frosted-dark {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 3. Interactive Species Card Hover Glows */
.species-card-glow {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px -2px rgba(6, 78, 59, 0.02);
}

.species-card-glow:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.25) !important;
    box-shadow: 0 20px 40px -10px rgba(20, 184, 166, 0.12),
                0 0 0 1px rgba(20, 184, 166, 0.05) !important;
}

/* 4. Calendar Paper Curl & Tilt Effects */
.calendar-card {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.calendar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 0 0;
    border-color: transparent transparent #cbd5e1 transparent;
    transition: border-width 0.4s ease;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.calendar-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
    box-shadow: 0 25px 45px -10px rgba(6, 95, 70, 0.18),
                0 10px 20px -5px rgba(6, 95, 70, 0.08) !important;
}

/* 5. Active Season Glowing Animation */
.season-active-glow {
    position: relative;
    border: 2px solid #14b8a6 !important;
    box-shadow: 0 20px 40px -10px rgba(20, 184, 166, 0.3),
                0 0 0 3px rgba(20, 184, 166, 0.15) !important;
    animation: activeGlowPulse 3s infinite alternate ease-in-out;
}

/* Hide the standard subtitle when the card is active to prevent clashing with the Active Now badge */
.season-active-glow p.font-headline {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.season-active-glow:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
    box-shadow: 0 30px 60px -8px rgba(20, 184, 166, 0.5),
                0 0 0 5px rgba(20, 184, 166, 0.3) !important;
}

@keyframes activeGlowPulse {
    0% {
        box-shadow: 0 15px 35px -10px rgba(20, 184, 166, 0.25),
                    0 0 0 2px rgba(20, 184, 166, 0.1) !important;
        border-color: rgba(20, 184, 166, 0.6) !important;
    }
    100% {
        box-shadow: 0 25px 50px -8px rgba(20, 184, 166, 0.45),
                    0 0 0 5px rgba(20, 184, 166, 0.25) !important;
        border-color: rgba(20, 184, 166, 1) !important;
    }
}

/* Active season ribbon badge */
.active-season-badge {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff !important;
    color: #065f46 !important;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.15);
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.9);
    animation: bounceSlow 2s infinite alternate ease-in-out;
}

@keyframes bounceSlow {
    0% { transform: translate(-50%, 0); }
    100% { transform: translate(-50%, -4px); }
}

/* 6. River Dossier Visual Structure */
.river-dossier-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.river-dossier-card .telemetry-panel {
    transform: translateY(15px);
    opacity: 0.9;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.river-dossier-card:hover .telemetry-panel {
    transform: translateY(0);
    opacity: 1;
}

/* 7. Pricing Interactive Toggle Switch styling */
.pricing-toggle-container {
    background: rgba(6, 78, 59, 0.05);
    border: 1px solid rgba(6, 78, 59, 0.1);
    padding: 0.3rem;
    border-radius: 9999px;
    display: inline-flex;
    position: relative;
}

.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #14b8a6;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pricing-toggle-btn {
    position: relative;
    z-index: 2;
    padding: 0.65rem 1.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    transition: color 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.pricing-toggle-btn.active {
    color: #ffffff;
}

/* 8. Immersive Form Input Ripple Focus */
.ripple-focus {
    transition: all 0.3s ease;
}

.ripple-focus:focus {
    border-color: #14b8a6 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: 0 0 0 1px #14b8a6, 0 0 0 4px rgba(20, 184, 166, 0.15) !important;
}

/* Custom styled select chevrons */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.select-wrapper:focus-within::after {
    color: #14b8a6;
}

/* Light select (on white card) */
.select-wrapper.is-light::after {
    color: #64748b;
}
.select-wrapper.is-light:focus-within::after {
    color: #14b8a6;
}

/* ==========================================================================
   PREMIUM EDITORIAL FOOTER OVERRIDES & EFFECTS
   ========================================================================== */

/* Himalayan Night Glow in Footer */
.footer-glow {
    mix-blend-mode: screen;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.15) translate(-10px, -20px); opacity: 0.6; }
}

/* Floating Scroll-to-Top Button */
#scroll-to-top {
    box-shadow: 0 10px 35px -10px rgba(20, 184, 166, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#scroll-to-top::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.3);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

#scroll-to-top:hover {
    box-shadow: 0 15px 45px -8px rgba(20, 184, 166, 0.5),
                0 0 0 1px rgba(20, 184, 166, 0.2);
}

#scroll-to-top:hover::before {
    opacity: 1;
    transform: scale(1.15);
    animation: rippleWave 2s infinite ease-out;
}

@keyframes rippleWave {
    0% { transform: scale(1); opacity: 0.8; border-color: rgba(20, 184, 166, 0.4); }
    100% { transform: scale(1.35); opacity: 0; border-color: rgba(20, 184, 166, 0); }
}

/* Clipboard Toast Popup */
.toast-popup {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #2dd4bf;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transform: translate(-50%, -140%);
    animation: toastFade 1.6s forwards cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
}

@keyframes toastFade {
    0% { opacity: 0; transform: translate(-50%, -100%) scale(0.9); }
    15% { opacity: 1; transform: translate(-50%, -140%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -140%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -160%) scale(0.95); }
}

/* ==========================================================================
   HERO SLIDER VISUAL ADJUSTMENTS
   ========================================================================== */

/* Enhanced Shadow Legibility Over Bright Slides */
.slider-heading {
    text-shadow: 0 4px 30px rgba(4, 38, 26, 0.6) !important;
}

.slider-desc {
    text-shadow: 0 2px 15px rgba(4, 38, 26, 0.5) !important;
}

/* Hero Mouse Wheel Scroll Indicator Animation */
@keyframes scrollWheel {
    0% { opacity: 0; transform: translateY(0); }
    35% { opacity: 1; }
    85% { opacity: 0; transform: translateY(7px); }
    100% { opacity: 0; }
}

.animate-scroll-wheel {
    animation: scrollWheel 2.2s infinite ease-in-out;
}

/* ==========================================================================
   PREMIUM HERO SLIDER ADDITIONS & EDITORIAL ANIMATIONS
   ========================================================================== */

/* Playfair Display Font Utility Class */
.font-editorial-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 600; /* Medium-bold for editorial contrast */
    letter-spacing: -0.01em;
}

/* Automated Slide Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #14b8a6;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.7);
    z-index: 30;
    width: 0;
}

.slider-slide.active .slide-progress {
    animation: slideProgressAnim 6s linear forwards;
}

/* Pause progress bar animation on hover */
#hero-slider:hover .slider-slide.active .slide-progress {
    animation-play-state: paused;
}

@keyframes slideProgressAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Drifting glacial-water backdrop glow blobs */
.hero-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 2; /* Sits in front of Ken Burns image but behind content */
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: screen;
    transition: opacity 1.4s ease;
}

.hero-glow-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.45) 0%, rgba(45, 212, 191, 0.1) 70%, transparent 100%);
    top: -10%;
    left: 10%;
    animation: driftHero1 22s infinite alternate ease-in-out;
}

.hero-glow-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4) 0%, rgba(45, 212, 191, 0.08) 70%, transparent 100%);
    bottom: -15%;
    right: 5%;
    animation: driftHero2 28s infinite alternate-reverse ease-in-out;
}

@keyframes driftHero1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 10%) scale(1.18); }
    100% { transform: translate(-5%, 5%) scale(0.92); }
}

@keyframes driftHero2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -8%) scale(0.88); }
    100% { transform: translate(6%, -12%) scale(1.22); }
}

/* Elegant slow opacity pulse for the Scroll Indicator */
.animate-pulse-slow {
    animation: pulseSlow 3.2s infinite ease-in-out;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.95; }
}


/* ==========================================================================
   ACCESSIBILITY: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Elegant blurred avatar placeholder with a focus on hover */
.team-avatar-blur {
    filter: blur(20px) brightness(0.92); /* Heavy 50% aesthetic blur */
    transform: scale(1.1); /* Prevent container bleed */
    transition: filter 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.group:hover .team-avatar-blur {
    filter: blur(10px) brightness(1.02); /* Clearer camera focus on hover */
    transform: scale(1.16);
}

/* ==========================================================================
   MOBILE-SPECIFIC HERO & CTA LAYOUT OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 639px) {
    #hero-slider {
        min-height: 520px !important;
    }
    .slider-content {
        padding-bottom: 2rem !important; /* Balanced vertical offset */
    }
    .slider-badge {
        margin-bottom: 0.5rem !important;
    }
    .slider-heading {
        font-size: 1.85rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.2 !important;
    }
    .slider-desc {
        margin-bottom: 1.25rem !important;
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    .slider-cta {
        display: flex !important;
        flex-direction: column !important; /* Stack vertically to prevent clipping */
        align-items: flex-start !important; /* Elegant left alignment */
        gap: 0.75rem !important;
        width: auto !important;
    }
    .fish-btn-wrapper {
        width: auto !important; /* Preserves natural proportional width */
    }
    .premium-fish-btn {
        width: auto !important;
        padding: 0.9rem 2.25rem !important; /* Keep original luxurious padding */
        height: 60px !important; /* Retains beautiful fish vector aspect ratio */
    }
    .slider-btn-secondary {
        width: auto !important;
        padding: 0.875rem 2rem !important;
    }
}

/* ==========================================================================
   WILDERNESS FOOTER STYLES
   ========================================================================== */
.wilderness-footer {
    background-color: #000a07 !important;
    background-image: linear-gradient(180deg, #000a07 0%, #00120d 100%) !important;
    border-top: 1px solid rgba(45, 212, 191, 0.08) !important;
}

/* Toast Notification Popup */
.toast-popup {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #022c22 !important; /* emerald-950 */
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
    z-index: 50 !important;
    pointer-events: none !important;
    animation: toastFadeInOut 1.6s ease-in-out forwards !important;
}

@keyframes toastFadeInOut {
    0% { opacity: 0; transform: translate(-50%, 5px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -5px); }
}

/* ==========================================================================
   CINEMATIC HERO STAGE
   ========================================================================== */

/* The navbar is forced white by an ID rule further up, so the transparent
   state over the homepage hero has to match that specificity to win. */
#main-nav.navbar-transparent {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

#main-nav.navbar-transparent .nav-logo-img {
    filter: brightness(0) invert(1);
}

/* Ghost CTA while the bar floats over the photograph — the teal gradient
   pill returns once the bar goes solid on scroll. */
#main-nav.navbar-transparent .nav-cta {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#main-nav.navbar-transparent .nav-cta:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: none !important;
}

#main-nav .nav-logo-img {
    transition: filter 0.4s ease;
}

/* Editorial accent face for the rotating headline word */
.hero-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Rotating word: fades and lifts instead of typing */
#hero-typed {
    display: inline-block;
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

#hero-typed.is-swapping {
    opacity: 0;
    transform: translateY(-0.18em);
    filter: blur(4px);
}

/* Slide crossfade: opacity transition only. The slow Ken Burns zoom runs as
   one shared animation on every frame so transforms stay in sync and never
   snap when the active slide changes. */
.hero-frame-img {
    transition: opacity 1.8s ease-in-out;
    animation: heroZoom 26s ease-in-out infinite alternate;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-frame-img { animation: none; }
    #hero-typed { transition: none; }
}

/* ==========================================================================
   DETAIL PAGE STICKY SUB-NAV
   ========================================================================== */

/* Horizontal scroll on phones without a visible scrollbar */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Scroll-spy active state (toggled in script.js) */
.subnav-link.active {
    color: #064e3b;
    border-color: #064e3b;
}

/* ==========================================================================
   ITINERARY & RICH TEXT FORMATTING (BULLET POINTS, LISTS, PARAGRAPHS)
   ========================================================================== */
.itinerary-content,
.rich-content {
    color: #475569 !important;
    line-height: 1.75 !important;
    font-size: 0.875rem !important;
}

@media (min-width: 640px) {
    .itinerary-content,
    .rich-content {
        font-size: 0.9375rem !important;
    }
}

.itinerary-content p,
.rich-content p {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.75 !important;
    display: block !important;
}

.itinerary-content p:first-child,
.rich-content p:first-child {
    margin-top: 0 !important;
}

.itinerary-content p:last-child,
.rich-content p:last-child {
    margin-bottom: 0 !important;
}

/* Force bullet points and numbers to show prominently */
.itinerary-content ul,
.rich-content ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.itinerary-content ol,
.rich-content ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 1.5rem !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.itinerary-content li,
.rich-content li {
    display: list-item !important;
    margin-top: 0.375rem !important;
    margin-bottom: 0.375rem !important;
    padding-left: 0.25rem !important;
    line-height: 1.625 !important;
}

.itinerary-content ul > li::marker,
.rich-content ul > li::marker {
    color: #059669 !important; /* Brand secondary emerald */
    font-size: 1.1em !important;
}

.itinerary-content ol > li::marker,
.rich-content ol > li::marker {
    color: #064e3b !important; /* Brand primary emerald */
    font-weight: 700 !important;
}

.itinerary-content strong,
.itinerary-content b,
.rich-content strong,
.rich-content b {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.itinerary-content a,
.rich-content a {
    color: #059669 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.itinerary-content a:hover,
.rich-content a:hover {
    color: #064e3b !important;
}

.itinerary-content blockquote,
.rich-content blockquote {
    border-left: 3px solid #10b981 !important;
    padding-left: 1rem !important;
    font-style: italic !important;
    color: #334155 !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.itinerary-content h1,
.itinerary-content h2,
.itinerary-content h3,
.itinerary-content h4,
.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    color: #064e3b !important;
    font-weight: 800 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
}

.itinerary-content h3,
.rich-content h3 {
    font-size: 1.125rem !important;
}

