/* MACAS AUTO — stilul comun al site-ului.
   Folosit de prima pagină, stoc, pagina unui autovehicul, 404 și confidențialitate.
   Fontul e Plus Jakarta Sans, colțurile sunt rotunjite, butoanele sunt complet rotunde. */

:root {
  --bg: #f3f5f7;
  --paper: #fff;
  --ink: #14161a;
  --ink-2: #41464f;
  --muted: #52575f;
  --label: #5f6672;
  --line: #e8eaee;
  --line-2: #e3e6ea;
  --acc: #d2460f;
  --acc-d: #ad380b;
  --acc-tint: #fdf0ea;
  --wa: #25d366;
  --wa-d: #1fbb59;
  --wa-ink: #05301b;
  --ok: #0e9f55;
  --ok-bg: #e8f6ee;
  --ok-ink: #0b6b3a;
  --star: #e8930c;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 18px 40px -26px rgba(16,24,40,.5);
  --shadow-up: 0 2px 6px rgba(16,24,40,.05), 0 30px 60px -28px rgba(16,24,40,.55);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--acc); }
a:hover { color: var(--acc-d); }
button, input, select { font-family: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* ---------- butoane rotunde ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; text-decoration: none; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.pill svg { width: 17px; height: 17px; flex: none; }
.pill:hover { transform: translateY(-1px); }
.pill-lg { min-height: 56px; padding: 0 28px; font-size: 15.5px; }
.pill-acc { background: var(--acc); color: #fff !important; box-shadow: 0 10px 24px -12px rgba(210,70,15,.8); }
.pill-acc:hover { background: var(--acc-d); }
.pill-ghost { background: var(--paper); color: var(--ink) !important; box-shadow: var(--shadow-sm), 0 8px 20px -14px rgba(16,24,40,.35); }
.pill-dark { background: var(--ink); color: #fff !important; }
.pill-dark:hover { background: #262a31; }
.pill-wa { background: var(--wa); color: var(--wa-ink) !important; box-shadow: 0 12px 26px -14px rgba(37,211,102,.9); }
.pill-wa:hover { background: var(--wa-d); }
.pill-out { background: var(--paper); color: var(--ink) !important; border: 1.5px solid var(--line-2); }
.pill-out:hover { border-color: #c9ced6; }

/* ---------- bara de sus a paginilor interioare ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(243,245,247,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px clamp(18px, 4vw, 40px); }
.bar-logo img { height: 24px; width: auto; }
.bar-r { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) {
  .bar-in { min-height: 58px; }
  .bar-tel span { display: none; }
  .bar-tel { width: 44px; padding: 0; }
}

/* ---------- carduri cu autovehicule ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--paper); border-radius: 24px; padding: 12px; text-decoration: none; color: var(--ink) !important; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
.card[hidden] { display: none !important; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #eceef1; flex: none; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.card.sold .card-img img { filter: grayscale(.45); opacity: .92; }
.card-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b4b9c2; }
.card-ph svg { width: 42px; height: 42px; }
.card-ph span { font-size: 12.5px; }
.card-badge-marca { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 13px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.card-badge-status { position: absolute; top: 12px; right: 12px; border-radius: 999px; padding: 6px 13px; font-size: 11.5px; font-weight: 700; }
.card-badge-vandut { background: #fdeceb; color: #a8261c; }
.card-badge-rez { background: #fff4d6; color: #8a5a00; }
.card-badge-comanda { background: #e6f0ff; color: #1b4fa8; }
.card-nrpoze { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(20,22,26,.72); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; }
.card-nrpoze svg { width: 13px; height: 13px; }
.card-body { padding: 16px 10px 8px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 16px; }
.card-tags span { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.card-tags svg { width: 13px; height: 13px; stroke: #878d97; flex: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edeff2; padding-top: 14px; margin-top: auto; }
.card-price { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card-price small { font-size: 12.5px; font-weight: 600; color: var(--label); margin-left: 5px; letter-spacing: 0; }
.card-price.cerere { font-size: 16px; font-weight: 700; color: var(--label); }
.card-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--acc); }
.card-cta svg { width: 15px; height: 15px; transition: transform .2s; }
.card:hover .card-cta svg { transform: translateX(3px); }

/* schelet cât timp se încarcă cardurile */
.skel-card { background: var(--paper); border-radius: 24px; padding: 12px; box-shadow: var(--shadow-sm); }
.skel-img { aspect-ratio: 4 / 3; border-radius: 16px; }
.skel-body { padding: 16px 10px 8px; display: grid; gap: 12px; }
.skel-line { height: 12px; border-radius: 6px; }
.skel-line.w70 { width: 70%; } .skel-line.w45 { width: 45%; } .skel-line.w55 { width: 55%; }
.skel-img, .skel-line { background: linear-gradient(90deg, #eceef1 25%, #f6f7f9 37%, #eceef1 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- titluri de secțiune ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.sec-head p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- garanții ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.trust-item { background: var(--paper); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.trust-ic { width: 46px; height: 46px; border-radius: 15px; background: var(--acc-tint); display: grid; place-items: center; margin-bottom: 14px; }
.trust-ic svg { width: 22px; height: 22px; stroke: var(--acc); }
.trust-item b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.trust-item span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 920px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .trust { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .trust-item { display: flex; align-items: center; gap: 13px; padding: 16px; }
  .trust-ic { margin: 0; flex: none; }
}

/* ---------- recenzii ---------- */
.rev-head { text-align: center; margin-bottom: 28px; }
.rev-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.rev-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.rev-card { background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.rev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rev-av { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; flex: none; }
.rev-name { font-size: 15px; font-weight: 700; }
.rev-src { font-size: 12.5px; color: var(--label); }
.stars { display: flex; gap: 3px; margin-bottom: 12px; }
.stars svg { width: 16px; height: 16px; fill: var(--star); }
.rev-text { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.rev-more { display: flex; justify-content: center; margin-top: 30px; }
.rating { display: inline-flex; align-items: center; gap: 11px; background: var(--paper); border-radius: 999px; padding: 13px 24px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink) !important; box-shadow: var(--shadow-sm), 0 16px 34px -22px rgba(16,24,40,.5); transition: transform .2s; }
.rating:hover { transform: translateY(-2px); }
.rating b { font-size: 16.5px; font-weight: 800; }
.rating .stars { margin: 0; }
.rating > svg { width: 15px; height: 15px; }
@media (max-width: 920px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- banda de contact ---------- */
.contact { background: var(--ink); border-radius: 32px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); align-items: center; color: #fff; }
.contact h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.contact p { margin-top: 14px; color: #b4b9c2; font-size: 15.5px; line-height: 1.6; max-width: 44ch; }
.contact-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-info { background: rgba(255,255,255,.06); border-radius: 22px; padding: 22px 24px; display: grid; gap: 14px; }
.contact-info div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14.5px; }
.contact-info dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a3a9b4; }
.contact-info a { color: #fff; text-decoration: none; }
.contact-info a:hover { color: #ff8243; }
@media (max-width: 920px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- subsol legal ---------- */
.legal { text-align: center; padding: 34px 20px 40px; color: var(--label); font-size: 12.5px; line-height: 1.8; }
.legal b { color: var(--ink); font-weight: 700; }
.legal a { color: var(--label); text-decoration: none; }
.legal a:hover { color: var(--acc); }
.legal .legal-links { margin-top: 10px; }

/* ---------- WhatsApp plutitor (desktop) ---------- */
.wa-fab { position: fixed; right: clamp(18px, 2.4vw, 30px); bottom: clamp(18px, 2.4vw, 30px); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6), 0 4px 12px -4px rgba(0,0,0,.2); transition: transform .2s; }
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- bară fixă jos pe telefon ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 9px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(243,245,247,.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.mbar a, .mbar button { flex: 1; min-height: 50px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.mbar svg { width: 18px; height: 18px; }
.mbar .mbar-wa { background: var(--wa); color: var(--wa-ink); }
.mbar .mbar-tel { background: var(--acc); color: #fff; }
.mbar .mbar-share { flex: 0 0 52px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 760px) {
  .mbar { display: flex; }
  body.has-mbar { padding-bottom: 76px; }
  .wa-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
