:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --blue: #1a7fd4;
    --green: #3aaa35;
    --accent: #1a7fd4;
    --gray-bg: #f7f7f7;
    --gray-text: #5c5e62;
    --gray-border: #e0e0e0;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Barlow Condensed', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    background-color: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.mt-2 { margin-top: 2rem; }
.bg-gray { background-color: var(--gray-bg); }

/* Top Bar */
.top-bar {
    background-color: #f5f5f5;
    color: #333;
    font-size: 0.8rem;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}
.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.top-bar-container span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Main Header */
.main-header {
    background-color: var(--white);
    color: var(--black);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-nav a:hover {
    color: var(--blue);
}

.active-red, .active-blue {
    color: var(--blue);
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}


/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85); 
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    line-height: 1;
}

.hero-content p {
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    height: 48px;
    padding: 0 2rem;
    border-radius: 2px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-red {
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    color: var(--white);
}

.btn-red:hover {
    background: linear-gradient(135deg, #1565c0 0%, #2e8b28 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,127,212,0.35);
}

.btn-white {
    background-color: var(--white);
    color: var(--black);
}

.btn-white:hover {
    background-color: #f0f0f0;
}



/* Brands Section (Marquee) */
.brands-section {
    background-color: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-border);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    padding-right: 6rem;
    animation: marquee-scroll 20s linear infinite;
    flex-shrink: 0;
}

.brands-track img {
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brands-track img:hover {
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Base layout for common sections */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 auto 0.75rem auto;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin: 0.75rem auto 3.25rem;
}

/* Services Grid Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover img {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-content {
    padding: 1.5rem 0 2rem 0;
    width: 100%;
    color: var(--black);
    text-align: center;
}

/* Portfolio Teaser Section */
.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-top: -3rem;
    margin-bottom: 3rem;
}

.portfolio-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: 480px;
}

.teaser-item {
    position: relative;
    overflow: hidden;
}

.teaser-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.teaser-item:hover img {
    transform: scale(1.06);
}

.teaser-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.teaser-cta p {
    color: var(--gray-text);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .portfolio-teaser-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .teaser-item {
        height: 250px;
    }
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.service-content p {
    font-family: var(--font);
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-grid, .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
}
.portfolio-grid::-webkit-scrollbar, .reviews-grid::-webkit-scrollbar {
    display: none;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    flex: 0 0 350px;
    scroll-snap-align: center;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    color: #cccccc;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h4,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Trust Section (Redesigned Split Layout) */
.bg-black { background-color: var(--black); color: var(--white); }
.text-left { text-align: left !important; }
.text-white { color: var(--white) !important; }

.trust-section {
    padding: 6rem 2rem;
}

.trust-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-content-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.trust-intro {
    color: #a2a2a2;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(26,127,212,0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.feature-text p {
    font-family: var(--font);
    color: #888;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Reviews Section */
.review-card {
    background: var(--white);
    padding: 2.5rem;
    flex: 0 0 350px;
    scroll-snap-align: center;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-align: center;
}

.stars {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-card p {
    font-style: italic;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.reviewer-name {
    font-family: var(--font-heading);
    font-style: normal !important;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--black) !important;
    margin-bottom: 0 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Location Section */
.location-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.location-map {
    background-color: #e5e5e5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.map-placeholder {
    text-align: center;
    color: var(--gray-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.map-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--blue);
}

.location-info {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('visit\ our\ garage\ background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.location-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.address-large {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hours-block {
    margin-bottom: 2rem;
}

.hours-block h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.hours-block ul {
    list-style: none;
}

.hours-block li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-border);
    color: var(--gray-text);
}

/* Footer & FAQ Area */
.main-footer {
    background-color: var(--white);
    color: var(--black);
    padding: 0 0 2rem 0; /* padding top is 0 because FAQ is immediately at top */
    border-top: 1px solid var(--gray-border);
}

.footer-faq-area {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--gray-border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.faq-item {
    border-bottom: 1px solid var(--gray-border);
}

.faq-btn {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.1rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.faq-btn:hover {
    color: var(--blue);
}

.faq-btn .icon {
    font-size: 1.5rem;
    color: var(--blue);
    transition: transform 0.3s ease;
}

.faq-btn.active .icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content p {
    padding-bottom: 1.5rem;
    color: #a2a2a2;
    line-height: 1.6;
    text-align: center;
}

/* Footer links grid */
.footer-links-grid {
    max-width: 1400px;
    margin: 4rem auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.badge {
    border: 1px solid var(--gray-border);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.address-text {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-nav a {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--black);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-border);
}

/* Mobile Sidebar */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    width: 32px;
    height: 32px;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--white);
    color: var(--black);
    z-index: 1000;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
    width: 28px;
    height: 28px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-nav a:hover {
    color: var(--blue);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .location-container {
        grid-template-columns: 1fr;
    }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-item, .review-card {
        flex: 0 0 85%;
    }
    .main-nav, .header-icons {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    .location-info {
        padding: 3rem 2rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.modal.open {
    display: flex;
}
.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black);
    line-height: 1;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-border);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
    background-color: var(--blue);
    transform: scale(1.2);
}
