:root {
  --bg: #f4f2ee;
  --surface: #fff;
  --text: #171515;
  --muted: #6d6863;
  --border: #ded8d1;
  --burgundy: #6f1d2c;
  --gold: #b8914b;
  --shadow: 0 18px 55px rgba(23, 21, 21, .14);
  --radius: 18px;
  --content: 1160px;
  --bar: 64px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased
}

body.no-scroll {
  overflow: hidden
}

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

button,
a {
  -webkit-tap-highlight-color: transparent
}

.container {
  width: min(var(--content), calc(100% - 32px));
  margin: auto
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px)
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.logo {
  width: auto;
  height: 48px
}

.header nav {
  display: flex;
  gap: 20px
}

.header nav a,
.back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 850;
  text-decoration: none
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer
}

.gold {
  background: var(--gold);
  color: #201a12
}

.dark {
  background: #171515;
  color: #fff
}

.burgundy {
  background: var(--burgundy);
  color: #fff
}

.outline {
  border: 2px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy)
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  color: #fff;
  background: linear-gradient(to top, rgba(13, 11, 12, .92), rgba(13, 11, 12, .18) 62%), linear-gradient(135deg, #6f1d2c, #171515)
}

.hero .container {
  max-width: 850px;
  margin: 0 auto 0 0;
  padding: 100px 0 72px
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 13vw, 6.5rem);
  line-height: .94;
  letter-spacing: -.065em
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, .8);
  font-size: 1.08rem
}

.inventory {
  padding: 72px 0
}

.inventory h2,
.contact-band h2,
.contact-hero h1,
.specs h2,
.video h2 {
  margin: 0 0 30px;
  font-size: clamp(2.3rem, 10vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px
}

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.card-media,
.vehicle-media {
  position: relative;
  overflow: hidden;
  background: #111;
  touch-action: pan-y pinch-zoom
}

.card-media>img,
.vehicle-media>img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity .15s ease
}

.overlay-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 54px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(0, 0, 0, .36);
  color: #fff;
  font-size: 2.7rem;
  cursor: pointer;
  transform: translateY(-50%)
}

.overlay-arrow.left {
  left: 12px
}

.overlay-arrow.right {
  right: 12px
}

.counter {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 5;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font-size: .75rem;
  font-weight: 850
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: flex;
  max-width: 55%;
  gap: 5px;
  overflow: hidden;
  transform: translateX(-50%)
}

.dots span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42)
}

.dots span.active {
  background: #fff;
  transform: scale(1.2)
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0c17b, #9e7733);
  color: #17120a;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase
}

.card-body {
  padding: 24px
}

.price-mileage {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px
}

.price-mileage strong {
  color: var(--burgundy);
  font-size: 1.75rem
}

.price-mileage span {
  font-weight: 850;
  text-align: right
}

.card-body h3 {
  margin: 18px 0 8px;
  font-size: 1.7rem;
  line-height: 1.05
}

.card-body p {
  margin: 0;
  color: var(--muted)
}

.card-body a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  margin-top: 18px;
  color: var(--burgundy);
  font-weight: 950;
  text-decoration: none
}

.contact-band {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(135deg, #6f1d2c, #211d1e)
}

.contact-band .container {
  display: grid;
  gap: 28px
}

.vehicle-page,
.contact-page {
  padding-bottom: var(--bar)
}

.vehicle-hero {
  background: #000
}

.open-gallery {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer
}

.summary {
  padding: 34px 0 48px;
  background: #fff
}

.summary h1 {
  margin: 0;
  font-size: clamp(2.3rem, 10vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.05em
}

.summary p[data-subtitle] {
  color: var(--muted);
  font-weight: 700
}

.key {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0
}

.key strong {
  color: var(--burgundy);
  font-size: clamp(2.1rem, 9vw, 3.3rem)
}

.key span {
  font-size: 1.08rem;
  font-weight: 850
}

.luxe {
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(216, 187, 120, .24), rgba(159, 120, 52, .11));
  color: #5d441a;
  font-weight: 800
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}

.specs,
.video {
  padding: 58px 0
}

.specs dl {
  margin: 0
}

.specs dl div {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border)
}

.specs dt {
  color: var(--muted);
  font-size: .9rem
}

.specs dd {
  margin: 0;
  font-weight: 850
}

.video {
  background: #fff
}

.video-frame {
  overflow: hidden;
  border-radius: 16px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: var(--bar);
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .14)
}

.mobile-bar a {
  display: flex;
  min-height: var(--bar);
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  font-weight: 950;
  text-decoration: none;
  border-right: 1px solid var(--border)
}

.contact-hero {
  padding: 62px 0 42px;
  color: #fff;
  background: linear-gradient(135deg, #6f1d2c, #211d1e)
}

.contact-options {
  padding: 34px 0 68px
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

.contact-grid a {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none
}

.contact-grid span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase
}

.contact-grid strong {
  color: var(--burgundy);
  font-size: 1.3rem
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .92)
}

.lightbox.is-open {
  display: grid
}

.backdrop {
  position: absolute;
  inset: 0
}

.stage {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  height: min(820px, calc(100dvh - 36px));
  overflow: hidden;
  background: #000;
  border-radius: 10px;
  touch-action: pan-y pinch-zoom
}

.stage>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .14s ease
}

.stage>img.changing {
  opacity: .25
}

.close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.15rem;
  font-weight: 900
}

.site-footer,
footer {
  padding: 32px 0;
  background: #211d1e;
  color: rgba(255, 255, 255, .7);
  text-align: center
}

@media (hover:hover) and (pointer:fine) {
  .overlay-arrow {
    display: flex
  }

  .card {
    transition: transform .18s ease
  }

  .card:hover {
    transform: translateY(-4px)
  }
}

@media (min-width:700px) {
  .container {
    width: min(var(--content), calc(100% - 48px))
  }

  .logo {
    height: 58px
  }

  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .actions {
    grid-template-columns: repeat(3, 1fr)
  }

  .specs dl div {
    grid-template-columns: 220px 1fr
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .contact-band .container {
    grid-template-columns: 1fr auto;
    align-items: center
  }
}

@media (min-width:980px) {

  .vehicle-page,
  .contact-page {
    padding-bottom: 0
  }

  .mobile-bar {
    display: none
  }
}

@media (max-width:540px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    padding: 10px 0
  }

  .logo {
    height: 46px
  }

  .header nav {
    width: 100%;
    justify-content: space-around
  }
}

@media (orientation:portrait) and (max-width:700px),
(orientation:landscape) and (max-height:600px) {
  .lightbox {
    padding: 0
  }

  .stage {
    width: 100vw;
    height: 100dvh;
    border-radius: 0
  }
}


/* =========================================================
   JULY 2026 FIXES
   ========================================================= */

/* Use a clean transparent logo without baked checkerboard artifacts. */
.site-logo {
  display: block;
  max-width: min(520px, 100%);
  object-fit: contain;
}

/* Keep header navigation aligned beneath the logo on phones,
   including when the iPhone is rotated into landscape. */
@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 12px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .site-logo {
    width: min(650px, 100%);
    height: auto;
    max-height: 180px;
  }

  .site-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
  }
}

/* Extra protection for short landscape phone screens. */
@media (orientation: landscape) and (max-height: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .site-logo {
    max-height: 110px;
  }

  .site-nav {
    justify-content: center;
  }
}

/* Business address on contact page. */
.business-address-section {
  padding: 44px 0 84px;
  background: var(--surface, #ffffff);
}

.business-address-section h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
}

.business-address-section address {
  color: var(--muted, #6d6863);
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Avoid cramped label/value combinations in any collection/fact strip. */
.collection-strip-grid div,
.collection-stat {
  display: grid;
  gap: 5px;
}

.collection-strip-grid strong,
.collection-strip-grid span,
.collection-stat strong,
.collection-stat span {
  display: block;
}

/* Inventory anchor should not hide behind the sticky header. */
#available-vehicles {
  scroll-margin-top: 120px;
}

/* Center the actual homepage hero */

.hero {
  text-align: center;
}

.hero .container {
  width: min(900px, calc(100% - 32px));
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 100px 24px 72px;
}

.hero h1 {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.hero p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.hero .button {
  align-self: center;
}

@media (max-width: 540px) {
  .hero .container {
    width: min(100%, calc(100% - 24px));
    padding: 72px 12px 52px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }
}

/* Mobile-only homepage hero centering */

@media (max-width: 768px) {
  .hero {
    min-height: 560px;
    align-items: center;
    text-align: center;
  }

  .hero .container {
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 auto;
    padding: 64px 0 54px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero .eyebrow {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .hero h1 {
    width: 100%;
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .hero p:not(.eyebrow) {
    width: 100%;
    max-width: 560px;
    margin: 22px auto 30px;
    text-align: center;
  }

  .hero .button {
    margin-right: auto;
    margin-left: auto;
    align-self: center;
  }
}

/* Vehicle journey videos */

.vehicle-video {
  margin-top: 54px;
}

.vehicle-video+.vehicle-video {
  padding-top: 54px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.video-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.video-heading>span {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8b6f47;
}

.video-heading h3 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.15;
}

.video-heading p {
  max-width: 760px;
  margin: 0;
  line-height: 1.7;
  color: #666;
}

.vehicle-video .video-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  background: #000;
}

@media (max-width: 768px) {
  .vehicle-video {
    margin-top: 40px;
  }

  .vehicle-video+.vehicle-video {
    padding-top: 40px;
  }

  .video-heading {
    gap: 12px;
  }

  .video-heading h3 {
    font-size: 23px;
  }

  .video-heading p {
    font-size: 15px;
  }
}

/* Vehicle journey heading cleanup */

.video-heading {
  display: block;
  margin-bottom: 22px;
}

.video-heading>div {
  width: 100%;
}