/* =========================================================
   iMA Drive — stiluri
   ========================================================= */

:root {
  --bg: #120E0B;
  --bg-2: #17120E;
  --bg-card: #1B1511;
  --bg-footer: #0E0B09;
  --text: #F2EAE0;
  --text-2: #E0D6CA;
  --muted: #C9BEB1;
  --muted-2: #B8ADA1;
  --muted-3: #A89D91;
  --label: #D9CFC3;
  --gold: #D8B77E;
  --gold-hover: #F0D7A8;
  --on-gold: #1A130D;
  --line: rgba(216, 183, 126, 0.18);
  --line-2: rgba(216, 183, 126, 0.22);
  --line-3: rgba(216, 183, 126, 0.3);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

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

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.section { --pt: 100px; padding-top: var(--pt); padding-bottom: 40px; }
#interior { --pt: 120px; }
#servicii { --pt: 60px; }

.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
}

.h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08;
}
.lead { margin-top: 20px; color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--on-gold); }
.btn-ghost { border-color: rgba(242, 234, 224, 0.5); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: rgba(242, 234, 224, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 14, 11, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
.brand-name em { font-style: italic; color: var(--gold); }
.brand-tag { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-link { color: var(--label); text-decoration: none; }
.nav-link:hover { color: var(--gold); }

.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--line-3); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle-bar { display: block; width: 22px; height: 2px; background: var(--gold); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 24px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: rgba(18, 14, 11, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav .nav-link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 18px; min-height: 52px; }
}
@media (max-width: 380px) {
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(760px, 88vh);
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,14,11,0.25) 0%, rgba(18,14,11,0.35) 45%, rgba(18,14,11,0.96) 100%);
}
.hero-content { position: relative; width: 100%; padding-top: 140px; padding-bottom: 88px; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 {
  max-width: 820px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.01em;
}
.hero-text { margin-top: 24px; max-width: 600px; font-size: 19px; color: var(--text-2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 600px) {
  /* pe telefon textul urcă în partea de sus a primului ecran */
  .hero { min-height: calc(100svh - var(--header-h)); align-items: flex-start; }
  /* titlul sus; textul + butoanele jos, aliniate cu butoanele flotante din dreapta
     (marginea de jos = spațiul ocupat sub ele de butonul „Înapoi sus": 14 + 40 + 10 px) */
  .hero-content {
    display: flex; flex-direction: column;
    min-height: calc(100svh - var(--header-h));
    padding-top: 36px; padding-bottom: 64px;
  }
  .hero-bottom { margin-top: auto; padding-top: 28px; max-width: calc(100% - 52px); }
  .hero-eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: 40px; }
  .hero-text { margin-top: 18px; font-size: 17px; }
  /* butoane cu 25% mai înguste, aliniate la stânga: dreapta rămâne liberă pentru butoanele flotante */
  .hero-actions { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn { width: 100%; min-height: 48px; padding: 0 20px; }
}

/* ---------- Highlights ---------- */
.highlights { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights-grid {
  padding-top: 36px; padding-bottom: 36px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
}
.highlight { display: flex; flex-direction: column; gap: 4px; }
.highlight-value { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); }
.highlight-label { font-size: 14px; color: var(--muted); }
@media (max-width: 1100px) { .highlights-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } .highlight-value { font-size: 36px; } }

/* ---------- Interior ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > .split-text { flex: 1 1 420px; min-width: 0; }
.split > .split-media { flex: 1 1 480px; min-width: 0; }
.split-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .split { gap: 32px; } .split-media img { height: 280px; } }

.features {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.feature { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { color: var(--muted-2); font-size: 15px; }
.icon { color: var(--gold); flex: none; }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .features { grid-template-columns: 1fr; margin-top: 48px; } .feature { padding: 26px 22px; } }

.details { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.detail img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); }
.detail figcaption { display: flex; flex-direction: column; gap: 4px; }
.detail-title { font-size: 18px; font-weight: 600; }
.detail-text { color: var(--muted-2); font-size: 15px; }
@media (max-width: 760px) { .details { grid-template-columns: 1fr; } .detail img { height: 280px; } }

/* ---------- Chauffeur ---------- */
.chauffeur { padding-top: 80px; padding-bottom: 40px; }
.chauffeur-box {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 56px clamp(24px, 4vw, 64px);
}
.chauffeur-text { flex: 1 1 420px; min-width: 0; }
.chauffeur-text .h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; }
.checklist { flex: 1 1 340px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .icon { margin-top: 2px; }
@media (max-width: 600px) { .chauffeur-box { padding: 36px 22px; gap: 32px; } }

/* ---------- Services ---------- */
.cards-4 { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 10px;
}
.service-num { font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.service h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.15; }
.service p { color: var(--muted-2); font-size: 15px; }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .cards-4 { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 18px;
}
.price-card.is-featured { border-color: var(--gold); background: var(--bg-card); }
.price-card h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price-value { font-family: var(--serif); font-size: 52px; line-height: 1; }
.price-unit { color: var(--muted-2); }
.price-desc { color: var(--muted); font-size: 15px; }
.price-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); }
.price-list li::before { content: "·"; color: var(--gold); margin-right: 8px; }
.price-card .btn { margin-top: auto; min-height: 48px; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Gallery ---------- */
.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-item {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
}
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-item img { height: 220px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery-item img { height: 240px; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 6, 5, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18,14,11,0.85); border: 1px solid var(--line-3); color: var(--gold); cursor: pointer;
}
.lightbox-btn:hover { background: var(--gold); color: var(--on-gold); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

/* ---------- Steps ---------- */
.steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--gold); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { color: var(--muted-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Quote form ---------- */
.quote { --pt: 100px; padding-top: var(--pt); padding-bottom: 120px; }
.quote-box {
  display: flex; flex-wrap: wrap; gap: 56px;
  background: var(--bg-card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 64px);
}
.quote-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.quote-intro .eyebrow { margin: 0; }
.quote-intro .h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; }
.quote-intro p { color: var(--muted); }

.form { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .form legend { font-size: 13px; font-weight: 600; color: var(--label); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; width: 100%;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-3); border-radius: 4px; font: inherit;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8E8378; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(216,183,126,0.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #E08A6F; }
.field-error { color: #F0A58C; font-size: 13px; }
.req { color: var(--gold); }

.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: 10px; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(216,183,126,0.35); border-radius: 999px; cursor: pointer;
}
.radio-pill:has(input:checked) { border-color: var(--gold); background: rgba(216,183,126,0.08); }
.radio-pill input, .consent input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.consent { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); max-width: 440px; }
.consent input { margin-top: 3px; flex: none; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); font-size: 15px; }
.alert-success { background: rgba(120, 170, 110, 0.14); border: 1px solid rgba(150, 200, 140, 0.5); color: #D6EBCF; }
.alert-error { background: rgba(224, 138, 111, 0.12); border: 1px solid rgba(224, 138, 111, 0.5); color: #F6CDBF; }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
  .quote { --pt: 72px; padding-bottom: 96px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-footer); }
.footer-inner {
  padding-top: 48px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  font-size: 14px; color: var(--muted-3);
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand-name { font-size: 24px; color: var(--text); }
.footer-copy { font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.footer-nav a { color: var(--muted-3); }
.footer-nav a:hover { color: var(--gold); }
@media (max-width: 640px) { .footer-inner { padding-bottom: 120px; } }

/* ---------- Floating contact buttons ---------- */
.fab-group {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--gold);
  background: rgba(18, 14, 11, 0.92); color: var(--gold); text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform .15s, background .2s, color .2s, opacity .25s;
}
.fab:hover { transform: scale(1.08); background: var(--gold); color: var(--on-gold); }
.fab-main { width: 56px; height: 56px; background: var(--gold); color: var(--on-gold); }
.fab-main:hover { background: var(--gold-hover); }
.fab-top { width: 44px; height: 44px; border-color: rgba(216,183,126,0.5); box-shadow: none; }
.fab-top.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .fab-group { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 48px; height: 48px; }
  .fab-main { width: 54px; height: 54px; }
  .fab-top { width: 44px; height: 44px; }
}

/* ---------- Legal pages ---------- */
.legal { padding-top: 72px; padding-bottom: 96px; }
.legal-body { max-width: 780px; }
.legal-body h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin-bottom: 12px; }
.legal-body h2 { font-family: var(--serif); font-weight: 600; font-size: 28px; margin: 40px 0 12px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 20px; margin: 12px 0; }
.legal-body li + li { margin-top: 6px; }
.legal-meta { color: var(--muted-3); font-size: 14px; }
.legal-note { min-height: 52px;
  margin-top: 24px; padding: 14px 18px; border: 1px dashed var(--line-3);
  border-radius: var(--radius); color: var(--muted-2); font-size: 14px;
}

/* ---------- Ajustări mobil ---------- */
@media (max-width: 600px) {
  .eyebrow { letter-spacing: 0.18em; font-size: 12px; }
  .fab { width: 46px; height: 46px; }
  .fab-main { width: 50px; height: 50px; }
  .fab-top { width: 40px; height: 40px; }
  .fab svg { width: 20px; height: 20px; }
}
body.menu-open .fab-group { opacity: 0; pointer-events: none; }
.fab-group { transition: opacity .2s; }

/* Click în meniu: titlul secțiunii (ex. „TARIFE") se oprește la ~28px sub bara de sus */
.section[id], .quote[id] { scroll-margin-top: calc(var(--header-h) + 28px - var(--pt)); }
