/* HBS Automotive — public site (Prestige design) */
:root {
  --gold: #d4a73a;
  --gold-light: #e8c25a;
  --bg: #000;
  --panel: #050505;
  --line: #1d1a12;
  --text: #ededed;
  --muted: #a8a8a8;
  --dim: #8c8c8c;
  --wide: 'Archivo', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--gold-light); }
img { max-width: 100%; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.h2 { overflow-wrap: break-word; hyphens: auto; margin: 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; color: #f2f2f2; }
.btn { display: inline-block; text-decoration: none; font: 700 13px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; padding: 18px 28px; border-radius: 2px; cursor: pointer; border: 0; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-light); color: #000; }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #f2f2f2; background: rgba(0,0,0,.3); padding: 17px 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.site-header .logo img { height: 64px; width: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav-links a { color: #e4e4e4; text-decoration: none; }
.nav-links a.btn { color: #000; padding: 14px 22px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: zoom 14s cubic-bezier(.2,.6,.2,1) both, fadeIn 1.6s ease both; }
.hero .shade-x { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.65) 38%, rgba(0,0,0,.1) 75%); }
.hero .shade-y { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 22%, transparent 62%, #000 100%); }
.hero .glow { position: absolute; left: 30%; right: 0; bottom: 12%; height: 160px; background: radial-gradient(ellipse at center, rgba(232,194,90,.35) 0%, transparent 70%); filter: blur(30px); animation: glow 5s ease-in-out infinite; }
.hero-content { position: relative; z-index: 2; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-top: 150px; padding-bottom: 90px; }
.hero h1 { margin: 0; max-width: 820px; font-family: var(--wide); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(42px, 7vw, 104px); line-height: .95; background: linear-gradient(100deg, #8d9299 0%, #f4f4f4 28%, #e8c25a 42%, #f4f4f4 56%, #8d9299 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite, up 1s .55s both; }
.hero .line { display: block; width: 140px; height: 2px; background: var(--gold); transform-origin: left; animation: line 1.2s 1s cubic-bezier(.6,0,.2,1) both; }
.hero p.intro { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.65; color: #c8c8c8; animation: up 1s .8s both; }
.hero .eyebrow { animation: up .9s .4s both; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; animation: up 1s 1s both; }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #070605; overflow: hidden; padding: 22px 0; }
.marquee > div { display: flex; width: max-content; gap: 56px; animation: marquee 32s linear infinite; font-family: var(--wide); font-stretch: 125%; font-weight: 700; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; color: #6f6f6f; }
.marquee b { color: var(--gold); font-weight: 700; }

/* Showroom */
.section { padding-top: 120px; padding-bottom: 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.showroom { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.tabs { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tab { display: flex; align-items: center; gap: 18px; width: 100%; padding: 14px 16px; min-height: 44px; font-family: inherit; cursor: pointer; border-radius: 4px; background: transparent; border: 1px solid #1c1c1c; color: inherit; text-align: left; transition: background .3s, border-color .3s; }
.tab[aria-selected="true"] { background: #0d0b07; border-color: var(--gold); }
.tab img { width: 96px; height: 64px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.tab[aria-selected="true"] img { opacity: 1; filter: none; }
.tab .num { font-family: var(--wide); font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: .2em; color: #777; }
.tab[aria-selected="true"] .num { color: var(--gold); }
.tab .name { display: block; font-size: 16px; font-weight: 600; color: #f2f2f2; }
.tab .price { display: block; font-size: 14px; color: var(--muted); }
.stage { flex: 999 1 660px; min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.stage-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.stage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: imgIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.stage-photo .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 30%, transparent 55%, rgba(5,5,5,.95) 100%); }
.stage-photo .ghost { position: absolute; top: 18px; right: 26px; font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: clamp(70px, 10vw, 150px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(232,194,90,.55); }
.stage-photo .title { position: absolute; left: 36px; right: 36px; bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.stage-photo .title span { font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.stage-photo .title h3 { margin: 0; font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1.05; color: #fff; }
.badge { position: absolute; left: 20px; top: 20px; background: #000; color: var(--gold); border: 1px solid var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 6px 10px; }
.stage-body { padding: 28px 36px 32px; display: flex; flex-direction: column; gap: 26px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.specs > div { background: var(--panel); padding: 18px 20px; }
.specs dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.specs dd { margin: 8px 0 0; font-family: var(--wide); font-stretch: 115%; font-weight: 700; font-size: 24px; color: #f2f2f2; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.price-big { font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: 44px; color: var(--gold); }
.anim { animation: up .8s .15s ease both; }

/* Grid of all cars */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 64px; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .photo { position: relative; aspect-ratio: 16 / 10; background: #111; }
.card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card .name { font-size: 16px; font-weight: 600; color: #f2f2f2; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .price { font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: 24px; color: var(--gold); }

/* Experience */
.dark { background: #060606; border-top: 1px solid #141414; border-bottom: 1px solid #141414; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 64px; }
.steps > div { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 1px solid #2e2818; }
.steps .n { font-family: var(--wide); font-stretch: 125%; font-weight: 900; font-size: 96px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.steps h3 { margin: 0; font-size: 20px; font-weight: 600; }
.steps p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* Quote */
.quote { position: relative; overflow: hidden; padding: 180px 32px; text-align: center; }
.quote > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.quote .shade { position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.62) 30%, rgba(0,0,0,.62) 70%, #000 100%); }
.quote blockquote { position: relative; margin: 0 auto; max-width: 1100px; font-family: var(--wide); font-stretch: 110%; font-weight: 700; font-size: clamp(28px, 3.8vw, 54px); line-height: 1.2; color: #fff; }

/* Forms */
.form-wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.form-wrap > div { flex: 1 1 420px; min-width: 0; }
.form-card { border: 1px solid #2e2818; background: #070605; border-radius: 4px; padding: 40px; }
.form-card form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { background: transparent; color: #f2f2f2; border: 0; border-bottom: 1px solid #3a3a3a; padding: 12px 0; font-size: 17px; font-family: inherit; }
.field select { background: #070605; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 15px; }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #f2b8b5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #030303; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 80px; padding-bottom: 40px; }
.site-footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.site-footer p { margin: 0; font-size: 15px; line-height: 1.6; color: #d0d0d0; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 36px; border-top: 1px solid #141414; font-size: 12px; letter-spacing: .1em; color: var(--dim); }

/* Detail page */
.detail { padding-top: 140px; padding-bottom: 96px; }
.detail .back { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px; }
.detail-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gallery { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery .main { position: relative; aspect-ratio: 16 / 10; background: #0a0a0a; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumbs button { padding: 0; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: #111; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side .box { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.side h1 { margin: 0; font-family: var(--wide); font-stretch: 115%; font-weight: 800; font-size: 32px; line-height: 1.1; }
.desc { white-space: pre-line; font-size: 16px; line-height: 1.7; color: #c8c8c8; margin: 0; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed #333; border-radius: 4px; }

@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes imgIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .8; } }
@keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 700px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
  .site-header .logo img { height: 48px; }
  .hero-content { padding-top: 120px; padding-bottom: 60px; }
  .stage-body, .form-card { padding: 22px; }
  .stage-photo .title { left: 20px; right: 20px; }
  .two { grid-template-columns: 1fr; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .h2 { font-size: 27px !important; font-stretch: 112%; }
  .hero h1 { font-size: 40px; font-stretch: 112%; }
  .price-big { font-size: 34px; }
  .steps .n { font-size: 72px; }
  .quote { padding: 120px 20px; }
}
