﻿/* ---- CSS Variables ---- */
/*:root {
    --primary: #0057FF;
    --primary-dark: #0041CC;
    --primary-light: #E8F0FF;
    --accent: #FF6B2B;
    --text-dark: #0D1B3E;
    --text-muted: #6B7B9A;
    --bg-light: #F5F7FA;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,87,255,.08);
    --shadow-md: 0 8px 32px rgba(0,87,255,.12);
    --radius: 16px;
    --radius-sm: 10px;
}*/

/* ---- Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---- Top Bar ---- */
#topbar {
    background: var(--primary);
    color: var(--white);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 8px 0;
}

    #topbar a {
        color: var(--white);
        opacity: .9;
        transition: opacity .2s;
    }

        #topbar a:hover {
            opacity: 1;
        }

.topbar-badge {
    background: rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 3px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.02em;
}

    .navbar-brand-text span {
        color: var(--accent);
    }

.nav-link {
    font-weight: 500;
    font-size: .92rem;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
}

    .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary) !important;
    }

.btn-nav-signin {
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
    border-radius: 50px !important;
    padding: 7px 22px !important;
    font-weight: 600 !important;
    transition: all .2s;
}

    .btn-nav-signin:hover {
        background: var(--primary);
        color: var(--white) !important;
    }

.btn-nav-register {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 7px 22px !important;
    font-weight: 600 !important;
    transition: background .2s, transform .15s;
}

    .btn-nav-register:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

/* ---- Hero ---- */
#hero {
    min-height: 54vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #001A6E 0%, #0057FF 55%, #1A8CFF 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

    /* Decorative blobs */
    #hero::before {
        content: '';
        position: absolute;
        width: 700px;
        height: 700px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
        top: -200px;
        right: -150px;
        pointer-events: none;
    }

    #hero::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,107,43,.12) 0%, transparent 70%);
        bottom: -100px;
        left: -100px;
        pointer-events: none;
    }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 24px;
}

.hero-title {
    color: var(--white);
    margin-bottom: 16px;
}

.hero-subtitle {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Route cards inside hero */
.route-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--white);
    transition: background .3s;
}

    .route-card:hover {
        background: rgba(255,255,255,.18);
    }

.route-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
    font-weight: 600;
}

.route-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 4px 0;
}

.route-time {
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

.route-arrow {
    font-size: 1.4rem;
    color: var(--accent);
    align-self: center;
}

.btn-book-hero {
    background: var(--white);
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    transition: transform .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-book-hero:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 40px rgba(0,0,0,.25);
        color: var(--primary-dark);
    }

/* Hero illustration side */
.hero-visual {
    position: relative;
}

.bus-illustration {
    width: 100%;
    max-width: 520px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.3));
}

/* Floating stats */
.hero-stat-pill {
    position: absolute;
    background: var(--white);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hero-stat-pill .pill-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .85rem;
    }

.stat-pill-1 {
    top: 10%;
    right: -10px;
}

.stat-pill-2 {
    bottom: 22%;
    left: -20px;
}

/* ---- Section Common ---- */
.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

section {
    padding: 90px 0;
}

/* ---- Trust Section ---- */
#trust {
    background: var(--bg-light);
}

.trust-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: box-shadow .3s, transform .3s;
    height: 100%;
}

    .trust-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-5px);
    }

.trust-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.trust-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.trust-card p {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

/* ---- Why Choose Us ---- */
#why {
    background: var(--white);
}

.why-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all .3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .why-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), #1A8CFF);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s;
    }

    .why-card:hover::before {
        transform: scaleX(1);
    }

    .why-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
        border-color: var(--primary-light);
    }

.why-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.why-card p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Bus Type Section ---- */
#bustype {
    background: var(--bg-light);
}

.bus-type-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.bus-image-wrap {
    background: linear-gradient(135deg, #0057FF 0%, #001A6E 100%);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* SVG bus illustration placeholder */
.bus-svg-placeholder {
    width: 100%;
    height: 100%;
}

.bus-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 5px 12px;
    border-radius: 50px;
}

.bus-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    margin: 4px;
}

/* ---- Route Banner ---- */
#routes {
    background: linear-gradient(135deg, #0041CC 0%, #0057FF 100%);
    padding: 60px 0;
}

.route-info-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    padding: 28px;
    color: white;
    text-align: center;
}

    .route-info-card .dep-time {
        font-size: 2rem;
        font-weight: 800;
        color: var(--white);
    }

    .route-info-card .route-cities {
        font-size: 1rem;
        font-weight: 600;
        color: rgba(255,255,255,.85);
        margin: 4px 0;
    }

.route-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.5);
    font-size: .8rem;
}

    .route-divider::before,
    .route-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,.2);
    }

/* ---- Footer ---- */
footer {
    background: var(--text-dark);
    color: rgba(255,255,255,.75);
    padding: 64px 0 32px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
}

    .footer-brand span {
        color: var(--accent);
    }

.footer-tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin-top: 8px;
}

.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    color: rgba(255,255,255,.65);
    font-size: .88rem;
    margin-bottom: 10px;
    transition: color .2s;
}

    .footer-link:hover {
        color: var(--white);
    }

.footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 40px 0 24px;
}

.footer-bottom {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    margin-right: 8px;
    transition: all .2s;
}

    .social-icon:hover {
        background: var(--primary);
        color: var(--white);
    }

/* Address block */
.footer-address {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    line-height: 1.8;
}

/* ---- Utilities ---- */
.badge-new {
    background: rgba(255,107,43,.15);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255,107,43,.3);
}

/* ---- Hero Amenity Pills ---- */
.hero-amenities {
    margin-top: 20px;
}

.amenity-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50px;
    padding: 8px 16px;
    color: rgba(255,255,255,.95);
    font-size: .82rem;
    font-weight: 600;
    transition: background .25s, transform .2s;
    cursor: default;
}

    .amenity-pill:hover {
        background: rgba(255,255,255,.22);
        transform: translateY(-2px);
    }

.amenity-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 12px;
}

.gallery-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-slot {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--primary-light);
    cursor: pointer;
}

.gallery-main .gallery-img-wrap {
    min-height: 372px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.gallery-img-wrap:hover .gallery-img {
    transform: scale(1.06);
}

/* Placeholder shown when image missing */
.gallery-placeholder {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.gallery-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .gallery-placeholder-inner i {
        font-size: 2rem;
        color: var(--primary);
        opacity: .5;
    }

    .gallery-placeholder-inner span {
        font-size: .82rem;
        font-weight: 700;
        color: var(--primary);
        opacity: .7;
    }

    .gallery-placeholder-inner small {
        font-size: .65rem;
        color: var(--text-muted);
        font-family: monospace;
        background: rgba(0,87,255,.07);
        padding: 2px 8px;
        border-radius: 4px;
    }

/* Hover overlay with zoom button */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,23,87,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
    border-radius: var(--radius-sm);
}

.gallery-img-wrap:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

    .gallery-zoom-btn:hover {
        transform: scale(1.12);
    }

/* Caption ribbon */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
    color: white;
    font-size: .75rem;
    font-weight: 700;
    padding: 20px 12px 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    pointer-events: none;
}

/* Upload hint bar */
.gallery-upload-hint {
    background: #FFFBEB;
    border: 1px dashed #F59E0B;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: .8rem;
    color: #92400E;
    text-align: center;
}

    .gallery-upload-hint code {
        background: rgba(245,158,11,.15);
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 700;
    }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .gallery-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

        .gallery-main .gallery-img-wrap {
            min-height: 220px;
        }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    #hero {
        min-height: auto;
        padding: 90px 0 50px;
    }

    /*    .hero-visual {
        height: 350px;
    }*/


    .stat-pill-1, .stat-pill-2 {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

        .gallery-main .gallery-img-wrap {
            min-height: 200px;
        }

    .gallery-img-wrap {
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

.hero-visual img {
    width: 100%;
    max-width: 720px;
    height: 380px;
    object-fit: fill;
    object-position: center;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    background-color: #ffffffff;
}

.route-timeline {
    margin-top: 14px;
}

.timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255,255,255,.95);
}

    .timeline-row .line {
        flex: 1;
        height: 1px;
        background: rgba(255,255,255,.4);
        margin: 0 8px;
    }

.city-row {
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
}

.amenity-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .amenity-pill-icon img {
        width: 25px;
        height: 25px;
        object-fit: contain;
    }



/* Image fit inside box */
.navbar-logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain; /* show full logo */
}


/* New Navbar Styles */
#renukaNav {
    background: var(--white);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s;
    z-index: 1030;
}

    #renukaNav.scrolled {
        box-shadow: 0 2px 20px rgba(0,0,0,.08);
        border-color: var(--border);
    }

/* Mobile menu styles */
@media (max-width: 991px) {
    #renukaNav .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
        display: block !important;
        overflow-y: auto;
    }

        #renukaNav .navbar-collapse.show {
            right: 0;
        }

    /* Menu header with close button */
    .menu-header {
        padding: 20px 20px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .menu-title {
        font-weight: 600;
        color: var(--primary);
        font-size: 1.1rem;
    }

    .menu-close-btn {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #666;
        cursor: pointer;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
    }

        .menu-close-btn:hover {
            background: #f0f0f0;
            color: #ff4444;
        }

    /* Menu items styling */
    #renukaNav .navbar-nav {
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }

    #renukaNav .nav-item {
        width: 100%;
        margin: 5px 0;
    }

    #renukaNav .nav-link {
        padding: 12px 20px !important;
        border-radius: 8px;
        font-size: 1rem;
        transition: background 0.2s;
    }

        #renukaNav .nav-link:hover {
            background: #f5f5f5;
        }

    /* Toggle button - simple style without rotation */
    #renukaMenuToggle {
        position: relative;
        z-index: 1020;
        background: transparent;
        border: none;
        padding: 8px;
    }

        #renukaMenuToggle .bi-list {
            font-size: 1.8rem;
            color: var(--text-dark);
            transition: color 0.2s;
        }

        #renukaMenuToggle.active .bi-list {
            color: var(--primary);
        }

    /* Remove any overlay */
    body.menu-open::after {
        display: none;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    #renukaNav .navbar-collapse {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .menu-header {
        display: none; /* Hide menu header on desktop */
    }
}
