
/* VELORA MOTORS V3 — PREMIUM RESPONSIVE DESIGN */

:root {
  --bg: #090b0e;
  --surface: #14171c;
  --surface-2: #1d2229;
  --text: #f9f6f0;
  --muted: #aaaeb6;
  --gold: #cba875;
  --gold-light: #f0d4a9;
  --line: rgba(255,255,255,.13);
  --container: 1260px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", Arial, sans-serif;
}

button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -100px;
  left: 15px;
  padding: 12px;
  background: white;
  color: black;
}

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

.scroll-progress {
  position: fixed;
  z-index: 200;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: var(--gold);
}

/* NAVIGATION */

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

.header.scrolled {
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  flex-shrink: 0;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .13em;
}

.logo span, .footer strong span { color: var(--gold); }

.logo small {
  display: block;
  margin-top: 5px;
  color: #a8a6a2;
  font-size: .47rem;
  letter-spacing: .22em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-links a {
  color: #d2d0cb;
  font-size: .85rem;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-links .nav-cta {
  padding: 12px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 9px;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px auto;
  background: white;
}

/* HERO */

.hero {
  background:
    radial-gradient(ellipse at 80% 40%,
      rgba(184,135,74,.14), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: center;
  gap: 43px;
  min-height: 720px;
  padding-block: 75px;
}

.eyebrow {
  margin: 0;
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.hero h1 {
  margin: 30px 0 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(4rem, 7vw, 7.3rem);
  line-height: .99;
  letter-spacing: -.035em;
}

.hero h1 em,
.section-heading h2 em,
.contact-inner h2 em {
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-description {
  max-width: 460px;
  margin: 28px 0 0;
  color: #c2c1be;
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  font-size: .85rem;
  font-weight: 800;
  transition: transform .2s, background .2s;
}

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

.btn-gold {
  background: var(--gold);
  color: #111;
}

.btn-gold:hover { background: var(--gold-light); }

.btn-border {
  border: 1px solid #817565;
  color: white;
}

.hero-bottom-note {
  margin-top: 53px;
  color: #a8a4a0;
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .09em;
}

.hero-bottom-note span {
  color: var(--gold);
  margin-inline: 5px;
}

/* HERO SHOWCASE */

.hero-stage {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(203,168,117,.32);
  background: #161b21;
  box-shadow: 0 35px 70px rgba(0,0,0,.3);
}

.stage-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 20px;
  color: var(--gold-light);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.live-indicator { color: #a8debe; }

.stage-photo {
  height: clamp(300px, 34vw, 470px);
  overflow: hidden;
  background: #11151b;
}

.stage-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .2s;
}

.stage-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.stage-info h2 {
  margin: 5px 0;
  font-size: clamp(1.3rem,2.2vw,2rem);
  line-height: 1.2;
}

.stage-info p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.stage-counter {
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
}

.stage-controls > button,
.modal-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #1b2026;
  color: white;
  font-size: 1.3rem;
}

.stage-controls > button:hover,
.modal-controls button:hover {
  border-color: var(--gold);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 29px;
  height: 30px;
  border: 0;
  background: transparent;
  position: relative;
}

.hero-dot::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 14px;
  height: 3px;
  background: #60636a;
}

.hero-dot.active::after { background: var(--gold); }

/* BRAND STRIP */

.brand-strip {
  border-block: 1px solid var(--line);
  background: #15181d;
}

.brand-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 20px;
  color: #d0c9c0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.brand-strip b { color: var(--gold); }

/* SECTION HEADING */

.section { padding-block: 110px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2.5rem,5vw,5rem);
  line-height: 1.13;
  letter-spacing: -.055em;
}

.section-heading > p {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* FILTERS */

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 25px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter {
  min-height: 45px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: #d3d2d0;
  font-size: .8rem;
}

.filter.active,
.filter:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

#collectionCount {
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

/* FIVE CAR CARDS */

.car-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 25px 20px;
}

.car-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #13171c;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: rgba(203,168,117,.7);
}

.card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #20242a;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.car-card:hover .card-media img { transform: scale(1.05); }

.card-label {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 8px 11px;
  background: rgba(8,10,12,.85);
  color: var(--gold-light);
  font-size: .63rem;
  font-weight: 800;
}

.card-content { padding: 22px; }

.card-content > span {
  color: var(--gold);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.card-content h3 {
  margin: 8px 0 0;
  font-size: 1.65rem;
  line-height: 1.3;
}

.card-content p {
  margin: 8px 0 19px;
  color: var(--muted);
  font-size: .85rem;
}

.card-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #766d60;
  background: transparent;
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 800;
}

.card-button:hover {
  background: var(--gold);
  color: #111;
}

/* PHOTO EXPLORER */

.explore-section {
  padding-block: 105px;
  border-block: 1px solid var(--line);
  background: #13171c;
}

.explorer-layout {
  display: grid;
  grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr);
  gap: 30px;
  align-items: start;
}

.explorer-visual,
.explorer-details {
  min-width: 0;
}

.explorer-photo {
  height: 480px;
  overflow: hidden;
  background: #20242b;
  border: 1px solid var(--line);
}

.explorer-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.explorer-photo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
}

.explorer-photo-bottom span {
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.explorer-photo-bottom button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-size: .78rem;
}

.explorer-photo-bottom button:hover {
  background: var(--gold);
  color: black;
}

.thumbnails,
.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px;
}

.thumb {
  min-width: 0;
  overflow: hidden;
  padding: 3px;
  border: 2px solid transparent;
  background: #252a31;
  color: #ddd;
}

.thumb.active { border-color: var(--gold); }

.thumb img {
  width: 100%;
  height: 68px;
  object-fit: cover;
}

.thumb span {
  display: block;
  padding-block: 5px;
  font-size: .65rem;
  text-align: center;
}

.explorer-details {
  padding: clamp(23px,3.5vw,42px);
  border: 1px solid var(--line);
  background: #1b2027;
}

.explorer-details h3 {
  margin: 15px 0 9px;
  font-size: clamp(1.9rem,3.2vw,3rem);
  line-height: 1.16;
}

.explorer-details > p:not(.field-label):not(.spec-note) {
  color: var(--muted);
}

.field-label {
  display: block;
  margin: 27px 0 12px;
  color: var(--gold-light);
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .12em;
}

#carSelect {
  width: 100%;
  min-height: 49px;
  padding: 12px;
  border: 1px solid #786b58;
  border-radius: 0;
  background: #11151a;
  color: white;
}

.angle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.angle-button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: #10141a;
  color: white;
  font-size: .77rem;
}

.angle-button.active,
.angle-button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
}

.explorer-details h4 {
  margin: 31px 0 13px;
  font-size: .8rem;
  letter-spacing: .12em;
}

.spec-list { margin: 0; }

.spec-list > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: #aba9a7;
  font-size: .68rem;
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  text-align: right;
  font-size: .82rem;
}

.spec-note {
  margin-top: 18px;
  color: #999c9f;
  font-size: .72rem;
}

/* FEATURES */

.experience-section { padding-block: 110px; }

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

.feature-card {
  min-width: 0;
  padding: 30px;
  background: #161a20;
  border: 1px solid var(--line);
}

.feature-card > span {
  color: var(--gold);
  font-size: .7rem;
  font-weight: 800;
}

.feature-symbol {
  margin: 28px 0 14px;
  color: var(--gold-light);
  font-size: 2.7rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* CONTACT */

.contact-section {
  padding-block: 115px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center,
      rgba(166,119,59,.15),transparent 70%),
    #11151a;
}

.contact-inner { text-align: center; }

.contact-inner h2 {
  margin: 22px 0;
  font-size: clamp(2.9rem,6.5vw,6.4rem);
  line-height: 1.12;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.contact-inner > p:not(.eyebrow) {
  max-width: 560px;
  margin: auto;
  color: var(--muted);
}

.contact-actions { justify-content: center; }

/* FOOTER */

.footer {
  padding-block: 40px 20px;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.footer strong {
  font-size: 1.6rem;
  letter-spacing: .15em;
}

.footer p {
  margin: 6px 0;
  color: var(--muted);
  font-size: .8rem;
}

.rights-note {
  padding-top: 25px;
  border-top: 1px solid var(--line);
  margin-top: 30px !important;
}

/* FULLSCREEN DIALOG */

.photo-dialog {
  width: min(1100px,96%);
  max-width: 96vw;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--gold);
  background: #11151a;
  color: white;
  overflow-y: auto;
}

.photo-dialog::backdrop {
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
}

.modal-top,
.modal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 23px;
}

.modal-top {
  border-bottom: 1px solid var(--line);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.modal-top button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #242932;
  color: white;
}

.modal-photo {
  display: grid;
  place-items: center;
  min-height: 230px;
  background: #0a0e13;
}

.modal-photo img {
  max-height: 60dvh;
  width: 100%;
  object-fit: contain;
}

.modal-bottom h2 { margin: 0; font-size: 1.35rem; }

.modal-bottom p {
  margin: 4px 0;
  color: var(--gold-light);
  font-size: .8rem;
}

.modal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-controls span {
  font-size: .8rem;
  white-space: nowrap;
}

.modal-thumbnails {
  padding: 12px 20px 20px;
}

/* IMAGE ERROR FALLBACK */

.media-frame.image-error {
  position: relative;
  min-height: 120px;
  background: #222831;
}

.media-frame.image-error img { opacity: 0; }

.media-frame.image-error::after {
  content: "Photograph unavailable — check the filename";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 15px;
  color: var(--gold-light);
  text-align: center;
  font-size: .82rem;
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  right: 21px;
  bottom: 21px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #111;
  font-size: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.noscript-notice {
  padding: 20px;
  background: #39251e;
  color: white;
}

/* REVEAL ANIMATIONS */

.js .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .65s ease, transform .65s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TABLET */

@media (max-width: 950px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero h1 { font-size: clamp(4rem,10vw,6rem); }

  .stage-photo { height: 430px; }

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

  .explorer-layout { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .navbar { min-height: 72px; }

  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 4%;
    border-bottom: 1px solid var(--line);
    background: #171b20;
  }

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

  .nav-links a { padding: 13px 12px; }

  .nav-links .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-heading > p { max-width: 600px; }

  .section,
  .experience-section,
  .explore-section { padding-block: 75px; }
}

/* MOBILE */

@media (max-width: 600px) {
  .container { width: 92%; }

  .hero-grid {
    gap: 33px;
    padding-block: 50px 65px;
  }

  .hero h1 { font-size: clamp(3.3rem,11vw,5rem); }

  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }

  .hero-bottom-note { margin-top: 32px; }

  .stage-heading { padding: 14px; font-size: .57rem; }

  .stage-photo { height: 285px; }

  .stage-info { padding: 17px; }

  .stage-controls { padding: 12px; }

  .hero-dot { width: 25px; }

  .brand-strip .container { justify-content: center; }

  .section-heading h2 {
    font-size: clamp(2.3rem,9vw,3.5rem);
  }

  .car-grid { grid-template-columns: 1fr; }

  .filter { padding-inline: 12px; font-size: .75rem; }

  .explorer-photo { height: 300px; }

  .explorer-photo-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .explorer-photo-bottom button { width: 100%; }

  .thumb img { height: 48px; }

  .thumb span { font-size: .55rem; }

  .explorer-details { padding: 23px; }

  .angle-button {
    flex: 1 1 75px;
    padding-inline: 9px;
  }

  .contact-section { padding-block: 80px; }

  .contact-inner h2 {
    font-size: clamp(2.5rem,9vw,4rem);
  }

  .modal-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-controls {
    width: 100%;
    justify-content: space-between;
  }

  .modal-thumbnails { padding: 9px; }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
