/* 
   =================================================
   RBAH Car Wash - Premium UI Architecture
   =================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Color Palette */
    --color-bg-main: #0B0F19;      /* Deep midnight blue/black */
    --color-bg-card: #151B2E;      /* Slightly lighter blue for contrast */
    --color-bg-card-hover: #1A223A; 
    
    --color-accent-blue: #00D2FF;  /* Neon Cyan */
    --color-accent-blue-dim: rgba(0, 210, 255, 0.15);
    
    --color-accent-purple: #3A7BD5; /* Rich Blue */
    --gradient-primary: linear-gradient(135deg, #3A7BD5 0%, #00D2FF 100%);
    --gradient-glow: linear-gradient(135deg, rgba(58, 123, 213, 0.4) 0%, rgba(0, 210, 255, 0.4) 100%);

    --color-text-main: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-text-inverse: #0B0F19;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 210, 255, 0.3);

    --shadow-glow: 0 0 24px rgba(0, 210, 255, 0.2);
    --shadow-dropdown: 0 10px 30px rgba(0,0,0,0.5);

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

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(58, 123, 213, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.05), transparent 25%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: var(--color-accent-blue); text-decoration: none; transition: 0.3s ease; }
a:hover { color: #fff; }

/* Typography Globals */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.text-muted { color: var(--color-text-muted); }

/* Navigation */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

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

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { 
    width: 36px; height: 36px; 
    background: var(--gradient-primary); 
    border-radius: 10px; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 20px;
    box-shadow: var(--shadow-glow);
}
.logo-text { font-size: 24px; font-weight: 800; letter-spacing: 1px; color: #fff; }

.main-nav ul { display: flex; list-style: none; gap: 32px; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: white;
    height: 2px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}
.nav-toggle-label span::before { bottom: 8px; }
.nav-toggle-label span::after { top: 8px; }

/* Hamburger Transform */
.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); bottom: 0; }
.nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
.main-nav a { 
    color: var(--color-text-muted); 
    font-weight: 500; font-size: 15px; 
    position: relative; padding: 8px 0;
}
.main-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--gradient-primary); transition: width 0.3s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    padding: 14px 28px; font-weight: 600; font-size: 15px;
    border-radius: var(--radius-full); cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary); color: #fff !important;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.4);
    filter: brightness(1.1);
}

.main-nav .mobile-actions { display: none; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05); color: #fff !important;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.sm-btn { padding: 10px 20px; font-size: 14px; }

/* Hero Wrapper */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 80px; overflow: hidden;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1601362840469-51e4d8d58785?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    z-index: 0;
}

.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(11,15,25,0.7) 0%, rgba(11,15,25,1) 100%);
}

.hero-content {
    position: relative; z-index: 10;
    text-align: center; max-width: 800px; padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
    background: var(--color-accent-blue-dim); border: 1px solid var(--border-accent);
    color: var(--color-accent-blue); font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 24px;
}

.hero h1 { font-size: 5rem; letter-spacing: -0.03em; margin-bottom: 24px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 40px; font-weight: 400; }

.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* Info / Glass Cards */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: var(--color-bg-card-hover);
    border-color: var(--border-accent);
}

.card:hover::before { opacity: 1; }

.icon-box {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    background: var(--color-accent-blue-dim);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--color-accent-blue);
    margin-bottom: 24px;
}

/* Sections */
section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-inline: auto; }
.section-header h2 { font-size: 3rem; margin-bottom: 16px; }

/* Grid Layouts */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Infographic Styles */
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold; margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
}

/* Forms */
input, textarea, select {
    width: 100%; padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: white; font-family: var(--font-body); font-size: 15px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--color-accent-blue);
    background: rgba(0, 210, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--color-text-muted); font-weight: 500; }

/* Custom Overrides for Internal Pages */
.page-wrapper { padding-top: 160px; padding-bottom: 80px; min-height: calc(100vh - 100px); }
.admin-layout { padding-top: 150px; min-height: 100vh; display: flex; }
.admin-content { flex: 1; background: var(--color-bg-main); padding: 40px; overflow-y: auto; }
.admin-sidebar { width: 260px; background: var(--color-bg-card); border-right: 1px solid var(--border-subtle); padding: 32px 24px; flex-shrink: 0; }

.booking-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px; box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}

/* Step Indicators */
.step-indicator {
    display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 20px; margin-bottom: 40px; width: 100%;
}
.step-item {
    color: var(--color-text-muted); font-weight: 600; font-size: 14px;
    transition: color 0.3s ease;
}
.step-item.active { color: var(--color-accent-blue); }

/* Custom Radio / Selectors */
.service-btn {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
    padding: 16px; border-radius: var(--radius-md); color: var(--color-text-main);
    cursor: pointer; text-align: center; transition: all 0.3s ease; font-weight: 500;
}
.service-btn:hover:not(.disabled) { border-color: var(--border-accent); background: rgba(255,255,255,0.06); }
.service-btn.active { background: var(--color-accent-blue-dim); border-color: var(--color-accent-blue); color: var(--color-accent-blue); box-shadow: inset 0 0 0 1px var(--color-accent-blue); }
.service-btn.disabled { opacity: 0.3; cursor: not-allowed; }

.service-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
    padding: 24px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.3s ease; display: block;
}
.service-card:hover { border-color: var(--color-text-muted); }
.service-card input:checked + h4 { color: var(--color-accent-blue); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 32px; background: #070A11;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-grid h3 { font-size: 1.25rem; margin-bottom: 24px; color: #fff; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-accent-blue); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 32px; text-align: center; color: var(--color-text-muted); font-size: 14px; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; }

/* Promo Section (Live Monitoring) */
.promo-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 1) 0%, rgba(5, 7, 12, 1) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.promo-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: rgba(37, 99, 235, 0.15);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.promo-title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.promo-description {
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.promo-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease;
}

.promo-feature-item:hover { transform: translateX(8px); }

.feature-icon {
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-blue { background: rgba(37, 99, 235, 0.1); color: var(--color-accent-blue); }
.icon-green { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.icon-orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.feature-text h4 { margin-bottom: 4px; font-size: 16px; color: #fff; line-height: 1.4; }
.feature-text p { font-size: 14px; margin: 0; color: var(--color-text-muted); line-height: 1.5; }
.feature-icon svg { width: 24px !important; height: 24px !important; display: block; }

/* Mockup Styles */
.promo-mockup-wrap { position: relative; }

.floating-chat {
    position: absolute;
    top: -30px;
    right: -20px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.chat-label { font-size: 10px; color: var(--color-accent-blue); font-weight: bold; margin-bottom: 4px; }
.chat-text { font-size: 14px; color: white; }

.device-frame {
    background: #0f172a;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 5;
}

.video-container {
    background: #000;
    border-radius: 16px;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1601362840469-51e4d8d58785?q=80&w=1000&auto=format&fit=crop') center/cover;
    opacity: 0.6;
    filter: grayscale(20%) contrast(1.2);
}

.live-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    padding: 6px 12px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse 2s infinite;
}

.live-text { font-size: 12px; font-weight: bold; color: white; letter-spacing: 1px; }

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 30px rgba(37,99,235,0.5);
}

.portal-details { padding: 20px 8px 8px 8px; }

.bay-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bay-status-header h3 { font-size: 16px; margin: 0; color: #fff; }
.status-active { color: #4ade80; font-size: 13px; margin: 4px 0 0 0; }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.portal-divider { height: 1px; background: var(--border-subtle); margin-bottom: 16px; }

.upsell-alert {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.upsell-alert span { font-size: 12px; color: var(--color-text-muted); }

.approve-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    section { padding: 60px 0; }
    .section-header h2 { font-size: 2.25rem; }
    
    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; gap: 12px; }
    
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Promo Section Mobile */
    .promo-grid { grid-template-columns: 1fr; gap: 48px; }
    .promo-content { text-align: center; order: 1; }
    .promo-badge { margin-inline: auto; }
    .promo-title { font-size: 2.25rem; }
    .promo-description { font-size: 16px; }
    
    .promo-mockup-wrap { order: 2; max-width: 400px; margin: 0 auto; }
    .floating-chat { right: 0; top: -20px; padding: 12px 16px; }
    
    .promo-features { order: 3; margin-top: 24px; text-align: left; }
    .promo-feature-item {
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    .promo-cta { order: 4; width: 100%; }

    /* Mobile Header Refactor */
    .nav-container { height: 70px; padding: 0 16px; }
    .logo img { height: 50px !important; margin: 0 !important; }
    
    .nav-toggle-label { display: block; order: 3; }
    .nav-actions { display: none !important; } /* Hard hide on mobile */
    
    .main-nav {
        display: block;
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg-main);
        padding: 40px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-top: 1px solid var(--border-subtle);
        overflow-y: auto;
    }
    
    .nav-toggle:checked ~ .main-nav { left: 0; }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .main-nav a { font-size: 20px; color: #fff; }
    
    .main-nav .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
        width: 100%;
        max-width: 280px;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-badge { font-size: 11px; padding: 4px 12px; }
    .btn { width: 100%; padding: 12px 20px; }
}
