@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-dark: #0f1115;
    --bg-deep: #0b1320;
    --accent: #2f6bff;
    --accent-glow: rgba(47, 107, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #a7a9b0;
    --text-dim: #6b7280;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 120px 0;
    border-bottom: 1px solid var(--border);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a7a9b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheading {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 24px;
    display: block;
}

/* Buttons */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-solid:hover {
    background-color: #1e56ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: transparent;
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--glass);
    border-color: var(--accent);
}

/* Glass Components */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(47, 107, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

/* Background Grids */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* Navbar */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger Menu Base */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.active {
    color: var(--accent);
}

/* Dropdown System */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    min-width: 240px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
    display: block !important;
    padding: 10px 20px;
    color: var(--text-muted) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    text-align: left;
}

.dropdown-item i {
    display: none;
}

.dropdown-item:hover {
    background: var(--accent);
    color: white !important;
}

.dropdown-item:hover i {
    color: white;
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0f172a;
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
        padding: 40px;
        gap: 24px;
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        background: rgba(255,255,255,0.03);
        border: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        margin-top: 10px;
        min-width: 100%;
    }

    .nav-dropdown.expanded .dropdown-menu {
        display: block;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .diagram-container {
        padding: 40px 20px;
    }

    section {
        padding: 80px 0;
    }
}

/* Hero Section Base */
.hero {
    padding-top: 200px;
    text-align: center;
    min-height: 90vh;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    text-align: left;
}

.product-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.product-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Architecture Diagram */
.diagram-container {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 80px;
    margin-top: 60px;
    position: relative;
}

.diagram-node {
    background: var(--glass);
    border: 1px solid var(--accent);
    padding: 20px 40px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes flow {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

.diagram-line {
    animation: flow 10s linear infinite;
}

.voice-ripple {
    animation: ripple 4s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════════════════
   BOOKING ENGINE — scoped under body.booking-page only
   Does NOT affect the landing page, limo-operations, or taxi-dispatch pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Modern Classic View (Layout 1) ── */

body.booking-page {
    background: #f0f0f0;
    color: #111;
}

body.booking-page #pane-intake {
    background: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}

body.booking-page .intake-header {
    background: linear-gradient(145deg, #0d0d0d 0%, #1b1b2e 100%);
    border-bottom: none;
    padding: 22px 20px 18px;
}

body.booking-page .intake-header h2 {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

body.booking-page .schedule-toggle {
    background: rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}

body.booking-page .schedule-toggle button {
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

body.booking-page .schedule-toggle button.active {
    background: #000;
    color: #fff;
    box-shadow: none;
}

body.booking-page .input-row {
    border-radius: 12px;
    border: 1.5px solid #e4e4e4;
    background: #f9f9f9;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

body.booking-page .input-row:focus-within {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

body.booking-page .input-group label {
    color: #555;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.6px;
}

body.booking-page #pane-select {
    background: #fafafa;
    border-left: 1px solid #eaeaea;
}

body.booking-page .select-header {
    background: #fff;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eaeaea;
}

body.booking-page .select-header h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #111;
}

body.booking-page .tier-card {
    border: 1.5px solid #eaeaea;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

body.booking-page .tier-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

body.booking-page .tier-card.selected {
    border-color: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

body.booking-page .tier-name { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
body.booking-page .tier-desc { font-size: 12px; color: #999; }

body.booking-page .tier-fare .amount {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

body.booking-page .tier-fare .cur { display: none; }

body.booking-page .select-footer {
    background: #fff;
    border-top: 1px solid #eaeaea;
    padding: 14px 20px;
}

body.booking-page #book-btn {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    background: #111;
}

body.booking-page #book-btn:hover:not(:disabled) { background: #333; }

/* ── Layout Switcher Button ── */
body.booking-page #layout-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
}

body.booking-page #layout-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    background: rgba(10,10,10,0.84);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    transition: all 0.22s ease;
    white-space: nowrap;
    user-select: none;
}

body.booking-page #layout-btn:hover {
    background: rgba(28,28,28,0.94);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}

body.booking-page #layout-btn:active { transform: translateY(0); }

body.booking-page #layout-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.9;
}

/* ── Layout 2: Luxury Floating View ── */

body.booking-page.layout-luxury {
    overflow: hidden;
}

body.booking-page.layout-luxury #app {
    position: fixed;
    inset: 0;
    background: transparent;
    display: block;
}

body.booking-page.layout-luxury #pane-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    flex: unset;
}

body.booking-page.layout-luxury #map {
    width: 100%;
    height: 100%;
}

body.booking-page.layout-luxury #pane-intake {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 290px;
    min-width: unset;
    z-index: 10;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px 0 0 24px;
    border: 1px solid rgba(255,255,255,0.7);
    border-right: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 24px 64px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: bk-lux-in 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

body.booking-page.layout-luxury #pane-select {
    position: absolute;
    top: 20px;
    left: 310px;
    bottom: 20px;
    width: 360px;
    min-width: unset;
    z-index: 10;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 0 24px 24px 0;
    border: 1px solid rgba(255,255,255,0.7);
    border-left: none;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: bk-lux-in 0.44s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes bk-lux-in {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

body.booking-page.layout-luxury .intake-header {
    background: linear-gradient(145deg, #0a0a0a 0%, #1c1c2e 100%);
    padding: 22px 20px 16px;
    flex-shrink: 0;
}

body.booking-page.layout-luxury .schedule-toggle { background: rgba(0,0,0,0.07); }
body.booking-page.layout-luxury .schedule-toggle button.active { background: #000; color: #fff; box-shadow: none; }

body.booking-page.layout-luxury .input-row { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.1); }
body.booking-page.layout-luxury .input-row:focus-within { background: #fff; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }

body.booking-page.layout-luxury .select-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

body.booking-page.layout-luxury .select-footer {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

body.booking-page.layout-luxury #tier-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
}

body.booking-page.layout-luxury .tier-card {
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.62);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.booking-page.layout-luxury .tier-card:hover {
    background: rgba(255,255,255,0.98);
    border-color: rgba(0,0,0,0.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

body.booking-page.layout-luxury .tier-card.selected {
    border-color: #000;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: translateY(-1px);
}

body.booking-page.layout-luxury .tier-image-thumb,
body.booking-page.layout-luxury img.tier-img {
    width: 76px !important;
    height: 52px !important;
    object-fit: contain !important;
}

body.booking-page.layout-luxury .tier-img-placeholder {
    width: 76px !important;
    height: 52px !important;
    font-size: 28px !important;
}

/* ── Responsive: Luxury View ── */

@media (max-width: 1099px) {
    body.booking-page.layout-luxury #pane-intake { width: 255px; top: 14px; left: 14px; bottom: 14px; }
    body.booking-page.layout-luxury #pane-select { left: 269px; width: 310px; top: 14px; bottom: 14px; }
}

@media (max-width: 767px) {
    body.booking-page.layout-luxury #app { display: block !important; }
    body.booking-page.layout-luxury #pane-map { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; }

    body.booking-page.layout-luxury #pane-intake {
        position: fixed !important;
        top: 12px !important; left: 12px !important; right: 12px !important;
        bottom: auto !important; width: auto !important;
        max-height: 46vh !important;
        border-radius: 20px !important;
        border-right: 1px solid rgba(255,255,255,0.7) !important;
        overflow-y: auto;
    }

    body.booking-page.layout-luxury #pane-select {
        position: fixed !important;
        bottom: 12px !important; left: 12px !important; right: 12px !important;
        top: auto !important; width: auto !important;
        max-height: 42vh !important;
        border-radius: 20px !important;
        border-left: 1px solid rgba(255,255,255,0.7) !important;
        overflow-y: auto;
    }

    body.booking-page.layout-luxury #layout-switcher { bottom: auto; top: 12px; right: 12px; }
    body.booking-page.layout-luxury #layout-btn { padding: 8px 14px; font-size: 11.5px; gap: 7px; }
}

/* ── Responsive: Classic View ── */
@media (max-width: 767px) {
    body.booking-page:not(.layout-luxury) #layout-switcher { display: none; }
}

@media (max-width: 980px) and (min-width: 768px) {
    body.booking-page:not(.layout-luxury) #pane-select { width: 380px; min-width: 280px; }
}
