/* ==========================================================================
   Shri Balaji Travels — Complete site.css (single-file replacement)
   - Full-width hero, booking card, car animation
   - About section, services, vehicles, testimonials
   - Dark mode via `body.theme-dark`
   - Built to work with Bootstrap grid (no Bootstrap CSS included)
   ========================================================================== */

/* ---------------- Core variables ---------------- */
:root {
    --bg-100: #f8fafc;
    --bg-200: #eef9f9;
    --surface: #ffffff;
    --brand: #0f766e;
    --brand-2: #06b6a4;
    --accent: #f59e0b;
    --muted: #6b7280;
    --text-strong: #071827;
    --glass: rgba(255,255,255,0.72);
    --shadow-weak: rgba(15,23,42,0.04);
    --shadow-mid: rgba(2,6,23,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --max-content-width: 1200px;
    --anim-fast: 180ms;
    --anim-md: 350ms;
    --anim-slow: 12s;
}

/* Dark theme */
body.theme-dark {
    --bg-100: #071827;
    --bg-200: #042028;
    --surface: rgba(6,10,15,0.72);
    --brand: #06b6a4;
    --brand-2: #0f766e;
    --muted: #9ca3af;
    --text-strong: #e6f7f5;
    --glass: rgba(5,8,12,0.5);
    --shadow-weak: rgba(0,0,0,0.32);
    --shadow-mid: rgba(0,0,0,0.6);
}

/* ---------------- Reset & base ---------------- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: var(--text-strong);
    background: linear-gradient(180deg,var(--bg-100) 0%,var(--bg-200) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    transition: background .30s ease, color .25s ease;
}

/* prevent horizontal overflow */
html, body {
    overflow-x: hidden;
}

/* respects reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* utilities */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 18px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.text-cta {
    color: var(--brand);
}

.small {
    font-size: .85rem;
    color: var(--muted);
}

.mt-3 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

/* link reset */
a {
    color: inherit;
    text-decoration: none;
}

/* ---------------- Hero: full bleed ----------------
   Trick: hero uses full-viewport width while keeping inner content centered.
   -------------------------------------------------- */
.hero-full-2 {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 90vh;
    overflow: hidden;
    display: block;
    color: #fff;
    background-color: var(--bg-100);
}

/* background image */
.hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('/images/hero-fullwidth.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    filter: brightness(0.78) contrast(1.05) saturate(1.02);
    z-index: 1;
}

/* dark overlay + sheen */
.hero-full-2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,10,18,0.66) 0%, rgba(3,10,18,0.44) 45%, rgba(3,10,18,0.12) 100%);
    z-index: 2;
}

.hero-full-2::after {
    content: "";
    position: absolute;
    inset: -30% -40%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 48%, rgba(255,255,255,0) 100%);
    opacity: .8;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
    animation: hero-shimmer var(--anim-slow) linear infinite;
}

@keyframes hero-shimmer {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(10%);
    }

    100% {
        transform: translateX(110%);
    }
}

/* hero content wrapper */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 56px 18px;
    box-sizing: border-box;
}

    .hero-content .row {
        max-width: var(--max-content-width);
        margin: 0 auto;
        align-items: center;
    }

/* hero headline */
.hero-heading {
    font-weight: 800;
    font-size: clamp(1.9rem,4vw,3.6rem);
    line-height: 1.02;
    margin: 0 0 .6rem;
    text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.hero-content .lead {
    color: rgba(255,255,255,0.92);
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

/* theme toggle top-right */
.theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    width: 46px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

    .theme-toggle .dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: linear-gradient(90deg,var(--brand),var(--brand-2));
        transition: transform .22s ease;
    }

    .theme-toggle.active .dot {
        transform: translateX(18px);
    }

/* badges */
.hero-content .badge {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: .36rem .6rem;
    border-radius: 8px;
    font-weight: 600;
}

.badge.pulse {
    animation: badge-pulse 4s ease-in-out infinite;
    opacity: .98;
}

@keyframes badge-pulse {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ---------------- Car foreground (animated) ----------------
   Decorative car with float animation — visible on desktop, hidden on mobile.
   -------------------------------------------------------------------- */
.car-foreground {
    position: absolute !important;
    z-index: 120;
    right: clamp(10px, 3.5vw, 4.5%);
    bottom: 0;
    width: clamp(240px, 32vw, 520px);
    max-width: 44%;
    min-width: 200px;
    transform-origin: center bottom;
    filter: drop-shadow(0 26px 48px rgba(0,0,0,0.45));
    transition: right .35s ease, width .35s ease, transform .35s ease;
    pointer-events: none;
}

@media (min-width:1200px) {
    .car-foreground {
        animation: carFloat 6s ease-in-out infinite;
    }
}

@keyframes carFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width:991.98px) {
    .car-foreground {
        display: none !important;
    }
}

/* ---------------- Booking card — compact + top-right absolute variant ----------------
   Behavior:
   - Desktop (>=992px): position absolute in hero, top-right (above car by z-index)
   - Mobile: revert to normal flow, full-width
   -------------------------------------------------------------------- */
.booking-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.94));
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 44px rgba(2,6,23,0.12);
    padding: .9rem;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: visible;
}

    /* compact form controls */
    .booking-card .form-control, .booking-card .form-select {
        border-radius: 8px;
        padding: .5rem .6rem;
        font-size: .95rem;
        border: 1px solid rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.98);
        box-sizing: border-box;
    }

/* Desktop absolute placement: top-right and above car */
@media (min-width:992px) {
    .hero-content {
        position: relative;
        padding-right: clamp(240px, 34vw, 30%);
    }

        .hero-content .col-lg-5 {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

    .booking-card {
        position: absolute !important;
        top: 6% !important;
        right: clamp(18px, 4.5vw, 6%) !important;
        width: 460px !important; /* tweak: 380/420/460 as desired */
        max-width: 42vw;
        padding: .75rem .9rem !important;
        border-radius: 14px;
        z-index: 160 !important; /* above car */
        box-shadow: 0 26px 60px rgba(2,6,23,0.20);
        overflow: hidden;
        transform: translateZ(0);
    }

        .booking-card .form-label.small {
            font-size: .68rem;
            margin-bottom: .18rem;
            color: rgba(15,23,42,0.65);
        }

        .booking-card .form-control, .booking-card .form-select {
            padding: .42rem .6rem;
            font-size: .92rem;
            border-radius: 8px;
        }

        .booking-card .d-flex.gap-2 {
            display: flex;
            gap: .5rem;
        }

        .booking-card .btn {
            padding: .46rem .7rem;
            font-size: .92rem;
            border-radius: 8px;
        }

        .booking-card form, .booking-card .card-body {
            max-height: calc(70vh - 80px);
            overflow-y: auto;
            padding-right: 8px;
        }

        /* ensure small fields stack for compactness */
        .booking-card .col-6, .booking-card .col-md-6 {
            width: 100% !important;
            flex: 0 0 100% !important;
            max-width: 100% !important;
            display: block !important;
        }
}

/* Mobile: full width, no absolute */
@media (max-width:991.98px) {
    .booking-card {
        position: relative !important;
        width: 100% !important;
        margin-top: 16px !important;
        padding: .85rem !important;
        z-index: 80 !important;
    }

    .hero-content {
        text-align: center;
        padding: 32px 16px;
    }

    .car-foreground {
        display: none !important;
    }
}

/* ensure controls don't overflow */
.booking-card .form-control, .booking-card .form-select, .booking-card .btn {
    min-width: 0;
    box-sizing: border-box;
}

/* reduced gaps */
.booking-card .row.g-2 {
    gap: .45rem;
}

.booking-card .form-label.small {
    font-size: .7rem;
    margin-bottom: .22rem;
}

/* fare result */
#fareResult {
    font-size: .88rem;
    margin-top: .35rem;
    color: rgba(255,255,255,0.92);
    display: block;
}

/* CTA */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg,var(--brand),var(--brand-2));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-weight: 700;
    transition: all .2s ease;
    box-shadow: 0 10px 30px rgba(15,118,110,0.18);
}

    .btn-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(15,118,110,0.22);
    }

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    background: transparent;
    padding: .6rem .9rem;
    border-radius: 8px;
}

/* ---------------- Services / Vehicles / Testimonials ---------------- */
.service-card, .vehicle-card {
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.04);
    background: var(--surface);
    transition: transform var(--anim-md), box-shadow var(--anim-md);
}

    .service-card:hover, .vehicle-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 24px 50px rgba(2,6,23,0.10);
    }

.vehicle-img-wrap {
    height: 210px;
    overflow: hidden;
    background: #f3f4f6;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.vehicle-card:hover .vehicle-img {
    transform: scale(1.08);
}

@media (max-width:767.98px) {
    .vehicle-img-wrap {
        height: 180px
    }
}

/* small helper for service icons */
.service-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* testimonials card */
.card.p-3 {
    border-radius: 12px;
}

/* ---------------- About Section & Stat cards ---------------- */
.about-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.96));
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.04);
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
    padding: 1rem;
}

    .about-card h3 {
        font-size: 1.45rem;
        margin-bottom: .25rem;
        color: var(--text-strong);
    }

    .about-card .lead {
        margin-bottom: .65rem;
        color: var(--muted);
    }

.about-features li {
    margin-bottom: .45rem;
    color: var(--text-strong);
    font-weight: 600;
}

.about-features strong {
    color: var(--brand);
    margin-right: .5rem;
}

.stat-card {
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.04);
    background: var(--surface);
    box-shadow: 0 10px 22px rgba(2,6,23,0.06);
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: .2rem;
}

.stat-label {
    color: var(--muted);
}

/* ---------------- Focus / Accessibility ---------------- */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 5px rgba(6,182,164,0.06);
    border-color: rgba(6,182,164,0.28);
}

body.theme-dark input:focus, body.theme-dark select:focus {
    box-shadow: 0 0 0 5px rgba(6,182,164,0.08);
}

/* ---------------- Small responsive tweaks ---------------- */
@media (max-width:991.98px) {
    .hero-heading {
        font-size: clamp(1.4rem,6vw,2rem);
    }

    .hero-content .lead {
        font-size: .98rem;
    }

    .theme-toggle {
        right: 12px;
        top: 12px;
    }
}

/* reduce motion users */
@media (prefers-reduced-motion: reduce) {
    .car-foreground, .badge.pulse, .hero-full-2::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------------- Dark mode subtle adjustments ---------------- */
body.theme-dark .booking-card {
    background: linear-gradient(180deg, rgba(8,12,16,0.78), rgba(10,14,18,0.6));
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-strong);
}

body.theme-dark .about-card {
    background: linear-gradient(180deg, rgba(12,16,20,0.6), rgba(8,12,14,0.5));
    border: 1px solid rgba(255,255,255,0.03);
}

/* ---------------- Small helpers for consistent look ---------------- */
.btn-outline-primary {
    border: 1px solid rgba(15,23,42,0.06);
    color: var(--brand);
    background: transparent;
    padding: .6rem .9rem;
    border-radius: 8px;
}

.card {
    background: var(--surface);
    border-radius: 12px;
}

/* End of site.css */
/* ===== Full-Width Hero Section ===== */

.hero-section-full {
    min-height: 100vh;
    background-color: #071827;
    position: relative;
    color: #fff;
}

    /* Full background image */
    .hero-section-full .hero-bg {
        background: url('/images/hero-fullwidth.jpg') center/cover no-repeat;
        filter: brightness(0.75) contrast(1.1);
        z-index: 1;
    }

    .hero-section-full::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.2));
        z-index: 2;
    }

    .hero-section-full > * {
        position: relative;
        z-index: 3;
    }

/* Booking Card */
.booking-card {
    border-radius: 16px;
    background: #fff;
    color: #071827;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

    .booking-card:hover {
        transform: translateY(-3px);
    }

    .booking-card .form-control,
    .booking-card .form-select {
        border-radius: 8px;
        border: 1px solid rgba(0,0,0,0.1);
        background: #fafafa;
        height: 44px;
    }

        .booking-card .form-control:focus,
        .booking-card .form-select:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
        }

/* Car Animation */
.car-img {
    width: clamp(280px, 34vw, 520px);
    z-index: 4;
    filter: drop-shadow(0 22px 44px rgba(0,0,0,0.45));
    animation: carFloat 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes carFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section-full {
        text-align: center;
        padding-bottom: 2rem;
    }

    .car-img {
        display: none;
    }

    .booking-card {
        margin-top: 1rem;
    }
}
/* Trip tabs styling (small pill tabs above booking form) */
.trip-tabs {
    gap: .5rem;
}

    .trip-tabs .tab-btn {
        background: rgba(255,255,255,0.06);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.08);
        padding: .35rem .9rem;
        border-radius: 999px;
        font-weight: 700;
    }

        .trip-tabs .tab-btn.active {
            background: linear-gradient(90deg,#ff8a00,#ff6a00); /* orange active */
            color: #fff;
            box-shadow: 0 8px 24px rgba(255,106,0,0.16);
            border-color: rgba(255,255,255,0.08);
        }

/* dark text for inputs when card is white (no change needed) */
.booking-card .tab-btn {
    color: #071827;
}
/* if booking-card is white background */

/* ensure hidden class used is .d-none (bootstrap) but style the wrapper */
#returnDateWrap {
    transition: all .18s ease;
}
/* ===========================================================
   FULL-WIDTH HERO + BOOKING FORM (Shri Balaji Travels)
   Version: Final — full-width centered hero form
   =========================================================== */

.hero-section-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 90vh;
    background-color: #071827;
    color: #fff;
    overflow: hidden;
}

    /* Background */
    .hero-section-full .hero-bg {
        position: absolute;
        inset: 0;
        background: url('/images/hero-fullwidth.jpg') center/cover no-repeat;
        filter: brightness(0.75) contrast(1.1);
        z-index: 1;
    }

    .hero-section-full::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(3,10,18,0.66) 0%, rgba(3,10,18,0.44) 45%, rgba(3,10,18,0.12) 100%);
        z-index: 2;
    }

    .hero-section-full > * {
        position: relative;
        z-index: 3;
    }

/* Hero Content */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Headline + Text */
.hero-heading {
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: .6rem;
    text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.hero-content .lead {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.hero-content .badge {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: .36rem .6rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Decorative Car (desktop only) */
.car-img {
    position: absolute;
    bottom: 0;
    right: clamp(10px, 4vw, 5%);
    width: clamp(260px, 34vw, 500px);
    z-index: 4;
    filter: drop-shadow(0 22px 44px rgba(0,0,0,0.45));
    animation: carFloat 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes carFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 991.98px) {
    .car-img {
        display: none;
    }
}

/* ---------------- FULL-WIDTH BOOKING CARD ---------------- */
.booking-card {
    background: #ffffff;
    color: #071827;
    border-radius: 14px;
    box-shadow: 0 22px 48px rgba(2,6,23,0.18);
    transition: all 0.3s ease;
    overflow: visible;
    width: 100%;
    padding: 1.25rem 1.5rem;
}

    .booking-card:hover {
        transform: translateY(-3px);
    }

    /* Form Inputs */
    .booking-card .form-control,
    .booking-card .form-select {
        border-radius: 8px;
        border: 1px solid rgba(0,0,0,0.08);
        background: #fafafa;
        padding: .52rem .65rem;
        height: 44px;
        font-size: .95rem;
        box-sizing: border-box;
    }

        .booking-card .form-control:focus,
        .booking-card .form-select:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
        }

    /* Form Labels */
    .booking-card .form-label.small {
        font-size: .75rem;
        color: rgba(15,23,42,0.7);
        margin-bottom: .3rem;
    }

/* Tabs (One Way / Round Trip) */
.trip-tabs {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
}

    .trip-tabs .tab-btn {
        background: rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.08);
        color: #333;
        border-radius: 999px;
        font-weight: 600;
        padding: .35rem 1rem;
        transition: 0.2s;
    }

        .trip-tabs .tab-btn.active {
            background: linear-gradient(90deg,#ff8a00,#ff6a00);
            color: #fff;
            box-shadow: 0 4px 20px rgba(255,106,0,0.3);
            border-color: transparent;
        }

/* Booking Card Buttons */
.booking-card .btn-primary {
    background: linear-gradient(90deg,#0f766e,#06b6a4);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all .2s ease;
}

    .booking-card .btn-primary:hover {
        filter: brightness(1.1);
    }

.booking-card .btn-outline-secondary {
    border-radius: 8px;
    font-weight: 600;
}

/* Remove Scroll */
.booking-card form {
    overflow: visible !important;
    max-height: none !important;
    padding-right: 0 !important;
}

/* Responsive Grid */
.booking-card .row > .col-md-6,
.booking-card .row > .col-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .booking-card .row > .col-md-6,
    .booking-card .row > .col-6 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Full-width centered layout (desktop) */
@media (min-width: 992px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .booking-card {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Mobile View */
@media (max-width: 991.98px) {
    .hero-section-full {
        text-align: center;
        padding-bottom: 2rem;
    }

    .booking-card {
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
    }

    .hero-content {
        padding: 40px 18px;
    }
}

/* Smooth Return Date Show/Hide */
#returnDateWrap {
    transition: all 0.18s ease;
    will-change: opacity, height;
}
