/* style.css - CbeCabs (Production Ready) */

/* 1. Variables & Reset */
:root {
    --primary-color: #fbbf24; /* Richer Gold */
    --primary-hover: #d97706;
    --dark-bg: #0f172a;       /* Slate Navy */
    --body-text: #475569;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

html, body {
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--body-text);
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

/* 2. Utility Classes */
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.section-padding { padding: 80px 0; }
.ls-2 { letter-spacing: 2px; }

/* 3. Navbar */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile Navbar Toggler Background */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width .3s;
    margin-top: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* 4. Hero Section */
.hero-section {
    position: relative;
    /* Use min-height so content can expand on mobile */
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Made the gradient lighter (0.85 to 0.5) so cars are visible */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
}

/* Ensure content sits above overlay */
.hero-content-wrapper {
    padding-top: 100px; /* Space for Navbar */
    padding-bottom: 60px;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.booking-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 5;
}

.bg-white-glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
}

/* Mouse Scroll */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 100px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}
@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* 5. Stats Strip */
.counter { font-size: 2.5rem; }

/* 6. Fleet Section */
.fleet-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f1f5f9;
}

.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fleet-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.fleet-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fleet-card:hover .fleet-img-wrapper img {
    transform: scale(1.1);
}

.fleet-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fleet-details { padding: 25px; }

.fleet-specs {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* 7. Pricing Table */
.table-container { border: 1px solid #e2e8f0; }
.table thead th { font-weight: 600; letter-spacing: 0.5px; border-bottom: none; }
.table-hover tbody tr:hover { background-color: rgba(251, 191, 36, 0.05); }

/* 8. Services Grid */
.service-box {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1) !important;
    transition: var(--transition);
}
.service-box:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
}
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 9. Contact */
.contact-decoration {
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0.2;
}
.icon-sm { width: 40px; height: 40px; }

/* 10. Form Floating Overrides */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

/* 11. Floating Contact Widget */
.floating-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.float-wa {
    background: #25d366; /* WhatsApp Green */
}

.float-phone {
    background: var(--primary-color); /* Theme Gold */
    color: #000;
    font-size: 1.4rem;
}

/* Responsive Tweaks */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    /* Fix overlap by allowing auto height and adding padding */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    .booking-card {
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .contact-decoration { display: none; }
    
    /* Move floating buttons slightly up on mobile */
    .floating-contact {
        bottom: 20px;
        right: 20px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    /* Fix Parallax on Mobile */
    .hero-bg {
        background-attachment: scroll;
    }
}