/* Gallery presentation. Page copy, data, forms and interaction hooks stay intact. */
:root {
    --ink: #151515;
    --muted: #626262;
    --paper: #fff;
    --line: #e3e3e3;
    --accent: #dc2028;
    --accent-hover: #b71820;
    --dark: #090909;
    --radius: 3px;
    --shadow: 0 12px 40px #00000008;
    --page-gutter: clamp(48px, 3.333vw, 96px);
}
body { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3 { letter-spacing: -.045em; font-weight: 650; }
h1 { font-size: clamp(38px, 4.5vw, 68px); }
h2 { font-size: clamp(30px, 3.2vw, 46px); }
.shell { width: calc(100% - var(--page-gutter) * 2); }
.section { padding-block: 88px; }
.eyebrow { display: flex; align-items: center; gap: 14px; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); flex-shrink: 0; }
.button { min-height: 48px; border-radius: 2px; padding: 13px 24px; }
.button-primary { background: var(--accent); }
.button-secondary { border-color: #bbb; }
.button-secondary:hover { background: #f2f2f2; }
.text-link { border-color: #ccc; }
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.header-inner { min-height: 88px; }
.brand { color: inherit; padding-block: 14px; }
.brand-logos { position: relative; display: block; width: 234px; }
.brand .brand-logos img { width: 100%; height: auto; }
.brand-logo-light { display: none; }
/* The existing accessible wordmark is retained with the replacement graphic. */
.brand-wordmark { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-navigation { gap: 32px; font-size: 13px; }
.site-navigation a:hover, .site-navigation a[aria-current=page] { color: var(--accent); text-decoration: none; }
.site-navigation > a { position: relative; }
.site-navigation > a[aria-current=page]::after { content: ""; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--accent); }
.nav-account { border-color: var(--line); padding-left: 30px; }
.button-header { border-color: #ccc; color: inherit; border-radius: 2px; }
.button-header:hover { background: var(--ink); color: #fff; }
.menu-toggle { color: inherit; border-color: #bbb; border-radius: 2px; }
.page-home .site-header:not(.is-scrolled) { background: #090909; color: #fff; border-color: #ffffff24; }
.page-home .site-header:not(.is-scrolled) .brand-logo-dark { display: none; }
.page-home .site-header:not(.is-scrolled) .brand-logo-light { display: block; }
.page-home .site-header:not(.is-scrolled) .nav-account { border-color: #ffffff30; }
.page-home .site-header:not(.is-scrolled) .button-header { border-color: #ffffff60; }
.hero { min-height: 660px; min-height: min(760px, calc(100svh - 88px)); background: #090909; display: flex; align-items: center; }
.hero-image { object-position: center 60%; }
.hero::after { background: linear-gradient(90deg, #000d 0%, #0009 38%, #0002 78%), linear-gradient(0deg, #0008, transparent 38%); }
.hero-content { padding-top: 88px; padding-bottom: 120px; }
.hero-content h1 { font-size: clamp(54px, 6.2vw, 88px); line-height: 1.02; max-width: 720px; letter-spacing: -.055em; }
.hero-content > p:not(.eyebrow) { color: #eee; font-size: 17px; }
.hero-content .button-primary { background: #fff; color: #111; border-radius: 30px; padding-inline: 28px; }
.hero-content .button-primary:hover { background: var(--accent); color: #fff; }
.hero-controls-wrap { bottom: 34px; }
.hero-controls { background: #0004; border-color: #ffffff50; border-radius: 0; }
.hero-controls button { border-radius: 0; }
.home-search-wrap { margin-top: 0; width: 100%; background: #f5f5f5; border-bottom: 1px solid var(--line); }
.home-search { width: calc(100% - var(--page-gutter) * 2); margin-inline: auto; padding: 30px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 26px; }
.field input, .field select, .field textarea { border-color: #d7d7d7; border-radius: 2px; padding: 13px 14px; }
.field input::placeholder, .field textarea::placeholder { color: #737373; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #555; }
.field label { font-size: 12px; }
.process-section { background: #fff; padding-block: 80px; border: 0; border-bottom: 1px solid var(--line); }
.process-section .section-heading { justify-content: center; text-align: center; margin-bottom: 46px; }
.process-section .eyebrow { justify-content: center; }
.process-grid { gap: 0; }
.process-grid article { border-top: 0; padding: 8px 40px; text-align: center; }
.process-grid article + article { border-left: 1px solid var(--line); }
.process-grid article > span { color: var(--accent); margin-bottom: 20px; font-size: 11px; }
.process-grid h3 { font-size: 26px; }
.process-grid p { font-size: 14px; line-height: 1.8; }
.section-heading { margin-bottom: 38px; }
.car-grid { gap: 32px 26px; }
.car-card { background: #f7f7f7; border-radius: 3px; border-color: #e2e2e2; box-shadow: 0 2px 3px #00000004; }
.car-card:hover { box-shadow: 0 12px 30px #0000000d; }
.car-image { aspect-ratio: 1.5; background: #eee; }
.car-card-body { padding: 24px; }
.car-meta { text-transform: uppercase; font-size: 10px; letter-spacing: .07em; }
.car-meta span { color: var(--accent); }
.car-card h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.03em; }
.car-location { color: #666; }
.car-specs { color: #555; gap: 8px 16px; }
.car-card-bottom { border-color: #ddd; }
.car-card-bottom strong { color: var(--accent); font-size: 22px; font-weight: 600; }
.car-card-bottom > a { font-weight: 600; }
.badge { border-radius: 2px; background: #111; color: #fff; padding: 6px 12px; }
.image-arrow { width: 38px; height: 38px; }
.page-home main > .section:last-child { width: 100%; padding: 0; }
.contact-band { position: relative; background: #101010; color: #fff; border: 0; border-radius: 0; padding: 56px; }
.page-home .contact-band { padding: 64px var(--page-gutter); }
.contact-band h2 { font-size: clamp(28px, 3vw, 42px); }
.contact-band p:last-child { color: #c5c5c5; }
.contact-band .eyebrow { color: #fff; }
.contact-band .button { flex-shrink: 0; }
.site-footer { padding: 64px 0 24px; background: #050505; color: #ddd; }
.footer-main { padding-bottom: 48px; align-items: center; }
.footer-brand { display: inline-block; }
.footer-brand img { width: 240px; height: auto; }
.footer-main p { color: #aaa; font-size: 14px; }
.footer-main nav { gap: 36px; }
.footer-bottom { color: #999; padding-top: 24px; }
.page-heading { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.filter-panel { top: 112px; background: #f7f7f7; border-radius: 3px; padding: 26px; }
.catalog-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
.catalog-grid { gap: 28px; }
.results-bar { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.empty-state { border-radius: 3px; background: #f8f8f8; padding-block: 70px; }
.detail-price strong { color: var(--accent); }
.gallery-main, .gallery-thumbnails a, .editorial-image, .team-card img { border-radius: 2px; }
.gallery-main { aspect-ratio: 1.45; }
.detail-section { padding-block: 38px; }
.rich-text { color: #555; }
.inquiry-panel, .panel { background: #f7f7f7; border-color: var(--line); border-radius: 3px; padding: 32px; }
.inquiry-panel .form-stack { gap: 18px; }
.editorial-layout { gap: 80px; }
.editorial-image { height: 560px; }
.team-card img { filter: saturate(.85); }
.service-grid { gap: 26px; }
.service-grid .panel { border-top: 3px solid var(--accent); padding: 34px; display: flex; flex-direction: column; align-items: start; }
.service-grid .text-link { margin-top: auto; }
.service-number { color: var(--accent); font-size: 44px; }
.contact-layout { gap: 90px; }
.contact-tip { border-color: var(--line); }
.contact-tip > span { color: var(--accent); }
.auth-layout { border-radius: 3px; margin-block: 64px; box-shadow: none; }
.auth-story { background: #111; }
.auth-story::after { background: linear-gradient(180deg, #0002, #0005 30%, #000e 90%); }
.auth-story-content { padding: 48px; }
.auth-form-wrap { padding: 48px 56px; }
.password-field button { color: #555; }
.password-field button:hover, thead { background: #eee; }
.table-wrap { border-radius: 3px; }
@media (min-width: 1280px) {
    .page-home .car-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1920px) {
    .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
    .hero { min-height: 740px; }
}
@media (max-width: 1150px) {
    .shell, .home-search { width: calc(100% - 56px); }
    .home-search-wrap, .page-home main > .section:last-child { width: 100%; }
    .site-navigation { gap: 20px; }
    .brand-logos { width: 208px; }
    .nav-account { padding-left: 20px; }
    .hero { min-height: 620px; }
    .catalog-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
    .car-card-body { padding: 20px; }
    .process-grid article { padding-inline: 26px; }
    .editorial-layout, .contact-layout { gap: 40px; }
    .auth-form-wrap { padding: 36px; }
    .service-grid .panel { padding: 26px; }
}
@media (max-width: 960px) {
    .site-navigation { border-color: var(--line); }
    .page-home .site-header:not(.is-scrolled) .site-navigation { border-color: #ffffff30; }
    .nav-account { padding-left: 0; }
    .hero { min-height: 590px; }
    .home-search { gap: 20px; }
    .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .auth-story-content { padding: 30px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-grid .panel { padding: 32px; }
    .service-number { margin-bottom: 18px; }
    .contact-band { padding: 40px; }
    .footer-main nav { gap: 24px; }
}
@media (max-width: 700px) {
    .shell, .home-search { width: calc(100% - 40px); }
    .section { padding-block: 52px; }
    .header-inner { min-height: 76px; }
    .brand-logos { width: 190px; }
    .site-navigation > a[aria-current=page]::after { right: auto; width: 24px; left: 8px; }
    .nav-account { border-color: var(--line); }
    .hero { min-height: 590px; }
    .hero-image { object-position: 61% center; }
    .hero::after { background: linear-gradient(90deg, #000c, #0006), linear-gradient(0deg, #0007, transparent); }
    [data-hero-carousel] .hero-content { padding-top: 64px; padding-bottom: 136px; }
    .hero-content h1 { font-size: clamp(48px, 10vw, 68px); }
    .hero-content > p:not(.eyebrow) { font-size: 15px; }
    .hero-content .eyebrow { font-size: 9px; gap: 10px; }
    .hero-controls-wrap { bottom: 28px; }
    .home-search-wrap { width: 100%; margin: 0; }
    .home-search { padding-block: 26px; gap: 18px 14px; }
    .process-section { padding-block: 52px; }
    .process-section .section-heading { margin-bottom: 32px; }
    .process-section .eyebrow { font-size: 9px; }
    .process-grid { gap: 24px; }
    .process-grid article { padding: 0 16px 24px; }
    .process-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
    .process-grid article:last-child { padding-bottom: 0; }
    .car-grid { gap: 24px; }
    .car-card h3 { font-size: 23px; }
    .car-specs { font-size: 11px; }
    .contact-band, .page-home .contact-band { padding: 44px 24px; }
    .contact-band h2 { font-size: 32px; }
    .site-footer { padding-top: 44px; }
    .footer-main { align-items: start; padding-bottom: 32px; }
    .footer-main nav { gap: 24px; flex-wrap: wrap; }
    .footer-brand img { width: 220px; }
    .catalog-layout { grid-template-columns: 1fr; gap: 28px; }
    .filter-panel { padding: 24px; }
    .page-heading { margin-bottom: 30px; padding-bottom: 24px; }
    .editorial-layout, .contact-layout { gap: 32px; }
    .editorial-image { height: 360px; }
    .inquiry-panel, .panel { padding: 26px; }
    .auth-layout { margin-block: 28px; }
    .auth-story-content { padding: 30px 26px; }
    /* Keep all existing account-page copy available on small screens. */
    .auth-story-content > p:not(.eyebrow), .auth-story-content > .text-link { display: block; }
    .auth-story-content h1 { margin-bottom: 20px; }
    .auth-form-wrap { padding: 32px 26px; }
}
@media (max-width: 480px) {
    .car-grid { grid-template-columns: 1fr; }
    .hero-content .eyebrow { letter-spacing: .08em; }
    .hero-content .eyebrow::before { width: 20px; }
    .brand-logos { width: 175px; }
    .footer-main nav { gap: 20px; }
    .service-grid .panel { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
}
