/*
Theme Name: MB Parts – Classic & Youngtimer
Description: Eigenständiges, dunkles Editorial-Theme für Mercedes-Benz Klassiker und Youngtimer.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mb-parts
*/

:root {
  color-scheme: dark;
  --night: var(--wp--preset--color--night, #10110f);
  --night-2: var(--wp--preset--color--night-soft, #171916);
  --night-3: #20221e;
  --cream: var(--wp--preset--color--cream, #e9e5dc);
  --muted: var(--wp--preset--color--muted, #aaa79f);
  --gold: var(--wp--preset--color--champagne, #c8ad81);
  --gold-light: var(--wp--preset--color--champagne-light, #dfc69d);
  --rule: rgb(233 229 220 / 17%);
  --sans: var(--wp--preset--font-family--sans, 'Helvetica Neue', Arial, sans-serif);
  --serif: var(--wp--preset--font-family--editorial, Georgia, 'Times New Roman', serif);
  --gutter: clamp(1.2rem, 6.25vw, 7rem);
  --site-header-height: 5.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--site-header-height); }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--sans); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.wp-block-template-part { margin: 0; }
.wp-block-group { box-sizing: border-box; }
.wp-site-blocks > .alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.wp-block-image { margin: 0; }
.wp-block-heading { color: inherit; }

.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; padding: .8rem 1rem; background: var(--cream); color: var(--night); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.wp-site-blocks > header.wp-block-template-part, body > header.site-header { position: sticky; z-index: 50; top: 0; margin-bottom: calc(-1 * var(--site-header-height)); isolation: isolate; }
.site-header { position: relative; display: flex; width: 100%; height: var(--site-header-height); min-height: var(--site-header-height); align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid rgb(233 229 220 / 21%); background: rgb(16 17 15 / 94%); backdrop-filter: blur(12px); }
.site-header--solid { background: var(--night); }
.wordmark { display: inline-flex; width: fit-content; flex-direction: column; gap: .28rem; }
.wordmark__name { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: .22em; line-height: 1; }
.wordmark__name span { font-weight: 400; }
.wordmark__tagline { margin: 0; color: var(--gold-light); font-size: .5rem; letter-spacing: .29em; }
.main-nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.4vw, 3.5rem); font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; }
.main-nav__link { color: rgb(233 229 220 / 75%); transition: color .2s ease; }
.main-nav__link:hover { color: var(--gold-light); }
.main-nav__contact { padding: .82rem 1.2rem; border: 1px solid rgb(223 198 157 / 69%); color: var(--gold-light); transition: background .2s ease, color .2s ease; }
.main-nav__contact:hover { background: var(--gold); color: var(--night); }
.site-header__brand { position: relative; z-index: 2; }
.site-header .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo { display: block; width: auto; max-width: min(16rem, 42vw); max-height: 4rem; }
.site-header .wordmark img { display: block; width: min(14.5rem, 27vw); height: auto; }
.mbp-brand-mark { display: inline-flex; width: fit-content; min-width: 0; align-items: center; line-height: 0; }
.mbp-brand-mark img { display: block; width: min(14.5rem, 27vw); height: auto; }
.site-footer .mbp-brand-mark img, .site-footer .wordmark--footer img { width: min(12rem, 58vw); }
.site-navigation { position: relative; z-index: 2; }
.site-navigation ul { display: flex; align-items: center; gap: clamp(1.3rem, 3.4vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.site-navigation a { color: rgb(233 229 220 / 78%); font-size: .63rem; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.site-navigation a:hover, .site-navigation .current-menu-item > a, .site-navigation .current_page_item > a { color: var(--gold-light); }
.site-navigation .menu-item:last-child > a { color: var(--gold-light); }
.site-navigation .wp-block-navigation__container { display: flex; align-items: center; gap: clamp(1.3rem, 3.4vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.site-navigation .wp-block-navigation-item__content { color: rgb(233 229 220 / 78%); font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; }
.site-navigation .wp-block-navigation-item__content:hover { color: var(--gold-light); }
.site-navigation .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; border: 1px solid rgb(223 198 157 / 60%); border-radius: 0; color: var(--gold-light); }
.site-navigation .wp-block-navigation__responsive-container-open svg { fill: currentColor; }
.site-navigation .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; color: var(--cream); }
.site-navigation .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem var(--gutter); background: #141613; color: var(--cream); }
.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; flex-direction: column; gap: .5rem; }
.site-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; padding: .8rem 0; font-size: .75rem; }
.menu-toggle { display: none; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid rgb(223 198 157 / 60%); background: transparent; color: var(--gold-light); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.menu-toggle[hidden] { display: none; }
.menu-toggle__icon { display: grid; gap: 4px; }
.menu-toggle__icon i { display: block; width: 1rem; height: 1px; background: currentColor; }

/* The full-bleed image stays independent of the editorial text and is easy to replace. */
.hero { --wp--style--block-gap: 0; position: relative; display: flex; min-height: min(900px, 100svh); align-items: end; overflow: hidden; padding: 9rem var(--gutter) clamp(5.5rem, 9vh, 8rem); isolation: isolate; background: #242622; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, rgb(12 13 12 / 68%) 0%, rgb(12 13 12 / 27%) 52%, rgb(12 13 12 / 4%) 100%), linear-gradient(0deg, rgb(12 13 12 / 85%) 0%, rgb(12 13 12 / 13%) 48%, rgb(12 13 12 / 10%) 100%); }
.hero__image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.hero > .wp-block-image.hero__image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; margin: 0; }
.hero > .wp-block-image.hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.hero__masthead { position: absolute; top: 7.3rem; right: var(--gutter); display: flex; align-items: center; gap: .8rem; margin: 0; color: rgb(233 229 220 / 72%); font-size: .52rem; letter-spacing: .2em; }
.hero__masthead span:first-child { color: var(--gold-light); font-size: .7rem; font-weight: 600; letter-spacing: .24em; }
.hero__masthead i { width: 2rem; height: 1px; background: var(--gold); }
.hero__content { position: relative; z-index: 1; width: min(100%, 1080px); padding-left: clamp(0rem, 8vw, 8rem); }
.hero__content, .editorial__visual, .editorial__copy, .inventory, .contact-band__inner { --wp--style--block-gap: 0; }
.eyebrow { display: flex; align-items: center; gap: .78rem; margin: 0; color: var(--gold-light); font-size: .57rem; font-weight: 500; letter-spacing: .24em; line-height: 1.6; }
.eyebrow__rule { width: 2.5rem; height: 1px; background: var(--gold); }
.hero h1 { max-width: 1050px; margin: 1.2rem 0 1.4rem; font-family: var(--serif); font-size: clamp(4.2rem, 10.5vw, 10.5rem); font-weight: 400; letter-spacing: -.075em; line-height: .84; }
.hero h1 em { display: inline-block; margin-left: clamp(1rem, 9vw, 8rem); color: var(--gold-light); font-weight: 400; }
.hero__intro { margin: 0 0 1.8rem clamp(1rem, 9vw, 8rem); color: rgb(233 229 220 / 76%); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 3.35rem; align-items: center; justify-content: center; gap: 2.1rem; padding: 0 1.45rem; font-size: .62rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.button--light { margin-left: clamp(1rem, 9vw, 8rem); background: var(--cream); color: var(--night); transition: background .2s ease, transform .2s ease; }
.button--light:hover { transform: translateY(-2px); background: var(--gold-light); }
.button--light span { font-size: 1rem; }
.wp-block-button.button--light { display: inline-flex; margin-left: clamp(1rem, 9vw, 8rem); background: transparent; }
.wp-block-button.button--light .wp-block-button__link { display: inline-flex; min-height: 3.35rem; align-items: center; justify-content: center; gap: 2.1rem; padding: 0 1.45rem; border: 0; border-radius: 0; background: var(--cream); color: var(--night); font-size: .62rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.wp-block-button.button--light .wp-block-button__link:hover { transform: translateY(-2px); background: var(--gold-light); }
.image-note { position: absolute; z-index: 1; right: var(--gutter); bottom: 1.4rem; margin: 0; color: rgb(233 229 220 / 69%); font-size: .5rem; letter-spacing: .15em; text-transform: uppercase; }
.hero__technical { position: absolute; right: var(--gutter); bottom: 8rem; display: flex; width: 8.3rem; flex-direction: column; gap: .7rem; margin: 0; border-left: 1px solid var(--gold); padding-left: 1rem; color: var(--cream); font-size: .57rem; letter-spacing: .16em; }
.hero__technical i { width: 2rem; height: 1px; background: var(--gold); }
.hero__technical small { color: rgb(233 229 220 / 59%); font-size: .44rem; line-height: 1.5; }
.hero__index { position: absolute; right: var(--gutter); bottom: 3.2rem; display: flex; align-items: center; gap: .65rem; color: rgb(233 229 220 / 55%); font-size: .56rem; letter-spacing: .14em; }
.hero__index span { color: var(--gold-light); }
.hero__index i { width: 2.5rem; height: 1px; background: var(--gold); }

.section-shell { padding-right: var(--gutter); padding-left: var(--gutter); }
.editorial { display: grid; grid-template-columns: 1.13fr .87fr; gap: clamp(3rem, 10vw, 10rem); align-items: center; padding-top: clamp(6rem, 12vw, 12rem); padding-bottom: clamp(6rem, 12vw, 12rem); background: radial-gradient(ellipse at 18% 45%, rgb(95 88 73 / 13%), transparent 43%), var(--night); }
.editorial__visual { position: relative; width: 100%; }
.editorial__visual::before { position: absolute; z-index: 1; top: -1rem; right: -1rem; bottom: 1rem; left: 1rem; border: 1px solid rgb(200 173 129 / 42%); content: ''; pointer-events: none; }
.editorial__visual img { display: block; width: 100%; aspect-ratio: 1.1 / 1; object-fit: cover; filter: saturate(.65) brightness(.84); }
.editorial__visual .wp-block-image { position: relative; z-index: 0; margin: 0; }
.editorial__visual .wp-block-image img { aspect-ratio: 1.1 / 1; }
.editorial__stamp { position: absolute; z-index: 2; top: 1.5rem; left: 1.5rem; display: grid; width: 3.6rem; height: 3.6rem; place-content: center; border: 1px solid var(--gold); background: rgb(16 17 15 / 70%); color: var(--gold-light); font-size: .58rem; letter-spacing: .13em; line-height: 1.5; text-align: center; }
.editorial__stamp i { font-family: var(--serif); font-size: 1.1rem; font-style: normal; }
.editorial__caption { position: absolute; right: .5rem; bottom: -2rem; margin: 0; color: var(--muted); font-size: .48rem; letter-spacing: .17em; }
.editorial__caption span { color: var(--gold); }
.editorial__copy { max-width: 540px; padding-top: 1rem; }
.eyebrow--muted { color: var(--gold); }
.editorial__copy h2 { margin: 2rem 0 1.8rem; font-family: var(--serif); font-size: clamp(3.3rem, 6.8vw, 7rem); font-weight: 400; letter-spacing: -.065em; line-height: .97; }
.editorial__copy h2 em { color: var(--gold-light); font-weight: 400; }
.editorial__copy > p:not(.eyebrow) { max-width: 390px; margin: 0 0 2rem; color: var(--muted); font-size: .84rem; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 1.3rem; padding-bottom: .6rem; border-bottom: 1px solid rgb(200 173 129 / 55%); color: var(--gold-light); font-size: .59rem; letter-spacing: .13em; text-transform: uppercase; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { border-color: var(--cream); color: var(--cream); }

.inventory { padding-top: clamp(4.5rem, 8vw, 8rem); padding-bottom: clamp(5rem, 9vw, 9rem); background: var(--cream); color: var(--night); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: clamp(2.2rem, 5vw, 4.5rem); }
.section-heading h2 { margin: .7rem 0 0; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.065em; line-height: .95; }
.section-heading__count { padding-bottom: .65rem; color: #736e64; font-size: .53rem; letter-spacing: .18em; }
.section-heading__count span { color: #a08459; }
.section-heading__link { transition: color .2s ease; }
.section-heading__link:hover { color: #8c7048; }
.vehicle-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 3vw, 3rem); row-gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.vehicle-card { grid-column: span 6; min-width: 0; }
.vehicle-card:nth-child(2n) { margin-top: clamp(2rem, 8vw, 8rem); }
.vehicle-card__image-link { position: relative; display: block; aspect-ratio: 1.42 / 1; overflow: hidden; background: #31322d; }
.vehicle-card__image-link img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.vehicle-card__image-empty { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #31332f, #1a1c19); color: var(--muted); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; }
.vehicle-card__image-link:hover img { transform: scale(1.035); filter: saturate(1); }
.vehicle-card__image-link::after { position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgb(12 13 12 / 61%), transparent); content: ''; pointer-events: none; }
.image-note--card { right: auto; bottom: 1rem; left: 1rem; z-index: 2; font-size: .47rem; }
.vehicle-card__number { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; color: var(--cream); font-size: .53rem; letter-spacing: .17em; }
.vehicle-card__details { padding: 1.25rem 0 0; }
.vehicle-card__title-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.vehicle-card__status { margin: 0 0 .8rem; color: #846b46; font-size: .48rem; font-weight: 600; letter-spacing: .17em; }
.vehicle-card h2, .vehicle-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.vehicle-card h2 span, .vehicle-card h3 span { color: #827d73; font-size: .72em; }
.vehicle-card h2 a { text-decoration: none; }
.vehicle-card__arrow { margin-top: 1.5rem; color: #927952; font-size: 1.1rem; transition: transform .2s ease; }
.vehicle-card:hover .vehicle-card__arrow { transform: translate(3px, -3px); }
.vehicle-card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding: .95rem 0; border-top: 1px solid rgb(16 17 15 / 20%); border-bottom: 1px solid rgb(16 17 15 / 20%); }
.vehicle-card__facts-label { color: #777268; font-size: .55rem; letter-spacing: .15em; }
.vehicle-card__facts-state { color: #625741; font-family: var(--serif); font-size: 1.15rem; }
.vehicle-card__note { margin: .8rem 0; color: #777268; font-size: .64rem; }
.vehicle-pagination { margin-top: 3rem; }
.vehicle-pagination .page-numbers { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.vehicle-pagination a, .vehicle-pagination span { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; border: 1px solid rgb(16 17 15 / 22%); padding: .5rem .75rem; color: var(--night); font-size: .7rem; }
.vehicle-pagination .current { border-color: var(--gold); background: var(--gold); }
.demo-tag { display: inline-block; margin-left: .3rem; color: #8a714a; font-family: var(--sans); font-size: .44rem; letter-spacing: .1em; vertical-align: .1em; }
.listing-link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: .95rem 0; border: 0; border-bottom: 1px solid rgb(16 17 15 / 20%); background: transparent; color: #5c584f; font-size: .55rem; font-weight: 600; letter-spacing: .13em; text-align: left; text-transform: uppercase; }
.listing-link:disabled { cursor: not-allowed; opacity: .6; }
.listing-note { margin: .6rem 0 0; color: #777268; font-size: .63rem; line-height: 1.6; }
.preview-disclaimer { margin: 2rem 0 0; color: #777268; font-size: .67rem; line-height: 1.65; }

.contact-band { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 50%, rgb(126 107 76 / 16%), transparent 35%), linear-gradient(115deg, #181a17, #22231f 55%, #171815); }
.contact-band::after { position: absolute; top: 14%; right: 12%; width: 24vw; height: 24vw; border: 1px solid rgb(200 173 129 / 13%); border-radius: 50%; content: ''; }
.contact-band__inner { position: relative; z-index: 1; padding-top: clamp(5rem, 10vw, 10rem); padding-bottom: clamp(5rem, 10vw, 10rem); }
.contact-band h2 { margin: 1.5rem 0 1rem; font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 7.5rem); font-weight: 400; letter-spacing: -.065em; line-height: .98; }
.contact-band h2 em { color: var(--gold-light); font-weight: 400; }
.contact-band__inner > p:not(.eyebrow) { margin: 0 0 2rem; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.contact-band__inner > .wp-block-heading { margin: 1.5rem 0 1rem; font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 7.5rem); font-weight: 400; letter-spacing: -.065em; line-height: .98; }
.contact-band__inner > .wp-block-heading em { color: var(--gold-light); font-weight: 400; }
.button--outline { min-width: 9rem; border: 1px solid rgb(223 198 157 / 55%); color: var(--gold-light); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.8rem var(--gutter); border-top: 1px solid var(--rule); }
.wordmark--footer .wordmark__name { font-size: .95rem; }
.wordmark--footer .wordmark__tagline { font-size: .42rem; }
.site-footer > p, .back-top { margin: 0; color: #89877f; font-size: .48rem; letter-spacing: .14em; }
.back-top { color: var(--gold); }

.page-main { min-height: 65vh; }
.page-heading { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: 3rem; }
.page-heading__row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-top: 1.5rem; }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 8rem); font-weight: 400; letter-spacing: -.07em; line-height: .93; }
.page-heading__title { margin: 0; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: 2rem; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 400; letter-spacing: -.06em; }
.page-heading__row p { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.inventory--page { padding-top: 3rem; }
.detail-main { padding-bottom: clamp(4rem, 8vw, 7rem); }
.detail-top { display: flex; align-items: center; justify-content: space-between; padding-top: 2.3rem; padding-bottom: 1.6rem; }
.detail-visual { position: relative; }
.detail-visual__image { display: block; width: 100%; max-height: 620px; aspect-ratio: 1.9 / 1; object-fit: contain; background: var(--night-3); }
.detail-visual__empty { display: grid; min-height: 20rem; place-items: center; border: 1px solid var(--rule); background: linear-gradient(135deg, var(--night-2), var(--night-3)); color: var(--muted); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.detail-gallery { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.detail-gallery h2 { margin: .55rem 0 1.2rem; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; letter-spacing: -.045em; }
.detail-gallery__empty { display: flex; min-height: 5rem; align-items: center; margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .76rem; }
.detail-gallery__stage { width: 100%; aspect-ratio: 1.82 / 1; max-height: min(68vh, 660px); overflow: hidden; border: 1px solid var(--rule); background: linear-gradient(135deg, var(--night-2), #0c0d0b); }
.detail-gallery__main-trigger { position: relative; display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; overflow: hidden; cursor: zoom-in; }
.detail-gallery__main-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.detail-gallery__zoom { position: absolute; right: 1rem; bottom: 1rem; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid rgb(233 229 220 / 55%); background: rgb(16 17 15 / 80%); color: var(--cream); font-size: 1.4rem; line-height: 1; }
.detail-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .75rem; margin-top: .85rem; }
.detail-gallery__thumb { position: relative; display: block; aspect-ratio: 1.55 / 1; overflow: hidden; border: 1px solid var(--rule); background: var(--night-2); }
.detail-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .2s ease; }
.detail-gallery__thumb:hover img, .detail-gallery__thumb.is-active img { opacity: 1; }
.detail-gallery__thumb.is-active { border-color: var(--gold); }
.vehicle-lightbox { width: min(96vw, 1480px); max-width: none; height: min(94dvh, 1080px); max-height: none; overflow: hidden; border: 1px solid rgb(223 198 157 / 34%); padding: 0; background: #0a0b09; color: var(--cream); }
.vehicle-lightbox::backdrop { background: rgb(5 6 5 / 92%); backdrop-filter: blur(4px); }
.vehicle-lightbox__layout { display: grid; width: 100%; height: 100%; grid-template-rows: auto minmax(0, 1fr) auto; padding: clamp(1rem, 2.2vw, 2rem); }
.vehicle-lightbox__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vehicle-lightbox__toolbar p { margin: 0; color: var(--gold-light); font-size: .68rem; letter-spacing: .18em; }
.vehicle-lightbox__close, .vehicle-lightbox__nav { display: inline-grid; min-width: 48px; min-height: 48px; place-items: center; border: 1px solid rgb(223 198 157 / 55%); border-radius: 0; background: #171916; color: var(--cream); font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.vehicle-lightbox__close:hover, .vehicle-lightbox__nav:hover:not(:disabled) { background: var(--gold); color: var(--night); }
.vehicle-lightbox__nav:disabled { cursor: not-allowed; opacity: .38; }
.vehicle-lightbox__stage { display: grid; min-height: 0; grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem; align-items: center; justify-items: center; gap: clamp(.5rem, 2vw, 1.5rem); padding: .5rem 0; }
.vehicle-lightbox__image { display: block; width: 100%; height: 100%; max-height: calc(94dvh - 9rem); object-fit: contain; object-position: center; }
.vehicle-lightbox__count { margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; clip-path: inset(50%); }
.detail-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.detail-gallery__grid img { display: block; width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr); gap: clamp(2rem, 8vw, 8rem); padding-top: clamp(3rem, 6vw, 5rem); }
.detail-content__main h1 { margin: 1rem 0 .3rem; font-family: var(--serif); font-size: clamp(3rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.065em; line-height: .97; }
.detail-chassis { margin: 0; color: var(--gold-light); font-family: var(--serif); font-size: 1.6rem; }
.detail-description { max-width: 650px; margin: 2rem 0; color: var(--muted); font-size: .86rem; line-height: 1.9; }
.detail-specs-title { margin: 2.5rem 0 1rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.detail-specs-empty { max-width: 700px; margin: 0; padding: 1.2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .76rem; line-height: 1.65; }
.detail-specs { max-width: 700px; margin: 2.5rem 0 0; border-top: 1px solid var(--rule); }
.detail-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.detail-specs dt { color: var(--muted); font-size: .7rem; }
.detail-specs dd { margin: 0; font-size: .72rem; text-align: right; }
.detail-aside { align-self: start; margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--rule); background: linear-gradient(145deg, var(--night-2), #1b1d19); }
.detail-aside__title { margin: 1rem 0 .8rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; letter-spacing: -.035em; }
.detail-aside__copy { margin: 0 0 1.3rem; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.detail-aside .listing-link { color: var(--gold-light); border-color: var(--rule); }
.detail-aside .listing-note { color: var(--muted); }
.detail-shell > .preview-disclaimer { padding-top: 0; padding-bottom: 0; color: #89877f; }
.detail-loading, .detail-error { padding-top: 3rem; color: var(--muted); }
.detail-loading .text-link { display: inline-flex; margin-bottom: 1rem; }
.content-shell { max-width: 940px; margin: 0 auto; padding-top: 4rem; padding-bottom: 6rem; }
.entry-content { color: var(--muted); font-size: .9rem; line-height: 1.85; }
.entry-content a { color: var(--gold-light); text-decoration: underline; text-underline-offset: .18em; }
.content-list { padding-top: 2rem; padding-bottom: 5rem; }
.content-list__item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.content-list__item h2 { font-family: var(--serif); font-weight: 400; }
.content-none { grid-column: 1 / -1; padding: 2rem 0; }
.content-none h2 { margin: .8rem 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; }
.content-none > p:last-child { color: var(--muted); font-size: .82rem; line-height: 1.7; }
.inventory .content-none .eyebrow { color: #846b46; }
.inventory .content-none > p:last-child { color: #625f57; }
.site-footer__links .wp-block-navigation__container { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.site-footer__links .wp-block-navigation-item__content { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__links a { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__links p { margin: 0; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.page-main { padding-top: var(--site-header-height); }
img { max-width: 100%; }
.about-editorial { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding-top: 2rem; padding-bottom: clamp(3rem, 7vw, 6rem); }
.about-editorial .wp-block-image { margin: 0; }
.about-editorial img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.72) brightness(.86); }
.about-editorial h2, .about-note h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.about-editorial p:not(.eyebrow), .about-note p { color: var(--muted); font-size: .92rem; line-height: 1.85; }
.about-note { margin-bottom: 4rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-top: 2rem; padding-bottom: 2rem; }
.legal-template-notice { margin: 1rem 0 2.5rem; border: 1px solid var(--gold); border-left-width: 4px; background: linear-gradient(110deg, rgb(200 173 129 / 12%), transparent); padding: 1.1rem 1.25rem; color: var(--gold-light); font-size: .9rem; font-weight: 600; line-height: 1.65; }
.legal-placeholder { display: inline-block; max-width: 100%; border: 1px dashed rgb(223 198 157 / 65%); padding: .18rem .4rem; color: var(--gold-light); overflow-wrap: anywhere; }
.legal-template-note { color: var(--muted); font-size: .85rem; line-height: 1.8; }
.site-footer .wp-block-navigation__responsive-container { position: static; }

@media (min-width: 1500px) { .hero { min-height: 920px; } }
@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero__content { padding-left: 2vw; }
  .hero h1 { font-size: clamp(4rem, 11vw, 8rem); }
  .hero h1 em, .hero__intro, .button--light, .wp-block-button.button--light { margin-left: 4vw; }
  .vehicle-card { grid-column: span 6; }
  .site-header { padding-right: clamp(1.2rem, 4vw, 2.4rem); padding-left: clamp(1.2rem, 4vw, 2.4rem); }
  .mbp-brand-mark img, .site-header .wordmark img { width: min(13rem, 25vw); }
}
@media (max-width: 680px) {
  :root { --site-header-height: 4.65rem; }
  .site-header { padding-right: var(--gutter); padding-left: var(--gutter); }
  .mbp-brand-mark img, .site-header .wordmark img { width: min(12rem, 54vw); }
  .site-header .wp-block-navigation { margin-left: auto; }
  .site-header .wp-block-navigation__responsive-container-open { display: inline-flex; align-items: center; justify-content: center; }
  .site-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-navigation li { border-bottom: 1px solid var(--rule); }
  .site-navigation a { display: block; padding: 1rem var(--gutter); font-size: .65rem; }
  .site-navigation .menu-item:last-child > a { border: 0; }
  .site-navigation .wp-block-navigation__responsive-container.is-menu-open { background: #141613; }
  .hero { min-height: min(820px, 100svh); padding-top: 8rem; padding-bottom: 8.6rem; }
  .hero::after { background: linear-gradient(0deg, rgb(12 13 12 / 91%) 0%, rgb(12 13 12 / 61%) 47%, rgb(12 13 12 / 12%) 100%); }
  .hero__image { object-position: 55% 68%; }
  .hero__masthead { top: 6rem; left: var(--gutter); right: auto; font-size: .45rem; }
  .hero__content { padding-left: 0; }
  .hero h1 { margin-top: 1rem; font-size: clamp(3.6rem, 14.8vw, 6.4rem); line-height: .89; }
  .hero h1 em { margin-left: .6rem; }
  .hero__intro, .button--light, .wp-block-button.button--light { margin-left: .6rem; }
  .hero__intro { font-size: .59rem; }
  .hero__technical { right: var(--gutter); bottom: 4.2rem; width: 7.2rem; font-size: .48rem; }
  .hero__index { display: none; }
  .image-note { left: var(--gutter); right: auto; bottom: 1.2rem; max-width: 70%; font-size: .43rem; }
  .editorial { grid-template-columns: 1fr; gap: 4rem; padding-top: 5rem; padding-bottom: 6rem; }
  .editorial__visual { width: calc(100% - 1rem); }
  .editorial__visual img { aspect-ratio: 1.18 / 1; }
  .editorial__copy { padding: 0; }
  .editorial__copy h2 { margin: 1.4rem 0; font-size: clamp(3.2rem, 13vw, 5rem); }
  .section-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .section-heading h2 { font-size: clamp(3.4rem, 13vw, 5rem); }
  .vehicle-grid { grid-template-columns: 1fr; row-gap: 3.3rem; }
  .vehicle-card { grid-column: 1; }
  .vehicle-card:nth-child(2n) { margin-top: 0; }
  .vehicle-card:nth-child(2n) .vehicle-card__image-link { margin-left: 8%; width: 92%; }
  .vehicle-card h2, .vehicle-card h3 { font-size: clamp(2.4rem, 11vw, 3.7rem); }
  .contact-band::after { top: 18%; right: -12%; width: 58vw; height: 58vw; }
  .contact-band h2 { font-size: clamp(3.2rem, 13vw, 5rem); }
  .page-heading__row { align-items: start; flex-direction: column; gap: 1rem; }
  .page-heading__row .section-heading__count { padding-bottom: 0; }
  .detail-top { align-items: start; flex-direction: column; gap: 1rem; }
  .detail-visual__image { min-height: 260px; aspect-ratio: 1.25 / 1; }
  .detail-gallery__stage { aspect-ratio: 1.25 / 1; max-height: 62vh; }
  .detail-gallery__thumbs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
  .vehicle-lightbox { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; }
  .vehicle-lightbox__layout { padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); }
  .vehicle-lightbox__stage { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: .35rem; }
  .vehicle-lightbox__close, .vehicle-lightbox__nav { min-width: 44px; min-height: 44px; }
  .vehicle-lightbox__image { max-height: calc(100dvh - 8rem); }
  .detail-content { grid-template-columns: 1fr; gap: 1rem; }
  .detail-aside { margin-top: 0; }
  .about-editorial { grid-template-columns: 1fr; gap: 2rem; }
  .about-editorial img { aspect-ratio: 1.28 / 1; }
  .site-footer { align-items: flex-start; }
  .site-footer__links { width: 100%; order: 3; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2.45rem, 12.5vw, 3.4rem); }
  .hero h1 em { display: inline; margin-left: .2rem; }
  .hero .eyebrow { font-size: .49rem; letter-spacing: .16em; }
  .vehicle-card__meta { align-items: start; flex-direction: column; gap: .4rem; }
  .detail-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { align-items: start; flex-wrap: wrap; }
  .site-footer .back-top { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
