/*
Theme Name: DVM
Description: Theme for Death Valley Motorsports. Works with the DVM Dealer plugin. Homepage is edited in Appearance → Customize → DVM Homepage.
Version: 0.3.7
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: dvm-theme
*/

/* ---------- Brand colors (matched to the current deathvalleyms.com) ---------- */
:root {
	--dvm-purple: #461d76;   /* buttons */
	--dvm-gold: #e8c125;     /* hover / highlight */
	--dvm-mist: #dbe6e7;     /* light blue-gray: tiles, big headings, Map Us */
	--dvm-steel: #8f9a9c;    /* footer headings */
	--dvm-black: #000;
	--dvm-footer: #111;
	--dvm-ink: #333;
	--dvm-body: #4a4a4a;
	--dvm-section: #eef3f4;  /* light section background */

	/* Used by the DVM Dealer plugin's components */
	--dvm-accent: var(--dvm-purple);
	--dvm-accent-ink: #fff;
	--dvm-hover: var(--dvm-gold);
	--dvm-hover-ink: #000;

	--f-head: "Nunito Sans", system-ui, sans-serif;
	--f-btn: "Outfit", system-ui, sans-serif;
	--f-nav: "Barlow", system-ui, sans-serif;
	--f-body: "Open Sans", system-ui, sans-serif;
	--wrap: 1010px;
	--ease: .3s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 15px; color: var(--dvm-body); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--dvm-purple); transition: color var(--ease); }
a:hover { color: var(--dvm-gold); }
h1, h2, h3, h4 { font-family: var(--f-head); color: #000; line-height: 1.15; }
.wrap { width: calc(100% - 32px); max-width: none; margin: 0 auto; padding: 0; }
@media (min-width: 768px) { .wrap { width: 740px; max-width: 100%; } }
@media (min-width: 992px) { .wrap { width: 940px; } }
@media (min-width: 1200px) { .wrap { width: 1140px; } }
@media (min-width: 1530px) { .wrap { width: 1500px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Header (scrolls away, like the current site) ---------- */
.site-header { position: relative; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: stretch; min-height: 100px; padding-left: 16px; }
.brand { display: flex; align-items: center; padding-right: 24px; text-decoration: none; }
.brand img { max-height: 64px; width: auto; transition: opacity var(--ease); }
.brand:hover img { opacity: .6; }
.brand__text { font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; color: #000; text-transform: uppercase; }
.nav { display: flex; align-items: center; margin: 0 0 0 24px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav li { position: relative; }
.nav > ul > li > a { white-space: nowrap; display: flex; align-items: center; gap: 4px; height: 100px; padding: 0 19px; font-family: var(--f-nav); font-size: 13px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: #000; text-decoration: none; }
.nav > ul > li.menu-item-has-children > a::after, .nav > ul > li:has(> .sub-menu) > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav a:hover, .nav li:hover > a, .nav li:focus-within > a { color: var(--dvm-gold); }
.nav > ul > li:hover > a, .nav > ul > li:focus-within > a { box-shadow: inset 0 -2px 0 var(--dvm-gold); }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 211px; background: #fff; border-top: 2px solid var(--dvm-gold); box-shadow: 0 2px 6px rgba(0,0,0,.1); flex-direction: column; z-index: 60; }
.nav .sub-menu li { border-bottom: 1px solid #f1f1f1; }
.nav .sub-menu li:last-child { border-bottom: 0; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-menu a { display: block; padding: 12px 15px; font-family: var(--f-nav); font-size: 12px; line-height: 1.2; letter-spacing: .6px; text-transform: none; color: #333; text-decoration: none; white-space: nowrap; }
.nav .sub-menu a:hover { color: var(--dvm-gold); background: #f8f8f8; }
.header-tools { display: flex; align-items: center; gap: 22px; padding: 0 22px; margin-left: auto; }
.header-phone a { font-family: var(--f-btn); font-size: 22px; font-weight: 500; color: #000; text-decoration: none; white-space: nowrap; }
.header-phone a:hover { color: var(--dvm-gold); }
.header-search { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; background: var(--dvm-mist); color: #333; }
.header-search input { width: 120px; border: 0; background: transparent; font: inherit; font-size: 13px; outline: none; }
.header-map { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 150px; padding: 0 20px; background: var(--dvm-mist); color: #333; font-family: var(--f-btn); font-size: 13px; text-transform: uppercase; text-decoration: none; transition: background var(--ease), color var(--ease); }
.header-map:hover { background: var(--dvm-gold); color: #000; }
.nav-toggle { display: none; }

@media (max-width: 1380px) {
	.header-search { display: none; }
	.nav > ul > li > a { padding: 0 10px; }
	.header-tools { padding: 0 16px; }
}
@media (max-width: 1100px) { .header-phone a { font-size: 18px; } .header-map { min-width: 110px; } }
@media (max-width: 960px) {
	.header-inner { min-height: 72px; flex-wrap: wrap; }
	.brand img { max-height: 48px; }
	.header-tools, .header-map { display: none; }
	.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 64px; border: 0; background: var(--dvm-mist); cursor: pointer; }
	.nav-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; margin: 0 auto; background: #000; }
	.nav { display: none; width: 100%; margin: 0; border-top: 1px solid #eee; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; }
	.nav > ul > li > a { height: auto; padding: 14px 16px; }
	.nav > ul > li:hover > a, .nav > ul > li:focus-within > a { box-shadow: none; }
	.nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding-left: 16px; }
}

/* ---------- Shared buttons (purple → gold on hover) ---------- */
.pill, .dvm-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 116px; height: 40px; padding: 0 20px; border: 0; border-radius: 30px; background: var(--dvm-purple); color: #fff; font-family: var(--f-btn); font-size: 15px; font-weight: 400; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color var(--ease), color var(--ease); }
.pill:hover, .pill:focus-visible, .dvm-btn:hover, .dvm-btn:focus-visible { background: var(--dvm-gold); color: #000; filter: none; }
.pill--wide { min-width: 150px; border-radius: 20px; font-family: var(--f-head); font-size: 16px; }

.spaced-title { margin: 0 0 40px; text-align: center; font-family: var(--f-head); font-size: 25px; font-weight: 400; letter-spacing: 25px; text-transform: uppercase; color: #000; }
.spaced-title--light { color: var(--dvm-mist); margin-bottom: 36px; }
@media (max-width: 700px) { .spaced-title { font-size: 18px; letter-spacing: 8px; } }

/* =====================================================================
   HOMEPAGE — sizes copied from the current deathvalleyms.com stylesheet.
   Container widths: 740 (≥768) · 940 (≥992) · 1140 (≥1200) · 1500 (≥1530).
   ===================================================================== */

/* ---------- Hero (photo + big lettering + 4 boxes) ---------- */
.hero { position: relative; background: #23262b center / cover no-repeat; padding-bottom: 40px; overflow: hidden; }
@media (min-width: 768px) { .hero { padding-bottom: 80px; } }
@media (min-width: 1530px) { .hero { padding-bottom: 96px; } }
.hero__bg { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .dvm-slider { position: absolute; inset: 0; border-radius: 0; background: transparent; }
.hero .dvm-slider__track { position: absolute; inset: 0; aspect-ratio: auto; height: auto; }
.hero .dvm-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__lead { position: relative; z-index: 2; width: 90%; margin: 0 auto; padding: 50px 0; }
@media (min-width: 768px) { .hero__lead { padding: 30px 0; } }
@media (min-width: 1530px) { .hero__lead { width: 95%; } }
.hero__text { margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; text-align: left; line-height: 1; color: var(--dvm-mist); font-size: 60px; }
.hero__text span { display: block; }
@media (min-width: 768px) { .hero__text { font-size: 50px; } .hero__text span { display: inline-block; margin-right: .25em; } }
@media (min-width: 992px) { .hero__text { font-size: 90px; } .hero__text span { display: block; margin: 0; } }
@media (min-width: 1200px) { .hero__text { font-size: 120px; } }
@media (min-width: 1530px) { .hero__text { font-size: 150px; } }
/* With slides, the lettering comes from each slide; the lead block just reserves the space. */
.hero--slides .hero__lead { visibility: hidden; }
.hero__ctas { position: relative; z-index: 3; display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 10px; width: 90%; margin: 0 auto; padding: 50px 0; }
@media (max-width: 767px) { .hero__ctas { max-width: 320px; } }
@media (min-width: 768px) { .hero__ctas { padding: 30px 0 0; } }
@media (min-width: 992px) { .hero__ctas { gap: 0; } }
@media (min-width: 1530px) { .hero__ctas { width: 95%; } }
.cta-box { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; aspect-ratio: 440 / 130; padding-left: 30px; border: 4px solid var(--dvm-mist); background: rgba(219, 230, 231, .3); text-decoration: none; transition: background-color .2s ease-in-out, border-color .2s ease-in-out; }
@media (min-width: 768px) { .cta-box { width: calc(50% - 5px); } }
@media (min-width: 992px) { .cta-box { width: calc(25% - 5px); aspect-ratio: 440 / 180; padding-left: 15px; } }
@media (min-width: 1200px) { .cta-box { width: calc(25% - 15px); aspect-ratio: 440 / 140; } }
@media (min-width: 1530px) { .cta-box { padding-left: 30px; border-width: 5px; } }
.cta-box::after { content: ""; position: absolute; top: 0; bottom: 0; right: 12px; margin: auto; width: 10px; height: 10px; border-top: 3px solid var(--dvm-mist); border-right: 3px solid var(--dvm-mist); transform: rotate(45deg); transition: border-color .2s ease-in-out; }
.cta-box__title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: 1; color: var(--dvm-mist); font-size: 22px; transition: color .2s ease-in-out; }
.cta-box__sub { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; line-height: 1.2; color: var(--dvm-mist); font-size: 13px; transition: color .2s ease-in-out; }
@media (min-width: 768px) { .cta-box__title { font-size: 24px; } }
@media (min-width: 992px) { .cta-box__title { font-size: 18px; } .cta-box__sub { font-size: 12px; } }
@media (min-width: 1200px) { .cta-box__title { font-size: 21px; } .cta-box__sub { font-size: 13px; } }
@media (min-width: 1530px) { .cta-box__title { font-size: calc(12px + 1vw); } .cta-box__sub { font-size: calc(5px + .5vw); line-height: 1.5; } }
.cta-box:hover, .cta-box:focus-visible { background: var(--dvm-gold); border-color: var(--dvm-gold); }
.cta-box:hover .cta-box__title, .cta-box:hover .cta-box__sub { color: #000; }
.cta-box:hover::after { border-color: #000; }
.hero .dvm-slider__prev, .hero .dvm-slider__next { top: auto; bottom: 5px; transform: none; width: 40px; height: 40px; background: transparent; color: #fff; font-size: 34px; z-index: 4; }
@media (min-width: 1200px) { .hero .dvm-slider__prev, .hero .dvm-slider__next { font-size: 48px; width: 60px; height: 60px; } }
@media (min-width: 1530px) { .hero .dvm-slider__prev, .hero .dvm-slider__next { bottom: 26px; } }
.hero .dvm-slider__prev { left: auto; right: calc(5vw + 60px); } .hero .dvm-slider__next { right: 5vw; }
.hero .dvm-slider__prev:hover, .hero .dvm-slider__next:hover { color: var(--dvm-gold); background: transparent; }
.hero .dvm-slider__dots { display: none; }

/* ---------- Category tiles ("units row") ---------- */
.cats { position: relative; z-index: 1; background: #fff; }
.cats__grid { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; padding: 50px 0 30px; }
@media (min-width: 768px) { .cats__grid { padding: 40px 0; } }
@media (min-width: 992px) { .cats__grid { padding: 80px 0; } }
@media (min-width: 1530px) { .cats__grid { padding: 100px 0; } }
.cat { width: 100%; margin-bottom: 40px; }
@media (min-width: 768px) { .cat { width: calc(50% - 15px); } }
@media (min-width: 992px) { .cat { width: calc(25% - 15px); margin-bottom: 0; } }
.cat__img { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 180px; padding-top: 30px; background: none; border-radius: 0; }
@media (min-width: 992px) { .cat__img { padding-top: 10px; height: 160px; } }
@media (min-width: 1530px) { .cat__img { padding-top: 50px; height: 230px; } }
.cat__img::before { content: ""; position: absolute; left: 0; right: 0; top: 0; margin: 0 auto; width: 90%; aspect-ratio: 16 / 9; border-radius: 30px; background: var(--dvm-mist) var(--cat-bg, none) center / cover no-repeat; }
@media (min-width: 768px) { .cat__img::before { width: 80%; } }
@media (min-width: 992px) { .cat__img::before { width: 95%; } }
@media (min-width: 1530px) { .cat__img::before { width: 85%; aspect-ratio: 16 / 10; } }
.cat__img img { position: relative; inset: auto; width: auto; height: auto; max-width: 100%; max-height: 160px; object-fit: contain; transition: transform .2s ease-in-out; }
@media (min-width: 992px) { .cat__img img { max-height: 150px; } }
@media (min-width: 1530px) { .cat__img img { max-height: 190px; } }
.cat__img:hover img { transform: translateY(-6px); }
.cat__title { margin: 0 0 5px; font-family: var(--f-btn); font-size: 22px; font-weight: 500; text-transform: uppercase; text-align: center; color: #000; }
@media (min-width: 992px) { .cat__title { text-align: left; } }
@media (min-width: 1530px) { .cat__title { padding: 10px 0 0 30px; font-size: 28px; margin-bottom: 20px; } }
.cat__btns { display: flex; align-items: center; justify-content: space-evenly; width: 100%; gap: 0; }
@media (min-width: 992px) { .cat__btns { justify-content: flex-start; gap: 15px; } }
@media (min-width: 1530px) { .cat__btns { padding-left: 30px; } }
.cat__btns .pill { display: block; width: calc(45% - 10px); min-width: 0; height: 40px; padding: 0; border-radius: 30px; font-family: var(--f-btn); font-size: 14px; line-height: 40px; text-align: center; text-transform: uppercase; }
@media (min-width: 992px) { .cat__btns .pill { width: calc(50% - 10px); } }
@media (min-width: 1200px) { .cat__btns .pill { width: calc(45% - 10px); } }
@media (min-width: 1530px) { .cat__btns .pill { width: 35%; font-size: 15px; } }

/* ---------- Service / Financing cards ("buttons row") ---------- */
.promos { padding: 0; background: #eaf0f1; }
.promos__grid { display: flex; flex-flow: row wrap; padding: 30px 0; }
@media (min-width: 768px) { .promos__grid { padding: 40px 0; } }
@media (min-width: 992px) { .promos__grid { padding: 80px 0; } }
.promo { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; aspect-ratio: 750 / 420; min-height: 0; padding: 30px; background: #3b4046 center / cover no-repeat; text-decoration: none; overflow: hidden; }
@media (min-width: 768px) { .promo { width: 50%; padding: 40px 30px; } }
@media (min-width: 1530px) { .promo { padding: 60px; } }
.promo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: 0; transition: opacity .2s ease-in-out; }
.promo__title { font-family: var(--f-head); font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--dvm-mist); font-size: 36px; overflow-wrap: normal; transition: color .2s ease-in-out; }
@media (min-width: 992px) { .promo__title { font-size: 50px; } }
@media (min-width: 1530px) { .promo__title { font-size: 80px; } }
.promo__sub { margin-top: 4px; font-family: var(--f-head); font-weight: 400; text-transform: uppercase; color: var(--dvm-mist); font-size: 14px; gap: 5px; transition: color .2s ease-in-out; }
.promo__sub svg { width: 18px; height: 18px; }
@media (min-width: 992px) { .promo__sub { font-size: 16px; } .promo__sub svg { width: 24px; height: 24px; } }
.promo:hover::before { opacity: .5; }
.promo:hover .promo__title, .promo:hover .promo__sub { color: var(--dvm-gold); }

/* ---------- Featured inventory ---------- */
.featured { padding: 30px 0 20px; background: #eff3f4; }
@media (min-width: 768px) { .featured { padding: 40px 0; } }
@media (min-width: 992px) { .featured { padding-top: 30px; } }
.featured .spaced-title { margin: 0; font-family: var(--f-head); font-weight: 400; line-height: 1; color: #000; font-size: 18px; letter-spacing: .5em; }
@media (min-width: 768px) { .featured .spaced-title { font-size: 25px; } }
@media (min-width: 1530px) { .featured .spaced-title { margin-bottom: 25px; letter-spacing: 1em; } .featured__slider { max-width: 90%; margin: 0 auto; } }
.featured__track .dvm-grid { gap: 20px; padding: 10px 0; }
.featured__track .dvm-card { flex: 0 0 calc((100% - 40px) / 3); padding: 15px 15px 25px; border: 0; border-radius: 0; background: #eff3f4; }
.featured .dvm-card__media { aspect-ratio: auto; height: 270px; background: transparent; }
.featured .dvm-card__media img { object-fit: contain; }
.featured .dvm-card__body { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; padding: 0; gap: 0; }
.featured .dvm-card__title { width: calc(60% - 10px); height: 40px; line-height: 40px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--f-head); font-size: 20px; font-weight: 600; text-transform: uppercase; }
.featured .dvm-card__title a { color: #282828; }
.featured .dvm-card__meta, .featured .dvm-card__monthly, .featured .dvm-badge, .featured .dvm-msrp { display: none; }
.featured .dvm-card__price { width: calc(40% - 10px); height: 40px; align-items: center; justify-content: flex-end; }
.featured .dvm-card__price strong { font-family: var(--f-head); font-weight: 800; font-size: 20px; color: var(--dvm-purple); }
@media (min-width: 1530px) { .featured .dvm-card__price strong { font-size: 24px; } }
.featured .dvm-card .dvm-btn { order: 3; width: 150px; min-width: 150px; height: 45px; margin-top: 10px; border-radius: 25px; font-family: var(--f-head); font-size: 16px; font-weight: 400; text-transform: uppercase; }
.featured__nav { width: 40px; height: 50px; border-radius: 0; background: transparent; color: var(--dvm-purple); font-size: 34px; top: 0; bottom: 0; margin: auto 0; }
.featured__nav--prev { left: -15px; } .featured__nav--next { right: -15px; }
.featured__nav:hover { background: var(--dvm-gold); color: #000; }
@media (max-width: 991px) { .featured__track .dvm-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 767px) { .featured__track .dvm-card { flex-basis: 100%; } }

/* ---------- Brands + About (dark photo panel) ---------- */
.brands-about { position: relative; padding: 0 0 50px; background: #fff; }
@media (min-width: 1530px) { .brands-about { padding-bottom: 80px; } }
.brands-about::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50px; background: #eff3f4; }
@media (min-width: 1200px) { .brands-about::before { height: 150px; } }
.dark-panel { position: relative; overflow: hidden; padding: 30px 0; border-radius: 20px; background: #1d2024 center / cover no-repeat; color: #fff; }
@media (min-width: 768px) { .dark-panel { padding: 40px 0; } }
@media (min-width: 1530px) { .dark-panel { padding-bottom: 80px; } }
.dark-panel::before { display: none; }
.dark-panel__bg { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dark-panel > *:not(.dark-panel__bg) { position: relative; z-index: 2; }
.dark-panel .spaced-title { margin: 0; padding: 30px 15px 0; font-family: var(--f-head); font-weight: 400; line-height: 1; color: #fff; font-size: 18px; letter-spacing: .5em; }
@media (min-width: 768px) { .dark-panel .spaced-title { font-size: 25px; } }
@media (min-width: 1530px) { .dark-panel .spaced-title { padding-top: 70px; margin-bottom: 25px; letter-spacing: 1em; } }
.dark-panel .logos--cert { margin-top: 0; }
.logos { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 0; padding: 25px 15px 0; margin: 0; }
@media (min-width: 992px) { .logos { margin-bottom: 50px; } }
.logo { width: calc(50% - 15px); height: auto; margin-bottom: 30px; padding: 0 10px; }
@media (min-width: 768px) { .logo { width: calc(33.3333% - 15px); } }
@media (min-width: 992px) { .logo { width: calc(25% - 15px); } }
@media (min-width: 1530px) { .logo { margin-bottom: 50px; } }
.logo img { display: block; margin: 0 auto; max-width: 100%; max-height: 45px; }
@media (min-width: 1530px) { .logo img { max-width: 240px; max-height: 75px; } }
.logos--cert .logo { width: calc(50% - 15px); height: auto; }
@media (min-width: 768px) { .logos--cert .logo { width: calc(33.3333% - 15px); } }
@media (min-width: 992px) { .logos--cert .logo { width: calc(25% - 15px); } }
.logos--cert .logo img { max-height: 55px; }
@media (min-width: 768px) { .logos--cert .logo img { max-height: 85px; } }
@media (min-width: 1530px) { .logos--cert .logo img { max-height: 120px; } }
.logo--white img { filter: brightness(0) invert(1); }
.dark-panel__rule { display: none; }
.about { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; width: calc(100% - 30px); margin: 0 auto; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.6); }
@media (min-width: 992px) { .about { width: 90%; } }
@media (min-width: 1530px) { .about { width: 80%; border-top-width: 2px; padding-top: 80px; } }
.about > * { width: 100%; margin-bottom: 20px; }
@media (min-width: 768px) { .about > * { width: calc(50% - 15px); margin-bottom: 0; } }
.about__big { margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; color: var(--dvm-mist); text-align: center; line-height: 1.2; font-size: 50px; }
@media (min-width: 768px) { .about__big { text-align: left; font-size: 90px; line-height: 80px; } }
@media (min-width: 992px) { .about__big { font-size: 100px; line-height: 90px; } }
@media (min-width: 1200px) { .about__big { font-size: 110px; line-height: 100px; } }
@media (min-width: 1530px) { .about__big { font-size: 150px; line-height: 130px; } }
.about__body h2 { margin: 0 0 15px; font-family: var(--f-head); font-weight: 700; line-height: 1.2; color: var(--dvm-mist); text-align: center; font-size: 18px; }
.about__body p { margin: 0 0 30px; font-family: "Work Sans", var(--f-body); font-weight: 400; line-height: 1.2; color: var(--dvm-mist); text-align: center; font-size: 16px; }
@media (min-width: 768px) { .about__body h2, .about__body p { text-align: left; } }
@media (min-width: 992px) { .about__body h2 { font-size: 22px; } }
@media (min-width: 1530px) { .about__body h2 { font-size: 24px; } .about__body p { font-size: 17px; } }
.about__body .pill { display: block; width: 150px; min-width: 0; height: 40px; margin: 0 auto; padding: 0; border-radius: 20px; font-family: var(--f-head); font-size: 16px; line-height: 40px; text-align: center; text-transform: uppercase; }
@media (min-width: 768px) { .about__body .pill { margin-left: 0; } }

/* ---------- Bottom photo carousel ---------- */
.strip { overflow: hidden; width: 90%; margin: 0 auto; padding: 30px 0; }
@media (min-width: 1200px) { .strip { width: 95%; padding-bottom: 130px; } }
.strip__track { display: flex; gap: 0; width: max-content; animation: dvm-strip 60s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 513px; height: 300px; padding: 0 15px; box-sizing: border-box; text-decoration: none; }
@media (min-width: 768px) { .strip__item { height: 200px; width: 380px; } }
@media (min-width: 992px) { .strip__item { height: 250px; width: 513px; } }
.strip__item img { position: absolute; top: 0; bottom: 0; left: 15px; width: calc(100% - 30px); height: 100%; object-fit: cover; }
.strip__item::before { content: ""; position: absolute; top: 0; bottom: 0; left: 15px; right: 15px; z-index: 1; background: #000; opacity: 0; transition: opacity .2s ease-in-out; }
.strip__item span { position: relative; z-index: 2; opacity: 0; font-family: var(--f-head); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #fff; transition: opacity .2s ease-in-out; text-align: center; padding: 0 20px; }
@media (min-width: 1200px) { .strip__item span { font-size: 26px; } }
@media (min-width: 1530px) { .strip__item span { font-size: 28px; } }
.strip__item:hover::before { opacity: .6; }
.strip__item:hover span { opacity: 1; }
@keyframes dvm-strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } .strip { overflow-x: auto; } }

/* ---------- Inner pages ---------- */
.site-main { padding: 2.5rem 0 3.5rem; }
.page-title { margin: 0 0 1.25rem; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; text-transform: uppercase; }
.entry > * + * { margin-top: 1rem; }
.section { padding: 2.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #fff; font-size: 14px; }
.site-footer > .wrap { padding-top: 60px; padding-bottom: 50px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr 1.3fr; gap: 28px; }
.site-footer > .wrap { max-width: 1200px; }
.site-footer h3 { margin: 0 0 18px; font-family: var(--f-btn); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--dvm-steel); }
.footer-logo img { max-width: 180px; transition: transform var(--ease); position: relative; top: 0; }
.footer-logo a:hover img { transform: translateY(-5px); }
.footer-logo .brand__text { color: #fff; font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--dvm-gold); }
.footer-hours { border-collapse: collapse; }
.footer-hours th, .footer-hours td { white-space: nowrap; padding: 0 14px 10px 0; text-align: left; font-weight: 400; vertical-align: top; }
.footer-address { display: block; margin-bottom: 16px; line-height: 1.5; }
.footer-map { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 135px; height: 46px; border: 1px solid #fff; border-radius: 30px; font-family: var(--f-btn); font-size: 13px; text-transform: uppercase; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.site-footer .footer-map:hover { background: var(--dvm-gold); border-color: var(--dvm-gold); color: #000; }
.footer-phone { margin: 22px 0 0; }
.footer-phone a { font-family: var(--f-btn); font-size: 26px; font-weight: 500; }
.footer-bottom { border-top: 1px solid #222; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 16px; font-size: 12px; }
@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-logo { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 3px; background: rgba(0,0,0,.4); color: #fff; opacity: 0; visibility: hidden; transition: opacity var(--ease), background-color var(--ease), color var(--ease), visibility var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--dvm-gold); color: #000; }

/* Touch screens: roomier footer and nav links so they're easy to tap */
@media (hover: none) {
	.site-footer li a, .site-footer p a { display: inline-block; padding: 6px 0; }
	.footer-bottom a { display: inline-block; padding: 8px 4px; }
}
@media (max-width: 1100px) { .nav-toggle { align-self: stretch; min-height: 56px; } }
/* Outline button (e.g. Back, Keep browsing) */
.dvm-btn.dvm-btn--outline { background: transparent; color: var(--dvm-purple); box-shadow: inset 0 0 0 2px var(--dvm-purple); }
.dvm-btn.dvm-btn--outline:hover { background: var(--dvm-gold); color: #000; box-shadow: inset 0 0 0 2px var(--dvm-gold); }

/* ---------- Header sizes measured from deathvalleyms.com (desktop) ---------- */
.header-inner { padding-left: 15px; }
.brand { padding-right: 0; }
.brand img { max-height: 87px; }
.brand__text { font-size: 1.6rem; }
.nav { margin-left: 63px; }
.nav > ul { gap: 55px; }
.nav > ul > li > a { padding: 0 2px; font-family: var(--f-head); font-size: 16px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: #000; }
.nav .sub-menu a { font-family: var(--f-head); font-size: 16px; font-weight: 700; letter-spacing: .6px; line-height: 1.2; text-transform: capitalize; color: #333; padding: 12px 15px; }
.header-tools { flex: 1; justify-content: space-evenly; gap: 24px; padding: 0 24px; }
.header-phone a { font-family: var(--f-head); font-size: 29px; font-weight: 700; color: #000; }
.header-search { width: 231px; height: 40px; box-sizing: border-box; padding: 0 16px; border-radius: 25px; }
.header-search input { width: 100%; font-family: var(--f-btn); font-size: 16px; color: #333; }
.header-map { min-width: 246px; font-family: var(--f-head); font-size: 17px; font-weight: 600; color: #000; }

/* Narrower desktops: same look, scaled down so everything still fits on one line */
@media (max-width: 1900px) {
	.nav { margin-left: 40px; }
	.nav > ul { gap: 34px; }
	.header-phone a { font-size: 25px; }
	.header-map { min-width: 180px; }
}
@media (max-width: 1600px) {
	.brand img { max-height: 72px; }
	.nav { margin-left: 28px; }
	.nav > ul { gap: 22px; }
	.nav > ul > li > a { font-size: 14px; }
	.nav .sub-menu a { font-size: 15px; }
	.header-phone a { font-size: 22px; }
	.header-search { width: 180px; }
	.header-map { min-width: 140px; font-size: 15px; }
}
@media (max-width: 1380px) {
	.nav > ul { gap: 14px; }
	.nav > ul > li > a { font-size: 13px; }
	.header-tools { flex: 0 0 auto; margin-left: auto; }
}
@media (max-width: 1100px) {
	.nav { margin-left: 16px; }
	.nav > ul { gap: 6px; }
	.header-phone a { font-size: 18px; }
	.header-map { min-width: 110px; font-size: 13px; }
}
@media (max-width: 960px) {
	.nav { margin-left: 0; }
	.nav > ul { gap: 0; }
	.nav > ul > li > a { padding: 14px 16px; font-size: 15px; }
	.nav .sub-menu a { font-size: 15px; }
}
@media (max-width: 1100px) {
	.brand__text { font-size: 1.1rem; }
	.nav > ul > li > a { font-size: 12px; }
	.header-tools { padding: 0 12px; }
}

/* ---------- Brand & certified logo hover (from the current site) ---------- */
.logo { position: relative; }
.logo img { position: relative; top: 0; transition: top .2s ease-in-out, filter .2s ease-in-out, opacity .2s ease-in-out; transform: none !important; }
.logo:hover img { top: -5px; }
.logos:not(.logos--cert) .logo img:hover, .logos:not(.logos--cert) .logo:hover img { filter: brightness(0) saturate(100%) invert(97%) sepia(6%) saturate(6525%) hue-rotate(337deg) brightness(95%) contrast(92%); }
.logos--cert .logo:hover img { filter: none; }
.logo--swap .logo__hover { position: absolute; left: 0; right: 0; top: 0; margin: auto; opacity: 0; }
.logos .logo--swap:hover img:first-child { opacity: 0; }
.logos .logo--swap:hover .logo__hover { opacity: 1; filter: none; top: -5px; }
.footer-logo img { max-width: 230px; }
.footer-logo a:hover img { transform: none; top: -5px; }
.footer-logo img { transition: top .2s ease-in-out; }

/* ---------- Bigger header logo (everything in the bar scales with it) ---------- */
:root { --hdr: 132px; --logo: 116px; }
.header-inner { min-height: var(--hdr); }
.nav > ul > li > a { height: var(--hdr); font-size: 18px; }
.brand img { height: var(--logo); max-height: none; width: auto; }
.nav .sub-menu a { font-size: 17px; }
.header-phone a { font-size: 34px; }
.header-search { width: 260px; height: 46px; }
.header-search input { font-size: 17px; }
.header-map { min-width: 270px; font-size: 19px; }
@media (max-width: 2200px) {
	:root { --hdr: 124px; --logo: 106px; }
	.nav { margin-left: 48px; }
	.nav > ul { gap: 40px; }
	.nav > ul > li > a { font-size: 17px; }
	.header-phone a { font-size: 30px; }
	.header-search { width: 230px; }
	.header-map { min-width: 220px; font-size: 18px; }
}
@media (max-width: 1900px) {
	:root { --hdr: 116px; --logo: 96px; }
	.nav { margin-left: 36px; }
	.nav > ul { gap: 28px; }
	.nav > ul > li > a { font-size: 16px; }
	.header-phone a { font-size: 26px; }
	.header-search { width: 200px; height: 42px; }
	.header-map { min-width: 170px; font-size: 16px; }
}
@media (max-width: 1600px) {
	:root { --hdr: 106px; --logo: 84px; }
	.nav { margin-left: 24px; }
	.nav > ul { gap: 18px; }
	.nav > ul > li > a { font-size: 14px; }
	.nav .sub-menu a { font-size: 15px; }
	.header-phone a { font-size: 22px; }
	.header-search { width: 170px; }
	.header-map { min-width: 130px; font-size: 15px; }
}
@media (max-width: 1380px) {
	:root { --hdr: 100px; --logo: 74px; }
	.nav > ul { gap: 10px; }
	.nav > ul > li > a { font-size: 13px; }
}
@media (max-width: 1100px) {
	:root { --hdr: 92px; --logo: 62px; }
	.nav { margin-left: 14px; }
	.nav > ul { gap: 4px; }
	.nav > ul > li > a { font-size: 12px; }
	.header-phone a { font-size: 18px; }
	.header-map { min-width: 104px; font-size: 13px; }
}
@media (max-width: 960px) {
	:root { --hdr: 84px; --logo: 62px; }
	.header-inner { min-height: var(--hdr); }
	.nav > ul > li > a { height: auto; font-size: 15px; }
	.nav-toggle { min-height: var(--hdr); }
}
@media (max-width: 600px) { :root { --hdr: 76px; --logo: 58px; } }

/* ---------- Hero lettering slides ---------- */
.hero--slides .hero__lead { padding-bottom: 110px; }
@media (max-width: 767px) { .hero--slides .hero__lead { padding-bottom: 120px; } }
.hero .dvm-slide--lettering::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%); pointer-events: none; }
.hero .dvm-slide--lettering .dvm-slide__caption { z-index: 2; top: 0; bottom: auto; left: 5%; right: 5%; padding: 50px 0 0; background: none; color: #fff; }
@media (min-width: 768px) { .hero .dvm-slide--lettering .dvm-slide__caption { padding-top: 30px; } }
@media (min-width: 1530px) { .hero .dvm-slide--lettering .dvm-slide__caption { left: 2.5%; right: 2.5%; } }
.hero .dvm-slide--lettering .dvm-slide__title { --fs: 54px; margin: 0; font-family: var(--f-head); font-weight: 800; font-size: var(--fs); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; color: var(--dvm-mist); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
@media (min-width: 768px) { .hero .dvm-slide--lettering .dvm-slide__title { --fs: 64px; } }
@media (min-width: 992px) { .hero .dvm-slide--lettering .dvm-slide__title { --fs: 86px; } }
@media (min-width: 1200px) { .hero .dvm-slide--lettering .dvm-slide__title { --fs: 112px; } }
@media (min-width: 1530px) { .hero .dvm-slide--lettering .dvm-slide__title { --fs: 140px; } }
.hero .dvm-slide__title .l { display: block; }
.hero .dvm-slide__title em { font-style: normal; color: var(--dvm-gold); }
.hero .dvm-slide__kicker { margin: 0 0 .7em; font-family: var(--f-btn); font-weight: 600; font-size: clamp(13px, 1.05vw, 24px); letter-spacing: .32em; text-transform: uppercase; color: var(--dvm-gold); }
.hero .dvm-slide--lettering .dvm-slide__sub { margin: .8em 0 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(15px, 1.25vw, 28px); color: #fff; max-width: 34em; }
.hero .dvm-slide--lettering .dvm-slide__btn { margin-top: clamp(16px, 1.6vw, 34px); padding: .85em 2em; border-radius: 30px; background: var(--dvm-gold); color: #000; font-family: var(--f-btn); font-weight: 700; font-size: clamp(14px, 1vw, 20px); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.hero .dvm-slide--lettering .dvm-slide__btn:hover { background: #fff; color: #000; }
/* Mantra: three lines, smaller so long words fit, last line gold */
.hero .dvm-slide--mantra .dvm-slide__title { font-size: min(var(--fs), 7.4vw); }
.hero .dvm-slide--mantra .dvm-slide__title .l { letter-spacing: .01em; }
/* Price punch */
.hero .dvm-slide--price .dvm-slide__title em { display: inline-block; font-size: 1.9em; line-height: .82; letter-spacing: -.03em; }
.hero .dvm-slide--price .dvm-slide__title .l2 { margin-top: .12em; letter-spacing: .28em; font-size: .8em; }
@media (max-width: 767px) { .hero .dvm-slide--price .dvm-slide__title em { font-size: 1.6em; } }
/* Outline: hollow words with solid gold accent */
.hero .dvm-slide--outline .dvm-slide__title .l1 { color: transparent; -webkit-text-stroke: 2px var(--dvm-mist); text-shadow: none; }
.hero .dvm-slide--outline .dvm-slide__title .l1 em { color: var(--dvm-gold); -webkit-text-stroke: 0; }
@media (min-width: 1200px) { .hero .dvm-slide--outline .dvm-slide__title .l1 { -webkit-text-stroke-width: 3px; } }
/* Campaign banner (Facebook style): white card, checkered-flag frame, red headline */
.hero .dvm-slide--checker::before { background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.1) 70%); }
.hero .dvm-slide--checker .dvm-slide__caption { right: auto; max-width: 90%; margin-top: 14px; padding: clamp(18px, 2vw, 40px) clamp(22px, 2.6vw, 56px) clamp(20px, 2vw, 40px); border: 14px solid transparent; background: linear-gradient(#fff, #fff) padding-box, repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 28px 28px border-box; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
@media (min-width: 768px) { .hero .dvm-slide--checker .dvm-slide__caption { margin-top: 0; top: 44px; } }
.hero .dvm-slide--checker .dvm-slide__title { --fs: 46px; color: #111; text-shadow: none; font-size: min(var(--fs), 9vw); }
@media (min-width: 992px) { .hero .dvm-slide--checker .dvm-slide__title { --fs: 76px; } }
@media (min-width: 1530px) { .hero .dvm-slide--checker .dvm-slide__title { --fs: 112px; } }
.hero .dvm-slide--checker .dvm-slide__title em { color: #BA0C2F; }
.hero .dvm-slide--checker .dvm-slide__kicker { color: #111; }
.hero .dvm-slide--checker .dvm-slide__sub { color: #333; }
.hero .dvm-slide--checker .dvm-slide__btn { background: #BA0C2F; color: #fff; }
.hero .dvm-slide--checker .dvm-slide__btn:hover { background: #111; color: #fff; }
/* Mascot / graphic slide: purple stage, art shown whole on the right */
.hero .dvm-slide--mascot { background: radial-gradient(ellipse at 72% 45%, #5b2a9c 0%, #2a1149 45%, #0d0716 100%); }
.hero .dvm-slide--mascot::before { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.hero .dvm-slide--mascot picture { position: absolute; z-index: 1; right: 4%; top: 3%; bottom: 26%; width: 46%; display: flex; align-items: center; justify-content: center; }
.hero .dvm-slide--mascot picture img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0,0,0,.5)); }
.hero .dvm-slide--mascot .dvm-slide__caption { right: 50%; }
.hero .dvm-slide--mascot .dvm-slide__title { font-size: min(var(--fs), 5.6vw); }
@media (min-width: 1530px) { .hero .dvm-slide--mascot picture { bottom: 40%; } }
@media (max-width: 767px) {
	.hero .dvm-slide--mascot picture { top: 40px; bottom: auto; right: 0; width: 40%; height: 230px; }
	.hero .dvm-slide--mascot .dvm-slide__caption { right: 40%; }
	.hero .dvm-slide--mascot .dvm-slide__title { font-size: 30px; }
	.hero .dvm-slide--mascot .dvm-slide__sub { max-width: none; }
}
.brand { flex: 0 0 auto; } .brand img, .brand picture { flex: none; object-fit: contain; }
@media (max-width: 2000px) and (min-width: 1901px) { .nav > ul { gap: 28px; } .header-phone a { font-size: 27px; } .header-search { width: 200px; } .header-map { min-width: 180px; } }
@media (max-width: 1500px) and (min-width: 1381px) { .nav { margin-left: 18px; } .nav > ul { gap: 10px; } .header-search { width: 150px; } .header-map { min-width: 116px; } .header-tools { gap: 16px; padding: 0 16px; } }
@media (max-width: 1020px) and (min-width: 961px) { :root { --logo: 52px; } .header-phone a { font-size: 16px; } .nav > ul > li > a { font-size: 11.5px; padding: 0 7px; } .header-map { min-width: 96px; } }
/* Let the menu share whatever room the bigger logo leaves (no fixed gaps that can overflow) */
@media (min-width: 961px) {
	.nav { flex: 1 1 auto; min-width: 0; margin-left: clamp(8px, 1.6vw, 48px); }
	.nav > ul { gap: 0 !important; width: 100%; justify-content: space-evenly; }
	.nav > ul > li > a { padding: 0 clamp(4px, .5vw, 12px); }
	.header-tools { flex: 0 1 auto; gap: clamp(10px, 1.2vw, 40px); padding: 0 clamp(10px, 1.2vw, 36px); }
}
@media (max-width: 1250px) and (min-width: 961px) { .header-phone a { font-size: 17px; } .nav > ul > li > a { font-size: 12px; } }
/* Hero slides move sideways like the current site's slider (0.6s) */
.hero .dvm-slide { opacity: 1; transform: translateX(100%); transition: transform .6s ease-in-out; visibility: visible; }
.hero .dvm-slide.is-active { transform: translateX(0); }
.hero .dvm-slide.is-leaving { transform: translateX(-100%); }
.hero .dvm-slide:not(.is-active):not(.is-leaving) { transition: none; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .hero .dvm-slide { transition: none !important; } }
/* $2,000 ATVs: tighter ATVs lettering */
.hero .dvm-slide--price .dvm-slide__title .l2 { letter-spacing: .02em; margin-top: .06em; }
/* Photo behind lettering: keep the subject (usually right side) in view */
.hero .dvm-slide--lettering picture img { object-position: 60% 50%; }
.hero .dvm-slide:not(.dvm-slide--mascot) picture { position: absolute; inset: 0; display: block; }
/* Darker shade over photos so the lettering and the four boxes stay readable */
.hero .dvm-slide--lettering:not(.dvm-slide--mascot)::before { background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.08) 80%), linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 45%); }
/* SEO: homepage main heading, shop-page intro & links */
.about__body .about__eyebrow { margin: 0 0 8px; font-family: var(--f-btn); font-weight: 600; font-size: 13px; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase; color: var(--dvm-gold); text-align: center; }
@media (min-width: 768px) { .about__body .about__eyebrow { text-align: left; } }
@media (min-width: 1530px) { .about__body .about__eyebrow { font-size: 15px; } }
.dvm-shop-intro { max-width: 900px; margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: #333; }
.dvm-shop-links { margin: 50px 0 10px; padding-top: 30px; border-top: 1px solid #e3e8ea; }
.dvm-shop-links h2 { margin: 0 0 14px; font-size: 20px; }
.dvm-shop-links ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.dvm-shop-links a { color: var(--dvm-purple, #4b1c7a); text-decoration: none; font-weight: 600; }
.dvm-shop-links a:hover { color: var(--dvm-gold); text-decoration: underline; }
.footer-areas { background: #111; color: #9aa3a6; font-size: 13px; line-height: 1.5; }
.footer-areas p { margin: 0; padding: 14px 0 0; }
.footer-areas a { color: #c9d1d3; }
.footer-areas a:hover { color: var(--dvm-gold); }

/* ---------- Fixes: Service/Financing photo cards, featured slider, brand logos ---------- */
/* Service / Financing: the photo fills each card edge to edge (like the original), text on top */
.promos__grid { gap: 0; }
.promo { background-color: #23272b; isolation: isolate; }
.promo .promo__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; display: block; }
.promo::before { z-index: 1; }
.promo__title, .promo__sub { position: relative; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.promo__sub { display: inline-flex; align-items: center; }

/* Featured inventory: one scrolling row that fills the width (4 across on wide screens) */
.featured__track .dvm-grid { display: flex; flex-wrap: nowrap; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.featured__track .dvm-grid::-webkit-scrollbar { display: none; }
.featured__track .dvm-card { scroll-snap-align: start; min-width: 0; }
.featured__slider { position: relative; }
@media (min-width: 1200px) { .featured__track .dvm-card { flex: 0 0 calc((100% - 60px) / 4); } }
.featured .dvm-card__media { height: auto; aspect-ratio: 4 / 3; }
.featured .dvm-card__media img { width: 100%; height: 100%; }

/* Brand logos: five brands sit 3 + 2, both rows centered */
@media (min-width: 768px) {
	.logos:not(.logos--cert):has(> .logo:nth-child(5)):not(:has(> .logo:nth-child(7))) .logo { width: calc(33.3333% - 15px); }
}
/* Going back: the new slide comes in from the left, the old one leaves to the right */
.hero .is-back .dvm-slide:not(.is-active):not(.is-leaving), .hero.is-back .dvm-slide:not(.is-active):not(.is-leaving) { transform: translateX(-100%); }
.hero .is-back .dvm-slide.is-leaving, .hero.is-back .dvm-slide.is-leaving { transform: translateX(100%); }
.hero .dvm-slider__prev, .hero .dvm-slider__next { display: grid; place-items: center; padding: 0; border-radius: 50%; }
