/*
 * Solar E-Drive — site styles. Colours from the dealership logo: electric
 * blue (#009fdd → #0066ab) as the accent, lime green (#96d920) for the
 * "Fully Electric" highlights.
 *
 * Also loaded in the block editor, so everything is class-based; element
 * rules are scoped to .edrive-site (the live site) and .edrive-block.
 */

:root {
	--e-bg: #0e0e10;
	--e-bg-alt: #141416;
	--e-bg-deep: #08080a;
	--e-surface-input: #1d1d21;
	--e-text: #f2f0ea;
	--e-text-soft: #dedbd2;
	--e-text-muted: #b3aea1;
	--e-text-dim: #948e80;
	--e-text-faint: #66625a;
	--e-accent: #009fdd;
	--e-accent-deep: #0066ab;
	--e-green: #96d920;
	--e-border: rgba(255, 255, 255, 0.08);
	--e-border-soft: rgba(255, 255, 255, 0.06);
	--e-border-strong: rgba(255, 255, 255, 0.12);
	--e-panel: rgba(255, 255, 255, 0.035);
	--e-gradient: linear-gradient(135deg, #009fdd, #0066ab);
	--e-ease: cubic-bezier(0.16, 1, 0.3, 1);

	/* Mode-dependent extras (dark values; light overrides below). */
	--e-fg: #ffffff;                      /* strongest text */
	--e-tint: 255, 255, 255;              /* subtle overlays: rgba(var(--e-tint), a) */
	--e-header-bg: rgba(14, 14, 16, 0.78);
	--e-hero-shade: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 159, 221, 0.18), transparent), linear-gradient(180deg, rgba(14, 14, 16, 0.82), rgba(14, 14, 16, 0.95));
	--e-hero-title: linear-gradient(180deg, #fff, #cfc9bb);
	--e-link-hover: #ffdf7a;
	--e-accent-text: #009fdd;             /* accent used as text on the page background */
	--e-green-text: #96d920;
	--e-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	--e-panel-shadow: none;
	--e-scroll-track: #0b0b0d;
	--e-scroll-thumb: #2c2f36;
	--e-scroll-thumb-hover: #009fdd;
}

/* Light mode — chosen with the sun/moon button in the header. */
html[data-theme='light'] {
	--e-bg: #f6f7f9;
	--e-bg-alt: #eceff3;
	--e-bg-deep: #e7eaef;
	--e-surface-input: #ffffff;
	--e-text: #16181d;
	--e-text-soft: #2b2f36;
	--e-text-muted: #4a515b;
	--e-text-dim: #5d6571;
	--e-text-faint: #868d98;
	--e-border: rgba(15, 23, 42, 0.1);
	--e-border-soft: rgba(15, 23, 42, 0.08);
	--e-border-strong: rgba(15, 23, 42, 0.16);
	--e-panel: #ffffff;
	--e-fg: #0e0e10;
	--e-tint: 15, 23, 42;
	--e-header-bg: rgba(246, 247, 249, 0.85);
	--e-hero-shade: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 159, 221, 0.16), transparent), linear-gradient(180deg, rgba(246, 247, 249, 0.8), rgba(246, 247, 249, 0.94));
	--e-hero-title: linear-gradient(180deg, #0e0e10, #3b4250);
	--e-link-hover: #0066ab;
	--e-accent-text: #0077b6;
	--e-green-text: #4c8a0a;
	--e-card-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
	--e-panel-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	--e-scroll-track: #eceff3;
	--e-scroll-thumb: #c2c8d1;
	--e-scroll-thumb-hover: #009fdd;
}

/* Native controls (select menus, date pickers, scrollbars) follow the mode. */
html[data-theme='dark'] { color-scheme: dark; }
html[data-theme='light'] { color-scheme: light; }

/* Scrollbars in the site's colours — Firefox/new Chrome use the first rule,
   Safari and older Chrome the ::-webkit ones. */
html[data-theme] { scrollbar-color: var(--e-scroll-thumb) var(--e-scroll-track); }
html[data-theme] ::-webkit-scrollbar { width: 12px; height: 12px; }
html[data-theme] ::-webkit-scrollbar-track { background: var(--e-scroll-track); }
html[data-theme] ::-webkit-scrollbar-thumb { background: var(--e-scroll-thumb); border-radius: 100px; border: 3px solid var(--e-scroll-track); }
html[data-theme] ::-webkit-scrollbar-thumb:hover { background: var(--e-scroll-thumb-hover); }
html[data-theme] ::-webkit-scrollbar-corner { background: var(--e-scroll-track); }

@keyframes heroKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeSlideLeft { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes fadeSlideRight { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(150, 217, 32, 0.45); } 50% { box-shadow: 0 0 0 5px rgba(150, 217, 32, 0); } }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightboxImageIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

/* ---------- Base (live site) ---------- */

body.edrive-site {
	margin: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
	font-family: 'Inter', system-ui, sans-serif;
	background: var(--e-bg);
	color: var(--e-text);
	-webkit-font-smoothing: antialiased;
}
.edrive-site *, .edrive-site *::before, .edrive-site *::after,
.edrive-block, .edrive-block *, .edrive-block *::before, .edrive-block *::after { box-sizing: border-box; }
.edrive-site a, .edrive-block a { color: var(--e-accent-text); text-decoration: none; transition: color 0.2s ease; }
.edrive-site a:hover, .edrive-block a:hover { color: var(--e-link-hover); }
.edrive-site ::selection { background: #009fdd55; }
.edrive-block { font-family: 'Inter', system-ui, sans-serif; color: var(--e-text); }
.edrive-main { min-height: 50vh; }

/* Scroll reveal: hidden only when JS runs (never in the editor). */
.edrive-js [data-reveal] { opacity: 0; }
.edrive-js [data-reveal].is-visible { animation: fadeSlide 0.7s var(--e-ease) var(--d, 0ms) both; }
.edrive-js [data-reveal-from='left'].is-visible { animation-name: fadeSlideLeft; animation-duration: 0.5s; }
.edrive-js [data-reveal-from='right'].is-visible { animation-name: fadeSlideRight; animation-duration: 0.5s; }

/* ---------- Layout helpers ---------- */

.edrive-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.edrive-container--narrow { max-width: 1148px; }
.edrive-section { padding: 80px 0 40px; }
.edrive-section--padded { padding: 90px 0; }
.edrive-section--alt { background: var(--e-bg-alt); }
.edrive-grid { display: grid; gap: 20px; }
.edrive-grid--4 { grid-template-columns: repeat(4, 1fr); }
.edrive-grid--3 { grid-template-columns: repeat(3, 1fr); }

.edrive-kicker { font-size: 13px; font-weight: 700; color: var(--e-accent-text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.edrive-kicker--small { font-size: 13px; letter-spacing: 0.05em; margin-bottom: 14px; }
.edrive-h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 28px; }
.edrive-h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.edrive-h3 { font-size: 22px; font-weight: 700; margin: 0 0 24px; }
.edrive-muted { color: var(--e-text-dim); font-size: 15px; line-height: 1.7; margin: 0; }
.edrive-heading { margin-bottom: 36px; }
.edrive-heading--center { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.edrive-heading-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.edrive-heading-row .edrive-heading { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.edrive-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--e-gradient); color: #fff !important; border: none;
	padding: 13px 26px; border-radius: 100px; font-weight: 700; font-size: 14px;
	cursor: pointer; box-shadow: 0 4px 20px rgba(0, 159, 221, 0.3); text-align: center;
}
.edrive-btn--large { padding: 16px 30px; font-size: 15px; box-shadow: 0 8px 30px rgba(0, 159, 221, 0.35); }
.edrive-btn--small { padding: 8px 14px; font-size: 12px; box-shadow: none; }
.edrive-btn--header { padding: 10px 18px; font-size: 14px; }
.edrive-btn--ghost { background: rgba(var(--e-tint), 0.06); border: 1px solid rgba(var(--e-tint), 0.16); box-shadow: none; color: var(--e-fg) !important; }
.edrive-btn--outline { background: transparent; border: 1px solid var(--e-accent); color: var(--e-accent-text) !important; box-shadow: none; }
.edrive-btn--block { display: flex; width: 100%; padding: 14px; font-size: 15px; margin-bottom: 12px; }
.edrive-textlink { color: var(--e-accent-text); font-weight: 600; font-size: 14px; }
.edrive-textlink::after { content: ' →'; }
.edrive-round-btn {
	width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.5);
	color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.press-btn { transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.press-btn:hover { transform: translateY(-2px); }
.press-btn:active { transform: translateY(0) scale(0.97); }
.edrive-buttonrow { text-align: center; padding: 0 24px 60px; }

/* ---------- Header ---------- */

.edrive-header {
	position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px);
	background: var(--e-header-bg); border-bottom: 1px solid rgba(var(--e-tint), 0.07); transition: background-color 0.3s ease;
}
.admin-bar .edrive-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .edrive-header { top: 46px; } }
.edrive-header__bar { max-width: 1360px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.edrive-header__logo img { height: 40px; width: auto; display: block; }
.edrive-nav__list, .edrive-mobile-list, .edrive-footer__links { list-style: none; margin: 0; padding: 0; }
.edrive-nav__list { display: flex; gap: 4px; flex-wrap: wrap; }
.edrive-nav__list a {
	position: relative; display: block; padding: 9px 14px; border-radius: 100px; font-size: 14px; font-weight: 500;
	color: var(--e-text-muted) !important; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease;
}
.edrive-nav__list a::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--e-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.edrive-nav__list a:hover { background: rgba(var(--e-tint), 0.06); }
.edrive-nav__list a:hover::after, .edrive-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.edrive-nav__list .current-menu-item > a { color: var(--e-fg) !important; }
.edrive-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.edrive-header__phone { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--e-text-muted) !important; }
.edrive-lang { display: flex; align-items: center; background: rgba(var(--e-tint), 0.06); border-radius: 100px; padding: 4px; font-size: 12px; font-weight: 700; }
.edrive-lang a { padding: 5px 10px; border-radius: 100px; color: var(--e-text-muted) !important; }
.edrive-lang a.is-active { background: var(--e-accent); color: #fff !important; }
.edrive-theme-toggle {
	width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(var(--e-tint), 0.06); color: var(--e-text-muted); transition: background 0.2s ease, color 0.2s ease;
}
.edrive-theme-toggle:hover { background: rgba(var(--e-tint), 0.12); color: var(--e-fg); }
.edrive-theme-toggle .edrive-icon-sun { display: none; }
html[data-theme='light'] .edrive-theme-toggle .edrive-icon-sun { display: block; }
html[data-theme='light'] .edrive-theme-toggle .edrive-icon-moon { display: none; }
.edrive-menu-toggle { background: none; border: none; padding: 0; line-height: 0; cursor: pointer; color: var(--e-text); }
.mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu > div { overflow: hidden; }
.edrive-mobile-list { border-top: 1px solid rgba(var(--e-tint), 0.07); padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 2px; }
.edrive-mobile-list a { display: block; padding: 12px 8px; font-size: 15px; font-weight: 600; color: var(--e-text-muted) !important; border-bottom: 1px solid rgba(var(--e-tint), 0.05); }
.edrive-mobile-list .current-menu-item > a { color: var(--e-fg) !important; }
.mobile-only { display: none !important; }

/* ---------- Hero ---------- */

.edrive-hero {
	position: relative; min-height: 78vh; display: flex; flex-direction: column; align-items: center;
	justify-content: center; text-align: center; padding: 80px 24px; overflow: hidden; background-color: var(--e-bg);
}
.edrive-hero__slides { position: absolute; inset: 0; overflow: hidden; }
.edrive-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.edrive-hero__slide.is-active { opacity: 1; }
.edrive-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edrive-hero__slide.is-active img { animation: heroKenBurns 36s ease-out both; }
.edrive-hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background-image: var(--e-hero-shade);
}
.edrive-hero__glow {
	position: absolute; top: 10%; left: 8%; width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 159, 221, 0.22), transparent 70%); filter: blur(10px);
	animation: floaty 8s ease-in-out infinite;
}
.edrive-hero__content { position: relative; z-index: 2; max-width: 860px; animation: fadeSlide 0.8s var(--e-ease) both; }
.edrive-pill {
	display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--e-tint), 0.06);
	border: 1px solid rgba(var(--e-tint), 0.1); padding: 8px 16px; border-radius: 100px;
	font-size: 13px; font-weight: 600; color: var(--e-text-muted); margin-bottom: 28px;
}
.edrive-hero__title {
	font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 22px;
	background: var(--e-hero-title); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.edrive-hero__subtitle { font-size: 17px; color: var(--e-text-muted); line-height: 1.6; max-width: 640px; margin: 0 auto 36px; }
.edrive-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Car cards ---------- */

.edrive-card {
	background: var(--e-panel); border: 1px solid var(--e-border); border-radius: 20px; overflow: hidden; box-shadow: var(--e-panel-shadow);
	display: flex; flex-direction: column; height: 100%; color: inherit !important;
}
.lift-card { transition: transform 0.35s var(--e-ease), border-color 0.35s ease, box-shadow 0.35s ease; will-change: transform; }
.lift-card:hover { transform: translateY(-8px); border-color: rgba(0, 159, 221, 0.4); box-shadow: var(--e-card-shadow); }
.lift-card img { transition: transform 0.5s ease; }
.lift-card:hover img { transform: scale(1.06); }
.edrive-card__media { position: relative; height: 190px; background: var(--e-surface-input); overflow: hidden; }
.edrive-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edrive-card__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.edrive-card__dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.edrive-card__dots span.is-active { background: #fff; }
.edrive-badge {
	position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.55); color: #dedbd2; /* on a photo — same in both modes */
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 10px; border-radius: 100px;
}
.edrive-badge--green { color: var(--e-green); }
.edrive-badge--blue { color: var(--e-accent); }
.edrive-card__corner { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.edrive-card__corner .edrive-badge { position: static; }
.edrive-badge--new { background: var(--e-green); color: #0e0e10; font-weight: 800; }
.new-badge { animation: badgePulse 2.2s ease-in-out infinite; }
.edrive-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.edrive-card__make { font-size: 11px; color: var(--e-accent-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.edrive-card__name { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--e-text); }
.edrive-card__tagline { font-size: 13px; color: var(--e-text-dim); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.edrive-card__specs { font-size: 12px; color: var(--e-text-dim); margin-bottom: 14px; }
.edrive-card__foot { display: flex; align-items: center; justify-content: space-between; }
.edrive-card__price { font-size: 20px; font-weight: 800; color: var(--e-text); }

/* ---------- Sold ---------- */

.edrive-sold-stamp {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg);
	padding: 8px 22px; border: 3px solid #fff; border-radius: 10px; background: rgba(224, 79, 79, 0.88);
	color: #fff; font-size: 20px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); pointer-events: none;
}
.edrive-sold-stamp--inline { position: static; display: inline-block; transform: rotate(-4deg); font-size: 22px; }
.edrive-card--sold .edrive-card__media img { filter: grayscale(0.85) brightness(0.8); }
.edrive-card__price--sold { color: #e04f4f; text-transform: uppercase; letter-spacing: 0.06em; font-size: 16px; }
.edrive-gallery--sold .edrive-gallery__img { filter: grayscale(0.6); }
.edrive-sold-note { margin-bottom: 16px; border-color: rgba(224, 79, 79, 0.35); }
.edrive-editor-note { padding: 24px; margin: 16px auto; max-width: 860px; border: 1px dashed rgba(var(--e-tint), 0.2); border-radius: 12px; color: var(--e-text-dim); text-align: center; font-size: 14px; }

/* A photo that failed to load → soft placeholder with a car outline. */
.is-missing-photo > img { visibility: hidden; }
.edrive-card__media.is-missing-photo, .edrive-gallery.is-missing-photo, .edrive-thumb.is-missing-photo {
	background: var(--e-surface-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23948e80' stroke-width='1.2'%3E%3Cpath d='M5 17h14M3 13l2-6h14l2 6v4H3z' stroke-linejoin='round'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='16.5' cy='17' r='1.5'/%3E%3C/svg%3E") center / 64px no-repeat;
}

/* ---------- Inventory filters ---------- */

.edrive-inventory { padding: 60px 0 80px; }
.edrive-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.edrive-input, .edrive-select {
	padding: 13px 16px; background: var(--e-surface-input); border: 1px solid var(--e-border-strong); border-radius: 12px;
	color: var(--e-text); font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.edrive-input:focus, .edrive-select:focus { border-color: var(--e-accent); box-shadow: 0 0 0 3px rgba(0, 159, 221, 0.18); }
.edrive-input--search { width: 220px; }
.edrive-input--price { width: 120px; }
.edrive-input::-webkit-outer-spin-button, .edrive-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.edrive-input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
.edrive-select { margin-left: auto; padding: 10px 14px; background: var(--e-surface-input); cursor: pointer; }
/* The open list of a select: readable in both modes (Windows draws it white otherwise). */
.edrive-select option { background: var(--e-surface-input); color: var(--e-text); }
.edrive-input::placeholder { color: var(--e-text-faint); }
.edrive-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.edrive-chips__divider { width: 1px; align-self: stretch; background: rgba(var(--e-tint), 0.1); }
.edrive-chip {
	padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
	background: transparent; border: 1px solid rgba(var(--e-tint), 0.14); color: var(--e-text-soft);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.edrive-chip[aria-pressed='true'] { background: rgba(0, 159, 221, 0.15); border-color: var(--e-accent); color: var(--e-accent-text); }
.edrive-chip--green[aria-pressed='true'] { background: rgba(150, 217, 32, 0.15); border-color: var(--e-green); color: var(--e-green-text); }
.edrive-count { font-size: 13px; color: var(--e-text-dim); margin: 6px 0 20px; }
.edrive-empty { text-align: center; padding: 80px 0; color: var(--e-text-dim); }
.edrive-card[hidden] { display: none; }

/* ---------- Panels: feature cards, stats ---------- */

.edrive-panel { background: var(--e-panel); border: 1px solid var(--e-border); border-radius: 20px; padding: 28px; box-shadow: var(--e-panel-shadow); }
.edrive-icon-tile {
	width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 159, 221, 0.12); color: var(--e-accent-text);
	display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.edrive-panel__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.edrive-panel__text { font-size: 14px; color: var(--e-text-dim); line-height: 1.6; }
.edrive-stats { padding: 0 24px 80px; }
.edrive-stats__grid { max-width: 900px; margin: 0 auto; text-align: center; }
.edrive-stat { border-radius: 18px; padding: 28px 16px; }
.edrive-stat__value { font-size: 34px; font-weight: 800; color: var(--e-accent-text); margin-bottom: 6px; }
.edrive-stat__label { font-size: 13px; color: var(--e-text-dim); }

/* ---------- Page intro, text & photo, chips ---------- */

.edrive-intro { padding: 90px 24px 60px; text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 159, 221, 0.14), transparent); }
.edrive-intro--compact { padding: 70px 24px 30px; }
.edrive-intro .edrive-kicker { margin-bottom: 14px; }
.edrive-intro__title { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.02em; max-width: 760px; margin: 0 auto; }
.edrive-intro__subtitle { font-size: 16px; color: var(--e-text-muted); line-height: 1.7; max-width: 640px; margin: 16px auto 24px; }
.edrive-textimage { padding: 0 24px 80px; max-width: 868px; margin: 0 auto; text-align: center; }
.edrive-textimage__img {
	width: 100%; max-height: 340px; object-fit: cover; object-position: center 60%; border-radius: 20px;
	display: block; margin-bottom: 36px; background-color: var(--e-surface-input);
}
.edrive-textimage__text { font-size: 17px; line-height: 1.8; color: var(--e-text-soft); margin: 0 0 24px; }
.edrive-textimage .edrive-btn { margin-top: 8px; }
.edrive-chiprow { padding: 0 24px 100px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.edrive-chiprow__chip { font-size: 13px; color: var(--e-text-dim); border: 1px solid rgba(var(--e-tint), 0.1); padding: 8px 16px; border-radius: 100px; }

/* ---------- Contact ---------- */

.edrive-contact { padding: 80px 24px 100px; max-width: 1048px; margin: 0 auto; }
.edrive-contact .edrive-h1 { margin-bottom: 14px; }
.edrive-contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.edrive-contact__grid--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.edrive-contact__map { padding: 0; overflow: hidden; min-height: 344px; }
.edrive-contact__map iframe { border: 0; width: 100%; height: 100%; min-height: 344px; display: block; }
.edrive-contact__side { display: flex; flex-direction: column; gap: 20px; }
.edrive-contact__lines { font-size: 14px; color: var(--e-text-soft); line-height: 2.1; }

/* ---------- Car page ---------- */

.edrive-breadcrumb { padding-top: 20px; font-size: 13px; color: var(--e-text-dim); }
.edrive-breadcrumb a { color: var(--e-text-dim) !important; }
.edrive-gallery { position: relative; height: min(82vh, 680px); min-height: 420px; margin: 18px 0 0; overflow: hidden; outline: none; }
.edrive-gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; animation: fadeSlide 0.5s ease both; }
.edrive-gallery__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 14, 16, 0.05) 0%, rgba(14, 14, 16, 0.15) 45%, rgba(14, 14, 16, 0.92) 100%); }
.edrive-gallery__prev, .edrive-gallery__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.edrive-gallery__prev { left: 16px; }
.edrive-gallery__next { right: 16px; }
.edrive-gallery__prev:hover, .edrive-gallery__next:hover { transform: translateY(calc(-50% - 2px)); }
.edrive-gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 32px; max-width: 1200px; margin: 0 auto; pointer-events: none; }
.edrive-gallery__kicker { font-size: 12px; color: var(--e-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.edrive-gallery__title { font-size: clamp(28px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; color: #fff; }
.edrive-gallery__tagline { font-size: 15px; color: rgba(255, 255, 255, 0.75); line-height: 1.6; max-width: 560px; margin: 0 0 18px; }
.edrive-gallery__price { font-size: 30px; font-weight: 800; color: #fff; }
.edrive-thumbs { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; }
.edrive-thumb {
	flex: 0 0 auto; width: 72px; height: 52px; padding: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in;
	background: var(--e-surface-input); border: 2px solid transparent; opacity: 0.6;
	transition: border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.edrive-thumb.is-active { border-color: var(--e-accent); opacity: 1; transform: scale(1.04); }
.edrive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edrive-detail { padding-top: 30px; padding-bottom: 40px; }
.edrive-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.edrive-label { font-size: 13px; font-weight: 700; color: var(--e-text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 12px; }
.edrive-detail__grid > div > .edrive-label:first-child { margin-top: 0; }
.edrive-spec { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--e-border-soft); font-size: 15px; }
.edrive-spec__label { color: var(--e-text-dim); }
.edrive-spec__value { font-weight: 600; text-align: right; }
.edrive-btn--ghost.edrive-btn--block { color: var(--e-text-soft) !important; border-color: var(--e-border-strong); margin-bottom: 28px; }
.edrive-highlights { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--e-text-soft); }
.edrive-highlights li { position: relative; padding: 9px 0 9px 16px; line-height: 1.6; }
.edrive-highlights li::before { content: ''; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--e-green); }
.edrive-similar { padding-bottom: 90px; }

/* ---------- Lightbox ---------- */

.edrive-lightbox {
	position: fixed; inset: 0; z-index: 200; background: rgba(8, 8, 10, 0.92); display: flex; align-items: center;
	justify-content: center; padding: clamp(16px, 5vw, 64px); animation: lightboxIn 0.25s ease both;
}
.edrive-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); animation: lightboxImageIn 0.3s var(--e-ease) both; }
.edrive-lightbox__close { position: absolute; top: 18px; right: 20px; border: 1px solid var(--e-border-strong); background: rgba(255, 255, 255, 0.06); }
.edrive-lightbox__prev, .edrive-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); width: 44px; height: 44px; font-size: 22px; }
.edrive-lightbox__prev { left: clamp(8px, 3vw, 28px); }
.edrive-lightbox__next { right: clamp(8px, 3vw, 28px); }
.edrive-lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--e-text-dim); }

/* ---------- Footer ---------- */

.edrive-footer { background: var(--e-bg-deep); border-top: 1px solid var(--e-border-soft); padding: 56px 24px 32px; }
.edrive-footer__inner { max-width: 1200px; margin: 0 auto; }
.edrive-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.edrive-footer__logo { height: 36px; width: auto; display: block; margin-bottom: 16px; }
.edrive-footer__tagline { font-size: 14px; color: var(--e-text-dim); line-height: 1.7; max-width: 300px; margin: 0 0 16px; }
.edrive-footer__parent { font-size: 13px; font-weight: 600; display: block; margin-bottom: 16px; }
.edrive-footer__social {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
	background: rgba(var(--e-tint), 0.03); border: 1px solid var(--e-border); color: var(--e-text-soft) !important;
}
.edrive-footer__heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--e-fg); margin-bottom: 16px; }
.edrive-footer__links a { display: block; font-size: 14px; color: var(--e-text-dim) !important; margin-bottom: 12px; }
.edrive-footer__contact { font-size: 14px; color: var(--e-text-dim); line-height: 2; }
.edrive-footer__legal { border-top: 1px solid var(--e-border-soft); padding-top: 20px; font-size: 13px; color: var(--e-text-faint); }

/* ---------- Ordinary WordPress blocks placed on a page ---------- */

.edrive-content > :not(.edrive-block) { max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.edrive-content > .alignwide { max-width: 1200px; }
.edrive-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
/* Only ordinary blocks — never the E-Drive blocks, which style themselves. */
.edrive-content > p, .edrive-content > :not(.edrive-block) p,
.edrive-content > :not(.edrive-block) li { font-size: 17px; line-height: 1.8; color: var(--e-text-soft); }
.edrive-content > :is(h1, h2, h3, h4), .edrive-content > :not(.edrive-block) :is(h1, h2, h3, h4) { color: var(--e-text); letter-spacing: -0.01em; }
.edrive-content > :not(.edrive-block) img { max-width: 100%; height: auto; border-radius: 16px; }
.edrive-content > :last-child:not(.edrive-block) { margin-bottom: 80px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.desktop-nav { display: none !important; }
	.quote-btn { display: none !important; }
	.mobile-only { display: inline-flex !important; }
	.edrive-grid--4, .edrive-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.edrive-footer__grid { grid-template-columns: 1fr 1fr; }
	.edrive-header__bar { padding: 14px 20px; }
}
@media (max-width: 900px) {
	.edrive-detail__grid, .edrive-contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.edrive-grid--4, .edrive-grid--3, .edrive-footer__grid { grid-template-columns: 1fr; }
	.edrive-select { margin-left: 0; }
	.edrive-input--search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
