/*
 * 3M Car Care — clean, responsive stylesheet.
 * Dark charcoal, high-contrast red and display typography inspired by the source.
 */

:root {
    --background: #121315;
    --surface: #1b1d20;
    --surface-raised: #212327;
    --foreground: #f5f5f5;
    --muted: #b1b2b5;
    --primary: #e33125;
    --primary-hover: #f04539;
    --border: #36383b;
    --radius: 10px;
    --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 2px solid #ff786b;
    outline-offset: 4px;
}

h1, h2, h3, p, blockquote, figure {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.07;
    font-weight: 400;
    font-family: var(--font-display);
    letter-spacing: .025em;
}

h2 {
    font-size: clamp(42px, 5vw, 66px);
    margin-bottom: 24px;
}

h3 {
    font-size: 29px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 14px;
}

.container {
    width: min(100% - 80px, 1370px);
    margin-inline: auto;
}

.section {
    padding-block: 98px;
}

.section-alt,
.section-services {
    background: var(--surface);
}

.eyebrow {
    margin-bottom: 17px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2 {
    margin-bottom: 8px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 23px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color .2s, border-color .2s, transform .2s;
    text-align: center;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.button-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.button-outline {
    color: #fff;
    border-color: #777b80;
    background: #13151799;
}

.button-outline:hover {
    border-color: var(--primary);
    background: #e3312520;
}

.text-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #fc645a;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
}

.text-link:hover {
    color: #ff9289;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #141517f0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 31px;
    letter-spacing: .06em;
    line-height: 1;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-red {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 28px);
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: #d3d4d5;
    transition: color .2s;
}

.main-nav a:hover {
    color: var(--primary-hover);
}

.menu-toggle {
    display: none;
    padding: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-background {
    z-index: -2;
    object-fit: cover;
    object-position: 65% center;
    opacity: .65;
}

.hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, #121315 4%, #121315ef 29%, #121315a1 61%, #12131528);
}

.hero-content {
    padding-block: 115px 125px;
}

.hero h1 {
    font-size: clamp(69px, 8.5vw, 132px);
    max-width: 1100px;
    margin-bottom: 26px;
    line-height: .94;
}

.hero h1 span {
    color: #fff;
}

.hero-lead {
    max-width: 610px;
    color: #d2d3d4;
    font-size: clamp(17px, 2.15vw, 21px);
    line-height: 1.55;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 34px;
}

/* Stats */
.stats {
    background: var(--surface-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 10px;
    background: var(--surface-raised);
    text-align: center;
}

.stat strong {
    color: var(--primary);
    font: 400 48px/1 var(--font-display);
}

.stat span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(36px, 6vw, 95px);
}

.image-frame {
    overflow: hidden;
    border-radius: var(--radius);
}

.image-frame img {
    width: 100%;
    height: 100%;
    max-height: 590px;
    object-fit: cover;
}

.about-grid .image-frame {
    aspect-ratio: 4 / 3;
}

.about-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 17px;
    max-width: 615px;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .25s, box-shadow .25s;
}

.service-card:hover {
    border-color: #9d3a33;
    box-shadow: 0 16px 38px #0003;
}

.service-photo {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.service-card:hover img {
    transform: scale(1.045);
}

.service-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.service-copy h3 {
    font-size: clamp(25px, 2.5vw, 32px);
}

.service-copy p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.service-copy .text-link {
    margin-top: auto;
    padding-top: 15px;
}

/* Why choose us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.why-card {
    border-left: 3px solid var(--primary);
    padding-left: 19px;
}

.why-card p {
    color: var(--muted);
    font-size: 15px;
}

/* Process */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.step-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 27px;
}

.step-number {
    display: block;
    font: 400 54px/1 var(--font-display);
    color: var(--primary);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--muted);
    font-size: 15px;
}

/* Photo gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gallery-tile {
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    aspect-ratio: 1 / 1;
}

.gallery-tile.gallery-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.gallery-tile:hover img {
    transform: scale(1.035);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
}

.review {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin: 24px 0;
}

.review p {
    color: var(--muted);
    font-size: 16px;
    font-style: normal;
}

.review footer {
    color: #f1f1f1;
    font-size: 14px;
    font-weight: 700;
}

.review-stars {
    color: var(--primary);
    letter-spacing: 2px;
    margin-right: 8px;
}

.testimonials-image {
    aspect-ratio: 1 / 1;
}

/* FAQs */
.faq-container {
    max-width: 1080px;
}

.faq-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 24px 28px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-plus {
    color: var(--primary);
    font-size: 24px;
    transition: transform .2s;
}

.faq-item[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-item > p {
    color: var(--muted);
    padding: 0 28px 24px;
    margin: 0;
}

/* Visit + Map */
.visit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
    padding: clamp(24px, 5vw, 55px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.visit-content address {
    font-style: normal;
    color: var(--muted);
    font-size: 18px;
    max-width: 470px;
    margin-bottom: 18px;
}

.phone-link {
    display: inline-block;
    color: var(--primary);
    font-size: 27px;
    font-weight: 700;
}

.map-frame {
    width: 100%;
    min-height: 330px;
    border: 0;
    border-radius: var(--radius);
    background: #e6e6e6;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-block: 30px;
    color: var(--muted);
    font-size: 14px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner > a:last-child {
    margin-left: auto;
}

.footer-brand img {
    width: 42px;
    height: 42px;
}

/* Tablet */
@media (max-width: 1100px) {
    .container {
        width: min(100% - 48px, 1100px);
    }

    .why-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-grid {
        gap: 17px;
    }

    .service-copy {
        padding: 22px;
    }
}

/* Mobile navigation and sections */
@media (max-width: 800px) {
    html {
        scroll-padding-top: 72px;
    }

    .header-inner {
        min-height: 74px;
    }

    .brand {
        font-size: 26px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .header-call {
        margin-left: auto;
        padding: 11px 15px;
        font-size: 13px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 24px 20px;
        background: #1b1d20;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 25px #0006;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 11px 0;
        font-size: 16px;
    }

    .hero {
        min-height: 580px;
    }

    .hero-background {
        object-position: 65% center;
    }

    .hero-shade {
        background: linear-gradient(90deg, #121315f5, #121315b4 68%, #12131573);
    }

    .hero-content {
        padding-block: 95px;
    }

    .section {
        padding-block: 73px;
    }

    .about-grid,
    .testimonials-grid,
    .visit-card {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-tile.gallery-feature {
        grid-column: span 2;
        grid-row: span 2;
    }

    .visit-card {
        gap: 30px;
    }
}

/* Small phones */
@media (max-width: 540px) {
    .container {
        width: min(100% - 36px, 510px);
    }

    .header-inner {
        gap: 10px;
    }

    .brand {
        gap: 8px;
        font-size: 23px;
    }

    .brand img {
        width: 39px;
        height: 39px;
    }

    .header-call {
        padding: 10px;
        font-size: 12px;
    }

    .header-call span {
        display: none;
    }

    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: clamp(59px, 13.5vw, 80px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .action-group .button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat strong {
        font-size: 39px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .why-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-tile.gallery-feature {
        grid-column: span 2;
        grid-row: span 2;
    }

    .review footer {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer-inner {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
