/* ==========================================================================
   Remat Activ Auto — public stylesheet
   One typeface, one radius scale, one band style per tone.
   Colors come from theme.css (editable in admin → Culori și temă).
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --c-primary: #1b7a4a;
  --c-deep: #0f3d2e;
  --c-secondary: #2e8b57;
  --c-bg: #f3f7f4;
  --c-surface: #ffffff;
  --c-text: #14241c;
  --c-muted: #4e6258;

  /* derived */
  --c-line: color-mix(in srgb, var(--c-text) 11%, white);
  --c-line-strong: color-mix(in srgb, var(--c-text) 20%, white);
  --c-soft: color-mix(in srgb, var(--c-primary) 9%, white);
  --c-soft-2: color-mix(in srgb, var(--c-secondary) 14%, white);
  --c-tint: color-mix(in srgb, var(--c-bg) 70%, white);
  --c-on-dark: #ffffff;
  --c-on-dark-muted: color-mix(in srgb, white 74%, var(--c-deep));
  --c-on-dark-line: color-mix(in srgb, white 16%, var(--c-deep));
  --c-accent: #d47b35;
  --c-whatsapp: #168347;

  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--c-text) 6%, transparent);
  --shadow: 0 10px 30px -12px color-mix(in srgb, var(--c-text) 22%, transparent);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --header-h: 72px;
  --callbar-h: 64px;
  --font: "Outfit", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --container: 1160px;
  --section-y: 56px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--callbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}

body.no-callbar { padding-bottom: 0; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a {
  color: var(--c-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--c-deep); }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }

p { margin: 0 0 0.9rem; }

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: color-mix(in srgb, var(--c-primary) 22%, white); color: var(--c-deep); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--c-deep);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 80;
}
.skip:focus { top: 12px; color: white; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.narrow { width: min(760px, calc(100% - 40px)); }

.muted { color: var(--c-muted); }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--c-surface) 94%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--c-deep);
  font-weight: 700;
}
.brand img {
  height: 44px;
  width: auto;
  max-width: min(60vw, 260px);
}
.brand-text { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav-toggle {
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span:not(.hp) {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow);
  padding: 8px 20px 20px;
  flex-direction: column;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--c-text);
  padding: 13px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover { color: var(--c-primary); }
.site-nav a[aria-current="page"] { color: var(--c-primary); font-weight: 600; }

.header-phone { display: none; }

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

.btn, button.btn, .callbar a, .callbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn .contact-icon { width: 20px; height: 20px; flex-basis: 20px; }
.btn-primary {
  background: var(--c-primary);
  color: white;
}
.btn-primary:hover { background: var(--c-deep); color: white; }
.callbar .call { background: var(--c-deep); color: white; }
.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn-ghost:hover { border-color: var(--c-text); color: var(--c-text); }
.btn-light {
  background: white;
  color: var(--c-deep);
}
.btn-light:hover { background: color-mix(in srgb, white 88%, var(--c-deep)); color: var(--c-deep); }
.btn-danger {
  background: var(--c-surface);
  color: #a3242f;
  border-color: #ecc8cc;
}
.btn-danger:hover { background: #fdf2f3; color: #8a1c26; border-color: #dba2a8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Eyebrow / headings ---------- */

.kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  margin-top: .62em;
  width: 18px;
  height: 2px;
  background: var(--c-accent);
  flex: 0 0 auto;
}
.kicker:empty { display: none; }
.kicker.on-dark { color: var(--c-on-dark-muted); }

.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 44rem; margin-bottom: 32px; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; margin: 0; }

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

.hero {
  padding: 40px 0 0;
  background: linear-gradient(to bottom, var(--c-tint), var(--c-surface));
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--section-y);
}
.hero-grid { display: grid; gap: 32px; }
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 18px;
}
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--c-muted); max-width: 44ch; }

.hero-photo {
  margin: 0;
  background: var(--c-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 58% center;
}
.hero-photo a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  color: white;
  font-weight: 600;
}
.hero-photo a:focus-visible, .site-footer a:focus-visible { outline-color: white; }

.hero-art {
  position: relative;
  min-height: 320px;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  color: #f6f7ef;
  background-color: var(--c-deep);
  background-image:
    linear-gradient(color-mix(in srgb, white 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, white 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  animation: hero-arrive 600ms cubic-bezier(.2,.7,.2,1) both;
}
.hero-stamp, .hero-art-tag {
  position: absolute;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-on-dark-muted);
}
.hero-stamp { top: 20px; left: 22px; }
.hero-stamp span { color: var(--c-accent); padding-inline: 4px; }
.hero-art-tag { display: none !important; }
.hero-car { width: 92%; max-height: 260px; overflow: visible; animation: car-settle 750ms 100ms both; }
.hero-car-body { fill: #e8eee6; stroke: #ffffff; stroke-width: 3; stroke-linejoin: round; }
.hero-car-window { fill: var(--c-deep); stroke: #9fb8a7; stroke-width: 2.5; stroke-linejoin: round; }
.hero-car-line { fill: none; stroke: #a9bcae; stroke-width: 3; stroke-linecap: round; }
.hero-wheel { fill: #13241d; stroke: #3d5a4b; stroke-width: 6; }
.hero-wheel.hub { fill: #d5ddd4; stroke: #8ea394; stroke-width: 3; }
.hero-art-note {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.hero-art-note strong, .hero-art-note small { display: block; line-height: 1.35; }
.hero-art-note strong { font-size: .92rem; font-weight: 650; }
.hero-art-note small { color: var(--c-muted); font-size: .8rem; }
.hero-art-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa864; box-shadow: 0 0 0 4px color-mix(in srgb, #2fa864 22%, transparent); flex: 0 0 auto; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes car-settle { from { opacity: .4; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.hero-benefits {
  display: grid;
  margin-block: 40px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
}
.hero-benefits li { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.hero-benefits li:last-child { border-bottom: 0; }
.hero-benefits strong, .hero-benefits span { display: block; }
.hero-benefits strong { font-weight: 650; margin-bottom: 2px; }
.hero-benefits span { color: var(--c-muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Cards ---------- */

.trust {
  display: grid;
  gap: 12px;
  padding: 22px 0 8px;
}
.trust article, .card, .step, .review, .doc, .tier, .panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
}

.cards, .steps, .docs, .reviews, .tiers, .gallery {
  display: grid;
  gap: 16px;
}
.docs { margin-bottom: 24px; }

.card { transition: border-color 160ms ease, box-shadow 160ms ease; }
.card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow); }

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--c-soft);
  color: var(--c-primary);
  margin-bottom: 18px;
}
.icon-wrap svg { width: 22px; height: 22px; }
.card h3, .step h3, .doc h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card h2 { font-size: 1.3rem; }
.card p:last-child, .doc p:last-child, .step p:last-child { margin-bottom: 0; }
.service-card { display: flex; flex-direction: column; }
.service-card .muted { flex: 1 1 auto; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  color: var(--c-primary);
}
.card-link span { transition: transform 160ms ease; }
.card-link:hover span { transform: translateX(3px); }

/* Steps: a numbered row, not boxed cards */
.steps { counter-reset: step; }
.step {
  position: relative;
  border: 0;
  border-top: 2px solid var(--c-line);
  border-radius: 0;
  padding: 20px 0 0;
  background: transparent;
}
.step:first-child { border-top-color: var(--c-primary); }
.step-no {
  font-family: var(--font);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.doc { background: var(--c-tint); border-color: transparent; }
.doc h3 { font-size: 1.05rem; }
.doc .muted { font-size: .97rem; }

/* ---------- Dark bands (one style for all) ---------- */

.rabla-band,
.quote-band,
.parts-callout,
.waste-callout {
  background: var(--c-deep);
  color: var(--c-on-dark);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.rabla-band h2, .quote-band h2, .parts-callout h2, .waste-callout h2 { color: var(--c-on-dark); }
.rabla-band > p, .rabla-band .note,
.quote-band > div > p:not(.kicker):not(.quote-tags),
.parts-callout p:not(.kicker), .waste-callout p:not(.kicker), .waste-list {
  color: var(--c-on-dark-muted);
}
.rabla-band .kicker, .quote-band .kicker, .parts-callout .kicker, .waste-callout .kicker { color: var(--c-on-dark-muted); }
.rabla-band .note { font-size: .9rem; margin-top: 18px; }
.rabla-band .tiers { margin-top: 24px; }
.rabla-band .tier { border: 0; }
.rabla-band .tier, .rabla-band .tier h3, .rabla-band .tier p { color: var(--c-text); }
.rabla-band .tier p.muted { color: var(--c-muted); }
.tier strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.tier h3 { font-size: 1.05rem; }
.tier p:last-child { margin-bottom: 0; font-size: .95rem; }

.table-wrap { overflow-x: auto; max-width: 100%; }
fieldset { border: 0; margin: 0 0 12px; padding: 0; }
legend { font-weight: 600; margin-bottom: 8px; }
.rabla-band .data { width: 100%; border-collapse: collapse; color: white; margin-top: 16px; }
.rabla-band .data th, .rabla-band .data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--c-on-dark-line); vertical-align: top; }
.rabla-band .data th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-on-dark-muted); font-weight: 600; }
.rabla-band .data td:nth-child(2) { font-weight: 650; white-space: nowrap; }

.quote-band, .programs-band, .authorization-band {
  display: grid;
  gap: 24px;
  align-items: center;
}
.quote-band h2 { max-width: 22ch; }
.quote-band > div > p:not(.kicker):not(.quote-tags) { max-width: 56ch; }
.quote-tags, .parts-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.quote-tags span, .parts-tags span {
  border: 1px solid var(--c-on-dark-line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--c-on-dark);
  font-size: .85rem;
}
.quote-actions { margin: 0; flex-direction: column; align-items: stretch; }
.quote-actions .btn-primary { background: var(--c-whatsapp); }
.quote-actions .btn-primary:hover { background: #0f6535; }

/* ---------- Light bands ---------- */

.authorization-band {
  grid-template-columns: auto 1fr;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  padding: 24px;
}
.authorization-band h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.authorization-band p:last-child { color: var(--c-muted); margin-bottom: 0; }
.authorization-band .kicker { margin-bottom: 8px; }
.authorization-band .btn { grid-column: 1 / -1; justify-self: start; }
.authorization-mark {
  align-self: start;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-primary);
  font-size: 1.35rem;
  font-weight: 700;
}

.programs-band {
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--c-tint);
  border: 1px solid var(--c-line);
}
.programs-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.programs-band p:last-child { color: var(--c-muted); margin-bottom: 0; max-width: 58ch; }
.programs-band .btn { justify-self: start; }

.cta-band {
  background: var(--c-tint);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: grid;
  gap: 8px;
}
.cta-band .actions { margin-top: 8px; }
.cta-band p:last-child { margin-bottom: 0; }

.parts-callout, .waste-callout { margin-top: 32px; }
.waste-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; padding-left: 1.2rem; margin: 16px 0 0; }
.waste-list li::marker { color: var(--c-accent); }

/* ---------- Eco / gallery / process ---------- */

.eco-grid { display: grid; gap: 16px; }
.eco-visual {
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 10px;
  padding: 10px;
}
.eco-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-deep);
}
.eco-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eco-visual figcaption { color: var(--c-muted); padding: 0 6px 6px; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--c-muted); font-size: 0.92rem; margin-top: 10px; }

.process-list { display: grid; gap: 28px; margin-top: 36px; }
.process-list figure { margin: 0; }
.process-list img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.process-list figcaption { color: var(--c-muted); margin-top: 12px; font-size: .97rem; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--c-line); max-width: 52rem; }
.faq-item:first-of-type { border-top: 1px solid var(--c-line); }
.section-head + .faq-item { border-top: 1px solid var(--c-line); }
.faq-item button {
  position: relative;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 20px 44px 20px 0;
  min-height: 56px;
  color: var(--c-text);
  cursor: pointer;
}
.faq-item button:hover { color: var(--c-primary); }
.faq-item button::before,
.faq-item button::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary);
  transition: transform 180ms ease;
}
.faq-item button::after { transform: rotate(90deg); }
.faq-item.is-open button::after { transform: rotate(0deg); }
.faq-item .answer { display: none; padding: 0 44px 20px 0; color: var(--c-muted); }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-item.is-open .answer { display: block; }
.faq-item ~ p { margin-top: 20px; }

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

.site-footer {
  background: var(--c-deep);
  color: var(--c-on-dark-muted);
  padding: 56px 0 24px;
  font-size: .97rem;
}
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px 40px; }
.site-footer h2 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer-about h2 { font-size: 1.15rem; letter-spacing: -0.01em; text-transform: none; }
.footer-about p { margin-bottom: 10px; max-width: 42ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-hours li { display: flex; gap: 6px; }
.legal-line { font-size: 0.9rem; }
.contact-link, .contact-action { display: inline-flex; align-items: center; gap: 10px; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; color: white; background: transparent; font: inherit; cursor: pointer; }
.footer-whatsapp:hover { text-decoration: underline; }
.footer-legal, .legal-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal { border-top: 1px solid var(--c-on-dark-line); margin-top: 40px; padding-top: 12px; font-size: .9rem; }
.footer-legal a, .legal-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal a { color: var(--c-on-dark-muted); }
.design-credit { margin: 0 auto; padding-top: 4px; color: var(--c-on-dark-muted); font-size: .85rem; }
.design-credit a { font-weight: 600; }

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

.contact-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon-whatsapp { width: 22px; height: 22px; flex-basis: 22px; }
.contact-actions { display: grid; gap: 10px; margin-block: 16px 24px; }
.contact-action {
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color 150ms ease;
}
.contact-action:hover { border-color: var(--c-line-strong); color: var(--c-text); }
.contact-action span { display: grid; line-height: 1.35; }
.contact-action small { color: var(--c-muted); font-size: .85rem; }
.contact-action strong { font-size: 1.05rem; font-weight: 650; }
.contact-action > .contact-icon {
  width: 40px; height: 40px; flex-basis: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-primary);
}
.contact-action-whatsapp > .contact-icon { color: var(--c-whatsapp); background: color-mix(in srgb, var(--c-whatsapp) 12%, white); }
.contact-action-whatsapp { width: 100%; text-align: left; font: inherit; cursor: pointer; }

.legal-nav { margin-bottom: 24px; border-bottom: 1px solid var(--c-line); }
.legal-nav a { color: var(--c-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.legal-nav a:hover { color: var(--c-text); }
.legal-nav a[aria-current="page"] { color: var(--c-text); font-weight: 600; border-bottom-color: var(--c-primary); }
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.legal-company { margin-block: 24px; }
.legal-company dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 8px 16px; margin: 0; }
.legal-company dt { font-weight: 600; }
.legal-company dd { margin: 0; overflow-wrap: anywhere; color: var(--c-muted); }
.legal-section { margin-block: 32px; }
.legal-section h2 { font-size: 1.35rem; }

.prose { max-width: 44rem; }
.prose p { color: var(--c-muted); font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--c-muted); }

.page-hero {
  padding: 48px 0 40px;
  background: linear-gradient(to bottom, var(--c-tint), var(--c-surface));
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--section-y);
}
.page-hero + .section, .hero + .section { padding-top: 0; }
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 16px;
}
.page-hero .prose p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 16px; }
.form h2 { font-size: 1.4rem; margin-bottom: 4px; }
.contact-grid { display: grid; gap: 32px; }
.contact-grid > * { min-width: 0; }
.form .field small { font-weight: 400; color: var(--c-muted); }
.vehicle-details { border-top: 1px solid var(--c-line); padding-top: 4px; }
.vehicle-details summary { padding-block: 12px; cursor: pointer; font-weight: 600; color: var(--c-primary); }
.vehicle-details[open] > :not(summary) { margin-top: 12px; }
.field { display: grid; gap: 6px; }
.field > span, .check span { font-weight: 500; font-size: .95rem; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  min-height: 48px;
  scroll-margin-bottom: 96px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--c-text) 35%, white); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent);
}
input[type="color"] { padding: 4px; cursor: pointer; }
input[type="file"] { padding: 10px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.grid-2 { display: grid; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 4px; min-height: 0; accent-color: var(--c-primary); box-shadow: none; }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  border: 1px solid transparent;
  border-left-width: 4px;
}
.alert-ok { background: var(--c-soft); color: var(--c-deep); border-color: color-mix(in srgb, var(--c-primary) 25%, white); border-left-color: var(--c-primary); }
.alert-error { background: #fdf2f2; color: #7a1d22; border-color: #f2cdd0; border-left-color: #c2343f; }
.alert ul { margin: 0; padding-left: 1.1rem; }

/* ---------- Mobile callbar & WhatsApp ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a, .callbar button {
  flex: 1;
  border-radius: 0;
  min-height: var(--callbar-h);
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.callbar a.wa, .callbar button.wa { background: var(--c-whatsapp); color: white; }
.callbar .contact-icon { width: 20px; height: 20px; }

.floating-whatsapp { position: fixed; z-index: 48; right: max(20px, env(safe-area-inset-right)); bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom) + 12px); display: grid; justify-items: end; gap: 12px; }
.whatsapp-options-panel, .phone-options-panel { position: fixed; z-index: 49; right: max(20px, env(safe-area-inset-right)); bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom) + 78px); width: min(280px, calc(100vw - 40px)); padding: 8px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); box-shadow: var(--shadow); }
.whatsapp-options-panel[hidden], .phone-options-panel[hidden] { display: none; }
.whatsapp-options-panel p, .phone-options-panel p { padding: 8px 10px 4px; margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.whatsapp-options-panel a, .phone-options-panel a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--c-text); text-decoration: none; font-weight: 500; }
.whatsapp-options-panel a:hover, .phone-options-panel a:hover, .whatsapp-options-panel a:focus-visible, .phone-options-panel a:focus-visible { background: var(--c-tint); }
.whatsapp-options-panel .contact-icon { width: 20px; height: 20px; color: var(--c-whatsapp); }
.floating-whatsapp-button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--c-whatsapp); color: white; box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--c-whatsapp) 60%, transparent); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 150ms ease; }
.floating-whatsapp-button:hover { background: #0f6535; }
.floating-whatsapp-button .contact-icon { width: 22px; height: 22px; }

/* ---------- Ratings & reviews ---------- */

.score-link,
.score-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.score-link { margin-top: 28px; }
.score-link:hover { color: inherit; }
.score-link:hover .score-link-text span { color: var(--c-text); }
.score-link-text { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; padding-left: 12px; border-left: 1px solid var(--c-line-strong); }
.score-link-text strong { font-size: 1.15rem; font-weight: 700; }
.score-link-text span, .score-mini span { color: var(--c-muted); font-size: 0.9rem; }
.star-row { display: inline-flex; gap: 2px; }
.star { position: relative; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.star svg { display: block; width: 100%; height: 100%; }
.star .base { fill: color-mix(in srgb, var(--c-text) 14%, white); }
.star .fill { fill: #e5a12b; }
.star.is-empty .fill { display: none; }
.star.is-half .fill { clip-path: inset(0 50% 0 0); }
.site-footer .star .base, .score-plate .star .base { fill: color-mix(in srgb, white 22%, transparent); }
.site-footer .score-mini span { color: var(--c-on-dark-muted); }

.voices { display: grid; gap: 32px; }
.voices h2 { margin-bottom: 24px; }
.voice-lead {
  position: relative;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  padding-left: 22px;
  border-left: 3px solid var(--c-accent);
  max-width: 34ch;
}
.voice-who { margin: 0; font-weight: 600; font-size: .95rem; color: var(--c-text); }
.voice-lead + .voice-who { color: var(--c-muted); padding-left: 25px; margin-bottom: 24px; }
.voice-list { display: grid; }
.voice {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--c-line);
}
.voice p:last-child { margin: 0; color: var(--c-muted); }
.review-leave { margin-top: 32px; }
.review-intro { display: grid; gap: 28px; }
.score-plate {
  background: var(--c-deep);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  align-self: start;
}
.score-figure {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 14px 0 6px;
}
.score-plate .muted { color: var(--c-on-dark-muted); margin: 0; }

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

@media (min-width: 640px) {
  :root { --section-y: 72px; }
  .hero-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-benefits li { padding: 22px 24px 22px 0; border-bottom: 0; }
  .hero-benefits li + li { padding-left: 24px; border-left: 1px solid var(--c-line); }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .trust, .cards, .docs, .reviews, .tiers, .gallery { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr .8fr 1fr; }
  .brand img { height: 50px; }
  .quote-band, .programs-band { grid-template-columns: 1fr auto; padding: 44px; }
  .rabla-band, .parts-callout, .waste-callout { padding: 44px; }
  .cta-band { padding: 40px; }
  .authorization-band { grid-template-columns: auto 1fr auto; padding: 32px; gap: 24px; }
  .authorization-band .btn { grid-column: auto; }
  .contact-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .hero-art { min-height: 300px; aspect-ratio: auto; padding: 40px 10px 70px; }
  .hero-car { width: 100%; max-height: none; margin-top: 10px; }
  .hero-art-note { left: 14px; right: 14px; bottom: 14px; }
}

@media (min-width: 1024px) {
  :root { --section-y: 96px; --header-h: 80px; }
  body, body.no-callbar { padding-bottom: 0; }
  .callbar { display: none; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
  }
  .site-nav a {
    padding: 8px 10px;
    font-size: .97rem;
    border: 0;
    color: var(--c-muted);
  }
  .site-nav a:hover { color: var(--c-text); }
  .site-nav a[aria-current="page"] { color: var(--c-text); }
  .site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-primary);
  }
  .header-phone {
    display: inline-flex;
    margin-left: 12px;
    text-decoration: none;
    background: var(--c-primary);
    color: white;
    border-radius: var(--radius-sm);
    min-height: 44px;
    padding: 0 16px;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 150ms ease;
  }
  .header-phone:hover { color: white; background: var(--c-deep); }
  .header-phone .contact-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .brand img { height: 56px; max-width: 300px; }

  .hero { padding: 72px 0 0; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .hero-art-tag { display: block; right: 18px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: .6rem; }
  .hero-benefits { margin-top: 64px; }

  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .eco-grid, .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .contact-grid { align-items: start; gap: 48px; }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 48px; }
  .cta-band .actions { margin-top: 0; }
  .quote-actions { min-width: 280px; }
  .page-hero { padding: 72px 0 56px; }
  .voices, .review-intro { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .voice { grid-template-columns: 11rem 1fr; gap: 24px; align-items: baseline; }
  .process-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .floating-whatsapp { bottom: 24px; }
  .whatsapp-options-panel { bottom: 88px; }
}

@media (max-width: 1023px) {
  .floating-whatsapp { display: none; }
}

@media (min-width: 1440px) {
  :root { --container: 1200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Motion ---------- */

/* Header gains a soft shadow once the page scrolls */
.site-header { transition: box-shadow 200ms ease, background-color 200ms ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px color-mix(in srgb, var(--c-text) 35%, transparent); }

/* Hero entrance: copy rises in sequence, art slides in */
.hero-grid > div:first-child > * { animation: hero-rise 700ms cubic-bezier(.2,.7,.2,1) both; }
.hero-grid > div:first-child > :nth-child(1) { animation-delay: 60ms; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: 140ms; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: 220ms; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: 300ms; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: 380ms; }
.hero-art { animation: hero-arrive 900ms 200ms cubic-bezier(.2,.7,.2,1) both; }
.hero-art-note { animation: hero-rise 600ms 900ms cubic-bezier(.2,.7,.2,1) both; }
.hero-art-dot { animation: dot-pulse 2.4s 1.6s ease-in-out infinite; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-arrive { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, #2fa864 22%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #2fa864 0%, transparent); } }
@keyframes grabber-swing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }

/* Hero photo slideshow (images from admin → Imagini și galerie) */
.hero-art.has-photos { background-image: none; }
.hero-art.has-photos .hero-art-tag { display: none; }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 45%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms ease, transform 6000ms linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

/* Scroll reveal (classes added by site.js; content stays visible without JS) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(.2,.7,.2,1), transform 650ms cubic-bezier(.2,.7,.2,1), border-color 160ms ease, box-shadow 160ms ease, translate 180ms ease;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms;
}
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal.is-in:hover { translate: 0 -3px; }

/* Hero scene: a worker pushes the old car toward the tow-truck ramp, on a 6s loop */
.hero-art:not(.has-photos) { padding: 56px 12px 92px; }
.hero-art:not(.has-photos) .hero-car { width: 100%; max-height: none; }
.hero-ground { fill: none; stroke: color-mix(in srgb, white 22%, transparent); stroke-width: 3; stroke-linecap: round; }
.hero-truck-chassis { fill: #9fb8a7; }
.hero-truck-cab { fill: #d5dfd5; stroke: #ffffff; stroke-width: 2.5; stroke-linejoin: round; }
.hero-truck-window { fill: var(--c-deep); }
.hero-truck-bed { fill: var(--c-accent); }
.hero-truck-ramp { fill: none; stroke: var(--c-accent); stroke-width: 6; stroke-linecap: round; }
.hero-truck .hero-wheel { stroke-width: 4; }
.hero-truck .hero-wheel.hub { stroke-width: 2; }
.hero-wheel-spoke { fill: none; stroke: #6f8a7a; stroke-width: 4; stroke-linecap: round; }
.hero-man path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-man-leg { stroke: #c9d3cb; stroke-width: 8; }
.hero-man-body { stroke: var(--c-accent); stroke-width: 15; }
.hero-man-arm { stroke: #f1f3ec; stroke-width: 7; }
.hero-man-arm-far { stroke: #b7c7bb; }
.hero-man-head { fill: #f1f3ec; }

.hero-push { animation: push-move 6s linear infinite; }
.hero-wheel-spin { transform-box: fill-box; transform-origin: center; animation: push-wheel 6s linear infinite; }
.hero-man-leg { transform-box: fill-box; animation: push-step-back 6s linear infinite; }
.hero-man-leg-back { transform-origin: 0 0; }
.hero-man-leg-front { transform-origin: 100% 0; animation-name: push-step-front; }
.hero-man { animation: push-effort 6s linear infinite; }

@keyframes push-move {
  0% { transform: translateX(0); opacity: 1; }
  70%, 82% { transform: translateX(-30px); opacity: 1; }
  90% { transform: translateX(-30px); opacity: 0; }
  91% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes push-wheel {
  0% { transform: rotate(0deg); }
  70%, 90% { transform: rotate(-98deg); }
  91%, 100% { transform: rotate(0deg); }
}
@keyframes push-step-back {
  0%, 23%, 47%, 70%, 100% { transform: rotate(0deg); }
  12%, 35%, 58% { transform: rotate(-14deg); }
}
@keyframes push-step-front {
  0%, 23%, 47%, 70%, 100% { transform: rotate(0deg); }
  12%, 35%, 58% { transform: rotate(16deg); }
}
@keyframes push-effort {
  0%, 23%, 47%, 70%, 100% { transform: translateY(0); }
  12%, 35%, 58% { transform: translateY(-2px); }
}

/* The hero scene keeps moving even when the device asks for reduced motion (client request).
   Only this scene is exempt; scroll reveals and the hero entrance still respect the setting. */
@media (prefers-reduced-motion: reduce) {
  .hero-push { animation: push-move 6s linear infinite !important; }
  .hero-wheel-spin { animation: push-wheel 6s linear infinite !important; }
  .hero-man-leg-back { animation: push-step-back 6s linear infinite !important; }
  .hero-man-leg-front { animation: push-step-front 6s linear infinite !important; }
  .hero-man { animation: push-effort 6s linear infinite !important; }
}

/* Alegere număr: telefon și WhatsApp */
.whatsapp-options-panel a > span, .phone-options-panel a > span { display: grid; gap: 1px; line-height: 1.25; }
.whatsapp-options-panel strong, .phone-options-panel strong { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.whatsapp-options-panel small, .phone-options-panel small { font-size: .78rem; color: var(--c-muted); font-weight: 500; }
.phone-options-panel { left: max(20px, env(safe-area-inset-left)); right: auto; bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom) + 12px); }
.phone-options-panel a { position: relative; padding-right: 64px; }
.phone-options-panel .contact-icon { width: 20px; height: 20px; color: var(--c-deep); }
.phone-options-panel a::after { content: "Sună"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--c-deep); color: white; font-size: .8rem; font-weight: 600; }
.whatsapp-options-panel a { position: relative; padding-right: 92px; }
.whatsapp-options-panel a::after { content: "Scrie-ne"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--c-whatsapp); color: white; font-size: .8rem; font-weight: 600; }
.callbar button.call { font: inherit; cursor: pointer; }
button.header-phone { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 1024px) {
  .phone-options-panel { left: auto; right: max(24px, calc((100vw - var(--container, 1200px)) / 2)); top: calc(var(--header-h) + 8px); bottom: auto; }
}
.btn-whatsapp { background: var(--c-whatsapp); color: white; border: 0; }
.btn-whatsapp:hover { background: #0f6535; color: white; }
.parts-callout > .btn { margin-top: 28px; }
.parts-callout .btn-whatsapp, .waste-callout .btn-whatsapp { box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 10px 24px -12px rgba(0,0,0,.5); }
.whatsapp-options-panel.is-anchored, .phone-options-panel.is-anchored { position: absolute; right: auto; bottom: auto; }

/* ---------- Cookie consent ---------- */

.footer-cookie-settings { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--c-on-dark-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cookie-settings:hover { color: var(--c-on-dark); }
.legal-updated { margin-top: -8px; color: var(--c-muted); font-size: .95rem; }
.legal-cookies { margin-bottom: 32px; }
.table-scroll { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cookie-table th, .cookie-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.cookie-table th { color: var(--c-muted); font-weight: 600; white-space: nowrap; }
.cookie-table td:first-child { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }

.cookie-banner { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; padding: 16px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -12px 32px -16px color-mix(in srgb, var(--c-text) 30%, transparent); }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner-inner { max-width: var(--container); margin: 0 auto; display: grid; gap: 14px; }
.cookie-banner h2 { margin: 0 0 6px; font-size: 1.1rem; }
.cookie-banner p { margin: 0; color: var(--c-muted); font-size: .95rem; line-height: 1.5; }
.cookie-banner a { color: var(--c-primary); text-decoration: underline; }
.cookie-banner-actions, .cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner-actions .btn, .cookie-modal-actions .btn { flex: 1 1 140px; }

.cookie-modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 16px; }
.cookie-modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--c-text) 55%, transparent); }
.cookie-modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); box-shadow: var(--shadow); }
.cookie-modal-dialog:focus { outline: none; }
.cookie-modal-dialog h2 { margin: 0 0 8px; font-size: 1.3rem; }
.cookie-modal-dialog > p { margin: 0 0 16px; color: var(--c-muted); }
.cookie-option { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--c-line); }
.cookie-option h3 { margin: 0 0 4px; font-size: 1rem; }
.cookie-option p { margin: 0; color: var(--c-muted); font-size: .92rem; }
.cookie-modal-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line); }

.cookie-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 48px; height: 28px; margin-top: 2px; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.cookie-switch .cookie-track { position: absolute; inset: 0; border-radius: 999px; background: var(--c-line-strong); transition: background-color 150ms ease; }
.cookie-switch .cookie-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: var(--shadow-sm); transition: transform 150ms ease; }
.cookie-switch input:checked + .cookie-track { background: var(--c-primary); }
.cookie-switch input:checked + .cookie-track::after { transform: translateX(20px); }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + .cookie-track { opacity: .6; }
.cookie-switch input:focus-visible + .cookie-track { outline: 3px solid color-mix(in srgb, var(--c-primary) 45%, transparent); outline-offset: 2px; }

@media (min-width: 768px) {
  .cookie-banner-inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cookie-banner-actions { flex-wrap: nowrap; }
  .cookie-banner-actions .btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-switch .cookie-track, .cookie-switch .cookie-track::after { transition: none; }
}
.cookie-banner .btn-ghost, .cookie-modal .btn-ghost { border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-text); }
.cookie-banner .btn-ghost:hover, .cookie-modal .btn-ghost:hover { border-color: var(--c-text); }
