/* ============================================================
   RK-Automobile — Design System
   Pattern: Hero + Trust + Inventory + Testimonials + CTA
   Style:   Premium Automotive (Slate + Action Red)
   Fonts:   Syncopate (Display) / Inter (Body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens */
  --primary:        #1E293B;   /* deep slate */
  --primary-dark:   #0F172A;
  --on-primary:     #FFFFFF;
  --secondary:      #334155;
  --accent:         #DC2626;   /* action red */
  --accent-hover:   #B91C1C;
  --bg:             #F8FAFC;
  --surface:        #FFFFFF;
  --surface-muted:  #F1F5F9;
  --fg:             #0F172A;
  --fg-muted:       #475569;
  --fg-subtle:      #94A3B8;
  --border:         #E2E8F0;
  --success:        #16A34A;

  /* Type scale */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing (8pt rhythm) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem;  --s-12: 3rem;  --s-16: 4rem;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow:    0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.12);

  --radius:    10px;
  --radius-lg: 16px;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms!important; transition-duration: .01ms!important; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1280px; margin: 0 auto;
  padding: var(--s-3) var(--s-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--primary);
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a { font-weight: 500; color: var(--fg-muted); transition: color .15s; }
.nav a:hover { color: var(--primary); }
.nav .btn-phone {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--accent); color: #fff;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius);
  font-weight: 600; transition: background .15s, transform .15s;
}
.nav .btn-phone:hover { background: var(--accent-hover); transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav a:not(.btn-phone) { display: none; }
  .topbar__inner { padding: var(--s-3) var(--s-4); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(220,38,38,.18), transparent 60%),
    linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: var(--on-primary);
  padding: var(--s-16) var(--s-6) var(--s-12);
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(circle at 20% 80%, rgba(220,38,38,.12), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99,102,241,.08), transparent 50%);
}
.hero__inner { position: relative; max-width: 1100px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-3); border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: var(--s-6);
}
.hero__eyebrow svg { width: 14px; height: 14px; color: var(--accent); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 var(--s-4);
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255,255,255,.75);
  max-width: 640px; margin: 0 auto var(--s-8);
}
/* Hero search bar */
.hero-search {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 1px; background: var(--border);
  max-width: 880px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.05);
}
.hero-search > * { background: var(--surface); }
.hero-search .field {
  display: flex; flex-direction: column; padding: var(--s-3) var(--s-4) var(--s-2);
  text-align: left;
}
.hero-search .field label {
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--fg-subtle); margin-bottom: 2px;
}
.hero-search select, .hero-search input {
  appearance: none; -webkit-appearance: none;
  border: 0; background: transparent; padding: 0;
  font: inherit; font-size: 1rem; color: var(--fg);
  width: 100%; min-width: 0; height: 28px;
}
.hero-search select { cursor: pointer; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right center; background-size: 16px; padding-right: 22px; }
.hero-search input[type=number]::-webkit-outer-spin-button,
.hero-search input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hero-search input[type=number] { -moz-appearance: textfield; }
.hero-search button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 0 var(--s-8); border: 0; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background .15s;
}
.hero-search button:hover { background: var(--accent-hover); }
@media (max-width: 720px) {
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search button { grid-column: 1 / -1; padding: var(--s-4); }
}

/* ---------- Trust band ---------- */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.trust__grid {
  max-width: 1280px; margin: 0 auto;
  padding: var(--s-8) var(--s-6);
  display: grid; gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust__item { display: flex; gap: var(--s-3); align-items: flex-start; }
.trust__icon {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius);
  background: rgba(220,38,38,.08); color: var(--accent);
  display: grid; place-items: center;
}
.trust__icon svg { width: 22px; height: 22px; }
.trust__item h3 { margin: 0 0 var(--s-1); font-size: 1rem; font-weight: 600; color: var(--primary); }
.trust__item p  { margin: 0; color: var(--fg-muted); font-size: .9rem; }

/* ---------- Section header ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: var(--s-16) var(--s-6); }
.section--tight { padding: var(--s-12) var(--s-6); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); }
.section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em;
  margin: 0; color: var(--primary);
}
.section__sub { color: var(--fg-muted); margin: var(--s-2) 0 0; font-size: 1rem; }
.section__link { color: var(--accent); font-weight: 600; display: inline-flex; gap: var(--s-1); align-items: center; }

/* ---------- Vehicle grid ---------- */
.grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4/3; background: var(--surface-muted); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: var(--primary-dark); color: #fff;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: var(--s-1) var(--s-2); border-radius: 4px;
}
.card__badge--new { background: var(--accent); }
.card__body { padding: var(--s-4) var(--s-4) var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__title { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--primary); line-height: 1.3; }
.card__desc  { margin: 0; color: var(--fg-muted); font-size: .9rem; min-height: 1.3em; }
.card__price { margin: var(--s-2) 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--accent); }
.card__specs {
  margin: var(--s-3) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  font-family: var(--font-mono); font-size: .78rem; color: var(--fg-muted);
}
.card__specs span { display: inline-flex; align-items: center; gap: 4px; }
.card__specs svg { width: 13px; height: 13px; color: var(--fg-subtle); }

/* ---------- Filter bar (inventory page) ---------- */
.filterbar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--s-4);
  margin-bottom: var(--s-8);
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center;
}
.filterbar select, .filterbar input {
  padding: var(--s-2) var(--s-4); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-muted); font: inherit; min-width: 150px;
}
.filterbar button {
  padding: var(--s-2) var(--s-6); border: 0; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-weight: 600;
}
.filterbar button:hover { background: var(--primary-dark); }
.filterbar .reset {
  background: transparent; color: var(--fg-muted); padding: var(--s-2);
}

/* ---------- Detail page ---------- */
.detail-grid {
  display: grid; gap: var(--s-8);
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---------- Section-Überschriften auf Detailseite ---------- */
.section-h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -.01em;
  margin: var(--s-12) 0 var(--s-4);
}

/* ---------- Tech-Sections (mobile.de-Style) ---------- */
.tech-sections {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .tech-sections { grid-template-columns: 1fr 1fr; }
  .tech-section:first-child { grid-column: 1 / -1; }
}
.tech-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.tech-section h3 {
  margin: 0 0 var(--s-4); font-size: .95rem; font-weight: 600;
  color: var(--primary); letter-spacing: -.005em;
  padding-bottom: var(--s-2); border-bottom: 1px solid var(--border);
}
.tech-section dl { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin: 0; }
.tech-section dl > div {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-3); align-items: baseline;
}
.tech-section dt { color: var(--fg-muted); font-size: .85rem; }
.tech-section dd { margin: 0; font-weight: 500; color: var(--fg); font-size: .9rem; text-align: right; }

/* ---------- Galerie (mobile.de-Style: Hero links + 2x2 Tiles rechts) ---------- */
.gallery { display: block; max-width: 100%; }

.gallery__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-2);
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.gallery__hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  min-width: 0; min-height: 0;
}
.gallery__hero, .gallery__tile {
  /* Button-Reset weil Tiles jetzt <button> sind */
  border: 0; padding: 0; background: var(--surface-muted);
  cursor: zoom-in; font: inherit; color: inherit;
}
.gallery__tile {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  min-width: 0; min-height: 0;
  display: block;
  transition: transform .15s, box-shadow .15s;
}
.gallery__hero { display: block; }
.gallery__counter {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  background: rgba(15, 23, 42, .75);
  color: #fff; padding: var(--s-1) var(--s-3);
  border-radius: 999px; font-size: .8rem; font-weight: 600;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.gallery__hero img, .gallery__tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery__hero img { transition: transform .4s ease; }
.gallery__hero:hover img { transform: scale(1.03); }
.gallery__tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* "+X weitere"-Badge auf dem letzten Preview-Tile */
.gallery__tile--more::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  pointer-events: none;
}
.gallery__more-badge {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.6rem);
  letter-spacing: -.02em;
  pointer-events: none;
}

/* Rest-Grid unter dem Main-Block */
.gallery__rest {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-2);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin-top .2s ease;
}
.gallery__rest > .gallery__tile { aspect-ratio: 4/3; }

.gallery:not(.is-collapsed) .gallery__rest {
  max-height: 4000px;
  opacity: 1;
}
.gallery.is-collapsed .gallery__rest {
  margin-top: 0;
}
/* "+X"-Overlay verschwindet sobald die Galerie offen ist */
.gallery:not(.is-collapsed) .gallery__tile--more::after,
.gallery:not(.is-collapsed) .gallery__more-badge { display: none; }

@media (max-width: 720px) {
  .gallery__main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
  }
  .gallery__hero {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16/10;
  }
  .gallery__main .gallery__tile { aspect-ratio: 4/3; }
  .gallery__rest { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 14, 22, .96);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  position: relative; max-width: 95vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.lightbox__img {
  max-width: 95vw; max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border-radius: 4px;
}
.lightbox__caption {
  color: rgba(255,255,255,.85); font-size: .9rem; font-family: var(--font-mono);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.1); color: #fff; border: 0;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: background .15s, transform .15s;
  display: grid; place-items: center;
}
.lightbox__close {
  top: var(--s-6); right: var(--s-6);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1;
}
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 2.4rem; line-height: 1;
}
.lightbox__nav--prev { left: var(--s-6); }
.lightbox__nav--next { right: var(--s-6); }
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255,255,255,.2);
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 720px) {
  .lightbox__close { top: var(--s-3); right: var(--s-3); }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lightbox__nav--prev { left: var(--s-2); }
  .lightbox__nav--next { right: var(--s-2); }
}

.detail__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; color: var(--primary); }
.detail__desc-lead { color: var(--fg-muted); margin-top: var(--s-2); }

.specs-table {
  margin: var(--s-6) 0; padding: var(--s-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4) var(--s-6);
}
.specs-table dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-subtle); margin-bottom: 2px; }
.specs-table dd { margin: 0; font-family: var(--font-mono); font-weight: 500; color: var(--fg); font-size: .95rem; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-2); padding: 0; list-style: none; margin: var(--s-4) 0; }
.features li {
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--surface); padding: var(--s-2) var(--s-3); border-radius: var(--radius); border: 1px solid var(--border);
  font-size: .9rem;
}
.features svg { color: var(--success); width: 16px; height: 16px; flex: none; }

.description-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-6); color: var(--fg-muted); }

/* ---------- Expand/Collapse für lange Listen & Texte ---------- */
.expandable { position: relative; }

/* Features: ausgeblendete Items komplett raus, Liste wirkt sauber abgeschnitten */
.expandable.is-collapsed .features li.is-hidden { display: none; }
.expandable:not(.is-collapsed) .features li.is-hidden { display: flex; }

/* Description: im collapsed-State auf ~6 Zeilen begrenzen, mit Fade-Out unten */
.description-block--clamped {
  max-height: 9.6em;          /* ~6 Zeilen bei line-height 1.6 */
  overflow: hidden;
  position: relative;
  transition: max-height .25s ease;
}
.description-block--clamped::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4em;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.expandable:not(.is-collapsed) .description-block--clamped {
  max-height: none;
}
.expandable:not(.is-collapsed) .description-block--clamped::after {
  display: none;
}

.expand-toggle {
  margin-top: var(--s-4);
  background: transparent;
  border: 0;
  padding: var(--s-2) 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s, gap .15s;
}
.expand-toggle:hover {
  color: var(--accent-hover);
  border-bottom-color: currentColor;
  gap: calc(var(--s-2) + 2px);
}
.expand-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.expand-toggle svg.chev {
  width: 14px; height: 14px;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.expandable:not(.is-collapsed) .expand-toggle svg.chev { transform: rotate(180deg); }

.expandable.is-collapsed .expand-toggle__less { display: none; }
.expandable:not(.is-collapsed) .expand-toggle__more { display: none; }

/* Sticky CTA sidebar on detail */
.cta-sidebar {
  position: sticky; top: 88px; align-self: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-6); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.cta-sidebar .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); margin: 0; }
.cta-sidebar .vat { color: var(--fg-subtle); font-size: .85rem; margin: 0 0 var(--s-2); }
.cta-sidebar .btn { padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 600; text-align: center; display: inline-flex; gap: var(--s-2); align-items: center; justify-content: center; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.cta-sidebar .btn--primary { background: var(--accent); color: #fff; }
.cta-sidebar .btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta-sidebar .btn--ghost { background: var(--surface-muted); color: var(--primary); }
.cta-sidebar .btn--ghost:hover { background: var(--border); }
.cta-sidebar .btn--whatsapp { background: #25D366; color: #fff; }
.cta-sidebar .btn--whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }
.cta-sidebar .btn--mobilede { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); font-size: .9rem; }
.cta-sidebar .btn--mobilede:hover { border-color: var(--accent); color: var(--accent); }
.cta-sidebar svg { width: 18px; height: 18px; }

/* Finance calc */
.fincalc { border-top: 1px solid var(--border); padding-top: var(--s-4); margin-top: var(--s-2); font-size: .9rem; }
.fincalc h3 { margin: 0 0 var(--s-3); font-size: .95rem; font-family: var(--font-body); color: var(--primary); }
.fincalc label { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); color: var(--fg-muted); }
.fincalc input[type=range] { flex: 1; }
.fincalc .result { background: var(--surface-muted); padding: var(--s-3); border-radius: var(--radius); text-align: center; margin-top: var(--s-2); }
.fincalc .result strong { color: var(--accent); font-family: var(--font-display); font-size: 1.4rem; display: block; }

/* Lead form */
.lead { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-8); margin-top: var(--s-8); }
.lead h2 { font-family: var(--font-display); margin: 0 0 var(--s-2); color: var(--primary); }
.lead p.lead-sub { color: var(--fg-muted); margin: 0 0 var(--s-6); }
.lead form { display: grid; gap: var(--s-3); max-width: 520px; }
.lead input, .lead textarea {
  padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-muted); font: inherit; color: var(--fg);
}
.lead input:focus, .lead textarea:focus { background: var(--surface); border-color: var(--accent); outline: 0; }
.lead textarea { min-height: 120px; resize: vertical; }
.lead button { padding: var(--s-3) var(--s-6); border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; }
.lead .ok { color: var(--success); font-weight: 600; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface-muted); }
.testimonials__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial { background: var(--surface); padding: var(--s-6); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.testimonial__stars { color: #FBBF24; margin-bottom: var(--s-2); font-size: 1rem; letter-spacing: 2px; }
.testimonial p { margin: 0 0 var(--s-4); color: var(--fg); font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: var(--s-3); font-size: .9rem; }
.testimonial__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 600;
}
.testimonial__name { font-weight: 600; color: var(--primary); }
.testimonial__role { color: var(--fg-subtle); font-size: .8rem; }

/* ---------- Lot photo band ---------- */
.lot-band {
  position: relative; overflow: hidden;
  background: var(--primary-dark);
}
.lot-band img {
  width: 100%; height: clamp(220px, 38vw, 460px);
  object-fit: cover; object-position: center 60%;
  display: block; filter: saturate(1.05) contrast(1.02);
}
.lot-band__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-8) var(--s-6) var(--s-4);
  background: linear-gradient(to top, rgba(15,23,42,.85), transparent);
  color: rgba(255,255,255,.95); font-size: .9rem;
  display: flex; justify-content: center;
}
.lot-band__caption span {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); border-radius: 999px;
  background: rgba(15,23,42,.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 500; letter-spacing: .02em;
}

/* ---------- Map embed ---------- */
.map-section { background: var(--bg); }
.map-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--surface-muted);
}
.map-wrap iframe { display: block; filter: saturate(.95) contrast(1.02); }

img.testimonial__avatar { width: 36px; height: 36px; border-radius: 50%; }

/* ---------- Final CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: var(--s-16) var(--s-6); text-align: center;
}
.cta-strip h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 var(--s-3); }
.cta-strip p { margin: 0 0 var(--s-6); color: rgba(255,255,255,.75); }
.cta-strip a {
  display: inline-flex; gap: var(--s-2); align-items: center;
  background: var(--accent); color: #fff; padding: var(--s-3) var(--s-8); border-radius: var(--radius);
  font-weight: 600; transition: background .15s, transform .15s;
}
.cta-strip a:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding: var(--s-12) var(--s-6) var(--s-6); }
.footer__grid { max-width: 1280px; margin: 0 auto; display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer h4 { color: #fff; margin: 0 0 var(--s-3); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.footer a { color: rgba(255,255,255,.7); transition: color .15s; display: block; padding: 2px 0; }
.footer a:hover { color: var(--accent); }
.footer__bottom { max-width: 1280px; margin: var(--s-8) auto 0; padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: .85rem; }

/* ---------- Mobile sticky contact ---------- */
.mobile-contact { display: none; }
@media (max-width: 720px) {
  .mobile-contact {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-contact a {
    padding: var(--s-3); border-radius: var(--radius); font-weight: 600;
    display: inline-flex; gap: var(--s-2); align-items: center; justify-content: center;
  }
  .mobile-contact .call { background: var(--accent); color: #fff; }
  .mobile-contact .wa   { background: #25D366; color: #fff; }
  .mobile-contact svg { width: 18px; height: 18px; }
  body { padding-bottom: 72px; }
}

/* ---------- Misc ---------- */
.empty {
  text-align: center; padding: var(--s-16) var(--s-6); color: var(--fg-muted);
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
}
.legal { max-width: 760px; margin: 0 auto; padding: var(--s-12) var(--s-6); }
.legal h1 { font-family: var(--font-display); color: var(--primary); }
.legal h2 { color: var(--primary); margin-top: var(--s-8); }
