/* ==========================================================================
   Detroja Enterprise - Premium Design System (v2.0)
   Modern, World-Class IT Hardware & Service Platform - Ahmedabad
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Gujarati:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
    /* Typography Stacks */
    --font-sans: 'Inter', 'Noto Sans Gujarati', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Noto Sans Gujarati', 'Inter', sans-serif;

    /* Brand Colors */
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --primary-glow: rgba(37, 99, 235, 0.35);
    --primary-light: #eff6ff;
    --primary-subtle: #dbeafe;
    --primary-dark: #1e40af;
    
    --accent: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-glow: rgba(6, 182, 212, 0.3);
    
    --secondary: #0b1120;
    --secondary-surface: #0f172a;
    --secondary-card: #1e293b;
    --secondary-border: rgba(255, 255, 255, 0.1);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #0284c7;

    /* Neutrals */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;

    /* Elevation & Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.1), 0 1px 2px -1px rgba(16, 24, 40, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
    --shadow-card-hover: 0 25px 45px -12px rgba(15, 23, 42, 0.14), 0 12px 20px -8px rgba(15, 23, 42, 0.06);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.65;
    overflow-x: hidden;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Gujarati Script Typography Optimization (Ensures ligatures, matras & ascenders render with zero overlap) */
html[lang="gu"] {
    font-feature-settings: "kern" 1, "liga" 1;
}

html[lang="gu"] body {
    line-height: 1.7;
}

html[lang="gu"] h1, 
html[lang="gu"] h2, 
html[lang="gu"] h3, 
html[lang="gu"] h4, 
html[lang="gu"] h5, 
html[lang="gu"] h6,
html[lang="gu"] .font-heading {
    letter-spacing: normal !important;
    line-height: 1.35;
}

/* Explicit High-Contrast Rules for Dark Sections, Banners & Headers */
.text-white,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
.hero-section h1, .hero-section h2, .hero-section h3,
.main-footer h1, .main-footer h2, .main-footer h3, .main-footer h4, .main-footer h5, .main-footer h6,
.doorstep-cta-banner h1, .doorstep-cta-banner h2, .doorstep-cta-banner h3,
.estimate-result-card h1, .estimate-result-card h2, .estimate-result-card h3, .estimate-result-card h4, .estimate-result-card h5,
.page-banner-dark h1, .page-banner-dark h2, .page-banner-dark h3 {
    color: #ffffff !important;
}

.text-white .text-muted,
.page-banner-dark .text-muted {
    color: rgba(255, 255, 255, 0.72) !important;
}

.text-light-50, .text-white-50,
.page-banner-dark p {
    color: rgba(255, 255, 255, 0.85) !important;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Global Modern Form Controls */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-heading);
    background-color: #ffffff;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   Top Notification / Announcement Bar
   ========================================================================== */
.top-bar-notice {
    background: linear-gradient(90deg, #0b1120 0%, #1e293b 50%, #0b1120 100%);
    color: #e2e8f0;
    font-size: 0.8125rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-notice .badge-location {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.top-bar-links a {
    color: #cbd5e1;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.top-bar-links a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.main-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 9px 0;
    transition: var(--transition-base);
    z-index: 1030;
}

.main-navbar.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    padding: 7px 0;
}

.navbar-brand {
    flex-shrink: 0;
    padding: 0;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-heading) !important;
    padding: 6px 10px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    white-space: nowrap !important;
    position: relative;
    letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* Responsive Navbar Adjustments & Anti-Clipping Safeguards */
@media (min-width: 992px) {
    .main-navbar .container-fluid {
        flex-wrap: nowrap !important;
    }
    .main-navbar .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    .main-navbar .navbar-nav {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        gap: 2px;
    }
    .main-navbar .nav-cta-wrapper {
        flex-shrink: 0 !important;
        margin-left: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-navbar .nav-link {
        font-size: 0.8125rem;
        padding: 6px 7px !important;
    }
    .navbar-brand img {
        height: 33px;
    }
    .btn-primary-action {
        padding: 7px 13px !important;
        font-size: 0.8125rem !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .main-navbar .nav-link {
        font-size: 0.85rem;
        padding: 6px 9px !important;
    }
    .navbar-brand img {
        height: 36px;
    }
    .btn-primary-action {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
}

@media (min-width: 1400px) {
    .main-navbar .nav-link {
        font-size: 0.88rem;
        padding: 6px 11px !important;
    }
    .navbar-brand img {
        height: 38px;
    }
    .btn-primary-action {
        padding: 9px 20px !important;
        font-size: 0.88rem !important;
    }
}

/* Dropdown Menu */
.dropdown-menu-custom {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 290px;
    margin-top: 10px;
    animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-item-custom:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.dropdown-item-custom:hover .dropdown-item-icon {
    background: var(--primary);
    color: #ffffff;
}

/* Emergency Helpline Button in Navbar */
.helpline-pill {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--text-heading);
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.helpline-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.helpline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-primary-action {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap !important;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

.btn-primary-action:active {
    transform: translateY(0);
}

.btn-outline-glow {
    background: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-glow:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #20ba59;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #0b1120 45%, #050811 100%);
    color: #ffffff;
    padding: 85px 0 100px;
    overflow: hidden;
}

/* Ambient glow background layers */
.hero-section::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(37, 99, 235, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 22px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.hero-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 28px;
    max-width: 580px;
    line-height: 1.6;
}

/* Device Quick Chips in Hero */
.device-chips-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.device-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.device-chip:hover, .device-chip.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Trust Micro-Pills */
.hero-trust-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #e2e8f0;
    transition: var(--transition-fast);
}

.hero-trust-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

/* Hero Action Group with Mobile Optimization */
.hero-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn-row {
    display: flex;
    gap: 12px;
}

/* Glassmorphic Quick Booking Card */
.hero-glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
}

.hero-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.hero-glass-card .form-control,
.hero-glass-card .form-select {
    background: rgba(11, 17, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.hero-glass-card .form-control:focus,
.hero-glass-card .form-select:focus {
    background: rgba(11, 17, 32, 0.98);
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    color: #ffffff;
}

.hero-glass-card .form-control::placeholder {
    color: #64748b;
}

.hero-glass-card label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

/* ==========================================================================
   Trust & Metrics Strip
   ========================================================================== */
.trust-metrics-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 28px 0;
    box-shadow: var(--shadow-xs);
}

.metric-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.metric-box:hover {
    background: var(--bg-page);
}

.metric-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.15));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.metric-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    font-family: var(--font-heading);
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Service Cards & Grid
   ========================================================================== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    color: var(--text-heading) !important;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.service-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(37, 99, 235, 0.35);
}

.service-card-modern:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.12));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    transition: var(--transition-bounce);
}

.service-card-modern:hover .service-icon-box {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.service-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 24px 0;
}

.service-feature-list li {
    font-size: 0.88rem;
    color: var(--text-body);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-feature-list li i {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ==========================================================================
   Ahmedabad Local Coverage & Neighborhood Pills
   ========================================================================== */
.local-coverage-box {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.local-coverage-box::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.locality-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.locality-pill:hover, .locality-pill.active {
    background: var(--primary);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   Comparison Table (Detroja vs Others)
   ========================================================================== */
.comparison-table-wrap {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-md);
}

.table-comparison {
    margin-bottom: 0;
    min-width: 620px;
}

.table-comparison th {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 18px 22px;
}

.table-comparison td {
    padding: 16px 22px;
    vertical-align: middle;
    font-size: 0.92rem;
}

.table-comparison .col-detroja {
    background: rgba(37, 99, 235, 0.04);
    border-left: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

.table-comparison th.col-detroja {
    background: var(--primary-light);
    color: var(--primary);
}

/* ==========================================================================
   Cost Estimator Component
   ========================================================================== */
.estimator-container {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 38px;
}

.device-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.device-picker-item {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.device-picker-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
}

.device-picker-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary);
}

.device-picker-icon {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.device-picker-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* Homepage Instant Calculator Preview Card */
.calc-preview-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.calc-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.calc-badge-top {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.calc-price-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5.5vw, 2.75rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 8px 0;
}

.calc-turnaround-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: 0.86rem;
    color: var(--text-body);
    box-shadow: var(--shadow-xs);
}

.calc-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

@media (min-width: 576px) {
    .calc-actions-group {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition-fast);
}

@media (max-width: 575.98px) {
    .calc-btn {
        width: 100%;
        padding: 13px 18px;
        font-size: 0.96rem;
    }
}

.estimate-result-card {
    background: linear-gradient(135deg, #090e17 0%, #0f172a 60%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 90px;
}

.estimate-price-value {
    font-size: 2.9rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1;
    margin: 16px 0 10px 0;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Repair Tracker Pipeline
   ========================================================================== */
.tracker-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 38px;
}

.pipeline-steps-modern {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 45px 0 35px 0;
}

.pipeline-steps-modern::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 45px;
    right: 45px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 4px;
}

.pipeline-step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.pipeline-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px auto;
    transition: var(--transition-base);
}

.pipeline-step-item.completed .pipeline-icon-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
}

.pipeline-step-item.active .pipeline-icon-circle {
    background: #ffffff;
    border-color: #38bdf8;
    color: var(--primary);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.3);
    animation: trackerPulse 2s infinite;
}

@keyframes trackerPulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.pipeline-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.pipeline-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Reviews / Testimonials Cards
   ========================================================================== */
.review-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    height: 100%;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.review-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.star-rating-gold {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-author-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: #060911;
    color: #94a3b8;
    padding: 75px 0 30px 0;
    font-size: 0.92rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    height: 46px;
    margin-bottom: 18px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 11px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

/* Footer Bottom Copyright & Links Bar - High Contrast & Visibility */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 50px;
    padding-top: 24px;
    padding-bottom: 12px;
    font-size: 0.875rem;
    color: #cbd5e1 !important; /* High contrast, crisp slate */
}

.footer-copyright-text {
    color: #cbd5e1 !important;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-copyright-text strong {
    color: #ffffff !important;
    font-weight: 700;
}

.footer-bottom-links {
    font-size: 0.875rem;
}

.footer-bottom-link {
    color: #cbd5e1 !important; /* Clearly readable light text */
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.footer-bottom-link:hover,
.footer-bottom-link:focus {
    color: #ffffff !important;
    background: rgba(37, 99, 235, 0.35);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.8rem;
    user-select: none;
}

@media (max-width: 767.98px) {
    .footer-bottom-bar {
        margin-top: 35px;
        padding-top: 20px;
        padding-bottom: 25px;
        text-align: center;
    }
    .footer-bottom-sep {
        display: none;
    }
    .footer-bottom-link {
        font-size: 0.82rem;
        padding: 7px 12px;
    }
}

/* Payment Icons in Footer */
.payment-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (Standard in leading Indian apps)
   ========================================================================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
    z-index: 1040;
}

.bottom-bar-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    transition: var(--transition-fast);
    flex: 1;
}

.bottom-bar-action i {
    font-size: 1.25rem;
}

.bottom-bar-action:hover, .bottom-bar-action.active {
    color: #38bdf8;
}

.bottom-bar-action.highlight {
    color: #25d366;
}

@media (min-width: 992px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

/* ==========================================================================
   Floating Action Buttons & Live Toast
   ========================================================================== */
.floating-actions-desktop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1020;
}

.btn-float-action {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
    position: relative;
}

.btn-float-action:hover {
    transform: scale(1.12);
    color: #ffffff;
}

.btn-float-whatsapp {
    background: #25d366;
}

.btn-float-backtotop {
    background: var(--secondary-card);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.btn-float-backtotop.show {
    opacity: 1;
    visibility: visible;
}

/* Live Social Proof Toast */
.social-proof-toast {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 360px;
    z-index: 1010;
    transform: translateY(120px);
    opacity: 0;
    transition: var(--transition-base);
}

.social-proof-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive Adaptations & Mobile Experience
   ========================================================================== */
@media (max-width: 991.98px) {
    /* Mobile Navbar Drawer */
    .main-navbar .navbar-collapse {
        background: #ffffff;
        border-radius: var(--radius-md);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
        padding: 16px;
        margin-top: 12px;
        border: 1px solid var(--border-light);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .mobile-drawer-header {
        background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }
    .mobile-drawer-header .btn-primary {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        font-weight: 700;
        font-size: 0.92rem;
    }
    .mobile-drawer-header .btn-outline-light {
        border-color: rgba(255, 255, 255, 0.28) !important;
        color: #f1f5f9 !important;
        font-size: 0.90rem;
    }
    .mobile-drawer-header .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
    }

    .main-navbar .nav-link {
        padding: 10px 14px !important;
        font-size: 0.94rem;
        border-radius: 8px;
        margin-bottom: 2px;
    }

    .dropdown-menu-custom {
        border: 1px solid #e2e8f0;
        box-shadow: none;
        padding: 8px;
        margin-top: 4px;
        min-width: 100%;
        max-width: 100%;
        animation: none;
        background: #f8fafc;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-glass-card {
        padding: 26px;
    }

    .pipeline-steps-modern {
        flex-direction: column;
        gap: 22px;
    }

    .pipeline-steps-modern::before {
        display: none;
    }

    .pipeline-step-item {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .pipeline-icon-circle {
        margin: 0;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.95rem;
    }

    .border-end-md {
        border-right: none !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 42px 0 65px !important;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-btn-main {
        width: 100% !important;
        justify-content: center;
        padding: 13px 20px !important;
        font-size: 1rem !important;
    }

    .hero-btn-row {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .hero-btn-row .btn {
        flex: 1;
        justify-content: center;
        padding: 11px 12px !important;
        font-size: 0.86rem !important;
        white-space: nowrap;
    }

    .hero-trust-pill {
        font-size: 0.78rem;
        padding: 5px 11px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .display-3 {
        font-size: 2.75rem;
    }

    .display-5 {
        font-size: 1.95rem;
    }

    .section-tag {
        font-size: 0.74rem;
        padding: 4px 10px;
    }

    /* Mobile Container Padding Optimization */
    .hero-glass-card {
        padding: 20px 16px !important;
    }

    .estimator-container {
        padding: 20px 16px !important;
    }

    .estimate-result-card {
        padding: 24px 16px !important;
        position: static !important;
        margin-top: 24px;
    }

    .estimate-price-value {
        font-size: 2.15rem;
    }

    .tracker-card {
        padding: 20px 16px !important;
    }

    .doorstep-cta-banner {
        padding: 24px 16px !important;
    }

    .service-card-modern {
        padding: 22px 18px !important;
    }

    .stat-card-modern {
        padding: 18px 14px !important;
    }

    .floating-actions-desktop {
        display: none; /* Managed by mobile bottom bar */
    }

    .social-proof-toast {
        display: none; /* Keep mobile view clean */
    }
}

@media (max-width: 480px) {
    .device-picker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .device-picker-item {
        padding: 12px 8px;
    }

    .device-picker-label {
        font-size: 0.78rem;
    }

    .metric-box {
        padding: 16px 10px;
    }
}
