/* Wheelers Complete Auto Care - Main Stylesheet */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Exclude tiny UI elements from the max-width constraint */
.hamburger-line {
    max-width: none !important;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    background-color: #000;
    border-bottom: 2px solid #e30613;
    position: sticky;
    top: 0;
    z-index: 100; /* Tier 1: Header above page content, below mobile menu */
    transition: padding 0.3s ease, height 0.3s ease;
    padding: 15px 0;
}

.header.scrolled {
    padding: 8px 0;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: flex-direction 0.3s ease;
}

.header.scrolled .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header .top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header.scrolled .top-row {
    justify-content: space-between;
}

.header .logo img {
    max-width: 200px;
    height: auto;
    transition: max-width 0.3s ease;
}

.header.scrolled .logo img {
    max-width: 150px;
}

.header .right-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .contact-details {
    transition: margin 0.3s ease;
}

.header.scrolled .contact-details {
    margin: 0;
}

.header .call-now {
    display: inline-flex;
    align-items: center;
    background-color: #e30613;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease, padding 0.3s ease, font-size 0.3s ease, height 0.3s ease;
    height: 40px;
    line-height: 20px;
}

.header.scrolled .call-now {
    padding: 8px 16px;
    font-size: 0.9rem;
    height: 40px;
}

.header .call-now i {
    margin-right: 8px;
}

.header .call-now:hover {
    background-color: #b5050f;
    color: #fff;
}

/* Navigation Styles */
/* MOBILE MENU BUTTON — visible on mobile, hidden on desktop */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 50px;
    height: 50px;
    background-color: #e30613;
    border: none;
    border-radius: 0; /* Clean square — no rounded corners */
    cursor: pointer;
    padding: 0;
    z-index: 300; /* Tier 3: Same level as mobile menu, above overlay and header */
    position: relative;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(227, 6, 19, 0.3);
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background-color: #b5050f;
}

.hamburger-line {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    min-height: 2px !important;
    background-color: #fff !important;
    border-radius: 1px;
    transition: all 0.3s ease;
    pointer-events: none;
    flex-shrink: 0;
}

/* Hide mobile menu elements on desktop */
@media (min-width: 992px) {
    .mobile-menu-btn,
    .mobile-side-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Mobile: constrain logo so it doesn't overlap hamburger */
@media (max-width: 991px) {
    .header .logo img {
        max-width: 150px;
    }

    .header .top-row {
        gap: 10px;
    }

    .header .right-section {
        flex-shrink: 0;
    }

    /* Hide desktop nav and large call button on mobile */
    .desktop-nav {
        display: none !important;
    }

    .header .contact-details {
        display: none;
    }

    /* Prevent financing banner text from running under the hamburger button */
    .top-financing-banner {
        padding-right: 65px !important; /* Room for the hamburger button */
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .top-financing-banner a {
        font-size: 0.75rem !important;
        margin-left: 5px !important;
    }
}

/* MOBILE SIDE MENU — slides in from right */
.mobile-side-menu {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 300px !important;
    height: 100vh !important;
    background: #1a1a1a !important;
    z-index: 300 !important; /* Tier 3: Above overlay (200) and header (100) */
    transition: right 0.1s ease, visibility 0.1s ease, opacity 0.1s ease !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    opacity: 0 !important;
    /* Hide scrollbars but keep scrolling */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

.mobile-side-menu.open {
    right: 0 !important; /* Slide in from right */
    visibility: visible !important;
    opacity: 1 !important; /* Fully visible when open */
}

/* Hide scrollbars in mobile menu for all browsers */
.mobile-side-menu::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Edge */
}

.mobile-menu-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 25px 20px !important;
    border-bottom: 2px solid #444 !important;
    background: linear-gradient(135deg, #e30613 0%, #b5050f 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.mobile-menu-header h3 {
    color: white !important;
    margin: 0 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-nav-link {
    display: block !important;
    padding: 18px 25px !important;
    color: #f0f0f0 !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #444 !important;
    transition: all 0.4s ease !important;
    position: relative !important;
}

.mobile-nav-link:before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 100% !important;
    width: 4px !important;
    background-color: #e30613 !important;
    transform: scaleY(0) !important;
    transition: transform 0.3s ease !important;
}

.mobile-nav-link:hover {
    background-color: rgba(227, 6, 19, 0.1) !important;
    color: white !important;
    padding-left: 35px !important;
    transform: translateX(5px) !important;
}

.mobile-nav-link:hover:before {
    transform: scaleY(1) !important;
}

.mobile-nav-link.call-link {
    background: linear-gradient(135deg, #e30613 0%, #b5050f 100%) !important;
    margin: 25px 20px !important;
    border-radius: 12px !important;
    text-align: center !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.mobile-nav-link.call-link:hover {
    background: linear-gradient(135deg, #b5050f 0%, #8a0409 100%) !important;
    padding-left: 25px !important;
    transform: translateX(0) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4) !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200; /* Tier 2: Above header (100), below menu (300) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:active {
    background-color: #b5050f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    transform: scale(1.05); /* Slight scale on interaction */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    display: block;
}

.navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background-color: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9998; /* High z-index for mobile menu */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

.navbar-collapse.show {
    transform: translateX(0);
}

.navbar-close {
    background-color: #e30613;
    border: none;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color 0.3s ease;
}

.navbar-close:hover {
    background-color: #b5050f;
}

.navbar-nav {
    width: 100%;
    margin-top: 20px;
}

.navbar-nav .nav-item {
    margin: 10px 0;
}

.navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #e30613;
    color: #fff;
}

.desktop-nav {
    display: none;
}

.desktop-nav .nav-link {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    background-color: #e30613;
}

.scrolled-nav {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.header.scrolled .scrolled-nav {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scrolled-nav .nav-link {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 15px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.scrolled-nav .nav-link:hover {
    background-color: #b5050f;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1; /* Ensure hero section is below header */
    width: 100%;
    max-width: 100vw; /* Prevent viewport overflow */
    overflow-x: hidden; /* Clip horizontal overflow */
}

.hero {
    position: relative;
    height: 120vh;
    overflow: hidden;
    z-index: 1; /* Keep hero below header */
    width: 100%;
    max-width: 100vw; /* Prevent viewport overflow */
}

.hero-slideshow {
    position: relative;
    height: 120vh;
    width: 100%;
    max-width: 100vw; /* Prevent viewport overflow */
    overflow: hidden; /* Clip any overflow */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw; /* Prevent viewport overflow */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease-in-out;
    transform-origin: center center;
    overflow: hidden; /* Clip any overflow */
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Video Hero Styles */
.hero-slide.video-slide::before {
    background: rgba(0, 0, 0, 0.4); /* Lighter overlay for videos */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.15rem; /* 10% smaller than 3.5rem */
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem; /* 10% smaller than 1.5rem */
    font-weight: 600;
    color: #ffffff; /* Changed to white for better visibility */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Stronger shadow for contrast */
}

.hero-description {
    font-size: 0.99rem; /* 10% smaller than 1.1rem */
    font-weight: 500; /* Slightly bolder for better visibility */
    color: #ffffff !important; /* Force white color */
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9); /* Stronger shadow for better contrast */
    opacity: 1; /* Full opacity for maximum visibility */
}

/* FORCE ALL HERO TEXT TO BE WHITE */
.hero-content p,
.hero-content span,
.hero-content div {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
}

/* Ensure ALL text in hero content is white and visible */
.hero-content p {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-hero.primary, .btn-danger {
    background: linear-gradient(135deg, #e30613 0%, #a10008 100%);
    color: #fff;
    box-shadow:
        0 4px 15px rgba(227, 6, 19, 0.35),
        0 0 0 0 rgba(227, 6, 19, 0);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero.primary:hover, .btn-danger:hover {
    background: linear-gradient(135deg, #f7202d 0%, #b5050f 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(227, 6, 19, 0.5),
        0 0 20px rgba(227, 6, 19, 0.2);
}

.btn-hero.primary:active, .btn-danger:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.4);
}

/* Shimmer sweep effect */
.btn-hero.primary::after, .btn-danger::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 2;
    transform: skewX(-20deg);
}

.btn-hero.primary:hover::after, .btn-danger:hover::after {
    left: 140%;
}

.btn-hero.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero.secondary:hover {
    background-color: #fff;
    color: #e30613;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* General Section Styles */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2; /* Ensure sections are above hero */
    background: #fff; /* Ensure sections have background */
    margin: 0; /* Remove any default margins */
    clear: both; /* Clear any floats */
}

/* Ensure first section after hero has proper spacing */
.hero-section + .section {
    margin-top: 0;
    padding-top: 80px;
}

/* Testimonials Section - Reduced spacing */
.section.testimonials {
    padding: 60px 0 40px 0;
}

/* Page Banner Styles */
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* No space between banner and navigation */
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
}

.page-banner h1 {
    color: #fff;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-banner .lead {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-banner-cta {
    margin-top: 20px;
}

/* Legacy page-header styles for backward compatibility */
.page-header {
    background-color: #f8f9fa;
    padding: 60px 0 40px;
    margin-top: 70px;
}

.page-header h1 {
    color: #e30613;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

h2 {
    color: #e30613;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Service Cards - Premium Glassmorphism (Tier 2/Light) */
.service-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    padding: 2.5rem 2rem;
    color: #1a1a1a;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e30613, #b5050f);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(227, 6, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #e30613, #b5050f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.service-card h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/* Fallback for no backdrop-filter support */
@supports not (backdrop-filter: blur(1px)) {
    .service-card {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #eee !important;
    }
}

/* Special Cards - Steel Finish with Animated Shine */
.special-card {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #ced4da 75%, #adb5bd 100%);
    border: 2px solid #6c757d;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.special-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    z-index: 1;
}

.special-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.special-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 6px 12px rgba(227, 6, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border-color: #e30613;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 25%, #e3e7ea 50%, #d6dce1 75%, #c1c9d0 100%);
}

.special-card * {
    position: relative;
    z-index: 2;
}

.special-card h4 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.special-card:hover h4 {
    color: #e30613;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.special-card p {
    color: #495057;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.special-card ul {
    list-style: none;
    padding: 0;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 25px;
}

.special-card ul li {
    margin: 10px 0;
    padding: 8px 0 8px 35px;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.special-card ul li:last-child {
    border-bottom: none;
}

.special-card ul li::before {
    content: '✓';
    position: absolute;
    left: 10px;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.special-card:hover ul li {
    color: #495057;
    transform: translateX(5px);
}

.special-card .cta {
    background: linear-gradient(135deg, #e30613 0%, #b5050f 100%);
    border: 2px solid #e30613;
    box-shadow:
        0 2px 4px rgba(227, 6, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.special-card .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.special-card .cta:hover::before {
    left: 100%;
}

.special-card .cta:hover {
    background: linear-gradient(135deg, #b5050f 0%, #8b0409 100%);
    box-shadow:
        0 4px 8px rgba(227, 6, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* CTA Button */
.cta {
    background-color: #e30613;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.cta.cta-big {
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta:hover {
    background-color: #b5050f;
    color: #fff;
}

.finance-note {
    color: #e30613;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 10px 0;
}

/* Enhanced Testimonial Cards with Mobile Animations */
.testimonial-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card .stars {
    font-size: 1.2rem;
}

.testimonial-card .review-text {
    font-style: italic;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}

.testimonial-card .customer-name {
    color: #e30613;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Enhanced Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-inner {
    position: relative;
}

.testimonials-slide {
    transition: transform 0.6s ease-in-out;
}

.testimonials-row {
    margin: 0 -10px;
}

.testimonial-col {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Enhanced Card Animation */
.enhanced-card {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.6s ease-out forwards;
}

.carousel-item.active .enhanced-card {
    animation-delay: calc(var(--slide-delay, 0) * 1ms);
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Carousel Controls Enhancement */
.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(227, 6, 19, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.testimonials-carousel .carousel-control-prev {
    left: -25px;
}

.testimonials-carousel .carousel-control-next {
    right: -25px;
}

.testimonials-carousel .carousel-control-prev:hover,
.testimonials-carousel .carousel-control-next:hover {
    background-color: rgba(227, 6, 19, 1);
    transform: translateY(-50%) scale(1.1);
}

.testimonials-carousel .carousel-control-prev-icon,
.testimonials-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Enhanced Carousel Indicators */
.testimonials-carousel .carousel-indicators {
    bottom: -40px;
    margin-bottom: 0;
}

.testimonials-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.testimonials-carousel .carousel-indicators button.active {
    background-color: #e30613;
    transform: scale(1.2);
}

/* Contact Info */
.contact-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-info p {
    margin: 5px 0;
}

/* Contact Form Styles */
.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #e30613;
    box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.form-check-input:checked {
    background-color: #e30613;
    border-color: #e30613;
}

.form-check-input:focus {
    border-color: #e30613;
    box-shadow: 0 0 0 0.25rem rgba(227, 6, 19, 0.25);
}

/* Contact Form Messages */
.contact-message {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

.contact-message.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-left: 4px solid #155724;
}

.contact-message.alert-danger {
    background: linear-gradient(135deg, #dc3545, #e30613);
    color: white;
    border-left: 4px solid #721c24;
}

.contact-message .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.contact-message .btn-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form Loading State */
#contactForm button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Service Page Styles */
.service-hero {
    position: relative;
    overflow: hidden;
    /* Override the inline padding: 100px 0 which is too small for desktop.
       Header stack is ~210px (financing banner + call banner + logo/nav).
       250px top gives comfortable breathing room for the h1. */
    padding: 250px 0 80px 0 !important;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

/* Hero badge — static, no floating animation to prevent overlap */
.hero-badge {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

.feature-box {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-includes .include-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.service-includes .include-item:hover {
    background-color: #f8f9fa;
    transform: translateX(10px);
}

.service-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.service-image-container img {
    transition: transform 0.3s ease;
}

.service-image-container:hover img {
    transform: scale(1.05);
}

.related-service {
    transition: all 0.3s ease;
}

.related-service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.2);
    background-color: #f8f9fa;
}

.cta-buttons .btn {
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

/* =============================================
   Service Page Text Readability Fix
   - Service pages have sections with class="section" and NO inline style,
     which default to white backgrounds. But inline text uses #bbb/#ddd 
     (designed for dark bg), making it invisible on white.
   - These overrides force dark text ONLY on sections without inline styles.
   - Elements inside dark-background containers (cards, feature boxes with
     background: #111) are excluded to preserve their light text.
   ============================================= */

/* Body text on unstyled (white-bg) sections — exclude children of dark containers */
.section:not([style]) > .container p,
.section:not([style]) > .container > .lead {
    color: #222 !important;
}

/* Re-allow light text inside dark-background cards/containers nested in unstyled sections */
.section:not([style]) [style*="background: #111"] p,
.section:not([style]) [style*="background: #111"] .lead,
.section:not([style]) [style*="background:#111"] p,
.section:not([style]) [style*="background:#111"] .lead,
.section:not([style]) [style*="background-color: #111"] p,
.section:not([style]) [style*="background-color:#111"] p {
    color: #ddd !important;
}

/* Re-allow light text for headings inside dark containers */
.section:not([style]) [style*="background: #111"] h2,
.section:not([style]) [style*="background: #111"] h3,
.section:not([style]) [style*="background: #111"] h4,
.section:not([style]) [style*="background: #111"] h5,
.section:not([style]) [style*="background:#111"] h2,
.section:not([style]) [style*="background:#111"] h3,
.section:not([style]) [style*="background:#111"] h4,
.section:not([style]) [style*="background:#111"] h5,
.section:not([style]) [style*="background-color: #111"] h2,
.section:not([style]) [style*="background-color: #111"] h3,
.section:not([style]) [style*="background-color: #111"] h4,
.section:not([style]) [style*="background-color: #111"] h5,
.section:not([style]) [style*="background-color:#111"] h2,
.section:not([style]) [style*="background-color:#111"] h3,
.section:not([style]) [style*="background-color:#111"] h4,
.section:not([style]) [style*="background-color:#111"] h5 {
    color: #fff !important;
}

/* Re-allow light text on li elements inside dark containers */
.section:not([style]) [style*="background: #111"] li,
.section:not([style]) [style*="background:#111"] li {
    color: #bbb !important;
}

/* Headings on unstyled (white-bg) sections */
.section:not([style]) > .container h2,
.section:not([style]) > .container h3,
.section:not([style]) > .container h4 {
    color: #111 !important;
}

/* Feature boxes have bg #f8f9fa (light gray) — ensure dark text inside */
.feature-box h4 {
    color: #111 !important;
}

.feature-box p {
    color: #333 !important;
}

/* Responsive adjustments for service pages */
@media (max-width: 768px) {
    /* Service Hero — clear the sticky header stack on mobile
       (financing banner ~65px wraps + call banner ~40px + header ~80px + logo ~80px ≈ 265px) */
    .service-hero {
        padding: 320px 20px 60px 20px !important; /* Extra generous top padding to clear header */
        min-height: 70vh !important;
    }

    /* Scale down service hero headings for mobile readability */
    .service-hero .display-1 {
        font-size: 1.75rem !important;
        line-height: 1.1 !important;
        letter-spacing: -1px !important;
        margin-bottom: 15px !important;
    }

    .service-hero .display-4 {
        font-size: 2rem !important;
    }

    .service-hero .lead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    /* Stack hero buttons vertically on mobile */
    .service-hero .hero-buttons {
        flex-direction: column !important;
        display: flex !important;
        gap: 10px !important;
    }

    .service-hero .hero-buttons .btn {
        width: 100% !important;
        text-align: center !important;
        margin-right: 0 !important;
    }

    /* Specials Hero — same header clearance treatment */
    .specials-hero {
        padding-top: 140px !important;
        min-height: 65vh !important;
    }

    .hero-badge {
        margin-top: 20px;
    }

    .process-step {
        margin-bottom: 40px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Financing Section Styles */
.financing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-top: 0;
    position: relative;
    z-index: 3;
    clear: both; /* Clear any floats */
}

.financing-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.financing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e30613;
}

.financing-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.financing-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.financing-logo {
    max-height: 80px;
    max-width: 300px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.financing-logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Make American First Finance logo 5% smaller */
.financing-card:first-child .financing-logo {
    width: 95%;
    max-width: 95%;
}

/* Center all elements within financing cards */
.financing-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.financing-logo-container,
.financing-link-container,
.financing-description-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.financing-link-text {
    display: inline-block;
    text-align: center;
    margin-top: 10px;
    color: #e30613;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.financing-link-text:hover {
    color: #b5050f;
    text-decoration: underline;
}

.financing-card h4 {
    color: #e30613;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.financing-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.financing-benefits {
    background: rgba(227, 6, 19, 0.05);
    border-radius: 15px;
    padding: 40px 20px;
}

.benefit-item {
    text-align: center;
    padding: 20px 15px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: #e30613;
    margin-bottom: 15px;
}

.benefit-item h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-item p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.financing-section .lead {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.7;
}

.financing-section h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

/* Footer Styles */
.footer {
    background-color: #000;
    padding: 50px 0;
    border-top: 2px solid #e30613;
    color: #ccc;
}

.footer h5 {
    color: #e30613;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 4px solid #e30613;
    padding-bottom: 5px;
    display: inline-block;
}

.footer p {
    color: #ccc;
    font-size: 1rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.footer .contact-us p:not(:last-child) {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.footer .contact-us p.address-border,
.footer .contact-us p.phone-border {
    border-bottom: 1px solid #666;
}

.footer p i {
    margin-right: 15px;
    color: #e30613;
    font-size: 1.5rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #e30613;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin: 8px 0;
}

.footer .container {
    max-width: 1200px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

/* Electric Design by XK Link */
.design-by-link {
    position: relative;
    display: inline-block;
    margin-top: 5px;
    padding: 8px 16px;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.design-by-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.electric-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spark {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow:
        0 0 4px #00ffff,
        0 0 8px #00ffff,
        0 0 12px #00ffff;
}

.spark-1 {
    top: 20%;
    left: 15%;
    animation: spark-flicker 0.8s infinite alternate;
}

.spark-2 {
    top: 60%;
    left: 25%;
    animation: spark-flicker 1.2s infinite alternate;
    animation-delay: 0.2s;
}

.spark-3 {
    top: 30%;
    right: 20%;
    animation: spark-flicker 0.9s infinite alternate;
    animation-delay: 0.4s;
}

.spark-4 {
    bottom: 25%;
    right: 15%;
    animation: spark-flicker 1.1s infinite alternate;
    animation-delay: 0.6s;
}

.spark-5 {
    top: 45%;
    left: 50%;
    animation: spark-flicker 0.7s infinite alternate;
    animation-delay: 0.3s;
}

.spark-6 {
    bottom: 40%;
    left: 35%;
    animation: spark-flicker 1.3s infinite alternate;
    animation-delay: 0.5s;
}

@keyframes spark-flicker {
    0% {
        opacity: 0;
        transform: scale(0.5);
        box-shadow:
            0 0 2px #00ffff,
            0 0 4px #00ffff,
            0 0 6px #00ffff;
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow:
            0 0 6px #00ffff,
            0 0 12px #00ffff,
            0 0 18px #00ffff,
            0 0 24px #0088ff;
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
        box-shadow:
            0 0 4px #00ffff,
            0 0 8px #00ffff,
            0 0 12px #00ffff;
    }
}

/* Hover Effects */
.design-by-link:hover {
    background: #111;
    border-color: #00ffff;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    box-shadow:
        0 0 15px rgba(0, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.design-by-link:hover .electric-sparks {
    opacity: 1;
}

.design-by-link:hover .design-by-text {
    text-shadow:
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 15px #00ffff;
}

/* Add electric border animation on hover */
.design-by-link:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent,
        #00ffff,
        transparent,
        #0088ff,
        transparent,
        #00ffff,
        transparent);
    background-size: 400% 400%;
    border-radius: 8px;
    z-index: -1;
    animation: electric-border 2s linear infinite;
}

@keyframes electric-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Legacy support for old design-by class */
.footer-bottom .design-by {
    margin-top: 5px;
    font-size: 0.7rem;
}



.footer .areas-service {
    display: flex;
    justify-content: space-between;
}

.footer .areas-service ul {
    flex: 1;
    margin: 0 10px;
}

/* Footer Navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #e30613;
}

.footer-nav i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header .top-row {
        flex: 1;
    }
    .navbar-toggler, .navbar-collapse, .scrolled-nav {
        display: none;
    }
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .header .right-section {
        gap: 10px;
    }
    .header .contact-details {
        margin-left: auto;
    }
}

/* Enhanced Mobile Styles with Better Padding */
@media (max-width: 768px) {
    /* Header Mobile Improvements */
    .header {
        height: 60px;
        padding: 0 15px 0 15px;
        display: flex;
        z-index: 100; /* Tier 1: Same as desktop — below mobile menu overlay (200) and menu (300) */
        align-items: center;
    }
    .header.scrolled {
        height: 60px;
        padding: 0 15px 0 15px;
    }
    .header .right-section {
        padding-right: 60px; /* Make room for fixed mobile menu button */
    }
    .header .logo img {
        max-width: 125px !important; /* 75% smaller than original 500px logo */
    }
    .header.scrolled .logo img {
        max-width: 125px !important; /* Keep same size when scrolled on mobile */
    }
    .header .call-now {
        font-size: 0.9rem;
        padding: 4px 10px;
        height: 32px;
        line-height: 24px;
        margin-right: 10px;
    }
    .header.scrolled .call-now {
        padding: 4px 10px;
        height: 32px;
    }
    /* SHOW MOBILE MENU BUTTON — clean red square, flush top-right */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        z-index: 300 !important; /* Tier 3: Above header (100), same as menu */
        background-color: #e30613 !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important; /* Clean square */
        width: 50px !important;
        height: 50px !important;
        gap: 5px !important;
    }

    .mobile-menu-btn:hover {
        background-color: #b5050f !important;
    }

    .hamburger-line {
        width: 22px !important;
        height: 2px !important;
        min-height: 2px !important;
        background-color: #fff !important;
        margin: 0 !important;
        border-radius: 1px !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    /* Mobile Side Menu Styling */
    .mobile-side-menu {
        position: fixed !important;
        top: 0 !important;
        right: -320px !important;
        width: 320px !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
        z-index: 300 !important; /* Tier 3: Above overlay (200) and header (100) */
        transition: right 0.1s ease, visibility 0.1s ease, opacity 0.1s ease !important;
        overflow-y: auto !important;
        visibility: hidden !important;
        opacity: 0 !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
        border-left: 3px solid #e30613 !important;
        /* Hide scrollbars on mobile */
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE/Edge */
    }

    .mobile-side-menu.open {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 25px 20px !important;
        border-bottom: 2px solid #444 !important;
        background: linear-gradient(135deg, #e30613 0%, #b5050f 100%) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .mobile-menu-header h3 {
        color: white !important;
        margin: 0 !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    }

    .mobile-menu-close {
        background: none !important;
        border: none !important;
        color: white !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        padding: 5px !important;
        border-radius: 4px !important;
        transition: background-color 0.3s ease !important;
    }

    .mobile-menu-close:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-menu-nav {
        padding: 20px 0 !important;
    }

    .mobile-nav-link {
        display: block !important;
        padding: 18px 25px !important;
        color: #f0f0f0 !important;
        text-decoration: none !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        border-bottom: 1px solid #444 !important;
        transition: all 0.4s ease !important;
        position: relative !important;
    }

    .mobile-nav-link:hover {
        background-color: rgba(227, 6, 19, 0.1) !important;
        color: white !important;
        padding-left: 35px !important;
        transform: translateX(5px) !important;
    }

    .mobile-nav-link.call-link {
        background: linear-gradient(135deg, #e30613 0%, #b5050f 100%) !important;
        margin: 25px 20px !important;
        border-radius: 12px !important;
        text-align: center !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3) !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
    }

    .mobile-nav-link.call-link:hover {
        background: linear-gradient(135deg, #b5050f 0%, #8a0409 100%) !important;
        transform: scale(1.02) !important;
        box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4) !important;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        z-index: 200 !important; /* Tier 2: Covers header (100), below menu (300) */
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }

    .mobile-menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide Desktop Navigation on Mobile */
    .desktop-nav {
        display: none !important;
    }
    .header.scrolled .scrolled-nav {
        display: none;
    }
    .navbar .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
        margin: 5px 0;
    }
    .desktop-nav {
        display: none;
    }

    /* Home Page Editorial Hero - Prevent header overlap on mobile */
    .editorial-hero {
        height: auto !important;
        min-height: 75vh !important;
        padding-top: 100px !important; /* Clear the sticky header + financing banner */
        padding-bottom: 40px !important;
        align-items: flex-end !important;
    }

    .editorial-hero .display-1 {
        font-size: 2.2rem !important; /* Scale down from display-1 to fit mobile */
        line-height: 1 !important;
        letter-spacing: -1px !important;
        margin-bottom: 10px !important;
    }

    .editorial-hero .lead {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    .editorial-hero .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .editorial-hero .btn-lg {
        font-size: 1rem !important;
        padding: 12px 24px !important;
    }

    .editorial-hero .d-flex.flex-wrap {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .editorial-hero .d-flex.flex-wrap .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* Hero Section Mobile */
    .hero-section,
    .hero,
    .hero-slideshow {
        height: 40vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero {
        height: 40vh !important;
        min-height: 40vh !important;
        max-height: 40vh !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    .hero-slide {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }

    .hero-video {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 150% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .hero-content {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 1.38rem; /* 15% smaller again (was 1.62rem) */
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 0.76rem; /* 15% smaller again (was 0.89rem) */
        margin-bottom: 12px;
    }
    .hero-description {
        font-size: 0.62rem; /* 15% smaller again (was 0.73rem) */
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .btn-hero {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 200px;
        text-align: center;
    }

    /* MOBILE ONLY - BULLETPROOF HAMBURGER MENU */
    .navbar-toggler {
        position: relative !important;
        z-index: 99999 !important;
        pointer-events: auto !important;
        display: flex !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: rgba(227, 6, 19, 0.8) !important;
        cursor: pointer !important;
        min-width: 60px !important;
        min-height: 60px !important;
        padding: 15px !important;
        background-color: #e30613 !important;
        border: 3px solid #fff !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }

    .navbar-toggler:active,
    .navbar-toggler:focus,
    .navbar-toggler:hover {
        background-color: #b5050f !important;
        transform: scale(1.1) !important;
        border-color: #fff !important;
    }

    .navbar-toggler-icon {
        width: 30px !important;
        height: 30px !important;
        display: block !important;
        pointer-events: none !important;
        background-size: 100% 100% !important;
    
        padding: 12px 16px !important;
        background-color: #e30613 !important;
        border: none !important;
        border-radius: 5px !important;
    }

    .navbar-toggler:hover,
    .navbar-toggler:focus,
    .navbar-toggler:active {
        background-color: #b5050f !important;
        transform: scale(1.05) !important;
    }

    /* Force hamburger icon visibility */
    .navbar-toggler-icon {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        pointer-events: none !important;
    }

    /* MOBILE: Force ALL overlays UNDER header/hamburger */
    .hero-section,
    .hero-slide,
    .hero-slide::before,
    .hero-overlay,
    .page-banner-overlay,
    .service-hero::before {
        z-index: 1 !important; /* Keep ALL overlays and hero section below header */
    }

    /* Section Padding Improvements */
    .section {
        padding: 50px 0;
    }
    .section .container {
        padding: 0 20px;
    }
    .section.testimonials {
        padding: 40px 0 60px 0;
    }
    .section.testimonials .container {
        padding: 0 15px;
    }

    /* Page Headers Mobile */
    .page-header {
        padding: 50px 0 30px;
        margin-top: 60px;
    }
    .page-header .container {
        padding: 0 20px;
    }
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-banner {
        height: auto !important;
        min-height: 50vh !important;
        margin-top: 0;
        padding: 0 20px;
        padding-top: 100px !important; /* Clear sticky header + financing banner */
        padding-bottom: 30px !important;
    }
    .page-banner h1 {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
        line-height: 1.05 !important;
    }
    .page-banner .lead {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 15px !important;
    }
    .page-banner .btn-lg {
        font-size: 1rem !important;
        padding: 12px 20px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Cards Mobile Improvements */
    .service-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .special-card {
        padding: 25px;
        margin-bottom: 30px;
    }
    .special-card h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .special-card ul {
        font-size: 0.95rem;
    }
    .special-card ul li {
        padding: 10px 0 10px 35px;
        margin-bottom: 5px;
    }
    .special-card ul li::before {
        left: 10px;
        font-size: 1rem;
    }

    /* Enhanced Mobile Testimonials */
    .testimonials-carousel {
        margin: 0 -10px;
        padding: 0 10px;
    }
    .testimonials-carousel .carousel-control-prev,
    .testimonials-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
        background-color: rgba(227, 6, 19, 0.9);
    }
    .testimonials-carousel .carousel-control-prev {
        left: -5px;
    }
    .testimonials-carousel .carousel-control-next {
        right: -5px;
    }
    .testimonials-carousel .carousel-control-prev-icon,
    .testimonials-carousel .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
    .testimonial-card {
        padding: 20px;
        margin-bottom: 15px;
        min-height: 250px;
    }
    .testimonial-card .stars {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    .testimonial-card .review-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    .testimonial-card .customer-name {
        font-size: 0.95rem;
        margin-top: 10px;
    }

    /* Mobile Carousel Animation Enhancement */
    .enhanced-card {
        animation-duration: 0.8s;
        animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .testimonial-col {
        padding: 0 8px;
        margin-bottom: 15px;
    }

    /* Mobile Column Stacking */
    .testimonial-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .testimonials-row {
        margin: 0 -8px;
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    /* Mobile Swipe Indicators */
    .testimonials-carousel .carousel-indicators {
        bottom: -50px;
        padding: 0 20px;
    }
    .testimonials-carousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    /* Additional Mobile Adjustments */
    .cta {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .finance-note {
        font-size: 0.9rem;
    }
    .footer {
        padding: 30px 0;
    }
    .footer h5 {
        font-size: 1rem;
        margin-top: 20px;
    }
    .footer p, .footer a {
        font-size: 0.8rem;
    }
    .footer .areas-service {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .footer .areas-service ul {
        margin: 0 5px;
        flex: 1;
    }
}
