/* ========================================
   AIR BS LIMOS — Premium Limo Service
   Advanced Design System (Mobile First)
   ======================================== */

:root {
    /* Colors — Noir & Blanc Palette */
    --color-bg: #050505;
    --color-bg-alt: #0a0a0a;
    --color-surface: #111111;
    --color-surface-alt: #161616;
    --color-surface-glass: rgba(15, 15, 15, 0.85);

    --color-primary: #ffffff;
    --color-primary-muted: #e0e0e0;
    --color-primary-dim: #bbbbbb;

    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-text-dim: #666666;

    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-bright: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.8);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Nav */
    --bottom-nav-height: 75px;
    --safe-bottom: env(safe-area-inset-bottom);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--bottom-nav-height); /* For bottom nav on mobile */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

ul { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* === Typography Mobile === */
h1 { font-size: 2.75rem; letter-spacing: -1.5px; }
h2 { font-size: 2rem; letter-spacing: -0.5px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* === Layout Utilities === */
.section { padding: 60px 0; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* === Header === */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 70px;
    display: flex; align-items: center;
    z-index: 1000;
    background: var(--color-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 36px; height: 36px;
    background: var(--color-primary); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; border-radius: var(--radius-sm);
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text-muted); }

.desktop-nav, .mobile-hide { display: none; }

.btn-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: var(--color-primary);
    font-size: 1.1rem;
}
.btn-icon:active { transform: scale(0.95); background: rgba(255,255,255,0.2); }

/* === Bottom Navigation (Mobile) === */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border);
    display: flex; justify-content: space-around; align-items: center;
    z-index: 1000;
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.bottom-nav-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--color-text-muted); gap: 4px; flex: 1; height: 100%;
    min-height: 44px; /* Touch target */
}
.bottom-nav-link i { font-size: 1.2rem; transition: var(--transition-fast); }
.bottom-nav-link span { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.bottom-nav-link.active { color: var(--color-primary); }
.bottom-nav-link.active i { transform: translateY(-2px); }

/* === Buttons === */
.btn-main, .btn-submit, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 56px;
    font-weight: 700; border-radius: var(--radius-sm);
    font-size: 0.9rem; letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-base);
    cursor: pointer; border: none; width: 100%;
}
.btn-main, .btn-submit { background: #ffffff; color: #000000; }
.btn-outline { border: 1px solid #ffffff; color: #ffffff; background: transparent; }

.btn-main:hover, .btn-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 0 40px;
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.5) 0%, rgba(5,5,5,0.95) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 40px;
}
.hero-text { text-align: center; }
.hero-text p { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 30px; }
.hero-btns { display: flex; flex-direction: column; gap: 15px; }

/* === Booking Box === */
.booking-box {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.booking-box h3 { 
    margin-bottom: 30px; 
    text-align: center; 
    font-family: var(--font-heading);
    font-size: 1.8rem;
}
.form-group { position: relative; margin-bottom: 16px; }
.form-group i {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--color-text-dim);
    font-size: 0.9rem;
}
.form-input {
    width: 100%;
    padding: 18px 18px 18px 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff; font-family: var(--font-body); font-size: 0.95rem;
    appearance: none;
    transition: var(--transition-base);
}
.form-input::placeholder { color: var(--color-text-dim); }
.form-input:focus { 
    outline: none; 
    border-color: rgba(255, 255, 255, 0.3); 
    background: rgba(255, 255, 255, 0.06); 
}

/* Form loading state */
.loader {
    display: none; width: 20px; height: 20px;
    border: 2px solid rgba(0,0,0,0.2); border-top-color: #000;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Services & Fleet Grids === */
#services {
    position: relative;
    background: url('taxi-bg.jpg') no-repeat center center/cover;
    background-attachment: scroll; /* better for mobile perf */
}
#services::before {
    content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); z-index: 1;
}
#services .container { position: relative; z-index: 2; }

.services-grid, .fleet-grid, .grid-2 {
    display: grid; grid-template-columns: 1fr; gap: 30px;
}

.service-card {
    background: rgba(17, 17, 17, 0.85); padding: 40px 30px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg); border: 1px solid var(--color-border);
}
.service-icon {
    width: 60px; height: 60px; background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; border-radius: var(--radius-md); margin-bottom: 20px; color: var(--color-primary);
}
.service-card h4 { margin-bottom: 15px; }
.service-card p { color: var(--color-text-muted); margin-bottom: 25px; font-size: 0.9rem; line-height: 1.5; }
.service-list { margin-bottom: 25px; }
.service-list li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; color: var(--color-text-muted);
}
.service-list i { color: var(--color-primary); font-size: 0.8rem; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-top: 10px; }

.fleet-card {
    background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border);
}
.fleet-img-wrapper { height: 220px; position: relative; }
.fleet-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.fleet-badge {
    position: absolute; top: 15px; right: 15px; background: var(--color-primary); color: #000;
    padding: 4px 12px; font-size: 0.7rem; font-weight: 800; border-radius: var(--radius-full);
}
.fleet-details { padding: 25px; }
.fleet-meta { display: flex; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.fleet-meta item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--color-text-muted); }

/* === About & Contact === */
#about, #contact { background: var(--color-bg-alt); }
.about-img img { border-radius: var(--radius-lg); width: 100%; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 25px; }
.contact-item .service-icon { width: 44px; height: 44px; margin-bottom: 0; font-size: 1.1rem; flex-shrink: 0; border: none; background: rgba(255,255,255,0.05); }
.contact-item-text { display: flex; flex-direction: column; }
.contact-item-text span { display: block; font-size: 0.7rem; color: var(--color-text-muted); text-transform: uppercase; margin-bottom: 4px; }
.contact-item-text a, .contact-item-text div { font-size: 1.1rem; font-weight: 700; }

.map-container {
    height: 300px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border);
}

/* === Footer === */
footer { padding: 50px 0 100px; border-top: 1px solid var(--color-border); background: #050505; text-align: center; }
footer .logo { justify-content: center; margin-bottom: 20px; }
footer p { font-size: 0.9rem; color: var(--color-text-dim); margin-bottom: 30px; }

/* === Modal === */
.modal {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.9); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(10px); padding: 20px;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content {
    background: var(--color-surface); padding: 40px 30px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); width: 100%; max-width: 400px; text-align: center;
    transform: scale(0.95); opacity: 0; animation: scaleUp 0.3s ease forwards 0.1s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* === Animations === */
[data-animate] { opacity: 0; transform: translateY(20px); transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-animate].active { opacity: 1; transform: translateY(0); }

/* ========================================
   Desktop Breakpoint (Tablet & Up)
   ======================================== */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .bottom-nav, .desktop-hide { display: none; }
    .desktop-nav, .mobile-hide { display: flex; }
    
    .container { max-width: 1200px; padding: 0 40px; }
    .section { padding: 120px 0; }
    
    h1 { font-size: 5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2rem; }
    
    .header { height: 90px; background: transparent; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .header.scrolled { height: 75px; background: var(--color-surface-glass); box-shadow: var(--shadow-sm); }
    
    .logo-icon { width: 48px; height: 48px; font-size: 1.5rem; }
    .logo-title { font-size: 1.4rem; }
    .logo-sub { font-size: 0.7rem; }
    
    .nav { gap: 40px; }
    .nav-link { font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; color: var(--color-text-muted); text-transform: uppercase; position: relative; padding: 5px 0; }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--color-primary); transition: var(--transition-base); }
    .nav-link:hover, .nav-link.active { color: var(--color-primary); }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    
    .header-cta { align-items: center; gap: 30px; }
    .contact-mini { flex-direction: column; align-items: flex-end; }
    .contact-mini a { font-size: 1rem; font-weight: 700; }
    .contact-mini span { font-size: 0.7rem; color: var(--color-text-muted); text-transform: uppercase; }
    .btn-book { background: var(--color-primary); color: #000; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; width: auto; min-height: auto; }
    .btn-book:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }
    
    .hero { padding: 0; }
    .hero-content { grid-template-columns: 1fr 480px; gap: 100px; align-items: center; flex-direction: row; }
    .hero-text { text-align: left; }
    .hero-text h1 { font-size: 6rem; line-height: 1; margin-bottom: 20px; }
    .hero-text p { font-size: 1.2rem; margin: 0 0 50px 0; max-width: 550px; line-height: 1.5; opacity: 0.8; }
    .hero-btns { flex-direction: row; gap: 20px; }
    .btn-main, .btn-outline { width: auto; padding: 0 35px; min-width: 200px; }
    
    .booking-box { padding: 50px; }
    
    #services { background-attachment: fixed; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
    .fleet-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
    
    .service-card:hover, .fleet-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--color-border-bright); }
    
    .fleet-img-wrapper { height: 260px; }
    .fleet-card:hover .fleet-img-wrapper img { transform: scale(1.05); }
    
    .contact-item .service-icon { width: 60px; height: 60px; font-size: 1.4rem; }
    .contact-item-text a, .contact-item-text div { font-size: 1.4rem; }
    .map-container { height: 400px; }
    
    footer { padding: 80px 0; text-align: left; }
    footer .container { display: flex; justify-content: space-between; align-items: center; }
    footer .logo { margin-bottom: 10px; justify-content: flex-start; }
    footer p { margin-bottom: 0; }
}

@media (min-width: 1024px) {
    .container { max-width: 1400px; }
    h1 { font-size: 5.5rem; }
    .fleet-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
}