/* Wide showroom layout, shared by the public templates. */
:root {
    --ink: #171717;
    --muted: #646464;
    --paper: #fff;
    --line: #dedede;
    --accent: #d51e28;
    --accent-hover: #b41820;
    --dark: #080808;
    --page-gutter: clamp(24px, 2.35vw, 90px);
    --gallery-gap: clamp(22px, 1.55vw, 48px);
}
.shell { width: calc(100% - var(--page-gutter) * 2); }
.section { padding-block: clamp(48px, 4vw, 80px); }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); flex-shrink: 0; }
.button { border-radius: 3px; }
.button-secondary:hover { background: #f2f2f2; }
.text-link { border-color: #bbb; }

/* Keep navigation legible while giving the photography most of the screen. */
.header-inner { min-height: 104px; }
.site-navigation { gap: clamp(20px, 1.6vw, 44px); font-size: 14px; }
.site-navigation > a { position: relative; }
.site-navigation a:hover, .site-navigation a[aria-current=page] { color: #ff6970; text-decoration: none; }
.site-navigation > a[aria-current=page]::after { content: ""; position: absolute; height: 2px; background: var(--accent); bottom: 3px; left: 0; right: 0; }
.brand-wordmark > span, .footer-main p, .footer-bottom { color: #bdbdbd; }
.hero { min-height: 540px; display: flex; align-items: center; background: #080808; }
.hero-image { object-position: center 60%; }
.hero::after { background: linear-gradient(90deg, #000d, #0008 38%, #0001 78%), linear-gradient(0deg, #0005, transparent 40%); }
.hero-content { padding-block: 64px 100px; }
.hero-content h1 { font-size: clamp(48px, 5.2vw, 86px); max-width: 760px; }
.hero-content > p:not(.eyebrow) { color: #eee; font-size: 17px; }
.hero-content .button { background: white; color: #171717; border-radius: 28px; padding-inline: 28px; }
.hero-content .button:hover { background: var(--accent); color: white; }
.hero-controls-wrap { bottom: 26px; }
.hero-controls { background: #0007; border-radius: 3px; }
.home-search-wrap { width: 100%; margin-top: 0; background: #f5f5f5; border-bottom: 1px solid var(--line); }
.home-search { width: calc(100% - var(--page-gutter) * 2); margin-inline: auto; padding: 26px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.field input, .field select, .field textarea { border-color: #ccc; border-radius: 3px; }
.field input::placeholder, .field textarea::placeholder { color: #707070; }

/* Four generous photo columns, without a narrow fixed-width container. */
.car-grid, .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gallery-gap); }
.car-card { display: flex; flex-direction: column; background: #f7f7f7; border-radius: 10px; box-shadow: 0 2px 4px #0000000d; }
.car-card:hover { box-shadow: 0 10px 28px #00000012; }
.car-image { aspect-ratio: 1.4; background: #eee; flex-shrink: 0; }
.car-image > img { object-fit: cover; }
.car-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 1.2vw, 32px); }
.car-meta { font-size: 12px; color: #555; }
.car-meta span { color: var(--accent); }
.car-card h3 { font-size: clamp(21px, 1.2vw, 28px); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.car-location { font-size: 13px; margin-bottom: 14px; }
.car-specs { font-size: 12px; color: #555; gap: 8px 16px; margin-bottom: 22px; }
.car-card-bottom { margin-top: auto; flex-wrap: wrap; padding-top: 18px; }
.car-card-bottom strong { color: var(--accent); font-size: clamp(22px, 1.2vw, 28px); font-weight: 600; }
.car-card-bottom > a { font-size: 13px; font-weight: 600; padding-block: 6px; }
.badge { background: #111; color: #fff; font-size: 11px; border-radius: 3px; }
.image-arrow { width: 38px; height: 38px; }
.page-heading { margin-bottom: 30px; }
.catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.filter-panel { position: static; padding: 0; background: #f7f7f7; }
.filter-panel summary { cursor: pointer; padding: 18px 24px; font-size: 16px; font-weight: 600; }
.filter-panel summary::marker { color: var(--accent); }
.filter-panel summary > span { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 18px; }
.filter-panel[open] summary { border-bottom: 1px solid var(--line); }
.filter-panel .form-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 24px; align-items: end; }
.filter-heading { grid-column: 1 / -1; align-items: center; }
.filter-heading h2 { margin: 0; }
.filter-heading a { font-size: 13px; padding: 6px; }
.filter-keyword, .filter-panel .field-row { grid-column: span 2; }
.filter-panel .button-full { min-height: 47px; }
.results-bar { padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.results-bar > span { font-size: 13px; }
.empty-state, .photo-placeholder { background: #f5f5f5; }

/* Large photographs; comfortable reading and form widths on wide monitors. */
.detail-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: clamp(28px, 3vw, 72px); }
.gallery-main { aspect-ratio: 1.6; max-height: 1000px; object-fit: contain; background: #f3f3f3; }
.gallery-thumbnails a { width: clamp(100px, 8vw, 180px); }
.gallery-thumbnails img { height: auto; aspect-ratio: 1.5; }
.detail-price strong { color: var(--accent); }
.rich-text { max-width: 80ch; color: #555; }
.inquiry-panel, .panel { background: #f7f7f7; }
.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 680px); gap: clamp(32px, 5vw, 140px); }
.contact-intro { max-width: 760px; }
.editorial-layout { gap: clamp(32px, 4vw, 100px); }
.editorial-layout > div { max-width: 740px; }
.editorial-image { height: auto; aspect-ratio: 1.55; }
.auth-layout { max-width: 1440px; }
.auth-form-wrap { width: 100%; max-width: 640px; justify-self: center; }
.service-grid .panel { border-top: 3px solid var(--accent); display: flex; flex-direction: column; align-items: start; }
.service-grid p, .process-grid p { max-width: 60ch; }
.service-grid .text-link { margin-top: auto; }
.service-number { color: var(--accent); }
.process-section { background: #f5f5f5; }
.process-grid article { border-color: #ccc; }
.process-grid article > span { color: var(--accent); }
.contact-band { background: #101010; color: #fff; border-color: #101010; border-left-color: var(--accent); padding: clamp(30px, 3vw, 64px); }
.contact-band p:last-child { color: #ccc; }
.site-footer { padding-top: 48px; }
.password-field button { color: #555; }
.password-field button:hover, thead { background: #eee; }

@media (min-width: 1280px) {
    .car-grid, .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
    .hero { min-height: 600px; }
    .filter-panel .form-stack { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .filter-panel .button-full { grid-column: span 2; }
}
@media (max-width: 1100px) and (min-width: 961px) {
    .site-navigation { gap: 16px; font-size: 12px; }
    .brand-wordmark { font-size: 15px; }
}
@media (max-width: 960px) {
    .header-inner { min-height: 88px; }
    .site-navigation { gap: 14px 24px; }
    .car-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .filter-panel .form-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-panel .button-full { grid-column: 1 / -1; }
    .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    :root { --page-gutter: 18px; --gallery-gap: 22px; }
    .section { padding-block: 42px; }
    .header-inner { min-height: 80px; }
    .site-navigation { gap: 0; }
    .site-navigation > a[aria-current=page]::after { left: 8px; right: auto; width: 28px; }
    .hero { min-height: 500px; }
    .hero-image { object-position: 61% center; }
    .hero::after { background: linear-gradient(90deg, #000d, #0005); }
    [data-hero-carousel] .hero-content { padding-block: 48px 110px; }
    .hero-content h1 { font-size: clamp(44px, 8vw, 58px); }
    .hero-content > p:not(.eyebrow) { font-size: 15px; }
    .hero-content .eyebrow { font-size: 9px; letter-spacing: .1em; }
    .hero-controls-wrap { bottom: 24px; }
    .home-search { gap: 18px 14px; padding-block: 24px; }
    .filter-panel summary { padding: 16px 18px; }
    .filter-panel summary > span { display: none; }
    .filter-panel .form-stack { padding: 18px; gap: 16px; }
    .filter-keyword, .filter-panel .field-row { grid-column: 1 / -1; }
    .contact-layout, .editorial-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .editorial-image { aspect-ratio: 1.3; }
}
@media (max-width: 580px) {
    .car-grid, .catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .car-card h3 { font-size: 23px; }
    .car-card-bottom strong { font-size: 24px; }
    .car-image { aspect-ratio: 1.4; }
}
