/*
Theme Name: Erolf Drive
Theme URI: https://webandmediaworks.com/
Author: Web & Media Works
Description: Lightweight automotive showroom theme for Erolf Sales Operations.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: erolf-drive
*/
:root{--ink:#16191d;--red:#db092b;--muted:#666d77;--line:#e3e5e9;--paper:#f4f5f7;--max:1220px;--shadow:0 18px 55px #1218200c}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:#fff;color:var(--ink);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #3385ff;outline-offset:3px}h1,h2,h3,h4,p{margin:0 0 .75em}h1,h2,h3{line-height:1.12;letter-spacing:-.045em}h1{font-size:clamp(2.6rem,6.2vw,5.5rem);font-weight:850}h2{font-size:clamp(1.8rem,3.6vw,3.1rem);font-weight:820}h3{font-size:1.4rem}p{color:var(--muted)}.ed-wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.ed-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line);transition:box-shadow .2s}.ed-top{background:#17191e;color:#cbd0d6;font-size:.73rem;letter-spacing:.07em;text-transform:uppercase;padding:7px 0}.ed-top .ed-wrap{display:flex;justify-content:space-between;gap:12px}.ed-bar{display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:80px;transition:min-height .2s}.ed-header.scrolled .ed-bar{min-height:58px}.ed-header.scrolled .ed-top{display:none}.ed-header.scrolled{box-shadow:0 5px 20px #0001}.ed-brand{display:flex;align-items:center;gap:10px;font-weight:850;line-height:1.05;flex-shrink:0}.ed-brand small{display:block;color:#757b83;font-size:.64rem;letter-spacing:.12em;margin-top:5px;text-transform:uppercase}.ed-mark{display:grid;place-items:center;width:42px;height:42px;background:#d70729;color:white;font-size:1.2rem;transform:skew(-7deg);font-weight:900}.ed-nav{display:flex;gap:24px;align-items:center;font-size:.88rem;font-weight:650}.ed-nav a:hover,.ed-nav a[aria-current=page]{color:var(--red)}.ed-button,.ed-btn,button.ed-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:4px;background:var(--red);color:white;padding:12px 20px;line-height:1.4;font-weight:750;cursor:pointer;transition:transform .2s,background .2s;text-align:center}.ed-button:hover,.ed-btn:hover{background:#b60724;transform:translateY(-2px);color:#fff}.ed-btn.alt{background:white;color:#17191d;border:1px solid #d3d6dc}.ed-btn.dark{background:#1c2027}.ed-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.ed-menu{display:none;background:white;border:1px solid #ddd;padding:8px 12px;border-radius:4px}.ed-section{padding:clamp(44px,7vw,96px) 0}.ed-soft{background:var(--paper)}.ed-dark{background:#171b22;color:#fff}.ed-dark p{color:#c8ced8}.ed-eyebrow{color:var(--red);font-size:.75rem;letter-spacing:.19em;text-transform:uppercase;font-weight:850;margin-bottom:15px;display:block}.ed-dark .ed-eyebrow{color:#ff758a}.ed-hero{background:radial-gradient(ellipse at 80% 20%,#454e5d 0,#252a33 36%,#13161b 80%);color:#fff;position:relative;overflow:hidden;isolation:isolate}.ed-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(125deg,transparent 0 119px,#ffffff08 120px 121px,transparent 122px 240px)}.ed-hero-inner{display:grid;grid-template-columns:1fr 1.12fr;align-items:center;gap:35px;min-height:565px;padding:65px 0}.ed-hero h1 em{color:#ff4963;font-style:normal}.ed-hero p{color:#c4cbd5;max-width:550px;font-size:1.1rem}.ed-hero-photo{position:relative;overflow:hidden;border-radius:6px;box-shadow:0 25px 70px #0006;background:#363d48}.ed-hero-photo img{width:100%;aspect-ratio:1.28;object-fit:cover;transition:transform .6s}.ed-hero-photo:hover img{transform:scale(1.035)}.ed-photo-label{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#111b);padding:30px 20px 15px;color:white;font-weight:800;letter-spacing:.08em;font-size:.8rem}.ed-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.ed-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #ffffff25}.ed-kpis div{padding:22px 15px;border-right:1px solid #ffffff25}.ed-kpis strong{display:block;font-size:1.15rem}.ed-kpis small{color:#aeb8c5}.ed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.ed-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.ed-card{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;box-shadow:var(--shadow);color:var(--ink);min-width:0}.ed-card img{width:100%;aspect-ratio:1.65;object-fit:cover;background:#e5e7eb}.ed-card-body{padding:24px}.ed-card .ed-eyebrow{margin-bottom:7px}.ed-card h3{margin-bottom:8px}.ed-card a.ed-link{color:var(--red);font-weight:800}.ed-card:hover{border-color:#c4c7ce}.ed-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,70px);align-items:start}.ed-head{display:flex;justify-content:space-between;gap:25px;align-items:end;margin-bottom:30px}.ed-head p{max-width:610px;margin:0}.ed-tag{display:inline-block;padding:4px 9px;font-size:.72rem;font-weight:750;background:#f1f2f5;color:#4b5563;border-radius:3px;letter-spacing:.02em}.ed-intro{padding:55px 0;background:#171b22;color:#fff}.ed-intro h1{font-size:clamp(2.2rem,5vw,4.2rem)}.ed-intro p{color:#c7ccd5;max-width:700px}.ed-footer{background:#14171c;color:#d6d9df;padding:48px 0 20px}.ed-footer p{color:#aab1bc}.ed-footer a:hover{color:white}.ed-footer .ed-grid{grid-template-columns:2fr 1fr 1fr}.ed-footer-bottom{display:flex;justify-content:space-between;border-top:1px solid #fff2;margin-top:30px;padding-top:18px;font-size:.78rem;gap:15px;flex-wrap:wrap}.ed-notice{border-left:3px solid var(--red);padding:14px 18px;background:#f4f5f7;color:#363b44;margin:15px 0}.ed-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.ed-filter button{border:1px solid #ddd;border-radius:4px;background:white;padding:8px 14px;cursor:pointer}.ed-filter button[aria-pressed=true]{background:#171b22;color:#fff}.ed-card[hidden]{display:none}.ed-reveal{transition:transform .4s,opacity .4s}.ed-reveal.ed-in{animation:ed-enter .55s ease both}@keyframes ed-enter{from{opacity:.45;transform:translateY(14px)}to{opacity:1;transform:none}}.ed-step-num{font-size:2.5rem;font-weight:850;color:#d70729;line-height:1}.ed-sticky-cta{display:none}.ed-content{min-height:45vh}.ed-content>article{padding:35px 0}.ed-compact .ed-nav,.ed-compact .ed-header .ed-button{display:none}.ed-compact .ed-header .ed-top{display:none}.ed-compact .ed-footer .ed-grid{display:none}.ed-compact .ed-footer{padding:10px 0}.ed-compact .ed-footer-bottom{margin:0;border:0}.ed-skip{position:absolute;left:-10000px}.ed-skip:focus{left:10px;top:10px;background:white;padding:10px;z-index:999}.admin-bar .ed-header{top:32px}@media(max-width:980px){.ed-nav{gap:12px}.ed-bar{gap:12px}.ed-nav a{font-size:.8rem}.ed-header .ed-button{padding:10px 12px}.ed-hero-inner{min-height:460px}.ed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.ed-wrap{width:calc(100% - 28px)}.ed-top{font-size:.63rem}.ed-top .ed-wrap span:last-child{display:none}.ed-bar{min-height:66px}.ed-menu{display:block}.ed-header .ed-button{display:none}.ed-nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;box-shadow:0 12px 25px #0002;padding:18px;flex-direction:column;align-items:stretch}.ed-nav.open{display:flex}.ed-nav a{padding:9px;font-size:1rem}.ed-hero-inner{grid-template-columns:1fr;gap:22px;padding:42px 0;min-height:0}.ed-hero-photo{order:-1}.ed-hero-photo img{aspect-ratio:1.8}.ed-kpis div{padding:14px 7px}.ed-kpis strong{font-size:.85rem}.ed-kpis small{font-size:.7rem}.ed-grid,.ed-grid.two,.ed-split,.ed-footer .ed-grid{grid-template-columns:1fr}.ed-head{display:block}.ed-card-body{padding:19px}.ed-sticky-cta{display:block;position:fixed;bottom:0;left:0;right:0;padding:9px;background:#fff;border-top:1px solid #ddd;z-index:40;text-align:center}.ed-sticky-cta a{width:100%}body:not(.ed-compact){padding-bottom:62px}.ed-compact .ed-sticky-cta{display:none}.admin-bar .ed-header{top:46px}.ed-compact .ed-menu{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* v1.0.1: local cinematic homepage background. All other heroes remain unchanged. */
.ed-hero.ed-hero-cinema{background:#15191f;color:#fff;isolation:isolate}
.ed-hero-cinema .ed-hero-media{position:absolute;inset:0;z-index:-2;pointer-events:none;overflow:hidden;background:#252a30 url('assets/hero-triton.webp') center 47%/cover no-repeat}
.ed-hero-cinema .ed-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 47%;display:block}
.ed-hero.ed-hero-cinema:before{z-index:-1;background:linear-gradient(90deg,rgba(9,12,17,.95) 0%,rgba(9,12,17,.84) 26%,rgba(9,12,17,.54) 51%,rgba(9,12,17,.12) 78%),linear-gradient(0deg,rgba(9,12,17,.9),transparent 29%);pointer-events:none}
.ed-hero-cinema .ed-hero-inner{display:flex;align-items:center;min-height:clamp(490px,43vw,650px);padding:76px 0 64px}
.ed-hero-cinema .ed-hero-inner>div:first-child{max-width:660px;width:100%;min-width:0}
.ed-hero-cinema h1{max-width:650px;text-shadow:0 2px 22px #0006}
.ed-hero-cinema .ed-eyebrow{color:#ff7187;text-shadow:0 1px 10px #0008}
.ed-hero-cinema p{color:#f0f2f5;text-shadow:0 1px 8px #0009}
.ed-hero-cinema .ed-kpis{position:relative;max-width:100%;padding-right:110px}
.ed-hero-cinema .ed-kpis small{color:#e1e5e9}
.ed-hero-motion{position:absolute;right:20px;bottom:18px;border:1px solid #ffffff66;border-radius:4px;padding:8px 11px;background:#111b;color:white;font-size:.72rem;cursor:pointer;z-index:2}
.ed-hero-motion[hidden]{display:none!important}
@media(max-width:760px){
 .ed-hero-cinema .ed-hero-media{bottom:auto;height:100%;background-size:auto 100%;background-position:62% top}
 .ed-hero-cinema .ed-hero-video{object-position:62% 35%}
 .ed-hero.ed-hero-cinema:before{background:linear-gradient(180deg,rgba(10,13,18,.1) 0%,rgba(10,13,18,.14) 20%,rgba(10,13,18,.73) 43%,rgba(10,13,18,.96) 77%),linear-gradient(90deg,#0a0d1222,#0a0d1222)}
 .ed-hero-cinema .ed-hero-inner{min-height:0;padding:clamp(230px,54vw,360px) 0 28px;align-items:end}
 .ed-hero-cinema h1{font-size:clamp(2.35rem,9vw,4.2rem)}
 .ed-hero-cinema p{font-size:1rem}
 .ed-hero-cinema .ed-kpis{padding-right:0;padding-bottom:42px}
 .ed-hero-motion{right:14px;bottom:10px}
}

/* v1.0.3: reserve the expanded header's document space, so compacting it
   never moves the hero or the sections below it. The clear part of the
   sticky slot is click-through; the actual header and menu remain interactive. */
.ed-header-slot{position:sticky;top:0;z-index:50;pointer-events:none;overflow-anchor:none;height:var(--ed-header-reserve,auto)}
.ed-header-slot>.ed-header{position:relative;top:auto;pointer-events:auto}
.admin-bar .ed-header-slot{top:32px}
.admin-bar .ed-header-slot>.ed-header{top:auto}
@media(max-width:782px){.admin-bar .ed-header-slot{top:46px}}
/* At narrow widths WordPress uses a non-sticky admin toolbar. */
@media(max-width:600px){.admin-bar .ed-header-slot{top:0}}
.ed-header-slot .ed-top{display:grid;grid-template-rows:1fr;transition:grid-template-rows .24s ease,padding .24s ease,opacity .18s ease;overflow:hidden}
.ed-header-slot .ed-top .ed-wrap{min-height:0;overflow:hidden}
.ed-header-slot .ed-header.scrolled .ed-top{display:grid;grid-template-rows:0fr;padding-block:0;opacity:0}
.ed-header-slot .ed-bar{transition:min-height .24s ease}
.ed-compact .ed-header-slot .ed-header .ed-top{display:none}
.ed-header.ed-measuring,.ed-header.ed-measuring *{transition:none!important}
@media(prefers-reduced-motion:reduce){.ed-header-slot .ed-top,.ed-header-slot .ed-bar{transition:none!important}}
/* Editorial expansion — local optimized photographs, accessible galleries. */
.ed-nav{gap:clamp(10px,1.35vw,20px)}
@media(min-width:761px) and (max-width:1050px){.ed-nav{gap:9px}.ed-brand small{letter-spacing:.04em}.ed-nav a{font-size:.76rem}.ed-bar{gap:10px}.ed-header .ed-button{padding:9px 10px;font-size:.8rem}}
@media(min-width:761px) and (max-width:900px){.ed-menu{display:block}.ed-header .ed-button{display:none}.ed-nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;box-shadow:0 12px 25px #0002;padding:18px;flex-direction:column;align-items:stretch}.ed-nav.open{display:flex}.ed-nav a{padding:9px;font-size:1rem}.ed-compact .ed-menu{display:none}}
.eq-photo{display:block;overflow:hidden;background:#eef0f3;min-width:0}.eq-photo img{width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;transition:transform .35s ease}.eq-photo:hover img{transform:scale(1.025)}.eq-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}.eq-gallery .eq-photo{border-radius:6px}.eq-gallery .eq-photo img{aspect-ratio:4/3;object-fit:cover;background:#f2f3f5}.eq-release>.eq-photo img{aspect-ratio:1.55;object-fit:cover;background:#17191d}.eq-release .ed-card-body{padding:20px}.eq-more{border-top:1px solid #e3e5e9;margin-top:14px;padding-top:12px}.eq-more summary{cursor:pointer;font-weight:700;color:#b60724}.eq-more .eq-gallery{margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.eq-note{font-size:.82rem;color:#656d78;margin:18px 0}.eq-credentials{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.eq-credential{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.eq-credential>.eq-photo img{aspect-ratio:4/5;object-fit:cover;background:#17191d}.eq-credential .ed-card-body{padding:20px}.eq-credentials:has(> :only-child){grid-template-columns:minmax(0,850px)}.eq-stories .eq-photo img{aspect-ratio:4/3;object-fit:cover;background:#f0f1f3}.eq-dealer{display:grid;grid-template-columns:1.2fr 1fr;gap:25px;padding:clamp(20px,4vw,40px);background:#17191d;border-radius:10px;color:#fff}.eq-dealer p{color:#d5d9e0}.eq-dealer .ed-eyebrow{color:#ff758a}.ed-grid .ed-card[data-category]>a>img{object-position:center 58%}.ed-card[data-category]>.eq-photo img{object-position:center}
@media(max-width:760px){.eq-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.eq-credentials,.eq-dealer{grid-template-columns:1fr}.eq-credential{grid-template-columns:1fr}.eq-credential>.eq-photo img{max-height:420px;aspect-ratio:4/5}.eq-credential .ed-card-body{padding:18px}}
.eq-pet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.eq-stories .eq-pet-grid .eq-photo img{aspect-ratio:1;object-fit:cover}.eq-model-main img{aspect-ratio:4/3;object-fit:cover;background:#f2f3f5}
.ed-brand>span:last-child{font-size:clamp(.82rem,1.15vw,1.02rem);line-height:1.1}.ed-brand small{font-size:.61rem}.ed-brand{gap:8px}.ed-nav{min-width:0}@media(max-width:420px){.ed-brand>span:last-child{font-size:.78rem}.ed-brand small{font-size:.56rem}}
