/* ==========================================================================
   ENERGY EMIRO RENT-A-CAR — stiluri
   Direcție vizuală: industrial, grafit închis + off-white, accent ambră.
   Mobile-first. Nu e nevoie de niciun build step.
   ========================================================================== */

:root {
  /* ---- Culori ---- */
  --grafit-900: #14161a;
  --grafit-800: #1b1e23;
  --grafit-700: #22252a;
  --grafit-600: #2c3037;
  --linie: #383d45;
  --offwhite: #f4f2ee;
  --text: #e9e7e2;
  --text-mut: #a8adb5;
  --ambra: #f0a02a;
  --ambra-dark: #c97d10;
  --ambra-text: #1a1206;
  --verde-wa: #25d366;

  /* ---- Tipografie (scală fluidă) ---- */
  --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);

  /* ---- Spațiere (bază 4px) ---- */
  --space-1: .25rem; --space-2: .5rem;  --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem;  --space-10: 2.5rem;
  --space-12: 3rem;  --space-16: 4rem;  --space-20: 5rem;  --space-24: 6rem;

  --radius: 4px;
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grafit-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  /* spațiu pentru bara sticky de contact pe mobil */
  padding-bottom: 76px;
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }

a { color: var(--ambra); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

/* Focus vizibil peste tot — accesibilitate */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--ambra);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--space-5); }

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

.eyebrow {
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ambra); font-weight: 700; margin: 0 0 var(--space-3);
}

section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
#catalog { position: relative; z-index: 1; }
.sec-title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.sec-intro { color: var(--text-mut); max-width: 62ch; margin: 0 0 var(--space-8); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 22, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.header-right { display: flex; align-items: center; gap: var(--space-3); flex: none; margin-left: auto; flex-wrap: nowrap; }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  width: 42px; height: 28px; padding: 0; border: 1px solid rgba(255,255,255,.45);
  border-radius: 3px; overflow: hidden; background: #012169; cursor: pointer;
  line-height: 0; flex: none;
}
.lang-btn svg { width: 42px; height: 28px; display: block; }
.lang-btn:hover { border-color: #6a7180; }
.lang-btn[aria-pressed="true"] {
  border-color: var(--ambra);
  box-shadow: 0 0 0 1px var(--ambra);
}
.logo { display: flex; align-items: center; gap: var(--space-3); color: var(--offwhite); }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-txt b { font-family: var(--font-display); font-size: 1rem; letter-spacing: .01em; }
.logo-txt b { white-space: nowrap; }
.logo-txt span { white-space: nowrap; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mut); }
.header-nav { display: none; gap: var(--space-6); }
.header-nav a { color: var(--text-mut); font-size: var(--text-sm); font-weight: 600; }
.header-nav a:hover { color: var(--offwhite); text-decoration: none; }
/* CTA din header: ascuns pe mobil (bara de jos preia rolul), vizibil pe desktop.
   Specificitate mai mare decât .btn ca să nu fie suprascris. */
.header-inner .header-cta { display: none; }
@media (min-width: 860px) {
  .header-nav { display: flex; flex: 1; justify-content: center; }
  .header-inner .header-cta { display: inline-flex; }
}

/* ============================ BUTOANE ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; min-height: 46px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ambra); color: var(--ambra-text); }
.btn-primary:hover { background: #ffb43f; }
.btn-ghost { background: transparent; color: var(--offwhite); border-color: var(--linie); }
.btn-ghost:hover { border-color: var(--offwhite); background: rgba(255,255,255,.04); }
.btn-wa { background: transparent; color: var(--offwhite); border-color: #2f6b46; }
.btn-wa:hover { background: rgba(37, 211, 102, .12); border-color: var(--verde-wa); }
.btn-sm { padding: var(--space-2) var(--space-4); min-height: 42px; }
.btn svg { flex: none; }

/* ============================ HERO ============================ */
.hero { position: relative; padding: 0; border-bottom: 1px solid var(--linie); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,22,26,.78) 0%, rgba(20,22,26,.42) 48%, rgba(20,22,26,.22) 100%),
    linear-gradient(180deg, rgba(20,22,26,.28) 0%, rgba(20,22,26,.48) 62%, rgba(20,22,26,.92) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--space-8);
  align-items: center;
  padding-top: clamp(var(--space-12), 8vw, var(--space-24));
  padding-bottom: var(--space-4);
}
.hero h1 { font-size: var(--text-2xl); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--ambra); }
.hero p.lead { font-size: var(--text-lg); color: #d5d3cd; max-width: 52ch; margin: var(--space-5) 0 var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-mut); }
.hero-card {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  width: 100%; max-width: 360px; margin-inline: auto;
  min-height: 0;
  padding: var(--space-4) var(--space-5);
  background: rgba(20, 22, 26, .01);
  border: 1mm solid var(--ambra);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .28);
}
.hero-card-title,
.hero-card-date,
.hero-card-time { margin: 0; width: 100%; text-align: center; }
.hero-card-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--offwhite);
}
.hero-card-date {
  margin-top: var(--space-1);
  font-size: var(--text-sm); color: var(--ambra); text-transform: lowercase;
}
.hero-card-time {
  margin-top: var(--space-2);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  letter-spacing: .04em; color: var(--offwhite); line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 340px);
    gap: var(--space-10);
    padding-bottom: var(--space-8);
  }
  .hero-card { margin-inline: 0 0; max-width: none; }
}

/* ============================ BARA DE ÎNCREDERE ============================ */
.trust { position: relative; z-index: 1; background: var(--grafit-800); border-bottom: 1px solid var(--linie); padding-block: 0; }
.trust-grid { display: grid; grid-template-columns: 1fr; }
.trust-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--linie); display: flex; gap: var(--space-3); align-items: flex-start; }
.trust-item:last-child { border-bottom: 0; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: var(--text-base); color: var(--offwhite); line-height: 1.2; }
.trust-item span { font-size: var(--text-sm); color: var(--text-mut); line-height: 1.4; }
.trust-ico { color: var(--ambra); flex: none; margin-top: 2px; }
@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
  .trust-item { border-bottom: 0; padding-block: var(--space-5); }
}

/* ============================ FILTRE ============================ */
.filters { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  background: var(--grafit-700); color: var(--text-mut); border: 1px solid var(--linie);
  border-radius: 999px; padding: var(--space-2) var(--space-4); font: inherit;
  font-size: var(--text-sm); font-weight: 600; cursor: pointer; min-height: 42px;
  user-select: none;
}
.chip:hover { color: var(--offwhite); border-color: #545b66; }
.chip[aria-pressed="true"] { background: var(--ambra); color: var(--ambra-text); border-color: var(--ambra); }
.search-wrap { position: relative; max-width: 420px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-mut); }
#q {
  width: 100%; background: var(--grafit-700); border: 1px solid var(--linie); color: var(--text);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4) var(--space-3) 40px;
  font: inherit; font-size: var(--text-sm); min-height: 46px;
}
#q::placeholder { color: #7f858e; }
#q:focus { border-color: var(--ambra); }
.count { font-size: var(--text-sm); color: var(--text-mut); margin: 0 0 var(--space-6); }
.count b { color: var(--offwhite); }

/* ============================ CARDURI VEHICULE ============================ */
.grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--grafit-800); border: 1px solid var(--linie); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.card[hidden] { display: none !important; }
.card:hover { border-color: #565d68; transform: translateY(-2px); }
.card-media { position: relative; background: var(--grafit-700); }
.card-media img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
  background: var(--grafit-700);
}
.card-media img.img-lipsa {
  /* placeholder alb pentru vehiculele fără fotografie încă */
  object-fit: cover; background: #fff;
}
.badge {
  position: absolute; left: var(--space-3); top: var(--space-3);
  background: rgba(20,22,26,.88); border: 1px solid var(--linie); color: var(--offwhite);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.card.inchiriata .card-media img { filter: grayscale(.55) brightness(.72); }
.sticker-inchiriata {
  position: absolute; top: 22px; right: -42px; z-index: 2;
  transform: rotate(32deg); transform-origin: center;
  background: var(--ambra); color: var(--ambra-text);
  font-family: var(--font-display); font-size: .8125rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 48px; box-shadow: 0 2px 10px rgba(0,0,0,.4);
  pointer-events: none;
}
.card-body { padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.card-title { font-family: var(--font-display); font-size: 1rem; color: var(--offwhite); overflow-wrap: anywhere; line-height: 1.15; }
.card-year { font-size: .75rem; color: var(--text-mut); font-weight: 700; flex: none; }
.card-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.price { font-family: var(--font-display); font-size: .75rem; color: var(--ambra); font-weight: 800; margin: 0; line-height: 1.3; }
.price.cerere { color: var(--offwhite); }

.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.specs li { font-size: .75rem; color: var(--text-mut); display: flex; align-items: baseline; gap: 5px; overflow-wrap: anywhere; line-height: 1.2; }
.specs .k { color: #7f858e; font-size: .625rem; text-transform: uppercase; letter-spacing: .04em; }
.specs .v { color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); flex: none; display: inline-block; align-self: center; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; min-width: 0; }
.card-actions .btn { min-height: 32px; padding: 3px 8px; font-size: .75rem; }

.empty { border: 1px dashed var(--linie); border-radius: var(--radius); padding: var(--space-10) var(--space-5); text-align: center; color: var(--text-mut); }

/* ============================ PAȘI ============================ */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-5); counter-reset: pas; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border: 1px solid var(--linie); border-top: 3px solid var(--ambra); padding: var(--space-5); background: var(--grafit-800); }
.step-n { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ambra); display: block; margin-bottom: var(--space-2); }
.step h3 { font-size: var(--text-base); color: var(--offwhite); margin-bottom: var(--space-2); font-weight: 800; }
.step p { margin: 0; font-size: var(--text-sm); color: var(--text-mut); }

/* ============================ CONDIȚII ============================ */
.conditions { background: var(--grafit-800); border-block: 1px solid var(--linie); }
.cond-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 800px) { .cond-list { grid-template-columns: 1fr 1fr; gap: 0 var(--space-10); } }
.cond-list li { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--linie); }
.cond-list svg { color: var(--ambra); flex: none; margin-top: 4px; }
.cond-list b { color: var(--offwhite); display: block; font-size: var(--text-sm); }
.cond-list span { font-size: var(--text-sm); color: var(--text-mut); }
.cond-note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-mut); }

/* ============================ FAQ ============================ */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--linie); border-radius: var(--radius); background: var(--grafit-800); margin-bottom: var(--space-3); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5);
  font-weight: 700; color: var(--offwhite); font-size: var(--text-base);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--ambra); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--text-mut); font-size: var(--text-sm); }

/* ============================ CTA BANDĂ ============================ */
.cta-band { background: var(--ambra); color: var(--ambra-text); }
.cta-band h2 { font-size: var(--text-xl); color: var(--ambra-text); }
.cta-band p { max-width: 56ch; color: #3a2a08; margin: var(--space-3) 0 var(--space-6); }
.cta-band .btn-primary { background: var(--grafit-900); color: var(--offwhite); }
.cta-band .btn-primary:hover { background: #000; }
.cta-band .btn-ghost { color: var(--ambra-text); border-color: rgba(26,18,6,.4); }
.cta-band .btn-ghost:hover { background: rgba(0,0,0,.06); border-color: var(--ambra-text); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--grafit-900); border-top: 1px solid var(--linie); padding-block: var(--space-12) var(--space-8); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--text-mut); margin-bottom: var(--space-4); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer li, .site-footer p { font-size: var(--text-sm); color: var(--text-mut); }
.site-footer a { color: var(--text); }
.foot-bottom { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--linie); font-size: var(--text-xs); color: #7f858e; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; }

/* ============================ WHATSAPP FLOTANT ============================ */
.fab {
  position: fixed; right: 16px; bottom: 88px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--verde-wa); color: #05320f;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.fab:hover { background: #3ae57a; text-decoration: none; }
@media (min-width: 768px) { .fab { bottom: 24px; right: 24px; width: 60px; height: 60px; } }

/* ============================ BARĂ STICKY MOBIL ============================ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: rgba(20,22,26,.97); border-top: 1px solid var(--linie);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
