/* 
  Balu Tours & Travels - Premium Design System v5.0
  State-of-the-Art Luxury & Professional Chauffeur Services
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Sophisticated Palette */
    --primary: #001F3F; 
    --primary-light: #003366;
    --primary-dark: #000F1F;
    --accent: #D4AF37; 
    --accent-light: #F1D592;
    --accent-dark: #A67C00;
    --text: #0F172A;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --bg-deep: #000814;
    --white: #ffffff;
    
    /* Modern Effects */
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(0, 31, 63, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 10px 20px -5px rgba(212, 175, 55, 0.3);
    
    /* Geometry */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 100px;
    
    /* Transitions */
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 50px; }
.section-padding { padding: 80px 0; }

/* --- Advanced Typography --- */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
h1 { font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 0.95; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }

.section-tag {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* --- Next-Level Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 22px 50px;
    border-radius: var(--radius-full);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-premium);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover { color: var(--primary); transform: translateY(-8px); }
.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-8px);
}

/* --- Header & Navigation --- */
.top-bar {
    background: var(--bg-deep);
    color: var(--white);
    padding: 15px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(50px);
    border-bottom: 1px solid var(--glass-border);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled { padding: 12px 0; box-shadow: var(--shadow-premium); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img { height: 45px; }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 10px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-sm);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    z-index: 1005;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 12px 25px;
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-dark);
    padding-left: 30px;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: 10px;
    }
    
    .dropdown-menu a {
        padding: 10px 0;
        color: var(--text-muted);
    }
}

/* --- Hero & Section Aesthetics --- */
.hero {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary));
    color: var(--white);
    overflow: hidden;
    position: relative;
    padding-top: 180px;
    padding-bottom: 150px;
}

/* --- Cards & Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* --- Comprehensive Mobile Overrides --- */
@media (max-width: 1024px) {
    .container { padding: 0 25px; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none !important; }
    header { padding: 10px 0 !important; }
    .logo img { height: 52px !important; }
    .mobile-toggle { display: block !important; position: relative; z-index: 1002; }
    
    .nav-links {
        position: fixed;
        top: 60px; /* Thinner header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: var(--transition);
        z-index: 1001;
        box-shadow: var(--shadow-premium);
    }
    .nav-links.active { left: 0; }
    .nav-cta .btn { display: none; } /* Hide only button, keep container if needed */
    .nav-cta { display: flex; align-items: center; } 
    
    .section-padding { padding: 40px 0 !important; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 20px; }
    
    h1 { font-size: 2.2rem !important; line-height: 1.1; }
    h2 { font-size: 1.8rem !important; }
    .hero { padding-top: 100px !important; padding-bottom: 60px !important; }
    
    .mobile-stack { flex-direction: column; gap: 15px; }
    .btn { width: 100%; padding: 18px 30px; font-size: 0.8rem; }
    .footer-col { align-items: center; }
    .contact-item { justify-content: center; }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-premium);
    background: var(--white);
    border-color: var(--accent);
}

/* --- Fleet Section --- */
.car-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.car-card:hover { transform: translateY(-15px); }

.car-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    transition: var(--transition);
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-tag {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
}

.car-info { padding: 40px; }

/* --- Modal & Steps --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 31, 63, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(20px);
    overflow-y: auto;
    padding: 60px 15px;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 650px;
    padding: 60px;
    border-radius: var(--radius-lg);
    position: relative;
    margin: auto;
}

.booking-step { display: none; }
.booking-step.active { display: block; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; }
.reveal.active { animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* --- Utility Classes --- */
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.gap-60 { gap: 60px; }
.text-white { color: var(--white) !important; }
.text-center { text-align: center !important; }
.text-gold { color: var(--accent) !important; }
.m-0 { margin: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-25 { margin-bottom: 25px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }
.mb-60 { margin-bottom: 60px !important; }
.mb-80 { margin-bottom: 80px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-60 { margin-top: 60px !important; }
.mt-80 { margin-top: 80px !important; }
.w-full { width: 100%; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

/* --- Footer Master Standard v5.3 --- */
.footer {
    background: var(--bg-deep);
    color: var(--white);
    padding: 120px 0 60px;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo {
    height: 70px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.footer-bio {
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 40px; height: 2px;
    background: var(--accent);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; gap: 15px; color: rgba(255,255,255,0.7); }
.contact-item i { color: var(--accent); font-size: 1.1rem; margin-top: 4px; }
.contact-item a { color: inherit; text-decoration: none; font-weight: 600; }
.contact-item a:hover { color: var(--accent); }

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-legal { display: flex; gap: 30px; }
.footer-legal a { color: inherit; text-decoration: none; transition: 0.3s; }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-legal { flex-direction: column; gap: 10px; align-items: center; }
}

/* --- Advanced Multi-Step Modal --- */
.modal-content {
    background: var(--white);
    width: 95%;
    max-width: 550px;
    border-radius: 24px;
    position: relative;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    overflow: hidden;
    margin: auto;
}

.booking-step {
    display: none;
    animation: slideIn 0.4s ease forwards;
}

.booking-step.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #F1F5F9;
    border-radius: 12px;
    font-family: 'Outfit';
    font-size: 1rem;
    transition: 0.3s;
    background: #F8FAFC;
}

.form-control:focus {
    border-color: var(--accent);
    background: white;
    outline: none;
}

.payment-box {
    background: #F8FAFC;
    border: 2px dashed #E2E8F0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.qr-placeholder img {
    max-width: 220px;
    max-height: 220px;
    width: auto !important;
    height: auto !important;
    background: white;
    margin: 0 auto 15px;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #eee;
    display: block;
    object-fit: contain;
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.file-upload-input {
    width: 100%;
    padding: 15px;
    background: white;
    border: 2px dashed var(--accent);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #22C55E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}

/* --- Stepper UI --- */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 2px;
    background: #F1F5F9;
    z-index: 1;
    transform: translateY(-50%);
}

.step-dot {
    width: 35px;
    height: 35px;
    background: white;
    border: 2px solid #F1F5F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #94A3B8;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.step-dot.active {
    border-color: var(--accent);
    color: var(--primary);
    background: var(--accent);
}

.step-dot.completed {
    border-color: #22C55E;
    background: #22C55E;
    color: white;
}

/* --- Call Floating Button --- */
.call-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #001F3F;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0, 31, 63, 0.4);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid var(--accent);
}

.call-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.5);
    background: var(--accent);
    color: var(--primary);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    .call-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

/* --- Car Multi-Image Carousel --- */
.car-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    border-radius: inherit;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    padding: 0 !important;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 31, 63, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 12px;
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

.carousel-prev:hover, .carousel-next:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* --- Premium Close Modal Button --- */
.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}


