/* Root Design Variables */
:root {
    --primary-green: #386628;
    --dark-green: #294c1d;
    --light-bg-green: #f2f7ef;
    --accent-green: #4ca12b;
    --text-dark: #1b2618;
    --text-muted: #5c6b57;
    --card-bg: #ffffff;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ==============================
   PRELOADER
   ============================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b3a12 0%, #294c1d 50%, #1b3a12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo-img {
    max-height: 80px;
    object-fit: contain;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    margin-bottom: 30px;
}

.preloader-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #4ca12b;
    border-radius: 50%;
    animation: spinRing 1s linear infinite;
}

.preloader-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    animation: preloaderFadeText 2s ease-in-out infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* ==============================
    LOGO CIRCLE BACKGROUND
    ============================== */
.log-circle {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.preloader-logo-img.log-circle {
    max-height: 64px;
    margin-bottom: 0;
}


/* ==============================
   ELEMENT ENTRY ANIMATIONS
   ============================== */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.in-view {
    opacity: 1;
    transform: scale(1);
}

.animate-fade {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.animate-fade.in-view {
    opacity: 1;
}

/* Staggered delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==============================
   CUSTOM BUTTONS
   ============================== */
.btn-dark-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-dark-green:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 76, 29, 0.3);
}

.btn-newsletter {
    background-color: #497837;
    border-color: #497837;
}

.btn-newsletter:hover {
    background-color: var(--primary-green);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100vh;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-img.jpeg'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
    background: rgba(10, 29, 15, 0.50);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 720px;
    padding-top: 76px;
    padding-bottom: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.min-vh-75 { min-height: 540px; }

.hero-copy {
    color: #fff;
    max-width: 720px;
}

.hero-copy .hero-badge {
    padding: 0.55rem 0.9rem;
    color: #ebf8e4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(9px);
}

.hero-copy .pulse-green { width: 8px; height: 8px; }

.hero-copy .hero-title {
    color: #fff;
    font-size: clamp(2.7rem, 5.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy .hero-title span { color: #a9df7e; }

.hero-description {
    max-width: 570px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-primary-btn {
    color: #17301c;
    background: #b4e88b;
    border: 1px solid #b4e88b;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.hero-primary-btn:hover { color: #fff; background: var(--accent-green); border-color: var(--accent-green); }

.hero-secondary-btn { color: #fff; border: 1px solid rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.08); }
.hero-secondary-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.2); border-color: #fff; }

/* Hero booking panel */
.hero-booking-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.hero-booking-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--primary-green);
}

.hero-booking-tabs button {
    position: relative;
    padding: 1.12rem 0.6rem;
    color: #fff;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: transparent;
    border: 0;
}

.hero-booking-tabs button.active { color: var(--primary-green); background: #fff; }
.hero-booking-tabs button.active::after { content: ''; position: absolute; right: 17%; bottom: 3px; left: 17%; height: 3px; background: #9fda75; border-radius: 6px; }

.hero-booking-body { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(205px, 1fr); padding: 1.25rem 1.5rem; }
.hero-vehicle-picker { min-width: 0; padding-right: 1.4rem; border-right: 1px solid #dfe4ec; }
.hero-booking-label { display: block; margin-bottom: 0.65rem; color: #647184; font-size: 0.83rem; font-weight: 700; }
.hero-vehicle-options { display: flex; gap: 0.65rem; overflow-x: auto; padding: 1px 1px 5px; }
.hero-vehicle { flex: 0 0 76px; padding: 0.48rem 0.35rem; color: #536077; text-align: center; text-transform: uppercase; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.02em; background: #f0f3f8; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.hero-vehicle input { position: absolute; opacity: 0; pointer-events: none; }
.hero-vehicle img { display: block; width: 100%; height: 35px; margin-bottom: 0.28rem; object-fit: cover; border-radius: 4px; }
.hero-vehicle.active { color: #fff; background: var(--primary-green); box-shadow: 0 5px 12px rgba(23, 34, 62, 0.2); }
.hero-vehicle.active img { background: #fff; }
.hero-vehicle-summary { padding-left: 1.45rem; color: #485264; font-size: 0.8rem; }
.hero-vehicle-summary strong { display: block; margin: -0.4rem 0 0.5rem; color: var(--primary-green); font-size: 1.15rem; line-height: 1.05; }
.hero-vehicle-summary div { display: inline-flex; align-items: center; gap: 0.35rem; width: 49%; margin-top: 0.35rem; }
.hero-vehicle-summary i { color: #6f7885; }

.hero-booking-fields { display: grid; grid-template-columns: 1.15fr auto 1.15fr 1fr auto; gap: 0.6rem; align-items: center; padding: 0 1.5rem 1.5rem; }
.hero-booking-fields label { display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding: 0.8rem 0.85rem; color: #6b7482; background: #f4f6f9; border-radius: 9px; }
.hero-booking-fields label i { color: #596372; }
.hero-booking-fields input { width: 100%; min-width: 0; color: #263149; font: inherit; font-size: 0.78rem; font-weight: 600; background: transparent; border: 0; outline: 0; }
.hero-booking-fields input::placeholder { color: #97a4b8; }
.hero-route-arrow { color: #596372; }
.hero-book-button { align-self: stretch; padding: 0 1.25rem; color: #fff; font: inherit; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; background: var(--primary-green); border: 0; border-radius: 9px; }
.hero-book-button:hover { background: var(--dark-green); }

.hero-badge {
    box-shadow: 0 4px 15px rgba(56, 102, 40, 0.15);
}

.pulse-green {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(76, 161, 43, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(76, 161, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 161, 43, 0); }
}

/* ==============================
   REQUEST FORM
   ============================== */
.request-form-card {
    background-color: var(--dark-green);
}

/* ==============================
   CARDS
   ============================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

.card-icon-badge {
    box-shadow: 0 4px 10px rgba(56, 102, 40, 0.2);
}

/* ==============================
   FOOTER
   ============================== */
.footer-section {
    background-color: var(--dark-green);
}

/* ==============================
   UTILITIES
   ============================== */
.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.tracking-wider { letter-spacing: 1px; }

/* ==============================
   NAVBAR ACTIVE HIGHLIGHT
   ============================== */
.navbar .nav-link:hover {
    color: var(--primary-green) !important;
}

/* ==============================
   SCROLL TO TOP BUTTON
   ============================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-green);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(41, 76, 29, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-section,
    .hero-content {
        min-height: 680px;
    }

    .hero-content { padding-top: 58px; }
    .min-vh-75 { min-height: 475px; }

    .hero-booking-body { grid-template-columns: 1fr; gap: 1rem; }
    .hero-vehicle-picker { padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid #dfe4ec; }
    .hero-vehicle-summary { padding-left: 0; }
    .hero-booking-fields { grid-template-columns: 1fr auto 1fr; }
    .hero-datetime { grid-column: 1 / 3; }
    .hero-book-button { min-height: 48px; }
}

@media (max-width: 575.98px) {
    .hero-section,
    .hero-content { min-height: 700px; }

    .hero-content { padding-top: 44px; padding-bottom: 18px; }
    .min-vh-75 { min-height: 500px; }
    .hero-copy .hero-badge { font-size: 0.62rem; letter-spacing: 0.04em; }
    .hero-description { font-size: 0.96rem; }

    .hero-booking-tabs button { padding: 0.8rem 0.18rem; font-size: 0.56rem; }
    .hero-booking-body { padding: 1rem; }
    .hero-vehicle { flex-basis: 68px; }
    .hero-booking-fields { grid-template-columns: 1fr; padding: 0 1rem 1rem; }
    .hero-route-arrow { display: none; }
    .hero-datetime { grid-column: auto; }
    .hero-book-button { padding: 0.95rem; }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px; /* Placed on the bottom-left corner */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    color: white;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp i {
    margin-top: 1px;
}
