/*
 * Motor Auto Body. The look of the old Joomla (Helix3) site as it was in
 * 2018–2019, measured on the Wayback Machine at 1440px: Open Sans, navy
 * #002664, a 90px white header, navy title bands and footer. Tablet and
 * phone layouts, the forms and the hover states are new, and the languages
 * and Facebook/Instagram moved from the old grey top bar into the header.
 */

:root {
    --navy: #002664;
    --navy-dark: #001a45;
    --blue: #0052a5;          /* logo */
    --red: #e0162b;           /* logo */
    --text: #333;
    --muted: #666;
    --line: #dcdfe5;
    --soft: #f4f6fa;
    --green: #2e9e45;
    --error: #c62828;
    --success: #1b7a33;
    --facebook: #1877f2;
    --instagram: #e1306c;
    --gutter: 15px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font: 400 15px/1.6 "Open Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }

ul, ol { padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section { padding-top: 50px; padding-bottom: 60px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
}
.skip-link:focus { top: 8px; }

.icon { flex: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); }
.btn--primary:disabled { background: #7a8aa8; cursor: default; }
.btn--large { padding: 13px 26px; font-size: 18px; font-weight: 400; text-transform: uppercase; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ==================== Header: logo, menu, languages, Facebook/Instagram ==================== */
.site-header {
    position: relative;
    z-index: 10;
    background: #fff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, .05);
}
.site-header__inner {
    display: flex;
    align-items: center;
    min-height: 90px;
}
.logo { display: block; flex: none; margin-right: auto; }
.logo img { display: block; width: 145px; }

.site-nav ul { display: flex; }
.site-nav a {
    display: block;
    padding: 0 15px;
    color: #000;
    font-size: 12px;
    font-weight: 400;
    line-height: 90px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--blue); }
.site-nav a.is-active { font-weight: 600; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Languages: a <details> dropdown (it opens without JavaScript too; main.js
   closes it on Escape or a click elsewhere). The button shows the current
   language's round flag (US, Spain, Brazil) and code; the list, every
   language by its own name. A thin line sets it apart from the menu. */
.lang-menu {
    position: relative;
    margin-left: 6px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}
.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px 3px 3px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    list-style: none;
    cursor: pointer;
    transition: border-color .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu details[open] summary { border-color: var(--navy); }
.lang-menu summary .icon--down { margin-left: -2px; color: var(--muted); transition: transform .2s; }
.lang-menu details[open] summary .icon--down { transform: rotate(180deg); }
.lang-menu summary .flag { width: 22px; height: 22px; }
.lang-menu ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 170px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}
.lang-menu a:hover { background: var(--soft); color: var(--navy); }
.lang-menu a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.lang-menu a .icon--check { margin-left: auto; }
.flag {
    display: inline-flex;
    flex: none;
    width: 18px;
    height: 18px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.flag svg { width: 100%; height: 100%; }

/* Facebook and Instagram: in the header and the footer. */
.social { display: flex; gap: 4px; }
.social a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #888;
    transition: color .2s;
}
.social a:hover { color: var(--navy); }
.site-header .social { margin: 0 -8px 0 10px; }
.site-header .social a { width: 36px; height: 36px; color: var(--navy); }
.site-header .social li:first-child a:hover { color: var(--facebook); }
.site-header .social li:last-child a:hover { color: var(--instagram); }

/* ==================== Inner pages: navy title band ==================== */
.page-banner {
    padding: 34px 0 36px;
    background: var(--navy);
    color: #fff;
}
.page-banner h1 { font-size: 28px; font-weight: 700; line-height: 1.25; }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { opacity: .8; }

/* ==================== Shared: section titles, intros ==================== */
.section-title {
    color: var(--text);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}
.section-intro {
    max-width: 760px;
    margin: 16px auto 40px;
    font-size: 16px;
    text-align: center;
}
.section-intro--left { margin-left: 0; margin-top: 0; margin-bottom: 30px; text-align: left; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 50px; }

/* ==================== Home: car brands ==================== */
/* All 43 logos in one row that scrolls slowly and loops (the list is drawn
   twice); it pauses under the mouse. With "Reduce motion" on it doesn't move:
   the logos wrap into centred rows instead. */
.brands { overflow: hidden; padding: 40px 0; }
.brands__track { display: flex; width: max-content; animation: brands 90s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__list { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.brands__list img { display: block; width: calc(var(--w) * 1px); max-width: none; }
@keyframes brands { to { transform: translateX(-50%); } }

/* ==================== Home: "Looking for a quote?" ==================== */
.hero {
    background: #0c3a8a url("/assets/images/hero-bg.webp") center / cover no-repeat;
    color: #fff;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 555px;
    align-items: end;
    gap: 30px;
    min-height: 307px;
}
.hero__text {
    align-self: center;
    padding: 30px 0;
    text-align: center;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .6);
}
.hero h2 { font-size: 52px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.hero p { max-width: 540px; margin: 20px auto 26px; font-size: 22px; font-weight: 400; line-height: 1.3; }
.hero .btn { text-shadow: none; }
.hero__image { display: block; align-self: end; }

/* ==================== Product tiles ==================== */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.tile {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}
.tile img { display: block; width: 100%; transition: transform .4s; }
.tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 38, 100, .82);
    opacity: 0;
    text-align: center;
    transition: opacity .25s;
}
.tile__name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.tile__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #fff;
    border-radius: 99px;
    font-size: 14px;
}
.tile:hover .tile__overlay,
.tile:focus-visible .tile__overlay { opacity: 1; }
.tile:hover img { transform: scale(1.05); }

/* ==================== Products page ==================== */
.featured {
    display: grid;
    grid-template-columns: 360px 1fr;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.featured:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(0, 38, 100, .12); }
.featured img { display: block; border-radius: 4px; }
.featured__text { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.featured__label { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.featured__title { color: var(--navy); font-size: 26px; line-height: 1.25; }
.featured__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--blue); font-weight: 600; }

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    margin-top: 50px;
    padding: 30px 36px;
    border-radius: 6px;
    background: var(--soft);
}
.cta h2 { color: var(--navy); font-size: 24px; font-weight: 700; line-height: 1.3; }
.cta p { margin-top: 6px; font-size: 16px; }
.cta .btn { flex: none; }

/* ==================== Category page ==================== */
.category {
    display: grid;
    grid-template-columns: minmax(0, 640px) 1fr;
    align-items: start;
    gap: 40px;
}
.category__image { display: block; width: 100%; border-radius: 4px; }
.category__parts h2 { color: var(--navy); font-size: 22px; font-weight: 700; }
.parts { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 16px; }
.parts th {
    padding: 8px 12px;
    border-bottom: 2px solid var(--navy);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}
.parts td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.parts td:first-child { width: 72px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.parts tbody tr:nth-child(even) { background: var(--soft); }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-weight: 600;
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ==================== About ==================== */
.slogan { text-align: left; }
.slogan p { color: var(--text); font-size: 36px; font-style: italic; font-weight: 700; line-height: 1.2; }
.slogan .slogan__translation { margin-top: 8px; color: var(--muted); font-size: 22px; font-weight: 600; }
.photo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 36px;
}
.photo-row img { display: block; width: 100%; border-radius: 4px; }
.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 36px;
}
.values h2 { color: var(--text); font-size: 20px; font-weight: 400; }
.values p { margin-top: 10px; font-weight: 300; }

/* ==================== F-250 mirror ==================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.gallery a { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 1; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.mirror {
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}
.features { display: grid; gap: 12px; font-size: 17px; }
.features li { display: flex; gap: 10px; }
.features .icon { margin-top: 3px; color: var(--green); }
.mirror__also a { display: block; }
.mirror__also img { display: block; border-radius: 4px; }
.mirror__also figcaption { margin-top: 10px; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.4; text-align: center; }

/* ==================== Forms ==================== */
.form-card {
    max-width: 760px;
    margin-top: 50px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.form-card > h2 { color: var(--navy); font-size: 26px; font-weight: 700; line-height: 1.25; }
.form-card > p { margin: 8px 0 20px; font-size: 16px; }
.form-card--wide { max-width: none; margin-top: 0; }
.form { display: grid; gap: 18px; }
.form__group { display: grid; gap: 18px; padding: 0; border: 0; min-width: 0; }
.form__group + .form__group { padding-top: 26px; border-top: 1px solid var(--line); }
.form__group > legend {
    float: left;               /* keeps the legend inside the grid */
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    color: var(--navy);
    font-size: 24px;
    font-weight: 600;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row--car { grid-template-columns: 150px 1fr 1.4fr; align-items: start; }
.form__row--car:has(> [data-show-if]:not([hidden])) { grid-template-columns: 150px 1fr 1fr 1.4fr; }
.form__row--car > [data-show-if] { min-width: 0; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field > legend { font-weight: 600; font-size: 15px; }
.req { color: var(--red); }
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b9c0cc;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;            /* 16px+ keeps iOS from zooming in */
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 165, .15);
    outline: none;
}
.field__hint { color: var(--muted); font-size: 13px; }
.field__error { min-height: 0; color: var(--error); font-size: 14px; }
.field__error:empty { display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }

.field--radios { padding: 0; border: 0; }
.field--radios > legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 22px; clear: both; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.radios input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--navy); }

.parts-list { display: grid; gap: 12px; counter-reset: part; }
.part-row {
    display: grid;
    grid-template-columns: 28px 1fr 140px auto;
    align-items: start;
    gap: 10px;
    counter-increment: part;
}
.part-row::before {
    content: counter(part) ".";
    padding-top: 12px;
    color: var(--muted);
    font-weight: 600;
    text-align: right;
}
.btn--remove {
    min-height: 46px;
    padding: 10px 12px;
    border-color: #e6b9bd;
    background: #fff;
    color: var(--error);
    font-size: 14px;
}
.btn--remove:hover { background: #fdeeee; }
.btn--remove[hidden] { display: none; }
.btn--add {
    justify-self: start;
    padding: 10px 18px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
}
.btn--add:hover { background: #23803a; }
.btn--add[hidden] { display: none; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__note { color: var(--muted); font-size: 13px; }
.form-status { font-size: 16px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success {
    padding: 14px 16px;
    border-radius: 4px;
    background: #e8f5ec;
    color: var(--success);
}

.field--turnstile { min-height: 65px; }

/* Honeypot: off screen for people, still in the form for bots. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ==================== Contact ==================== */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 40px;
}
.contact .form-card { margin-top: 0; }
.contact__social p { font-size: 16px; }
.social-buttons { display: grid; gap: 12px; margin-top: 14px; }
.social-buttons .btn { justify-content: flex-start; width: 100%; color: #fff; font-weight: 600; }
.btn--facebook { background: var(--facebook); }
.btn--instagram { background: var(--instagram); }
.btn--facebook:hover, .btn--instagram:hover { filter: brightness(1.1); }

/* ==================== Footer ==================== */
.site-footer { background: var(--navy); color: #fff; }
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 14px;
}
.site-footer .social a { color: #fff; }
.site-footer .social a:hover { color: #9ec3ff; }

/* ==================== Photo lightbox (mirror page) ==================== */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .92);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__img { max-width: min(92vw, 1080px); max-height: 86vh; object-fit: contain; }
.lightbox__btn {
    position: fixed;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lightbox__btn--next { top: 50%; right: 16px; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }

/* ==================== Narrower screens ==================== */
@media (max-width: 1100px) {
    .hero__inner { grid-template-columns: 1fr 420px; }
    .hero h2 { font-size: 44px; }
    .form__row--car,
    .form__row--car:has(> [data-show-if]:not([hidden])) { grid-template-columns: 1fr 1fr; }
}

/* Tablet: the menu folds into a button, in its place before the languages. */
@media (max-width: 960px) {
    .site-header__inner { min-height: 70px; }
    .nav-toggle { display: grid; }
    .lang-menu { margin-left: 6px; padding-left: 0; border-left: 0; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: #fff;
        box-shadow: 0 10px 18px rgba(0, 0, 0, .12);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; padding: 6px 0 12px; }
    .site-nav a,
    .site-nav li:last-child a {
        padding: 13px var(--gutter);
        border-top: 1px solid #eee;
        font-size: 14px;
        line-height: 1.4;
    }
    /* Without JavaScript the menu stays open, on its own row under the logo. */
    html:not(.js) .site-nav { position: static; display: block; order: 5; flex-basis: 100%; box-shadow: none; }
    html:not(.js) .nav-toggle { display: none; }
    html:not(.js) .site-header__inner { flex-wrap: wrap; }

    .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .hero__text { padding: 40px 0 26px; }
    .hero__image { justify-self: center; width: min(100%, 555px); }
    .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .category { grid-template-columns: 1fr; gap: 30px; }
    .values { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .mirror { grid-template-columns: 1fr; }
    .mirror__also { max-width: 360px; }
    .contact { grid-template-columns: 1fr; }
    .featured { grid-template-columns: 260px 1fr; }
}

/* Phone */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding-top: 34px; padding-bottom: 44px; }
    .logo img { width: 130px; }
    .nav-toggle { width: 40px; }
    .lang-menu { margin-left: 4px; }
    .site-header .social { margin-left: 6px; gap: 0; }
    .site-header .social a { width: 34px; height: 34px; }
    .page-banner { padding: 24px 0 26px; }
    .page-banner h1 { font-size: 24px; }
    .section-title { font-size: 28px; }
    .section-intro { margin-bottom: 28px; }
    .brands { padding: 26px 0; }
    .brands__list { gap: 26px; padding-right: 26px; }
    .brands__list img { width: calc(var(--w) * .75px); }
    .hero h2 { font-size: 34px; }
    .hero p { font-size: 18px; }
    .btn--large { font-size: 16px; padding: 12px 20px; }
    .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tile__name { font-size: 16px; }
    .tile__more { display: none; }
    .featured { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
    .featured__title { font-size: 22px; }
    .cta { flex-direction: column; align-items: stretch; padding: 24px 20px; }
    .slogan p { font-size: 26px; }
    .slogan .slogan__translation { font-size: 18px; }
    .photo-row { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
    .photo-row li:last-child { display: none; }
    .values { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gallery li:first-child { grid-column: 1 / -1; }
    .gallery li:first-child a { aspect-ratio: 4 / 3; }
    .form-card { padding: 20px 16px; margin-left: calc(var(--gutter) * -1 + 4px); margin-right: calc(var(--gutter) * -1 + 4px); }
    .form-card--wide { margin-left: 0; margin-right: 0; padding: 0; border: 0; }
    .form__row,
    .form__row--car,
    .form__row--car:has(> [data-show-if]:not([hidden])) { grid-template-columns: 1fr; }
    /* Part rows: the description on its own line, then quantity + Delete. */
    .part-row { grid-template-columns: 22px 130px 1fr; gap: 8px; }
    .part-row > .field:first-of-type { grid-column: 2 / -1; }
    .part-row .field--qty { grid-column: 2; }
    .part-row .btn--remove { grid-column: 3; justify-self: end; min-height: 46px; }
    .parts td, .parts th { padding-left: 8px; padding-right: 8px; }
    .lightbox__btn--prev { left: 6px; }
    .lightbox__btn--next { right: 6px; }
}

/* Small phones (320px): Turnstile's widget is 300px wide, so the form cards
   go edge to edge to make room for it. */
@media (max-width: 360px) {
    :root { --gutter: 10px; }
    .form-card {
        margin-left: calc(var(--gutter) * -1);
        margin-right: calc(var(--gutter) * -1);
        padding: 20px var(--gutter);
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
    .form-card--wide { margin-left: 0; margin-right: 0; padding: 0; }
}

/* Narrowest phones (320px): the language button keeps only its flag. */
@media (max-width: 350px) {
    .logo img { width: 120px; }
    .lang-menu__code { display: none; }
    .lang-menu summary { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .brands { padding-left: var(--gutter); padding-right: var(--gutter); }
    .brands__track { width: auto; animation: none; justify-content: center; }
    .brands__list { flex-wrap: wrap; justify-content: center; gap: 18px 30px; max-width: 1140px; padding-right: 0; }
    .brands__list img { width: calc(var(--w) * .7px); }
    .brands__list[aria-hidden="true"] { display: none; }
    .btn, .lang-menu summary, .lang-menu .icon--down, .social a, .site-nav a, .tile img, .tile__overlay,
    .gallery img, .featured, .field input, .field select, .field textarea { transition: none; }
    .tile:hover img, .gallery a:hover img { transform: none; }
}

/* Phone with "Reduce motion": one row to swipe through, not a wall of logos. */
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
    .brands { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .brands::-webkit-scrollbar { display: none; }
    .brands__track { justify-content: flex-start; }
    .brands__list { flex-wrap: nowrap; justify-content: flex-start; gap: 26px; max-width: none; }
    .brands__list img { width: calc(var(--w) * .75px); }
}
