/* ═══════════════════════════════════════════════
   custom.css — Janaka Wildlife Jeep Safari
   Extends Tailwind with custom styles
═══════════════════════════════════════════════ */

/* ── Root Variables ── */
:root {
    --forest-dark:  #0a2015;
    --forest:       #143825;
    --forest-mid:   #1d5337;
    --forest-light: #2c774f;
    --earth:        #eab308;
    --earth-light:  #facc15;
    --yellow-btn:   #facc15;
    --yellow-glow:  rgba(250, 204, 21, 0.45);
    --cream:        #f7f4ec;
    --cream-dark:   #e9e3d4;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--forest-dark); }
::-webkit-scrollbar-thumb { background: var(--forest-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--earth); }

/* ── Selection ── */
::selection { background: var(--earth); color: #0a2015; }

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(10, 32, 21, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ── Hero Video & Atmosphere ── */
.hero-video-container {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background-color: #0a2015;
    background-image: url('../images/jeeps/fleet.png');
    background-size: cover;
    background-position: center 60%;
}

.hero-video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(3px);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, 
        rgba(5, 18, 12, 0.35) 0%, 
        rgba(5, 18, 12, 0.15) 35%, 
        rgba(5, 18, 12, 0.25) 70%, 
        rgba(5, 18, 12, 0.55) 100%
    );
    pointer-events: none;
}

.hero-text-shadow {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 4px 28px rgba(0, 0, 0, 0.5);
}

.hero-sub-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* ── Radiant Yellow Hero Buttons ── */
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #eab308 100%);
    color: #091f14;
    font-weight: 800;
    font-size: 0.925rem;
    border-radius: 0.875rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.45);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.7);
    background: linear-gradient(135deg, #fef08a 0%, #fde047 50%, #facc15 100%);
    color: #05130b;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    background: rgba(10, 32, 21, 0.75);
    border: 1.5px solid rgba(250, 204, 21, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fef08a;
    font-weight: 700;
    font-size: 0.925rem;
    border-radius: 0.875rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
.hero-btn-secondary:hover {
    background: rgba(250, 204, 21, 0.2);
    border-color: #fde047;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Section Headings ── */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--earth-light);
    font-weight: 600;
}

/* ── Gold Divider ── */
.gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--earth), var(--earth-light));
    border-radius: 2px;
}

/* ── Cards ── */
.card-safari {
    background: rgba(26, 58, 42, 0.6);
    border: 1px solid rgba(45, 90, 61, 0.4);
    backdrop-filter: blur(8px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-safari:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-color: rgba(139, 105, 20, 0.5);
}

/* ── Image Hover Zoom ── */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.6s ease;
}
.img-zoom:hover img {
    transform: scale(1.08);
}

/* ── Fade-in on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stagger children ── */
.stagger > * { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0.0s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 0.3s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 0.4s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 0.5s; }

/* ── Radiant Yellow Button ── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #eab308 100%);
    color: #091f14 !important;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.45);
}
.btn-gold:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.65);
    background: linear-gradient(135deg, #fef08a 0%, #fde047 50%, #facc15 100%);
    color: #05130b !important;
}

/* ── Outline Button ── */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: 1.5px solid rgba(245,240,232,0.5);
    color: var(--cream);
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover {
    background: rgba(245,240,232,0.1);
    border-color: var(--earth-light);
    color: var(--earth-light);
}

/* ── Stars Rating ── */
.star-filled { color: #f59e0b; }

/* ── Testimonial Carousel ── */
.testimonial-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Gallery Grid ── */
.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.1); }

/* ── Blurred Background Card (Full Image Display) ── */
.blur-card {
    position: relative;
    overflow: hidden;
    background: #0d1f16;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}
.blur-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) brightness(0.45);
    transform: scale(1.15);
    pointer-events: none;
}
.blur-card-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}
.blur-card:hover .blur-card-img {
    transform: scale(1.04);
}

/* ── Lightbox ── */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#lightbox.active {
    opacity: 1;
    pointer-events: all;
}
#lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
#lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}
#lightbox-close:hover { background: var(--earth); }
#lightbox-prev, #lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}
#lightbox-prev:hover, #lightbox-next:hover { background: var(--earth); }
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }

/* ── Booking Modal ── */
#booking-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#booking-modal.active {
    opacity: 1;
    pointer-events: all;
}
#booking-modal-content {
    background: var(--forest);
    border: 1px solid rgba(45, 90, 61, 0.5);
    border-radius: 1rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 80px rgba(0,0,0,0.7);
}

/* ── Tab System ── */
.tab-btn { transition: all 0.2s; }
.tab-btn.active {
    background: var(--earth);
    color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Park Cards (Glassmorphism) ── */
/* ── Destination Park Cards (Clean Vertical Luxury Layout) ── */
.park-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #143323;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.park-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    border-color: rgba(196, 154, 32, 0.5);
}
.park-card-img-wrap {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.park-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.park-card:hover .park-card-img-wrap img {
    transform: scale(1.08);
}
.park-card-body {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, #163828 0%, #102a1e 100%);
}

/* ── Light Card Variants for Bright Sections ── */
.card-light {
    background: #ffffff;
    border: 1px solid #e8e2d4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-light:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border-color: #c49a20;
}

/* ── Auto Sliding Flags Marquee ── */
.flag-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.flag-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: flagMarqueeScroll 40s linear infinite;
    will-change: transform;
}

.flag-marquee-container:hover .flag-marquee-track {
    animation-play-state: paused;
}

@keyframes flagMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.flag-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.15rem;
    background: rgba(29, 83, 55, 0.3);
    border: 1px solid rgba(44, 119, 79, 0.4);
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: default;
}

.flag-card-pill:hover {
    background: rgba(29, 83, 55, 0.6);
    border-color: rgba(250, 204, 21, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* ── Fleet Card ── */
.fleet-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(26, 58, 42, 0.5);
    border: 1px solid rgba(45, 90, 61, 0.35);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.fleet-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 105, 20, 0.5);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.fleet-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: rgba(13, 31, 22, 0.7);
    border: 1px solid rgba(45, 90, 61, 0.4);
    border-radius: 9999px;
    font-size: 0.7rem;
    color: rgba(245, 240, 232, 0.8);
}

/* ── Booking Form ── */
.form-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(13, 31, 22, 0.6);
    border: 1px solid rgba(45, 90, 61, 0.5);
    border-radius: 0.5rem;
    color: var(--cream);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-field:focus {
    border-color: var(--earth);
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.2);
}
.form-field::placeholder { color: rgba(245, 240, 232, 0.35); }
.form-field option { background: var(--forest); color: var(--cream); }

/* ── Map Embed ── */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
}
.map-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Smooth Transitions for Page Load ── */
body {
    opacity: 0;
    animation: bodyFadeIn 0.5s ease 0.1s forwards;
}
@keyframes bodyFadeIn {
    to { opacity: 1; }
}

/* ── Responsive Video Hero ── */
@media (max-width: 768px) {
    .hero-video-container {
        min-height: 100svh;
        background-image: url('../images/hero/hero.jpeg');
        background-position: center center;
    }
    .hero-video-desktop { display: none !important; }
    .hero-video-mobile  { display: block !important; }
}
@media (min-width: 769px) {
    .hero-video-desktop { display: block !important; }
    .hero-video-mobile  { display: none !important; }
}
