/* Optimal Drive design preview V2 — the alternative product page (inspired by Designer.png) and the two new homepage
   sections ("Despre Optimal Drive", "Ultimele articole"). Colours come from variables: light by default, dark for the
   Dark variant and for the Hybrid dark bands. */

.od-p, .od-about, .od-posts {
    --p-bg: #ffffff; --p-card: #ffffff; --p-card-2: #f6f7f8; --p-line: #11161b14; --p-ink: #11161b; --p-soft: #5b6470;
    --p-shadow: 0 14px 40px #11161b0f; --p-yellow: #ffd400; --p-yellow-ink: #11161b; --p-sel: #fffbe0;
}
.od-variant-dark .od-p, .od-variant-dark .od-about, .od-variant-dark .od-posts,
.od-variant-hybrid .od-dark.od-p-config, .od-variant-hybrid .od-dark.od-p-gallery, .od-variant-hybrid .od-dark.od-p-help, .od-variant-hybrid .od-dark.od-about {
    --p-bg: #0d0f12; --p-card: #15181d; --p-card-2: #1c2026; --p-line: #ffffff17; --p-ink: #eef0f3; --p-soft: #a9b1bb;
    --p-shadow: 0 14px 40px #00000059; --p-sel: #ffd40014;
}
.od-variant-dark .od-p { background: #0d0f12; }

/* ---------- shared buttons */
.od-btn-yellow { background: #ffd400 !important; color: #11161b !important; border: 1px solid #ffd400 !important; }
.od-btn-yellow:hover { background: #ffe14d !important; }
.od-btn-outline { background: transparent !important; color: var(--p-ink, #11161b) !important; border: 1.5px solid currentColor !important; display: inline-flex; align-items: center; gap: 8px; }
.od-btn-dark { background: #11161b !important; color: #fff !important; border: 1px solid #ffffff1f !important; display: inline-flex; align-items: center; gap: 8px; }
.od-variant-dark .od-btn-dark, .od-variant-hybrid .od-dark .od-btn-dark { background: #ffffff !important; color: #11161b !important; }
.od-btn-outline svg, .od-btn-dark svg { width: 18px; height: 18px; }

/* =========================================================== PRODUCT PAGE V2 */
.od-p { color: var(--p-ink); }
.od-p h2 { color: var(--p-ink); }
.od-p .section-kicker { color: var(--p-soft); }
.od-variant-dark .od-p .section-kicker, .od-variant-hybrid .od-dark .section-kicker { color: #ffd400; }
.od-p-head { margin-bottom: 22px; }
.od-p-head h2 { margin: 6px 0 0; font: 700 clamp(30px, 3.6vw, 46px)/1 var(--font-display); text-transform: uppercase; }
.od-p-subhead { margin: 0 0 14px; font: 700 20px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--p-ink); }

/* ---------- hero: large car, name, price card, CTAs */
.od-p-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); background: var(--p-bg); }
.od-p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.od-p-hero-media { position: relative; display: grid; place-items: center; min-height: 340px; border-radius: 24px; background: radial-gradient(70% 60% at 50% 70%, #ffd4002e, transparent 70%), var(--p-card-2); overflow: hidden; }
.od-p-hero-car img { display: block; width: 100%; max-width: 860px; height: auto; position: relative; z-index: 1; padding: 6% 4% 4%; }
.od-p-hero-glow { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 18px; border-radius: 50%; background: #0000002e; filter: blur(14px); }
.od-p-hero-info .veh-hero-brand-badge { margin-bottom: 14px; }
.od-p-title { margin: 0; font: 700 clamp(48px, 6vw, 84px)/.92 var(--font-display); text-transform: uppercase; color: var(--p-ink); }
.od-p-lead { margin: 12px 0 22px; color: var(--p-soft); font-size: 15px; line-height: 1.55; max-width: 440px; }
.od-p-price-card { display: grid; gap: 12px; padding: 22px; border-radius: 20px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.od-p-price-label { display: block; font-size: 13px; color: var(--p-soft); }
.od-p-price { display: block; margin: 2px 0 2px; font: 700 clamp(36px, 4vw, 48px)/1 var(--font-display); color: var(--p-ink); }
.od-p-price-note { display: block; font-size: 12px; color: var(--p-soft); margin-bottom: 4px; }
.od-p-btn { justify-content: center; width: 100%; padding: 14px 20px; border-radius: 12px; font-weight: 700; }

/* ---------- engine selector, spec cards, summary */
.od-p-config { padding: clamp(40px, 5vw, 72px) 0; background: var(--p-bg); }
.od-p-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.motor-card.od-p-tile {
    all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px;
    background: var(--p-card); border: 1.5px solid var(--p-line); color: var(--p-ink); transition: border-color .2s, background-color .2s, transform .2s;
}
.motor-card.od-p-tile:hover { transform: translateY(-2px); }
.motor-card.od-p-tile:focus-visible { outline: 2px solid #ffd400; outline-offset: 2px; }
.motor-card.od-p-tile.is-active { border-color: #ffd400; background: var(--p-sel); box-shadow: 0 0 0 3px #ffd40033; }
.od-p-tile-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--p-card-2); color: var(--p-ink); }
.od-p-tile-icon svg { width: 26px; height: 26px; }
.od-p-tile.is-active .od-p-tile-icon { background: #ffd400; color: #11161b; }
.od-p-tile-text { display: grid; gap: 2px; min-width: 0; }
.od-p-tile-kind { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--p-soft); }
.od-p-tile-text strong { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; }
.od-p-tile-sub { font-size: 12.5px; color: var(--p-soft); }
.od-p-tile-check { margin-left: auto; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--p-line); color: transparent; }
.od-p-tile.is-active .od-p-tile-check { background: #ffd400; border-color: #ffd400; color: #11161b; }

.od-p-config-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.od-p-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.od-p-spec { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--p-card); border: 1px solid var(--p-line); }
.od-p-spec-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--p-card-2); color: var(--p-ink); }
.od-p-spec-text { display: grid; gap: 3px; min-width: 0; }
.od-p-spec-text span { font-size: 12px; color: var(--p-soft); }
.od-p-spec-text strong { font-size: 16px; color: var(--p-ink); }

.od-p-summary { position: sticky; top: 96px; padding: 22px; border-radius: 20px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.od-p-summary-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p-soft); }
.od-p-summary h3 { margin: 4px 0 14px; font: 700 26px/1 var(--font-display); text-transform: uppercase; color: var(--p-ink); }
.od-p-summary-rows, .od-p-summary-feat { list-style: none; margin: 0; padding: 0; }
.od-p-summary-rows li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.od-p-summary-rows span { font-size: 12px; color: var(--p-soft); }
.od-p-summary-rows strong { font-size: 14px; color: var(--p-ink); }
.od-p-summary-feat { margin: 10px 0 16px; display: grid; gap: 8px; }
.od-p-summary-feat li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--p-ink); }
.od-p-summary-feat svg { flex: none; color: #11161b; background: #ffd400; border-radius: 50%; padding: 2px; width: 18px; height: 18px; }
.od-p-summary-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding-top: 12px; border-top: 1px solid var(--p-line); }
.od-p-summary-price span { font-size: 13px; color: var(--p-soft); }
.od-p-summary-price strong { font: 700 32px/1 var(--font-display); color: var(--p-ink); }
.od-p-summary .button { width: 100%; justify-content: center; text-align: center; border-radius: 12px; padding: 14px 16px; font-weight: 700; }

/* ---------- dimensions on the official side view + essentials */
.od-p-dims { padding: clamp(40px, 5vw, 72px) 0; background: var(--p-bg); }
.od-p-dims-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: end; }
.od-p-dim-figure { margin: 0; }
.od-p-dim-car { position: relative; padding: 46px 18px 54px 64px; }
.od-p-dim-car img { display: block; width: 100%; height: auto; }
.od-p-dim { position: absolute; color: var(--p-soft); font-size: 12px; font-weight: 700; }
.od-p-dim em { font-style: normal; background: var(--p-bg); padding: 0 8px; white-space: nowrap; }
/* length: across the car body (10.5%–91% of the image) */
.od-p-dim-len { top: 16px; left: calc(64px + (100% - 82px) * .105); width: calc((100% - 82px) * .805); height: 0; border-top: 1.5px solid currentColor; display: grid; place-items: center; }
.od-p-dim-len::before, .od-p-dim-len::after { content: ""; position: absolute; top: -7px; width: 1.5px; height: 14px; background: currentColor; }
.od-p-dim-len::before { left: 0; } .od-p-dim-len::after { right: 0; }
.od-p-dim-len em { transform: translateY(-1px); }
/* height: roof to ground */
.od-p-dim-h { left: 24px; top: calc(46px + 2%); bottom: calc(54px + 6%); width: 0; border-left: 1.5px solid currentColor; }
.od-p-dim-h::before, .od-p-dim-h::after { content: ""; position: absolute; left: -7px; width: 14px; height: 1.5px; background: currentColor; }
.od-p-dim-h::before { top: 0; } .od-p-dim-h::after { bottom: 0; }
.od-p-dim-h em { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg); }
/* wheelbase: between the wheel centres (25.8% and 76.2%) */
.od-p-dim-wb { bottom: 20px; left: calc(64px + (100% - 82px) * .258); width: calc((100% - 82px) * .504); height: 0; border-top: 1.5px dashed currentColor; display: grid; place-items: center; }
.od-p-dim-wb::before, .od-p-dim-wb::after { content: ""; position: absolute; top: -7px; width: 1.5px; height: 14px; background: currentColor; }
.od-p-dim-wb::before { left: 0; } .od-p-dim-wb::after { right: 0; }
.od-p-dim-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--p-soft); }
.od-p-ess-box { padding: 22px; border-radius: 20px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.od-p-ess { list-style: none; margin: 0; padding: 0; }
.od-p-ess li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--p-line); font-size: 14px; }
.od-p-ess li span { color: var(--p-soft); }
.od-p-ess li strong { color: var(--p-ink); text-align: right; }

/* ---------- gallery */
.od-p-gallery { padding: clamp(40px, 5vw, 72px) 0; background: var(--p-bg); }
.od-p-gallery-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.od-p-gallery .veh-gallery-main { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.od-p-gallery .veh-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.od-p-thumbs.veh-gallery-thumbs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; overflow: visible; }
.od-p-thumbs .veh-thumb { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.od-p-thumbs .veh-thumb[hidden] { display: none !important; }
.od-p-thumbs .veh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.od-p-thumbs .veh-thumb.veh-thumb-active { outline: 3px solid #ffd400; outline-offset: -3px; }

/* ---------- help */
.od-p-help { padding: clamp(40px, 5vw, 64px) 0; background: var(--p-bg); }
.od-p-help-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.od-p-help-grid h2 { margin: 6px 0 4px; font: 700 clamp(26px, 3vw, 38px)/1 var(--font-display); text-transform: uppercase; color: var(--p-ink); }
.od-p-help-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.od-p-help-actions .button { padding: 13px 18px; border-radius: 12px; font-weight: 700; }
.od-p-disclaimer { margin: 18px 0 0; font-size: 12px; color: var(--p-soft); }
.od-variant-light .od-p .veh-related, .od-variant-hybrid .od-p .veh-related { background: #ffffff; }

/* ---------- product page: tablet & mobile */
@media (max-width: 1024px) {
    .od-p-hero-grid, .od-p-config-grid, .od-p-dims-grid, .od-p-gallery-layout { grid-template-columns: 1fr; }
    .od-p-summary { position: static; }
    .od-p-thumbs.veh-gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .od-p-help-grid { grid-template-columns: 1fr; }
    .od-p-help-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .od-p-hero-media { min-height: 0; }
    .od-p-tiles { grid-template-columns: 1fr; }
    .od-p-spec-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .od-p-spec { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .od-p-spec-text strong { font-size: 14px; }
    .od-p-thumbs.veh-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .od-p-dim-car { padding: 40px 6px 46px 40px; }
    .od-p-dim-len { left: calc(40px + (100% - 46px) * .105); width: calc((100% - 46px) * .805); }
    .od-p-dim-wb { left: calc(40px + (100% - 46px) * .258); width: calc((100% - 46px) * .504); }
    .od-p-dim-h { left: 12px; }
    .od-p-dim { font-size: 10.5px; }
    .od-p-help-actions .button { flex: 1 1 calc(50% - 10px); justify-content: center; }
}

/* =========================================================== HOMEPAGE V2: "Despre Optimal Drive", "Ultimele articole" */
.od-about { padding-top: clamp(48px, 6vw, 88px) !important; padding-bottom: clamp(48px, 6vw, 88px) !important; color: var(--p-ink); }
.od-variant-hybrid .od-about.od-dark { background: #0d0f12; box-shadow: 0 0 0 100vmax #0d0f12; clip-path: inset(0 -100vmax); }
.od-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.od-about h2 { margin: 6px 0 16px; font: 700 clamp(34px, 4.4vw, 58px)/.95 var(--font-display); text-transform: uppercase; color: var(--p-ink); }
.od-about-text p { color: var(--p-soft); font-size: 16px; line-height: 1.65; margin: 0 0 12px; max-width: 560px; }
.od-about-text .section-kicker { color: var(--p-soft); }
.od-variant-dark .od-about .section-kicker, .od-variant-hybrid .od-about.od-dark .section-kicker { color: #ffd400; }
.od-about-actions { margin-top: 18px; }
.od-about-actions .button { padding: 14px 26px; border-radius: 999px; font-weight: 700; }
.od-about-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--p-shadow); }
.od-about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-about-badge { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #11161b; background: #ffd400; }
.od-posts { padding-top: clamp(24px, 3vw, 48px) !important; padding-bottom: clamp(48px, 6vw, 88px) !important; }
.od-posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.od-posts-grid .bd-card-media img { object-fit: cover; }
@media (max-width: 900px) { .od-about-grid { grid-template-columns: 1fr; } .od-posts-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .od-p-help-grid { grid-template-columns: 1fr; } .od-p-help-actions { justify-content: flex-start; } }
