/* General Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif; /* Primary font for body text */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Light background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Secondary font for headings */
    color: #222;
    margin-bottom: 15px;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

a {
    color: #3399cc; /* Primary link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Buttons - Premium Rounded Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px; /* Fully rounded pill shape */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(51, 153, 204, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 153, 204, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(51, 153, 204, 0.15);
}

.primary-btn {
    background: linear-gradient(135deg, #3399cc 0%, #2a8bb5 100%);
    color: #fff;
    border: none;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #2a8bb5 0%, #1e7aa3 100%);
    text-decoration: none;
}

/* Hero-specific button style for readability on dark background */
#hero .primary-btn {
    background-color: rgba(51, 153, 204, 0.2);
    color: #fff;
    border: 2px solid #3399cc;
}

#hero .primary-btn:hover {
    background-color: rgba(51, 153, 204, 0.35);
    text-decoration: none;
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    text-decoration: none;
}

.learn-more-btn {
    background-color: #fff;
    color: #3399cc;
    border: 2px solid #3399cc !important;
    box-shadow: none;
    padding: 10px 24px;
    font-size: 0.9em;
}

.card-cta .btn {
    display: block;
    width: fit-content;
}

.card-cta .learn-more-btn {
    margin-bottom: 12px;
}

.learn-more-btn:hover {
    background-color: rgba(51, 153, 204, 0.08);
    color: #1e7aa3;
    border-color: #1e7aa3;
    background-color: rgba(51, 153, 204, 0.08);
    color: #1e7aa3;
    border-color: #1e7aa3;
    text-decoration: none;
}


/* Header - Tesla-style: thin, logo far left, nav centered */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Make header container span full width for Tesla-style layout */
header .container {
    max-width: none;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
}

/* Tesla-style: logo far left with padding */
.logo {
    position: absolute;
    left: 20px;
}

.header-logo {
    height: 32px;
    width: auto;
    max-width: none;
    display: block;
}

/* Hero mobile adjustments - more left-aligned and higher */
@media (max-width: 768px) {
    #hero .container {
        top: 7%;
        left: 0 !important;
        right: auto;
        width: 85% !important;
        max-width: none !important;
        padding-left: 20px !important;
        margin-left: 0 !important;
    }

    #hero video {
        object-position: 30% center;
    }

    .primary-btn, .secondary-btn {
        white-space: nowrap;
    }
}

/* --- Mobile-Specific Styles --- */
@media (max-width: 768px) { /* Adjust breakpoint as needed (e.g., 600px, 480px) */
    header {
        padding: 8px 12px;
    }
    .header-logo {
        height: 28px; /* Smaller on mobile like Tesla */
    }

    /* Keep header horizontal on mobile with hamburger menu */
    .header-content {
        height: 36px;
    }
}

/* For even smaller phones, you might want an even smaller logo */
@media (max-width: 480px) {
    .header-logo {
        height: 26px; /* Even smaller for very narrow screens */
    }
}

/* You might want to remove or adjust the .logo a styles if they interfere */
.logo a {
    /* font-family: 'Montserrat', sans-serif; */
    /* font-size: 1.8em; */
    /* font-weight: 700; */
    /* color: #222; */
    text-decoration: none; /* Keep this if you want to remove underline from image link */
}

/* Tesla-style: nav perfectly centered */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 16px;
}

nav ul li a {
    color: #555;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9em;
}

nav ul li a:hover {
    color: #3399cc;
    background-color: rgba(51, 153, 204, 0.06);
    text-decoration: none;
}

/* Hero Section - Full Viewport Video Background (Homepage Only) */
#hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    color: #fff;
    text-align: left;
    margin-bottom: 40px;
    border-radius: 0 !important;
}

#hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0,0,0,0.4));
}

#hero .container {
    position: absolute;
    top: 5%;
    left: 30%;
    max-width: 700px;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 20px;
}

#hero h1 {
    color: #fff;
    font-size: 4em;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

#hero h2 {
    color: #f0f0f0;
    font-size: 1.3em;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 45px;
    max-width: 700px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Page Hero - Original Smaller Size (Inner Pages) */
#page-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0,0,0,0.75)), url('images/hero-bg-v2.png') no-repeat center center/cover !important;
    color: #fff !important;
    text-align: center !important;
    height: 350px !important;
    padding: 0 20px !important;
    margin-bottom: 40px !important;
    border-radius: 0 !important;
}

.page-hero-img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}
.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0,0,0,0.6));
    z-index: 1;
}
#page-hero .container {
    position: relative;
    z-index: 2;
}

#page-hero h1 {
    color: #fff !important;
    font-size: 3.5em !important;
    font-weight: 700 !important;
    letter-spacing: -1px !important;
    margin-bottom: 20px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

#page-hero p {
    color: #f0f0f0 !important;
    font-size: 1.4em !important;
    font-weight: 300 !important;
    margin-bottom: 40px !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Hero2 - Financing Page */
#hero2, #page-hero2 {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0,0,0,0.7)), url('images/hero2-bg.png') no-repeat center center/cover !important;
    color: #fff !important;
    text-align: center !important;
    padding: 200px 0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

#hero2 h1, #page-hero2 h1 {
    color: #fff !important;
    font-size: 3.5em !important;
}

#hero2 h2, #page-hero2 p {
    color: #eee !important;
    font-size: 1.5em !important;
    font-weight: 300 !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    opacity: 0.7;
}

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

/* Section Styling - Premium */
section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff; /* Default background for content sections */
    margin-bottom: 30px; /* Space between sections */
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

section:nth-of-type(even) { /* Alternate background for better visual separation */
    background-color: #f5f8fa;
}

section h3 {
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Features Section (Homepage) */
#features .service-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.icon-item {
    flex-basis: 200px; /* Adjust as needed */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.icon-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    /*filter: invert(24%) sepia(87%) saturate(3015%) hue-rotate(203deg) brightness(98%) contrast(100%); */ /* Example: make icon blue */
}

.icon-item h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #3399cc;
}

.icon-item p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0;
}

/* About Section */
#about {
    background-color: #f0f4f8;
}
#about p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
}

/* Location Preview Section */
#location-preview .map-placeholder {
    width: 100%;
    max-width: 600px;
    height: 250px; /* Fixed height for consistency */
    background-color: #e0e0e0;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: cover; /* Ensures image covers area */
    border-radius: 8px;
}
#location-preview p {
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
}


/* All Services Page */
#all-services {
    background-color: #fff;
    text-align: left; /* Align text left within service categories */
}

.service-category {
    margin-bottom: 40px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fefefe;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}


.service-category h3 {
    color: #3399cc;
    font-size: 1.6em;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.service-category ul {
    list-style: none;
    margin-left: 0;
}

.service-category ul li {
    margin-bottom: 8px;
    color: #555;
}

/* Services Grid - match booking page layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* Premium Card Styling - match booking page service cards */
.premium-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #3399cc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}



.card-content h3 {
    color: #3399cc;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.card-description {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 8px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.check-icon {
    color: #3399cc;
    font-weight: bold;
    flex-shrink: 0;
}

.card-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.book-now-btn {
    display: inline-block;
}

.call-to-action-bottom {
    margin-top: 40px;
    text-align: center;
    display: block; /* Make button full width if needed */
}

/* Booking & Contact Forms */
.booking-form-section, #contact-details {
    background-color: #f0f4f8;
    padding: 60px 0;
}

.booking-notes {
    background-color: #ffe6e6;
    border: 1px solid #ffb3b3;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: left;
}
.booking-notes p {
    margin-bottom: 10px;
    color: #333;
}
.booking-notes p:last-child {
    margin-bottom: 0;
}


.booking-form, .contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3399cc;
    outline: none;
    box-shadow: 0 0 0 4px rgba(51, 153, 204, 0.1);
    background-color: #fff;
}

.form-group input[type="date"] {
    appearance: none; /* Remove default date input styling */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.booking-form button, .contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Booking Time Slot Picker */
.week-view-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

#week-range-label {
    font-size: 1.3em;
    font-weight: 600;
    color: #2a8bb5;
    margin: 0;
}

.week-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.week-nav-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #555;
}

#week-view {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.day-column {
    min-width: 90px;
    flex-shrink: 0;
}

.day-header {
    text-align: center;
    font-weight: 600;
    color: #2a8bb5;
    padding: 10px 4px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e8f4fc;
    font-size: 0.9em;
}

.day-header.today {
    color: #fff;
    background: #2a8bb5;
    border-radius: 6px;
    border-bottom-color: #2a8bb5;
}

.time-slot {
    text-align: center;
    padding: 7px 4px;
    margin-bottom: 6px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.8em;
    color: #555;
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.15s ease;
}

.time-slot:hover {
    background: #e8f4fc;
    border-color: #2a8bb5;
    color: #2a8bb5;
}

.time-slot.selected {
    background: #2a8bb5;
    color: white;
    border-color: #2a8bb5;
}

.time-slot.booked {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
    border-color: #e8e8e8;
}

/* Booking Form Container */
.booking-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

/* Service Info Box */
.service-info {
    background: #f8fbfd;
    border-left: 4px solid #2a8bb5;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 0 8px 8px 0;
}

.service-info h3 {
    color: #2a8bb5;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 8px;
}

.service-info p {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.booking-form-container h3 {
    color: #333;
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

/* Service Options (Radio Buttons as Pills) */
.service-options {
    margin: 20px 0;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.option-choice {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 0.95em;
    color: #555;
    transition: all 0.2s ease;
}

.option-choice:hover {
    border-color: #2a8bb5;
    background: #f0f8fc;
}

.option-choice.selected {
    background: #2a8bb5;
    color: white;
    border-color: #2a8bb5;
}

/* Booking Button */
.booking-form-container .btn-book {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 14px 28px;
    border-radius: 24px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Contact Details */
#contact-details .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: left;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: #3399cc;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #555;
}

.contact-info a {
    font-weight: 600;
}

/* Google Map */
#map {
    padding-top: 100px;
    background-color: #fefefe;
    margin-top: -40px;
}

#map h2 {
    margin-bottom: 5px;
}

#map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Responsive Google Map Embed */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Taller map view for mobile screens */
@media (max-width: 600px) {
    .map-container {
        padding-top: 75%; /* Taller aspect ratio for better usability on mobile */
    }
}


.map-note {
    font-style: italic;
    color: #777;
    margin-top: 20px;
    font-size: 0.9em;
}


/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #f8f8f8;
    padding: 24px 0 16px;
    margin-top: 40px;
    border-top: 3px solid #3399cc;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 580px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #aaa;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3399cc;
}

.footer-contact p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #aaa;
    margin: 2px 0;
}

.footer-contact strong {
    color: #fff;
}

.footer-hours h4 {
    color: #3399cc;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-hours p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #aaa;
    margin: 2px 0;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.footer-bottom p {
    margin: 3px 0;
}

/* --- New Styles for Tires Page --- */

#tire-finder-section {
    padding: 60px 0;
    text-align: center; /* Center content within the section */
    background-color: #f8f8f8; /* Use your body background color */
    margin-bottom: 30px;
    /* No border-radius or box-shadow here, let the container handle it if needed */
}

.section-title { /* For the "Search Our Tire Inventory" heading */
    font-size: 2.2em;
    color: #222; /* Your heading color */
    margin-bottom: 40px;
}

.tire-filter-controls {
    display: flex; 
    justify-content: center;
    align-items: center; /* Vertically align input and button */
    gap: 15px; /* Space between input and button */
    margin-bottom: 50px; /* Space between filter controls and results */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.tire-filter-controls input[type="text"] {
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 300px; /* A good default width */
    max-width: 90%; /* Ensure it's responsive */
    font-size: 1em;
    font-family: 'Lato', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.tire-filter-controls input[type="text"]:focus {
    border-color: #3399cc; /* Highlight on focus with brand color */
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.2); /* Subtle glow */
}

.tire-filter-controls .primary-btn { /* Re-use your primary button style */
    padding: 12px 30px; /* Slightly adjusted padding for search button */
    font-size: 1em;
}


.tire-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between tire cards */
    padding-top: 20px; /* Space from controls */
}

.tire-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow like your sections */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Align text within card */
    display: flex; /* Use flexbox for inner layout */
    flex-direction: column;
    justify-content: space-between; /* Push price/quantity to bottom */
}

.tire-card:hover {
    transform: translateY(-8px); /* More pronounced lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tire-card h3 { /* Renamed from h2 to h3 to match your hierarchy */
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #222;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tire-card p {
    margin: 6px 0;
    font-size: 0.95em;
    color: #555;
}

.tire-card .detail-label { /* Use a specific class for the label part */
    font-weight: 600; /* Your brand uses 600 for important text */
    color: #3399cc; /* Your primary brand color */
    margin-right: 5px; /* Small space after label */
}

.tire-card .product-details-group { /* Group price and quantity */
    margin-top: auto; /* Push to the bottom of the flex container */
    padding-top: 15px; /* Space from details above */
    border-top: 1px solid #eee;
    text-align: right;
}

.tire-card .price {
    font-size: 1.7em; /* Larger price for prominence */
    font-weight: 700;
    color: #28a745; /* A good green for price */
    margin-bottom: 5px;
}

.tire-card .quantity {
    font-size: 0.9em;
    color: #6c757d;
}

.no-results-message {
    grid-column: 1 / -1; /* Make it span all columns in the grid */
    text-align: center;
    font-style: italic;
    color: #888;
    padding: 30px 0;
    font-size: 1.1em;
}

/* Responsive adjustments for tire page */
@media (max-width: 768px) {
    .tire-filter-controls {
        flex-direction: column; /* Stack input and button */
    }
    .tire-filter-controls input[type="text"],
    .tire-filter-controls .primary-btn {
        width: 100%; /* Full width for input and button on mobile */
        max-width: 350px; /* Max width to prevent overly wide elements */
    }
    .tire-results-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.service-card {
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #3399cc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.service-card p {
    color: #555;
    margin-bottom: 0;
}

.big-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #3399cc;
    margin: 5px 0 10px;
    white-space: nowrap;
}

/* Hamburger Menu - unified with Menu label */
.hamburger-wrapper {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    touch-action: manipulation;
}

.hamburger-wrapper:hover .hamburger span {
    background: #3399cc;
}

.hamburger-wrapper:hover .menu-label {
    color: #3399cc;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.hamburger-wrapper .menu-label {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85em;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

/* Responsive nav spacing - reduce gaps before switching to hamburger */
@media (max-width: 1300px) {
    nav ul li {
        margin-left: 14px;
    }
}

@media (max-width: 1250px) {
    nav ul li {
        margin-left: 10px;
    }
}

@media (max-width: 1200px) {
    nav ul li {
        margin-left: 6px;
    }
    nav ul li a {
        padding: 8px 6px;
    }
}

/* ============================================
   PREMIUM MOBILE OPTIMIZATION
   ============================================ */

/* Switch to hamburger menu when items can't fit comfortably */
@media (max-width: 1180px) {
    header {
        padding: 8px 12px;
    }
    .logo {
        left: 12px;
    }
    .hamburger-wrapper {
        position: absolute;
        right: 0;
        display: inline-flex;
    }
    .hamburger-wrapper .menu-label { display: block; }
    nav ul { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background-color: transparent;
        width: 100%; 
        flex-direction: column; 
        padding: 20px; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    /* Hero section mobile adjustments */
    #page-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
        height: 280px !important; padding: 0 20px !important;
    }
    
    #hero h1, #page-hero h1 {
        font-size: 2.4em !important;
        letter-spacing: -0.5px !important;
    }
    
    #hero h2, #page-hero p {
        font-size: 1.1em !important;
        margin-bottom: 30px !important;
    }
    
    /* Services grid single column on mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    /* Section spacing for mobile */
    section {
        padding: 50px 0;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    section h3 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    /* Larger touch targets on mobile */
    .primary-btn, .secondary-btn {
        min-height: 48px;
        padding: 16px 28px;
        font-size: 1em;
    }
    
    /* Navigation improvements for mobile */
    nav ul li a {
        padding: 16px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    /* Form inputs larger on mobile */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Small phones */
@media (max-width: 480px) {
    #hero h1, #page-hero h1 {
        font-size: 2em !important;
    }
    
    .service-card {
        padding: 28px 20px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Force solid blue primary buttons everywhere except hero section */
.btn.primary-btn,
a.primary-btn,
button.primary-btn {
    background: linear-gradient(135deg, #3399cc 0%, #2a8bb5 100%) !important;
    color: #fff !important;
    border: none !important;
}

.btn.primary-btn:hover,
a.primary-btn:hover,
button.primary-btn:hover {
    background: linear-gradient(135deg, #2a8bb5 0%, #1e7aa3 100%) !important;
    text-decoration: none !important;
}

/* Hero section keeps translucent style */
#hero .btn.primary-btn,
#hero a.primary-btn,
#hero button.primary-btn {
    background-color: rgba(51, 153, 204, 0.2) !important;
    color: #fff !important;
    border: 2px solid #3399cc !important;
}

#hero .btn.primary-btn:hover,
#hero a.primary-btn:hover,
#hero button.primary-btn:hover {
    background-color: rgba(51, 153, 204, 0.35) !important;
    text-decoration: none !important;
}

