:root {
  --black: #05080b;
  --panel: #0b1117;
  --panel-2: #151d25;
  --white: #f4f7fa;
  --muted: #a9b4bd;
  --accent: #09aeea;
  --steel: #7f8c96;
  --blue: #09aeea;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.07), transparent 26rem),
    linear-gradient(180deg, #000 0%, #060606 48%, #000 100%);
  line-height: 1.45;
}

body::before {
  content: "DC";
  position: fixed;
  inset: auto auto 3vh 12vw;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-size: min(42vw, 36rem);
  font-weight: 900;
  line-height: 0.7;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.18;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: 94px;
  padding: 12px clamp(18px, 6vw, 126px);
  background: #070b10;
  border-bottom: 1px solid rgba(9, 174, 234, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font: inherit;
}

.brand em {
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.54em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.42em;
}

.brand img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: #f4f4f4;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav .nav-call {
  color: var(--accent);
}

.call-button,
.gold-action,
.details-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.call-button {
  min-width: 174px;
  background: var(--blue);
  color: #061016;
  box-shadow: 0 0 36px rgba(9, 174, 234, 0.32);
}

.gold-action,
.details-button,
.primary-action {
  background: linear-gradient(90deg, #0098d4 0%, #38c7fb 48%, #65737f 100%);
  color: #061016;
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font-weight: 900;
}

.dealer-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 550px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  min-height: calc(100vh - 94px);
  padding: clamp(42px, 6vw, 92px) clamp(18px, 6vw, 126px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.66) 43%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.86)),
    url("assets/forsale/ford-transit-350-2020-01.jpg?v=20260604-17") center / cover no-repeat;
  overflow: hidden;
}

.dealer-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}

.hero-search,
.sell-card,
.contact-card,
.vehicle-details {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(9, 174, 234, 0.62);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-search {
  padding: clamp(20px, 3vw, 34px);
}

.hero-search h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.quick-search {
  display: grid;
  gap: 14px;
}

.quick-search select,
.quick-search input {
  min-height: 56px;
  background: #fff;
  color: #061016;
  border: 0;
}

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

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.popular-searches button {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.hero-statement {
  position: relative;
  z-index: 1;
  justify-self: end;
  max-width: 760px;
  text-align: right;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-statement p {
  margin-left: auto;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
}

.home-panel-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.home-panel-inner h2 {
  margin-bottom: 0;
}

.hero-actions,
.stock-actions,
.vehicle-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions {
  justify-content: flex-end;
}

.home-panel,
.page-shell,
.form-page,
.contact-page {
  padding: clamp(48px, 6vw, 86px) clamp(18px, 6vw, 126px);
  background:
    radial-gradient(circle at 50% 0, rgba(9, 174, 234, 0.13), transparent 28rem),
    #000;
}

.section-title,
.page-title {
  max-width: 850px;
  margin: 0 auto 32px;
  text-align: center;
}

.page-title h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
}

.section-title p,
.page-title p {
  color: var(--muted);
  font-size: 1.05rem;
}

.arrival-grid,
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

.stock-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  background: #0b1117;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.stock-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.stock-photo img,
.sold-card img,
.vehicle-main-photo img,
.vehicle-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.listing-slideshow img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 520ms ease;
}

.listing-slideshow img.active {
  opacity: 1;
}

.listing-dots {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 5px;
}

.listing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.listing-dots span.active {
  background: var(--accent);
}

.photo-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.listing-dots + .photo-count {
  bottom: 36px;
}

.stock-body {
  display: grid;
  gap: 12px;
  padding: 18px 22px 22px;
  text-align: center;
}

.stock-body h3 {
  margin: 0;
}

.stock-subtitle {
  margin: 0;
  color: #ededed;
  font-size: 0.9rem;
  font-weight: 700;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  padding-block: 14px;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.price-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.price-row strong {
  color: var(--accent);
  font-size: 1.55rem;
  line-height: 1;
}

.stock-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.stock-meta span + span::before {
  content: "|";
  margin-right: 10px;
  color: var(--accent);
}

.details-button {
  width: 100%;
  margin-top: 8px;
}

.stock-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 calc(clamp(18px, 6vw, 126px) * -1) 34px;
  padding: 16px clamp(18px, 6vw, 126px);
  background: linear-gradient(90deg, #1a2731, #0aaeea, #6f7d88);
}

.tab-button {
  min-height: 50px;
  min-width: 140px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  background: #fff;
  color: #061016;
  cursor: pointer;
  font-weight: 900;
}

.tab-button.active {
  background: #0b1117;
  color: #fff;
  border-color: #061016;
}

.category-block {
  margin-top: 34px;
}

.category-block.hidden {
  display: none;
}

.category-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.category-title span {
  color: var(--muted);
  font-weight: 900;
}

.sold-gallery {
  margin-top: 38px;
}

.sold-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sold-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.sold-title span {
  color: var(--accent);
  font-weight: 900;
}

.sold-carousel {
  position: relative;
}

.sold-arrow {
  display: none;
  place-items: center;
  width: 44px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(7, 11, 16, 0.9);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.sold-arrow[hidden] {
  display: none !important;
}

.sold-marquee {
  overflow: hidden;
  margin-inline: calc(clamp(18px, 6vw, 126px) * -1);
}

.sold-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-left: clamp(18px, 6vw, 126px);
  animation: sold-scroll var(--sold-speed, 44s) linear infinite;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.sold-track.is-static {
  width: auto;
  animation: none;
}

.sold-card {
  position: relative;
  flex: 0 0 clamp(250px, 24vw, 390px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--panel);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.sold-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-weight: 900;
}

@keyframes sold-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.sell-card,
.contact-card {
  max-width: 1370px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(22px, 4vw, 56px);
}

.lead-form label.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: #fff;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #061016;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-form .primary-action,
.lead-form .form-note {
  grid-column: 1 / -1;
}

.form-note,
.contact-card p {
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.contact-tile {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.contact-tile span {
  display: block;
  color: var(--accent);
  font-weight: 900;
}

.contact-tile strong,
.contact-tile a {
  display: block;
  margin-top: 7px;
  font-size: 1.2rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px clamp(18px, 6vw, 126px);
  background: #070b10;
  border-top: 1px solid rgba(9, 174, 234, 0.22);
}

.site-footer .footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.site-footer div {
  display: grid;
  flex: 1;
}

.site-footer span {
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  font-weight: 900;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--blue);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #061016;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  font-weight: 900;
}

.vehicle-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
  gap: clamp(20px, 4vw, 58px);
  padding: clamp(24px, 5vw, 72px) clamp(18px, 6vw, 126px);
  background: #070b10;
}

.vehicle-gallery {
  min-width: 0;
}

.vehicle-main-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 60px;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 2.4rem;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-prev {
  left: 14px;
}

.gallery-next {
  right: 14px;
}

.vehicle-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.vehicle-thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #111;
  cursor: pointer;
}

.vehicle-thumbs button.active {
  border-color: var(--accent);
}

.vehicle-details {
  align-self: start;
  padding: clamp(22px, 3vw, 34px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 900;
}

.stock-category {
  display: inline-flex;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-details h1 {
  margin-top: 12px;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}

.vehicle-price {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.vehicle-details p {
  color: var(--muted);
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.vehicle-specs div,
.vehicle-features li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.vehicle-specs div {
  padding: 12px;
}

.vehicle-specs span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-specs strong {
  display: block;
  margin-top: 4px;
}

.vehicle-features {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.vehicle-features li {
  padding: 10px 12px;
  font-weight: 800;
}

.stock-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent);
  font-size: 4rem;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    background: #070b10;
    border-bottom: 1px solid rgba(9, 174, 234, 0.26);
  }

  .main-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .call-button {
    grid-column: 2 / 3;
    justify-self: end;
  }

  .dealer-hero,
  .vehicle-page {
    grid-template-columns: 1fr;
  }

  .hero-statement {
    justify-self: stretch;
    text-align: left;
  }

  .hero-statement p {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .arrival-grid,
  .stock-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 10px;
    min-height: 72px;
    padding: 10px 14px;
  }

  .brand {
    gap: 10px;
    font-size: 1rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .call-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    font-size: 1.08rem;
  }

  .menu-toggle {
    align-self: center;
  }

  .dealer-hero {
    min-height: auto;
    padding: 28px 14px 42px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9)),
      url("assets/forsale/ford-transit-350-2020-01.jpg?v=20260604-17") center top / cover no-repeat;
  }

  .hero-statement {
    order: -1;
  }

  h1 {
    font-size: clamp(2.45rem, 10vw, 3.2rem);
    word-break: normal;
  }

  .hero-statement p {
    font-size: 1rem;
  }

  .hero-search {
    padding: 16px;
  }

  .quick-row,
  .arrival-grid,
  .stock-grid,
  .contact-grid,
  .lead-form,
  .vehicle-specs {
    grid-template-columns: 1fr;
  }

  .home-panel,
  .page-shell,
  .form-page,
  .contact-page,
  .vehicle-page {
    padding: 36px 14px;
  }

  .stock-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: -36px -14px 28px;
    padding: 12px 14px;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  .category-title,
  .sold-title,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .stock-photo,
  .vehicle-main-photo {
    aspect-ratio: 16 / 11;
  }

  .vehicle-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sold-marquee {
    overflow-x: hidden;
    overflow-y: hidden;
    margin-inline: 0;
    padding-inline: 54px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    touch-action: pan-y;
    scrollbar-width: none;
  }

  .sold-marquee::-webkit-scrollbar {
    display: none;
  }

  .sold-track {
    width: max-content;
    gap: 12px;
    padding-left: 0;
    padding-right: 0;
    animation: none !important;
    transform: none !important;
    transition: none !important;
    backface-visibility: visible;
    will-change: auto;
  }

  .sold-track.is-static {
    width: max-content;
    animation: none !important;
    transform: none !important;
  }

  .sold-card {
    flex: 0 0 min(74vw, 340px);
    scroll-snap-align: start;
    backface-visibility: visible;
    transform: none !important;
    will-change: auto;
  }

  .sold-mobile-gallery .sold-track,
  .sold-mobile-gallery .sold-card {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .sold-mobile-gallery .sold-marquee {
    overflow-x: hidden;
  }

  .sold-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: grid;
    transform: translateY(-50%);
  }

  .sold-arrow[data-sold-direction="prev"] {
    left: 8px;
  }

  .sold-arrow[data-sold-direction="next"] {
    right: 8px;
  }
}
