:root {
    --accent-red: #007bff; /* Amplified neon red for better visibility on dark glass */
    --glass-bg: rgba(15, 15, 18, 0.65); /* Translucent dark black base */
    --glass-border: rgba(255, 255, 255, 0.08); /* Soft white border edge to catch light */
    --text-light: #ffffff;
    --text-muted: #b0b0b5;
}


body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-light);
    background: #09090b; /* Deep dark background so glassmorphism stands out */
    scroll-behavior: smooth;
}

/* Navigation Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.4rem;
}

/* Floating Button (Top Right) */
.header-cta {
    background: var(--accent-red);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 51, 92, 0.3);
}

    .header-cta:hover {
        background: #e02249;
        box-shadow: 0 6px 20px rgba(255, 51, 92, 0.5);
    }

/* Hero Section with Form */
.hero {
    min-height: 90vh;
    /* Swapped out blue overlay for a rich dark gradient to optimize back-layer contrast */
    background: linear-gradient(rgba(9, 9, 11, 0.75), rgba(9, 9, 11, 0.85)), url('hero2.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

.hero-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 50px;
    align-items: center;
}

.hero-text {
    flex: 1;
    color: var(--text-light);
}

    .hero-text h1 {
        font-family: 'Montserrat', sans-serif;
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 1.2rem;
        color: var(--text-muted);
    }

/* The Hero Form */
.hero-form-box {
    flex: 0 1 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

    .hero-form-box h3 {
        margin-bottom: 20px;
        color: var(--text-light);
        text-align: center;
    }

    .hero-form-box input, .hero-form-box select {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 6px;
        font-size: 1rem;
        color: var(--text-light);
        outline: none;
        transition: 0.3s;
    }

        .hero-form-box input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .hero-form-box input:focus, .hero-form-box select:focus {
            border-color: rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.09);
        }
        /* Dark styling adjustment for dropdown options natively handled by OS */
        .hero-form-box select option {
            background: #121214;
            color: var(--text-light);
        }


.submit-btn {
    width: 100%;
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 51, 92, 0.2);
}

    .submit-btn:hover {
        background: #e02249;
        box-shadow: 0 6px 20px rgba(255, 51, 92, 0.4);
    }

/* Sections */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
    font-size: 2rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--text-muted);
    /* Crucial for positioning the border and shine */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card h3 {
        color: var(--accent-red);
        margin-bottom: 10px;
    }

    .service-card p {
        color: var(--text-muted);
    }

/* ========================================================
   FIXED REVIEW CAROUSEL SECTION
   ======================================================== */
.reviews-section {
    background: #0f0f12;
    color: var(--text-light);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.reviews-title {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.carousel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    /* Added padding on the wrapper to keep mobile edges clean */
    padding: 0 10px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    /* Added to ensure padding inside the container doesn't disrupt card math */
    box-sizing: border-box;
}

    .carousel-container::-webkit-scrollbar {
        display: none;
    }
/* Chrome/Safari */

.review-card {
    /* FIX 1: Accounts perfectly for the 20px gap split between 2 cards */
    width: calc(50% - 10px);
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
    /* FIX 2: Explicitly prevents the browser from shrinking or warping the widths */
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    box-sizing: border-box; /* Ensures padding stays inside the width calculation */
}

    .review-card p {
        font-style: italic;
        margin-bottom: 20px;
        line-height: 1.8;
        color: var(--text-muted);
    }

.reviewer-name {
    font-weight: bold;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}


/* ========================================================
   MOBILE & TABLET RESIZING FIX
   ======================================================== */
@media (max-width: 992px) {
    .review-card {
        /* FIX 3: Forces exactly 1 card wide on mobile screens without running off-canvas */
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.btn-prev {
    left: -50px;
}

.btn-next {
    right: -50px;
}

/* Helper classes for the booking section */
.booking-flex-container {
    max-width: 950px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    display: flex;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: #050507;
    color: #666;
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Footer Link Styling */
.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.8rem;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: var(--accent-red);
    }

/* Mobile Adjustments */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-form-box {
        width: 100%;
    }

    .review-card {
        min-width: 100%;
    }
    /* Shows 1 card on mobile */
    .btn-prev, .btn-next {
        display: none;
    }
    /* Use swipe on mobile */

    body {
        padding-bottom: 80px; /* Prevents sticky button from overlapping footer content */
    }

    /* Mobile Fixed Bottom Button Styles 
    .header-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 0;
        text-align: center;
        padding: 20px;
        font-size: 1.2rem;
        z-index: 2000;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
    }*/

    footer {
        padding-bottom: 40px;
    }
}

/* Mobile-Specific Padding Fix */
@media (max-width: 768px) {
    #book-now {
        padding: 40px 15px !important;
    }

    .booking-card-body {
        padding: 20px !important;
    }

    .booking-flex-container {
        width: 100%;
    }

    .promo-side {
        padding: 30px 20px !important;
    }
}

/* Hero Logo Styling */
.hero-logo {
    margin-bottom: 25px; /* Adds clean spacing above the H1 */
    display: inline-block;
}

    /* If you use an image logo */
    .hero-logo img {
        max-height: 300px; /* Restricts the logo from scaling out of proportion */
        width: auto;
        display: block;
    }

/* If you use the text-based fallback */
.hero-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light); /* Crisp white text */
    opacity: 0.8; /* Subtle transparency to blend with the background design */
}

/* Optional: Mobile alignment fix if everything centers on smaller screens */
@media (max-width: 992px) {
    .hero-logo {
        margin-left: auto;
        margin-right: auto;
    }

        .hero-logo img {
            max-width: 100%;
        }
}



/* Optional: Subtle card lift and blue glow on desktop hover */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 123, 255, 0.25); /* Change to your primary blue */
    }
}

/* ========================================================
   1. ANIMATED BLUE TOP BORDER (6px Thick)
   ======================================================== */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; /* 6px border thickness */
    background: #007bff; /* Replace with your brand blue variable if preferred */
    /* State when not hovered: Collapsed to the left */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* On hover: expands out from left to right */
.service-card:hover::before {
    transform: scaleX(1);
}

/* ========================================================
   2. MOUSE HOVER SHINE (Glass Glint Effect)
   ======================================================== */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Starts completely hidden off-canvas to the left */
    width: 50%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100__ );
    transform: skewX(-25deg); /* Angle of the light glint */
}

/* On hover: sweeps cleanly all the way across to the right */
.service-card:hover::after {
    left: 150%;
    transition: left 0.6s ease-in-out;
}


/* ========================================================
   3. MOBILE PHONE OPTIMIZATION
   ======================================================== */
@media (hover: none) {
    /* 
       On mobile, "hover" states get permanently stuck when tapped. 
       Instead, we use the ':active' touch state to simulate a clean tap response.
    */
    .service-card:active {
        transform: scale(0.97); /* Haptic-like physical "press down" feedback */
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
        transition: transform 0.1s ease;
    }

        /* Triggers the top border instantly on finger press */
        .service-card:active::before {
            transform: scaleX(1);
            transition: transform 0.2s ease;
        }

        /* Shoots the light glint across quickly upon tapping the card */
        .service-card:active::after {
            left: 150%;
            transition: left 0.4s ease-out;
        }
}

/* Deal Container (Matches your glassmorphism theme) */
.oil-change-deal {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    max-width: 650px;
    margin: 0 auto;
}

/* Deal Badge */
.deal-badge {
    display: inline-block;
    background: rgba(0, 123, 255, 0.15); /* Soft transparent primary blue */
    color: #007bff; /* Primary Blue */
    border: 1px solid rgba(0, 123, 255, 0.3);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 15px;
}

/* Pricing Layout */
.price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 4rem;
    margin-bottom: 0;
    line-height: 1;
    color: var(--text-light);
    font-weight: 800;
}

.original-price {
    font-size: 2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: #007bff; /* Strikes it out with your primary blue */
    text-decoration-thickness: 3px;
    opacity: 0.6;
}
/* Content */
.oil-change-deal h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.oil-change-deal p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.logo-img {
    height: 50px; /* Adjust this height to fit your header size */
    width: auto; /* Maintains aspect ratio */
    display: block;
    /* Since your image is white/transparent, this helps it pop */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
}

.logo-subtext {
    font-family: 'Libre Caslon Display', serif; /* Or Bodoni Moda */
    color: #ffffff;
    font-size: 1.4rem;
    letter-spacing: 10px; /* High spacing to match the logo style */
    text-transform: uppercase;
    margin-top: -10px; /* Pulls text up slightly to overlap the script 'p' */
    font-weight: 900;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }

    .logo-subtext {
        font-size: 1rem;
        letter-spacing: 6px;
    }
}

.contact-bio-section {
    padding: 80px 5%;
    background: #0b0b0e; /* Slightly darker than the section above to separate them */
}

.bio-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-title-left {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.owner-tag {
    color: #007bff; /* Your brand blue */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.bio-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Contact Card Styling */
.contact-info-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

    .contact-info-box h3 {
        color: #fff;
        margin-bottom: 25px;
        font-size: 1.5rem;
        border-bottom: 2px solid #007bff;
        display: inline-block;
        padding-bottom: 5px;
    }

.contact-item {
    margin-bottom: 20px;
    color: var(--text-muted);
}

    .contact-item strong {
        color: #fff;
        display: block;
        margin-bottom: 5px;
    }

    .contact-item a {
        color: #007bff;
        text-decoration: none;
        font-size: 1.2rem;
        transition: 0.3s;
    }

        .contact-item a:hover {
            text-decoration: underline;
        }

.sat-hours {
    color: #fff;
    font-style: italic;
    margin-top: 5px;
}

.legal-badge {
    margin-top: 30px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .bio-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title-left {
        font-size: 2rem;
    }

    .contact-info-box {
        max-width: 500px;
        margin: 0 auto;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #000; /* Matches your image */
    position: relative;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .nav-menu a {
        text-decoration: none;
        color: white;
        font-weight: 600;
        transition: 0.3s;
    }

/* Hamburger Styles */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 3px;
}

/* Mobile Viewport Fix */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .hero-form-box form {
        width: 100%;
    }

    .hero-form-box input {
        width: 100%;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        /* Change left from -100% to -110% OR use transform */
        left: 0;
        width: 100%;
        transform: translateX(-100%); /* This moves the element exactly its own width to the left */

        flex-direction: column;
        background: rgba(15, 15, 18, 0.98);
        backdrop-filter: blur(10px);
        text-align: center;
        transition: transform 0.3s ease-in-out; /* Transition the transform instead of 'left' */
        padding: 40px 0;
        border-bottom: 2px solid #007bff;
        visibility: hidden; /* Extra insurance: hides it from screen readers/pointers when closed */
    }

        /* When the menu is toggled active */
        .nav-menu.active {
            transform: translateX(0);
            visibility: visible;
        }

        .nav-menu a {
            font-size: 1.5rem;
            padding: 15px 0;
            width: 100%;
        }

    /* Animate Hamburger to an 'X' */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.video-container {
    width: 100%; /* Or your specific width */
    height: 400px; /* Or your specific height */
    overflow: hidden;
    position: relative;
    border-radius: 12px; /* Optional: matches your site style */
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video fill the div like a background image */
    display: block;
}