/* ============================================================================
   DOORSTEP CAR CARE PLATFORM - MODERN AUTOMOTIVE SERVICE DESIGN SYSTEM
   ============================================================================ */

:root {
    --brand-primary: #0B5ED7;
    --brand-secondary: #0D9488;
    --brand-dark: #0F172A;
    --brand-light: #F8FAFC;
    --surface-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-subtle: #E2E8F0;
    --radius-card: 16px;
    --radius-btn: 10px;
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 28px -4px rgba(11, 94, 215, 0.16);
}

html, body {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--brand-light);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .fw-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
}

/* Custom Brand Buttons & Utilities */
.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-btn);
    padding: 0.625rem 1.35rem;
    transition: all 0.2s ease;
}

.btn-brand:hover, .btn-brand:focus {
    background-color: #094bb0;
    border-color: #094bb0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.25);
}

.btn-accent {
    background-color: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-btn);
    padding: 0.625rem 1.35rem;
    transition: all 0.2s ease;
}

.btn-accent:hover, .btn-accent:focus {
    background-color: #0f766e;
    border-color: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.text-brand { color: var(--brand-primary) !important; }
.text-accent { color: var(--brand-secondary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-accent { background-color: var(--brand-secondary) !important; }
.bg-navy, .card-automotive.bg-navy {
    background: var(--brand-dark, #0F172A) !important;
    background-color: var(--brand-dark, #0F172A) !important;
    color: #ffffff !important;
}

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero-automotive h1, .hero-automotive h2, .hero-automotive h3, .hero-automotive h4, .hero-automotive h5, .hero-automotive h6,
.newbie-offer-banner h1, .newbie-offer-banner h2, .newbie-offer-banner h3, .newbie-offer-banner h4, .newbie-offer-banner h5, .newbie-offer-banner h6 {
    color: #ffffff;
}

/* Configurable Logo Placeholder Box */
.logo-placeholder-box {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--brand-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

/* Cards */
.card-automotive {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-automotive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(11, 94, 215, 0.3);
}

.service-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(11, 94, 215, 0.09);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Hero Section (Modern Blue Automotive Detailing Theme) */
.hero-automotive {
    background: radial-gradient(circle at 85% 20%, rgba(11, 94, 215, 0.25), transparent 48%),
                linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--brand-primary);
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
}

/* Plan Cards & Promo Banners */
.plan-card-featured {
    border: 2px solid var(--brand-primary) !important;
    position: relative;
}

.newbie-offer-banner {
    background-color: #0F172A !important;
    background-image: linear-gradient(135deg, #0F172A 0%, #1E3A8A 65%, #0B5ED7 100%) !important;
    color: #ffffff !important;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.combo-card-highlight {
    border: 2px solid #0B5ED7 !important;
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 28%);
}

.chain-lube-badge {
    background: rgba(11, 94, 215, 0.1);
    color: #0B5ED7;
    border: 1px solid rgba(11, 94, 215, 0.3);
    font-weight: 700;
}

/* Hover Dropdowns for Pre-Header User Menu & Explore Plans */
@media (min-width: 992px) {
    .hover-dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeInDropdown 0.16s ease-out;
    }
}

.preheader-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 265px;
    background: var(--brand-dark);
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.7rem 1.15rem;
    border-radius: 10px;
    margin: 0.15rem 0.75rem;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.15s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-sidebar .nav-link.active {
    background: var(--brand-primary);
    color: #fff;
}

.admin-main {
    flex: 1;
    min-width: 0;
    background: #F1F5F9;
    display: flex;
    flex-direction: column;
}

/* Mobile Bottom Bar for Portals */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    padding: 0.45rem 0.25rem;
    z-index: 1040;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.mobile-bottom-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.mobile-bottom-nav a.active {
    color: var(--brand-primary);
}

.mobile-bottom-nav a i {
    font-size: 1.2rem;
}

/* Floating WhatsApp & PWA Install Banner */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1035;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        display: none;
    }
    body.has-bottom-nav {
        padding-bottom: 72px;
    }
    .whatsapp-float {
        bottom: 78px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.45rem;
    }
}
