/* ============================================================
   DD Cars - public website
   ============================================================ */

:root {
  --bg: #0a0f1a;
  --bg-alt: #0d1424;
  --surface: #111a2b;
  --surface-2: #16203a;
  --border: #233047;
  --border-gold: rgba(217, 200, 158, .18);
  --gold: #d9c89e;
  --gold-bright: #e9dcb9;
  --gold-dim: #b3a37e;
  --text: #ece9e1;
  --muted: #97a1b5;
  --danger: #e27272;
  --success: #7fc98f;
  --radius: 10px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
  --transition: .25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: #131a2a; }
.btn--gold:hover { background: var(--gold-bright); color: #131a2a; }
.btn--outline { border-color: var(--border-gold); color: var(--gold); background: transparent; }
.btn--outline:hover { border-color: var(--gold); background: rgba(217,200,158,.08); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--text); }
.btn--whatsapp { background: #25d366; color: #062e17; }
.btn--whatsapp:hover { background: #2ee77a; color: #062e17; }

.link-arrow {
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.link-arrow::after { content: '\2192'; transition: var(--transition); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar {
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
}
.topbar__inner { display: flex; justify-content: space-between; padding-top: .45rem; padding-bottom: .45rem; }
.topbar__right { display: flex; gap: 1.2rem; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--gold); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__dd {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--gold);
  padding-left: .28em;
}
.logo__cars {
  font-size: .62rem;
  letter-spacing: .55em;
  padding-left: .55em;
  color: var(--muted);
  font-weight: 600;
}

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  padding: .35rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); }

.header__cta { display: flex; align-items: center; gap: .7rem; }
.header__whatsapp { padding: .55rem 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,15,26,.94) 8%, rgba(10,15,26,.62) 45%, rgba(10,15,26,.25) 100%);
}
.hero__content { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 4rem; }
.hero__kicker {
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: .2rem;
}
.hero__title em { color: var(--gold); font-style: normal; }
.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--gold-dim);
  margin-bottom: 1.3rem;
}
.hero__text { max-width: 520px; color: #c9cfdb; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight { padding: 2.5rem 0 4rem; }
.section--tall { padding: 7rem 0; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.page-head {
  padding: 3.8rem 0 2.2rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(217,200,158,.06), transparent 60%);
}
.page-head__sub { color: var(--muted); max-width: 640px; margin-top: .6rem; }

/* ---------- Vehicle grid / cards ---------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  color: var(--text);
}
.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}
.vehicle-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vehicle-card__media img.is-placeholder { object-fit: contain; padding: 2.5rem; }
.vehicle-card:hover .vehicle-card__media img { transform: scale(1.05); }
.vehicle-card__price {
  position: absolute;
  left: .9rem; bottom: .9rem;
  background: rgba(10, 15, 26, .88);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .35rem .8rem;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}
.vehicle-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.vehicle-card__title { font-size: 1.25rem; margin-bottom: .1rem; }
.vehicle-card__version { color: var(--muted); font-size: .85rem; margin-bottom: .8rem; }
.vehicle-card__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .8rem;
}
.vehicle-card__specs li::before { content: '\2022'; color: var(--gold); margin-right: .4rem; }
.vehicle-card__specs li:first-child::before { content: none; margin: 0; }

.badge {
  position: absolute;
  top: .9rem; left: .9rem;
  padding: .3rem .7rem;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge--reserved { background: rgba(226, 168, 75, .95); color: #2a1e05; }
.badge--sold { background: rgba(120, 120, 120, .95); color: #fff; }
.badge--lg { font-size: .85rem; padding: .45rem 1rem; }

/* ---------- USP / value cards ---------- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.2rem;
  text-align: center;
}
.usp__icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.usp h3 { margin-bottom: .5rem; }
.usp p { color: var(--muted); font-size: .92rem; }

.value-cards { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.value-card {
  flex: 1;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.value-card h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: .2rem; }
.value-card p { color: var(--muted); font-size: .88rem; }

/* ---------- About split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-split__text p { color: var(--muted); margin-bottom: 1rem; }
.about-split__text h2 { margin-bottom: 1rem; }
.about-split__text .link-arrow { margin-top: .6rem; }
.about-split__media img {
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
}
.service:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.service h3 { color: var(--gold); margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #131b2e, #1a2338);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 3rem 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { color: var(--muted); }
.cta-band__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Filters ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.6rem;
}
.filters__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .9rem;
  align-items: end;
}
.filters label span, .form label span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.filters select, .form input, .form textarea, .form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: .6rem .75rem;
  font-size: .92rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.filters select:focus, .form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.filters__actions { display: flex; gap: .6rem; }
.results-count { color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }

/* ---------- Vehicle detail ---------- */
.breadcrumbs {
  padding-top: 1.4rem;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 .5rem; }
.breadcrumbs span:last-child { color: var(--gold); margin-left: .5rem; }

.vehicle-detail__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.vehicle-detail__main { min-width: 0; }

.gallery__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--surface-2);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .7rem;
  margin-top: .7rem;
}
.gallery__thumb {
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  aspect-ratio: 4/3;
  transition: var(--transition);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.active, .gallery__thumb:hover { border-color: var(--gold); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-top: 1.6rem;
}
.panel h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.panel p { color: var(--muted); margin-bottom: .9rem; }
.panel p:last-child { margin-bottom: 0; }
.panel--small { padding: 1.3rem; }
.panel__subtitle { color: var(--gold); font-size: 1.05rem; margin: 1.1rem 0 .5rem; font-family: var(--font-body); font-weight: 600; }

.option-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .35rem 1.2rem;
}
.option-list li {
  color: var(--muted);
  font-size: .92rem;
  padding-left: 1.3rem;
  position: relative;
}
.option-list li::before {
  content: '\2713';
  color: var(--gold);
  position: absolute;
  left: 0;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: .6rem .2rem;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.spec-table td { color: var(--text); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.price-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: sticky;
  top: 110px;
}
.price-card__title { font-size: 1.55rem; }
.price-card__version { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.price-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.price-card__vat {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: .15rem .5rem;
  border-radius: 4px;
}
.price-card__quick { list-style: none; margin-bottom: 1.3rem; }
.price-card__quick li {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.price-card__quick li:last-child { border-bottom: 0; }
.price-card__quick span { color: var(--muted); }
.price-card__actions { display: flex; flex-direction: column; gap: .6rem; }

.dealer-card h3 { color: var(--gold); margin-bottom: .4rem; }
.dealer-card p { font-size: .9rem; }
.dealer-card__address { color: var(--text) !important; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.info-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.info-card__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.info-card p { color: var(--muted); font-size: .92rem; }
.info-card a { font-size: .88rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { display: block; filter: grayscale(.4) invert(.9) contrast(.85); }

.form label { display: block; margin-bottom: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

.alert {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: .92rem;
}
.alert--success { background: rgba(127, 201, 143, .12); border: 1px solid rgba(127,201,143,.4); color: var(--success); }
.alert--error { background: rgba(226, 114, 114, .12); border: 1px solid rgba(226,114,114,.4); color: var(--danger); }
.alert--error p { margin: 0; }

/* ---------- Legal / misc ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.4rem; margin: 2rem 0 .7rem; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: .8rem; }
.legal-content ul { padding-left: 1.4rem; }
.legal-content__meta { margin-top: 2.5rem; font-size: .85rem; border-top: 1px solid var(--border); padding-top: 1rem; }

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state p { color: var(--muted); margin-bottom: 1.4rem; }
.empty-state__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-gold);
  background: var(--bg-alt);
  margin-top: 3rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-top: 3.2rem;
  padding-bottom: 2.5rem;
}
.footer__brand p { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.footer__hours p { color: var(--muted); font-size: .85rem; margin-top: .8rem; }
.footer__col h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: .55rem; }
.footer__col a { color: var(--muted); font-size: .92rem; }
.footer__col a:hover { color: var(--gold); }
.footer__col address { font-style: normal; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  padding-bottom: 1.6rem;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}
.footer__legal p { margin-bottom: .4rem; }
.footer__links a { color: var(--muted); margin: 0 .7rem; }
.footer__links a:hover { color: var(--gold); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: var(--gold);
  color: #131a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: #131a2a; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vehicle-detail__grid { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border-gold);
    padding: .5rem 1.25rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .header__whatsapp { display: none; }
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 68vh; }
}

@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .filters__row { grid-template-columns: 1fr 1fr; }
  .filters__actions { grid-column: 1 / -1; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
