/* Hybrid Premium homepage. Loaded after reconstruction.css, only on the homepage. Colours come from the semantic theme tokens
   (tokens.css + the published design theme) - nothing here fixes a brand colour. Hero and "dark" bands use the --hero* tokens, which
   stay dark in every theme mode; "canvas"/"surface" bands follow Light/Dark/Auto. Section roots stay direct children of
   .reference-home-regions / .reference-home-hero so Layout Studio's website width + gutter keep working. */
/* Header: subtle sticky behaviour and the existing "Găsește o piesă" destination as the primary action (no extra element, so the navigation never gets wider) */
.public-header{position:sticky;top:0;z-index:40;}
.page-home .public-header #navigation a[href="/cerere"]{background:var(--brand);color:var(--on-brand);border-radius:8px;padding:8px 14px;font-weight:700}
.page-home .public-header #navigation a[href="/cerere"]:hover,.page-home .public-header #navigation a[href="/cerere"]:focus-visible{background:var(--brand-hover);color:var(--on-brand)}
.page-home main{padding:0}
.page-home{--hp-pad-y:clamp(48px,6.5vw,92px);--hp-radius:var(--radius-card,12px);--hp-card-shadow:var(--shadow)}
.page-home .eyebrow{letter-spacing:.14em;font-size:12px;font-weight:700;color:var(--brand-text)}
.page-home .hp-dark .eyebrow,.page-home .hp-hero .eyebrow{color:var(--hero-eyebrow,var(--brand))}
.page-home .hp-regions>section{padding-block:var(--hp-pad-y)}
.page-home h2{letter-spacing:-.025em;line-height:1.12}

/* ---------- Hero: the existing BMW photograph, composed for contrast; never stretched (cover, anchored to the car) ---------- */
.hp-hero{position:relative;display:grid;grid-template-columns:minmax(0,640px);align-content:center;gap:28px;min-height:clamp(560px,78vh,720px);padding-block:clamp(40px,6vw,84px);
 background-color:var(--hero);background-image:var(--hero-image,url('/assets/atcx/images/media/atcx-home-hero-branded.webp'));background-size:cover;background-position:78% 55%;background-repeat:no-repeat;color:var(--hero-text);isolation:isolate}
.hp-hero:before{content:"";display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(90deg,var(--hero) 0%,color-mix(in srgb,var(--hero) 88%,transparent) 34%,color-mix(in srgb,var(--hero) 40%,transparent) 62%,transparent 86%),linear-gradient(0deg,var(--hero) 0%,transparent 28%)}
.hp-hero .hero-copy{max-width:640px}
.hp-hero h1{font-size:clamp(34px,4.6vw,64px);line-height:1.05;letter-spacing:-.04em;max-width:15ch;margin:0 0 18px;font-weight:760;color:var(--hero-text)}
.hp-hero .hero-copy>p{font-size:clamp(16px,1.35vw,19px);line-height:1.55;max-width:46ch;color:var(--hero-muted);margin:0 0 26px}
.hp-hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hp-hero-actions .button{min-height:var(--lg-h-large);padding:12px 22px;font-size:15px}
/* Section CTAs (needs, Garage, consultation) use the hero button size; legacy reconstruction.css rules made them 36 px / 10–12 px. */
.page-home :is(.hp-needs,.hp-garage,.hp-consultation) .button{min-height:var(--lg-h-large);padding:12px 22px;font-size:15px;line-height:1.2;gap:8px;white-space:nowrap}
.hp-ghost{background:transparent;color:var(--hero-text);border:1px solid color-mix(in srgb,var(--hero-text) 40%,transparent)}
.hp-ghost:hover{border-color:var(--brand);color:var(--brand)}
.hp-finder{width:min(640px,100%);padding:18px 20px 14px;color:var(--hero-text);}
.hp-finder-title{margin:0 0 8px;font-weight:650;font-size:14px;color:var(--hero-text)}
.hp-finder .finder-tabs{border-color:var(--hero-border)}
.hp-finder .finder-tabs button{color:var(--hero-muted);font-size:12px;min-height:34px}
.hp-finder .finder-tabs button[aria-pressed=true]{color:var(--hero-text);border-color:var(--brand)}
.hp-finder input{color:var(--hero-text);min-height:46px;font-size:15px}
.hp-finder input::placeholder{color:var(--hero-muted)}
.hp-finder .finder-row>.primary{min-height:46px;font-size:14px;padding:10px 18px}
.hp-finder .finder-footnote{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;font-size:12px;line-height:1.4;color:var(--hero-muted);margin:10px 0 0}

/* ---------- Bands ---------- */
.hp-canvas{color:var(--text)}
.hp-surface{color:var(--text)}
.hp-dark{color:var(--hero-text)}
.hp-dark p,.hp-dark li{color:var(--hero-muted)}.hp-dark h2,.hp-dark h3,.hp-dark strong{color:var(--hero-text)}

/* Spune-ne ce știi */
.hp-needs{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:clamp(24px,4vw,64px);align-items:center}
.hp-needs-copy h2{font-size:clamp(28px,3.2vw,44px);margin:8px 0 14px}
.hp-needs-copy p{font-size:17px;line-height:1.6;color:var(--muted);max-width:44ch;margin:0 0 22px}
.hp-needs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hp-needs-grid a{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;padding:16px;color:var(--text);text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s}
.hp-needs-grid a:hover,.hp-needs-grid a:focus-visible{transform:translateY(-3px)}
.hp-needs-grid img{width:96px;height:96px;aspect-ratio:1/1;object-fit:contain;object-position:center;background:var(--surface-subtle);border-radius:12px;display:block}   /* the four quick-request thumbnails are identical squares; contain never crops the part */
.hp-needs-grid h3{font-size:16px;margin:0 0 4px;line-height:1.25}.hp-needs-grid p{margin:0;font-size:14px;color:var(--muted);line-height:1.45}

/* Cum funcționează */
.hp-process h2{font-size:clamp(28px,3.2vw,44px);margin:0 0 36px;text-align:center}
.hp-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;counter-reset:s}
.hp-steps li{position:relative;padding:28px 22px 24px}
.hp-steps .step-number{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--brand);color:var(--on-brand);font-weight:800;font-size:15px}
.hp-step-icon{margin:16px 0 10px;color:var(--brand)}
.hp-steps h3{font-size:18px;margin:0 0 8px;line-height:1.25}.hp-steps p{margin:0;font-size:15px;line-height:1.55}
.hp-fineprint{text-align:center;margin:22px 0 0;font-size:13px}
.hp-link{display:flex;width:max-content;margin:14px auto 0;color:var(--hero-text);gap:8px;align-items:center;font-weight:650;text-decoration:underline;text-underline-offset:4px}

/* De ce ATCX */
.hp-why-head{max-width:640px;margin:0 auto 34px;text-align:center}.hp-why-head h2{font-size:clamp(28px,3.2vw,44px);margin:8px 0 0}
.hp-why-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hp-why-local{max-width:760px;margin:44px auto 0;text-align:center}.hp-why-local h3{font-size:clamp(20px,2vw,26px);margin:0 0 10px}.hp-why-local p{margin:0;color:var(--muted)}
.hp-why-grid article{padding:26px 24px;}
.hp-why-icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--brand-soft);color:var(--brand-text);margin-bottom:14px}
.hp-why-grid h3{font-size:18px;margin:0 0 8px}.hp-why-grid p{margin:0;font-size:15px;line-height:1.6;color:var(--muted)}

/* Garajul tău */
.hp-garage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(24px,5vw,72px);align-items:center}
.hp-garage-copy h2{font-size:clamp(28px,3.2vw,44px);margin:8px 0 14px}.hp-garage-copy>p{font-size:17px;line-height:1.6;color:var(--muted);max-width:48ch;margin:0 0 18px}
.hp-checks{list-style:none;margin:0 0 24px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
.hp-checks li{display:flex;align-items:center;gap:8px;color:var(--text);font-weight:600;font-size:15px}.hp-checks .icon{color:var(--brand)}
.hp-garage-ui{color:var(--hero-text);padding:20px;max-width:460px;justify-self:center;width:100%}
.hp-ui-head{display:flex;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--hero-border)}
.hp-ui-head>span{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--hero-panel);color:var(--brand)}.hp-ui-head small{display:block;color:var(--hero-muted)}
.hp-garage-ui ul{list-style:none;margin:0;padding:6px 0}.hp-garage-ui li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--hero-border);font-size:15px}
.hp-garage-ui li em{font-style:normal;color:var(--hero-muted);font-size:13px;text-align:right}
.hp-ui-foot{display:flex;flex-wrap:wrap;gap:8px 16px;padding-top:14px;font-size:13px;color:var(--hero-muted)}.hp-ui-foot span{display:inline-flex;gap:6px;align-items:center}

/* Consultanță */
.hp-consultation{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(20px,4vw,56px);align-items:center;padding-block:clamp(40px,5vw,72px)}
.hp-consultation>img{width:100%;height:auto;aspect-ratio:16/11;object-fit:cover}
.hp-consultation h2{font-size:clamp(24px,2.6vw,36px);margin:8px 0 12px}.hp-consultation p{line-height:1.6}
.hp-points{list-style:none;padding:0;margin:14px 0 20px;display:flex;flex-wrap:wrap;gap:8px 18px}.hp-points li{display:inline-flex;gap:8px;align-items:center;font-size:14px}.hp-points .icon{color:var(--brand)}
.hp-consultation .consultation-price{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px}
.hp-consultation .consultation-price p{margin:0;flex:1 1 240px;min-width:0}.hp-consultation .consultation-price strong{color:var(--brand);font-size:22px}.hp-consultation .consultation-price small{display:block;font-size:12px;color:var(--hero-muted)}

/* FAQ */
.hp-faq{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:clamp(24px,5vw,72px);align-items:start}
.hp-faq-head h2{font-size:clamp(28px,3.2vw,44px);margin:8px 0 0}
.hp-faq-list{display:grid;gap:10px}
.hp-faq-list details{padding:0 var(--lg-pad,24px)}
.hp-faq-list summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;padding:18px 0;font-weight:650;font-size:16px;list-style:none;color:var(--text)}
.hp-faq-list summary::-webkit-details-marker{display:none}
.hp-faq-list summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px;border-radius:6px}
.hp-faq-mark{flex:none;display:inline-grid;place-items:center;transition:transform .2s;color:var(--brand-text)}
.hp-faq-list details[open] .hp-faq-mark{transform:rotate(45deg)}.hp-faq-list details[open]{border-color:var(--brand)}
.hp-faq-list details p{margin:0;padding:0 0 18px;color:var(--muted);line-height:1.65;font-size:15px}

/* Final CTA: the existing closing photograph under a contrast overlay */
.hp-final{display:flex;flex-wrap:wrap;gap:20px 40px;align-items:center;justify-content:space-between;position:relative;isolation:isolate;padding-block:clamp(52px,7vw,96px);
 background:linear-gradient(90deg,var(--hero) 0%,color-mix(in srgb,var(--hero) 78%,transparent) 55%,color-mix(in srgb,var(--hero) 35%,transparent) 100%),url('/assets/atcx/images/media/home-closing.webp') center/cover no-repeat,var(--hero)}
.hp-final h2{font-size:clamp(30px,4vw,52px);margin:0 0 10px}.hp-final p{margin:0;font-size:18px;max-width:46ch}
.hp-final .button{margin:0;min-height:54px;padding:14px 28px;font-size:16px}

/* ---------- Responsive ---------- */
@media(max-width:1100px){.hp-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hp-needs,.hp-garage,.hp-faq{grid-template-columns:1fr}.hp-consultation{grid-template-columns:1fr}}
@media(max-width:700px){
 .hp-hero{min-height:0;grid-template-columns:minmax(0,1fr);background-position:74% 100%;padding-block:36px 28px}
 .hp-hero:before{background:linear-gradient(180deg,var(--hero) 0%,color-mix(in srgb,var(--hero) 90%,transparent) 55%,color-mix(in srgb,var(--hero) 70%,transparent) 100%)}
 .hp-hero h1{max-width:none}.hp-hero-actions .button{flex:1 1 100%;justify-content:center}
 .hp-needs-grid,.hp-steps,.hp-why-grid,.hp-checks{grid-template-columns:1fr}
 .hp-needs-grid a{grid-template-columns:76px minmax(0,1fr)}.hp-needs-grid img{width:76px;height:76px}
 .hp-final{flex-direction:column;align-items:flex-start}.hp-final .button{width:100%;justify-content:center}
 .page-home :is(.hp-needs,.hp-garage,.hp-consultation) .button{width:100%;white-space:normal;text-align:center}
}
@media(prefers-reduced-motion:reduce){.hp-needs-grid a,.hp-faq-mark{transition:none}}
/* Quick request on phones: all three ways to start are visible without scrolling — two tabs on the first row, the third across the second;
   labels wrap inside their tab, touch targets stay >= 44 px. (platform.css made the row scroll sideways below 480 px.) */
@media(max-width:640px){
 .page-home .hp-finder .finder-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;border-bottom:0}
 .page-home .hp-finder .finder-tabs>button{min-width:0;min-height:44px;white-space:normal;line-height:1.25;padding:8px 10px;text-align:center;justify-content:center;align-items:center;border:0;}
 .page-home .hp-finder .finder-tabs>button[aria-pressed=true]{background:color-mix(in srgb,var(--hero-text) 16%,transparent)}
}

/* ---------- 65.3C responsive art direction of the approved BMW hero ----------
   The picture is not stretched or cropped by "cover" any more. ≥1101px: the whole artwork sits bottom-right at a height that keeps the car beside (not under) the request card;
   ≤1100px: a crop of the same artwork (the car) is a banner above the headline. Only the default hero is directed this way; a CMS-chosen --hero-image keeps its own background. */
.page-home .hp-hero:not([style*="--hero-image"]){background-image:none;background-color:var(--hero);isolation:isolate;overflow:hidden}
.page-home .hp-hero:not([style*="--hero-image"])::after{content:"";position:absolute;z-index:-2;pointer-events:none;right:0;top:50%;transform:translateY(-50%);aspect-ratio:1942/809;height:clamp(380px,calc((100vw - 720px) / 1.344),760px);max-width:100%;
 background:url('/assets/atcx/images/media/atcx-home-hero-wide.webp') right center/contain no-repeat;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 20%,#000 80%,transparent)}
@media(max-width:1100px){
 /* 65.3C final visual patch: ≤1100px the SAME wide artwork stays the full-bleed backdrop of the hero and scales with the viewport width (aspect ratio 1942:809 kept, never cropped by "cover").
    The image layer is anchored to the top; the headline starts over its dark upper-left garage area, the car (right) stays visible under the scrim, and the request card sits over the fading lower edge of the same picture.
    Whatever hero height the content needs below the picture is the plain hero colour, so the picture is never stretched. */
 .page-home .hp-hero:not([style*="--hero-image"]){--hp-art-h:calc(100vw * 809 / 1942);padding-top:calc(var(--hp-art-h) * .34 + 24px)}
 .page-home .hp-hero:not([style*="--hero-image"])::after{inset:0 0 auto 0;right:auto;top:0;transform:none;width:100%;height:var(--hp-art-h);aspect-ratio:auto;max-width:none;background:url('/assets/atcx/images/media/atcx-home-hero-wide.webp') center top/100% auto no-repeat;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%)}
 .page-home .hp-hero:not([style*="--hero-image"]):before{background:linear-gradient(90deg,color-mix(in srgb,var(--hero) 82%,transparent) 0%,color-mix(in srgb,var(--hero) 52%,transparent) 42%,transparent 72%)}
 
}
@media(max-width:700px){
 /* phones: the picture spans the full width at its natural proportions and the whole car stays visible; it fades into the hero colour exactly where the headline begins, and the request card follows inside the same hero */
 .page-home .hp-hero:not([style*="--hero-image"]){padding-top:calc(var(--hp-art-h) * .86 + 8px)}
 .page-home .hp-hero:not([style*="--hero-image"]):before{background:linear-gradient(180deg,transparent 0%,transparent calc(var(--hp-art-h) * .55),color-mix(in srgb,var(--hero) 60%,transparent) calc(var(--hp-art-h) * .9),transparent 100%)}
}

/* ---------- 65.3C — Hero B (responsive art direction): the owner-approved DEFAULT Hero ----------
   Hero A above is kept only as the rollback reference (and for a CMS-chosen --hero-image, which keeps its own background); there is no switch, flag or query parameter.
   B is ONE surface: the approved artwork (wide 1600×667 = whole picture; car 960×635 = its right part, both crops of atcx-home-hero-branded.webp) is the full-height backdrop behind
   headline, CTA and the request form — never a strip that ends half-way down the form. ≥1101px: the whole picture, cover-fitted to the full hero height, car on the right.
   ≤1100px: the same picture, blurred and darkened, fills the hero edge to edge (dark garage atmosphere behind everything) and the sharp car crop sits on top of it, scaled with the width. */
.page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"]){background-image:none;background-color:var(--hero);isolation:isolate;overflow:hidden}
.page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"])::after{content:"";position:absolute;inset:0;right:0;top:0;transform:none;width:auto;height:auto;aspect-ratio:auto;max-width:none;z-index:-2;pointer-events:none;
 background:url('/assets/atcx/images/media/atcx-home-hero-wide.webp') 82% 50%/cover no-repeat;-webkit-mask-image:none;mask-image:none;filter:none}
.page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"]):before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(90deg,var(--hero) 0%,color-mix(in srgb,var(--hero) 88%,transparent) 28%,color-mix(in srgb,var(--hero) 40%,transparent) 52%,transparent 78%),linear-gradient(0deg,color-mix(in srgb,var(--hero) 75%,transparent) 0%,transparent 28%)}
@media(max-width:1100px){
 .page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"]){--hpb-w:100%;--hpb-h:calc(100vw * 635 / 960);padding-top:calc(var(--hpb-h) * .34 + 28px)}
 .page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"])::after{inset:-24px;background:url('/assets/atcx/images/media/atcx-home-hero-wide.webp') 86% 50%/cover no-repeat;filter:blur(14px) brightness(.5) saturate(1.1)}
 .page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"]):before{inset:0 0 auto 0;height:calc(var(--hpb-h) * 1.04);-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 56%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0,#000 56%,transparent 100%);
  background:linear-gradient(90deg,color-mix(in srgb,var(--hero) 82%,transparent) 0%,color-mix(in srgb,var(--hero) 40%,transparent) 45%,transparent 75%),
   url('/assets/atcx/images/media/atcx-home-hero-car.webp') right top/var(--hpb-w) auto no-repeat}
 
}
@media(max-width:700px){
 .page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"]){--hpb-w:128vw;--hpb-h:calc(128vw * 635 / 960);padding-top:calc(var(--hpb-h) * .84)}
 .page-home .hp-hero[data-hero-variant=b]:not([style*="--hero-image"]):before{
  background:url('/assets/atcx/images/media/atcx-home-hero-car.webp') 100% 0/var(--hpb-w) auto no-repeat}
}
