/*
  Vtech Motors base stylesheet
  Purpose: Global tokens, layout primitives, and desktop-first component styling.
  Structure: Variables, reset, shared components, sections, cards, forms, footer.
*/

:root {
  --color-black: #050505;
  --color-ink: #0c0c0f;
  --color-panel: rgba(17, 17, 19, 0.76);
  --color-panel-solid: #121215;
  --color-white: #ffffff;
  --color-muted: #b9b9bd;
  --color-line: rgba(255, 255, 255, 0.12);
  --color-gold: #d7ad57;
  --color-gold-dark: #9e7835;
  --color-wine: #381519;
  --color-steel: #6f7b84;
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.36);
  --shadow-gold: 0 14px 36px rgba(215, 173, 87, 0.2);
  --radius: 8px;
  --container: 1320px;
  --transition: 220ms ease;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--color-gold);
  color: #111;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

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

.section {
  padding: 110px 0;
  background:
    radial-gradient(circle at top left, rgba(215, 173, 87, 0.07), transparent 34%),
    linear-gradient(180deg, #08080a, #111114);
}

.section-dark {
  position: relative;
  background: var(--color-black);
  overflow: hidden;
}

.section-compact {
  padding: 54px 0;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 8vw, 6.9rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 500;
}

h3 {
  font-size: 1.08rem;
}

p {
  color: var(--color-muted);
}

/* Buttons: shared command styles, with gold, glass, and outline variants. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold), #f2d490);
  color: #15100a;
  box-shadow: var(--shadow-gold);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-line);
  color: var(--color-white);
  backdrop-filter: blur(14px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(215, 173, 87, 0.42);
  color: var(--color-gold);
}

.btn--outline:hover {
  background: rgba(215, 173, 87, 0.1);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 173, 87, 0.6);
  background: rgba(215, 173, 87, 0.12);
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* Header: sticky glass navigation that shrinks through JavaScript on scroll. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-height);
  background: rgba(5, 5, 5, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-shrunk {
  height: 68px;
  background: rgba(5, 5, 5, 0.82);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(215, 173, 87, 0.72);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.logo__text {
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 690px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8e8e9;
  font-size: 0.84rem;
  backdrop-filter: blur(14px);
}

.desktop-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--color-white);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header__phone {
  color: #eeeeef;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-white);
}

/* Mobile drawer: hidden by default, made visible with body/menu classes. */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 940;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity var(--transition);
}

.menu-overlay.is-visible {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 950;
  width: min(88vw, 390px);
  padding: 24px;
  background: rgba(10, 10, 12, 0.96);
  border-right: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  transform: translateX(-105%);
  transition: transform 300ms ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.mobile-menu__nav {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.mobile-menu__nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-line);
  color: #f4f4f5;
  font-size: 1.08rem;
}

/* Hero: full-height image stage with readable overlay and floating proof panel. */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: var(--header-height);
}

.hero__image,
.hero__shade,
.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image {
  transform: scale(1.03);
}

.hero__shade,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, #050505 0%, transparent 34%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 72px 0 120px;
}

.hero__lead {
  max-width: 690px;
  font-size: 1.16rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.hero__stats {
  max-width: 620px;
  margin-top: 48px;
  overflow: hidden;
  contain: paint;
}

.hero__stats-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero__stats-track div,
.stats-grid div {
  padding: 24px;
  border-right: 1px solid var(--color-line);
}

.hero__stats-track div:nth-child(3),
.stats-grid div:last-child {
  border-right: 0;
}

.hero__stats-track div[aria-hidden="true"] {
  display: none;
}

.hero__stats strong,
.stats-grid strong {
  display: block;
  color: var(--color-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.hero__stats span,
.stats-grid span {
  color: #e1e1e2;
  font-size: 0.9rem;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
}

.scroll-indicator span {
  display: block;
  width: 5px;
  height: 5px;
  margin: 10px auto;
  border-radius: 50%;
  background: var(--color-gold);
  animation: scrollPulse 1.6s infinite;
}

/* Cards: inventory, feature, and service cards share premium dark surfaces. */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vehicle-card,
.feature-card,
.service-card,
.testimonial-card,
.contact-form,
.contact__info {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.vehicle-card {
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.vehicle-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 173, 87, 0.48);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.5);
}

.vehicle-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.vehicle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.vehicle-card:hover .vehicle-card__media img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.vehicle-card__body {
  padding: 22px;
}

.vehicle-card__title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.vehicle-card__title h3 {
  margin-bottom: 8px;
}

.vehicle-card__title strong {
  color: var(--color-gold);
  white-space: nowrap;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.spec-grid span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #dedee0;
  font-size: 0.84rem;
}

.brand-strip {
  max-width: 100%;
  overflow: hidden;
  contain: paint;
}

.brand-strip__track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.brand-strip span {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #eeeeef;
  font-family: Georgia, "Times New Roman", serif;
  transition: color var(--transition), transform var(--transition), border-color var(--transition);
}

.brand-strip span:hover {
  color: var(--color-gold);
  border-color: rgba(215, 173, 87, 0.55);
  transform: translateY(-4px);
}

.brand-strip span[aria-hidden="true"] {
  display: none;
}

.feature-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.service-card {
  padding: 26px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 173, 87, 0.42);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), 0 0 24px rgba(215, 173, 87, 0.08);
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(215, 173, 87, 0.13);
  color: var(--color-gold);
  font-weight: 900;
}

.showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
  margin-bottom: 78px;
}

.showcase:last-child {
  margin-bottom: 0;
}

.showcase--reverse img {
  order: 2;
}

.showcase img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stats-band {
  padding: 74px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 420ms ease;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 44px;
  text-align: center;
}

.testimonial-card img {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.testimonial-card p {
  max-width: 760px;
  margin-inline: auto;
  color: #eeeeef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.testimonial-card span {
  display: block;
  color: var(--color-muted);
}

.testimonial-card strong {
  color: var(--color-gold);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.financing__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 42px;
  border: 1px solid rgba(215, 173, 87, 0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(56, 21, 25, 0.68), rgba(18, 18, 21, 0.94)),
    radial-gradient(circle at right, rgba(215, 173, 87, 0.16), transparent 34%);
}

.financing__inner p {
  max-width: 720px;
}

.cta {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.cta__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
}

.cta__content .hero__buttons {
  justify-content: center;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.contact__info,
.contact-form {
  padding: 34px;
}

.contact__info ul {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.contact__info li {
  display: grid;
  gap: 4px;
}

.contact__info strong {
  color: var(--color-gold);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #ededee;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.newsletter input {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  padding: 13px 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.newsletter input:focus {
  border-color: rgba(215, 173, 87, 0.7);
  box-shadow: 0 0 0 4px rgba(215, 173, 87, 0.1);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.site-footer {
  padding: 72px 0 28px;
  background: #050505;
  border-top: 1px solid var(--color-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 30px;
}

.footer-grid h3 {
  color: var(--color-gold);
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--color-muted);
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--color-gold);
}

.newsletter {
  display: flex;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 38px;
  border-top: 1px solid var(--color-line);
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a,
.footer-bottom p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 700;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(215, 173, 87, 0.6);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.82);
  color: var(--color-gold);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
