:root {
  --bg: #0b0d10;
  --bg-2: #12151a;
  --card: #171b21;
  --line: #262b33;
  --text: #eef1f5;
  --muted: #9aa3ae;
  --accent: #ff4d1a;
  --accent-2: #ff7a45;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .6em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; margin: .6em 0 0; }
.center { text-align: center; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,16,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); width: 38px; display: inline-flex; }
.brand-mark svg { width: 100%; }
.brand-text { font-family: Archivo, sans-serif; font-weight: 900; font-size: 1.15rem; letter-spacing: .06em; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: Inter, sans-serif; font-weight: 600; font-size: .58rem; letter-spacing: .38em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 96px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,13,16,.96) 0%, rgba(11,13,16,.85) 45%, rgba(11,13,16,.55) 100%),
    linear-gradient(0deg, #0b0d10 0%, transparent 40%),
    url("assets/photos/building-front.jpg") center 45% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.018) 60px 61px);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-inner { max-width: var(--maxw); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--text); }
.pill-accent { border-color: var(--accent); background: rgba(255,77,26,.15); }
.hero h1 { max-width: 14ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { list-style: none; padding: 0; margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); max-width: 640px; }
.hero-stats li { flex: 1 1 160px; padding: 20px 20px 0 0; }
.hero-stats strong { display: block; font-family: Archivo, sans-serif; font-size: 1.2rem; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* Inventory */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font: 500 .9rem Inter, sans-serif; cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-bottom: 28px; }
.car {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.car:hover, .car:focus-visible { transform: translateY(-3px); border-color: #3a414c; box-shadow: 0 16px 40px rgba(0,0,0,.35); outline: none; }
.car-media { position: relative; aspect-ratio: 16 / 10; background: #1d222a; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: #f5b400; color: #111; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; }
.car-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #4a525e; background: linear-gradient(135deg, #1c2128, #14181d); }
.car-ph svg { width: 45%; }
.car-ph span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.car-body { padding: 18px 20px 20px; }
.car-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.car-top h3 { margin: 0; font-size: 1.1rem; }
.price { font-family: Archivo, sans-serif; font-weight: 800; color: var(--accent); font-size: 1.15rem; white-space: nowrap; }
.price.big { font-size: 2rem; margin-bottom: .4em; }
.trim { color: var(--muted); margin: 2px 0 14px; font-size: .92rem; }
.specs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { font-size: .8rem; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,77,26,.12); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Split / cards / forms */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
label { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  font: 16px Inter, sans-serif; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.calc-out span { color: var(--muted); }
.calc-out strong { font-family: Archivo, sans-serif; font-size: 2rem; color: var(--accent); }

.about-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.lot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; margin-top: 32px; }
.lot-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: zoom-in; }
.lot-gallery figure.tall { grid-row: span 2; }
.lot-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lot-gallery figure:hover img { transform: scale(1.03); }
@media (max-width: 760px) {
  .lot-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .lot-gallery figure:last-child { grid-column: span 2; }
}
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #4a525e; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; background: linear-gradient(135deg, #1c2128, #14181d); }

.contact-list { list-style: none; padding: 0; margin: 24px 0 32px; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a:hover strong { color: var(--accent); }
.hours-title { margin-bottom: .6em; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.contact-form h3 { margin-bottom: 1em; }
.contact-split { align-items: start; }
.contact-split .contact-info { grid-column: 1; grid-row: 1; }
.contact-split .contact-hours { grid-column: 1; grid-row: 2; }
.contact-split .contact-form { grid-column: 2; grid-row: 1 / span 2; }
.contact-split:not(.no-form) { grid-template-rows: auto 1fr; row-gap: 32px; }
.contact-split.no-form .contact-hours { grid-column: 2; grid-row: 1; align-self: end; }
.contact-list { margin-bottom: 0; }
@media (max-width: 880px) {
  .contact-split .contact-info, .contact-split .contact-hours, .contact-split .contact-form,
  .contact-split.no-form .contact-hours { grid-column: 1; grid-row: auto; }
}
.map-wrap { margin-top: 56px; }
.map-wrap iframe { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--radius); filter: grayscale(.6) invert(.9) hue-rotate(180deg); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { margin: 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 960px; max-height: 90vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 1.2fr 1fr;
}
.modal-card > #modalBody { display: contents; }
.modal-close { position: absolute; top: 10px; right: 12px; z-index: 2; background: rgba(0,0,0,.5); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.gallery { background: #1d222a; min-height: 320px; display: flex; flex-direction: column; }
.gallery > img, .gallery > .car-ph { flex: 1; width: 100%; object-fit: cover; min-height: 320px; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.thumbs img { width: 72px; height: 52px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .75; }
.thumbs img:hover { opacity: 1; }
.modal-info { padding: 32px 28px; }
.modal-info h2 { font-size: 1.6rem; }
.modal-info h2 .muted { font-family: Inter, sans-serif; font-weight: 500; font-size: 1rem; }
.spec-table { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0 0 24px; font-size: .95rem; }
.spec-table dt, .spec-table dd { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec-table dt { color: var(--muted); padding-right: 24px; }
.spec-table dd { text-align: right; }

/* Responsive */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .modal-card { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-call { margin-top: 14px; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
