/* ============================================================
   ScuterCluj — sistem de design
   Paleta: asfalt (bookend dark) + fog (corp pagina, deschis) + semnal portocaliu (singurul accent)
   Tipografie: Archivo (display) / Public Sans (text) / Space Mono (preturi, date)
   ============================================================ */

@import url('/assets/fonts/fonts.css');

:root {
  --ink: #14161B;
  --ink-2: #23262E;
  --fog: #EEF0F2;
  --fog-2: #E1E4E9;
  --paper: #FFFFFF;
  --muted: #5B5F68;
  --muted-dark: #9CA1AC;
  --line: #DBDFE5;
  --line-dark: #383C46;
  --signal: #FF5A1F;
  --signal-dark: #E2470E;
  --signal-ink: #7A2200;
  --success: #1F9D55;
  --error: #D5392B;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px -8px rgba(20, 22, 27, 0.18);
  --shadow-lg: 0 20px 48px -16px rgba(20, 22, 27, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- utilitati text ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-dark);
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

/* ---------- butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 90, 31, 0.55); }
.btn-signal:hover { background: var(--signal-dark); box-shadow: 0 14px 30px -8px rgba(255, 90, 31, 0.65); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 17px; }

/* ---------- header / navigatie ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 240, 242, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.brand__mark::after {
  content: '';
  position: absolute;
  left: 8px; top: 15px;
  width: 18px; height: 4px;
  border-radius: 2px;
  background: var(--signal);
  box-shadow: 0 -7px 0 -1px rgba(255,255,255,0.9), 0 7px 0 -1px rgba(255,255,255,0.55);
}
.brand__tag { display: none; }

.nav-desktop { display: none; }
.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle__lines { width: 18px; height: 13px; position: relative; }
.nav-toggle__lines span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__lines span:nth-child(1) { top: 0; }
.nav-toggle__lines span:nth-child(2) { top: 5.5px; }
.nav-toggle__lines span:nth-child(3) { top: 11px; }
.nav-open .nav-toggle__lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle__lines span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__lines span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.nav-open .nav-mobile { display: block; }
.nav-mobile__list { list-style: none; margin: 0; padding: 8px 0; }
.nav-mobile__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid var(--fog-2);
}
.nav-mobile__sub { list-style: none; margin: 0; padding: 0 20px 10px 32px; background: var(--fog); display: none; }
.nav-mobile__group.open .nav-mobile__sub { display: block; }
.nav-mobile__sub li a { display: block; padding: 11px 0; color: var(--muted); text-decoration: none; font-size: 15px; border-bottom: 1px dashed var(--line); }
.nav-mobile__caret { transition: transform 0.2s ease; color: var(--muted); }
.nav-mobile__group.open .nav-mobile__caret { transform: rotate(180deg); }
.nav-mobile__cta { padding: 16px 20px; }

@media (min-width: 960px) {
  .brand__tag { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 1px; }
  .nav-toggle, .nav-mobile { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 4px; }
  .nav-desktop__item { position: relative; }
  .nav-desktop__link {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 15px; border-radius: 999px;
    text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
    transition: background 0.15s ease;
  }
  .nav-desktop__link:hover { background: var(--fog-2); }
  .nav-desktop__caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
  .nav-desktop__item:hover .nav-desktop__caret { transform: rotate(225deg) translateY(2px); }
  .nav-desktop__dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
    min-width: 260px; background: var(--paper); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-desktop__item:hover .nav-desktop__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav-desktop__dropdown a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 500; }
  .nav-desktop__dropdown a:hover { background: var(--fog); color: var(--signal-dark); }
  .nav-cta { display: inline-flex; }
}

/* ---------- hero / traseu (elementul de semnatura) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 52px 0 78px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 18%, rgba(255,90,31,0.16), transparent 45%), radial-gradient(circle at 85% 75%, rgba(255,90,31,0.12), transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { color: var(--signal); }
.hero__eyebrow::before { background: var(--signal); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--signal); font-style: normal; }
.hero__lead {
  max-width: 540px;
  margin: 0 auto 30px;
  color: var(--muted-dark);
  font-size: 17px;
}
.hero__actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero__phone { color: var(--muted-dark); font-size: 14.5px; text-decoration: none; }
.hero__phone strong { color: #fff; font-family: var(--font-mono); }

/* linia de traseu — leaga sectiunile, cu waypoints spre destinatii reale */
.route {
  position: relative;
  max-width: 4px;
  width: 4px;
  margin: 0 auto;
  height: 46px;
}
.route svg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); overflow: visible; }
.route-line-path {
  stroke: var(--line);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}
.route-line-path--draw {
  stroke: var(--signal);
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.in-view .route-line-path--draw { stroke-dashoffset: 0; }
.route__dot {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--line);
}

/* ---------- sectiuni ---------- */
.section { padding: 58px 0; text-align: center; }
.section--tight { padding: 40px 0; }
.section-head { max-width: 620px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .section-head p { color: var(--muted-dark); }

/* reveal la scroll */
/* ascundem pt. animatie DOAR daca JS chiar a pornit (clasa .js pusa sincron in <head>) — fara ea, continutul ramane vizibil implicit */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.in-view { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1); }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.34s; }

/* ---------- carduri USP ---------- */
.usp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.usp-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.usp-card__icon {
  width: 46px; height: 46px; margin: 0 auto 14px;
  border-radius: 12px;
  background: #FFF1E8;
  color: var(--signal-dark);
  display: flex; align-items: center; justify-content: center;
}
.usp-card h3 { font-size: 17px; margin-bottom: 6px; }
.usp-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- carduri scutere ---------- */
.fleet-scroll {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 10px; margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
}
.fleet-scroll::-webkit-scrollbar { display: none; }
.scooter-card {
  scroll-snap-align: center;
  flex: 0 0 82%;
  max-width: 320px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.scooter-card__img { aspect-ratio: 4/3; background: var(--fog-2) center/cover; position: relative; }
.scooter-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: 999px;
}
.scooter-card__body { padding: 16px 18px 20px; }
.scooter-card__body h3 { font-size: 18px; margin-bottom: 4px; }
.scooter-card__specs { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.scooter-card__foot { display: flex; align-items: baseline; justify-content: space-between; }
.scooter-card__price { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--signal-dark); }
.scooter-card__price span { font-family: var(--font-body); font-weight: 500; font-size: 12.5px; color: var(--muted); }

@media (min-width: 720px) {
  .usp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .fleet-scroll { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 4px 0; margin: 0; }
  .scooter-card { flex: none; max-width: none; }
}

/* ---------- tabel rute (unde te duce un scuter) ---------- */
.routes-table { max-width: 560px; margin: 0 auto; text-align: left; }
.routes-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-dark);
}
.routes-row:last-child { border-bottom: none; }
.routes-row__dest { flex: 1; font-weight: 700; font-size: 15.5px; }
.routes-row__dest small { display: block; font-weight: 400; color: var(--muted-dark); font-size: 13px; margin-top: 2px; }
.routes-row__time { font-family: var(--font-mono); color: var(--signal); font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- formular cerere oferta (shell PHP + insula React) ---------- */
.quote-panel {
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 26px 20px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.quote-panel--skeleton { min-height: 360px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 54px 0 26px; text-align: center; }
.site-footer .brand { color: #fff; justify-content: center; margin-bottom: 14px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 30px; margin: 34px 0; text-align: center; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted-dark); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--signal); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-bottom a { color: var(--muted-dark); text-decoration: underline; }

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- pagini interioare (text stanga pe desktop, centrat pe mobil unde cere userul) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 44px 0 54px; text-align: center; }
.page-hero .eyebrow { color: var(--signal); }
.page-hero .eyebrow::before { background: var(--signal); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.2rem); }
.page-hero p { color: var(--muted-dark); max-width: 560px; margin: 12px auto 0; }

.prose { max-width: 700px; margin: 0 auto; text-align: left; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.3em; }
.prose p, .prose li { color: var(--ink); font-size: 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }

.breadcrumbs { font-size: 13px; color: var(--muted-dark); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted-dark); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- card generic ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; }

/* ---------- badge / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.badge--ok { background: #E7F7EE; color: var(--success); }
.badge--muted { background: var(--fog-2); color: var(--muted); }

@media (min-width: 720px) {
  .hero__actions { flex-direction: row; justify-content: center; }
}

/* ---------- formular (folosit si de insula React) ---------- */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--fog);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: var(--paper);
}
.textarea { resize: vertical; min-height: 80px; }
.field-error { color: var(--error); font-size: 12.5px; margin-top: 5px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.form-alert--error { background: #FDEDEB; color: var(--error); }

.quote-success { text-align: center; padding: 12px 4px; }
.quote-success__icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: #E7F7EE; color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.quote-success h3 { font-size: 20px; margin-bottom: 8px; }
.quote-success p { color: var(--muted); font-size: 14.5px; }
.quote-success .btn { margin-top: 14px; }
