/* ==========================================================================
   360 AUTO SERVICES — cinematic showroom
   Obsidian + bone + champagne, editorial display type, film grain.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #0a0a0b;
  --ink-2: #101012;
  --bone: #f2eee7;
  --champagne: #c6a15b;
  --muted: rgba(242, 238, 231, 0.6);
  --line: rgba(242, 238, 231, 0.15);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 100rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--champagne); color: var(--ink); }

.serif {
  font-family: "Instrument Serif", "Times New Roman", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  color: var(--champagne);
}

.display {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-transform: uppercase;
  margin: 0;
}

.kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin: 0;
}
.kicker--gold { color: var(--champagne); }
.kicker--rule { display: inline-flex; align-items: center; gap: 12px; }
.kicker--rule::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.5; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .wrap { padding: 0 40px; } }

.section { padding: 80px 0; }
@media (min-width: 640px) { .section { padding: 112px 0; } }
.section--light { background: var(--bone); color: var(--ink); }
.section--light .kicker--gold { color: rgba(10, 10, 11, 0.55); }
.section--light .serif { color: inherit; }

.rule-top { border-top: 1px solid var(--line); padding-top: 40px; }
.section--light .rule-top { border-color: rgba(10, 10, 11, 0.2); }

.lede { color: var(--muted); line-height: 1.7; font-size: 15px; max-width: 34rem; }
.section--light .lede { color: rgba(10, 10, 11, 0.65); }

/* ------------------------------------------------------------- grain ----- */
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; padding: 15px 28px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--champagne); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--champagne); color: var(--ink); }
.btn--ghost { border-color: rgba(242, 238, 231, 0.25); color: var(--bone); }
.btn--ghost:hover { border-color: var(--champagne); background: var(--champagne); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-sweep {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-sweep:hover { background-size: 100% 1px; }

/* -------------------------------------------------------------- header --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 26px 0; transition: all 0.6s var(--ease);
}
.site-header.is-solid { background: rgba(10, 10, 11, 0.85); backdrop-filter: blur(12px); padding: 14px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: baseline; gap: 9px; }
.logo__mark { font-size: 26px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.logo__word { font-size: 10px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.7; }

.nav { display: none; align-items: center; gap: 34px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a { font-size: 10px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(242,238,231,0.7); transition: color 0.4s; }
.nav a:hover, .nav a.is-active { color: var(--bone); }
.nav a.is-active { color: var(--champagne); }

.burger {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(242,238,231,0.25);
  background: transparent; color: var(--bone); cursor: pointer;
}
@media (min-width: 1024px) { .burger { display: none; } }

.mobile-nav { display: none; background: var(--ink); border-top: 1px solid var(--line); }
.mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .mobile-nav.is-open { display: none; } }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid rgba(242,238,231,0.1);
  font-size: 28px; font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase;
}

/* ---------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; background: var(--ink); display: flex; flex-direction: column; padding-top: 96px; }
.hero__media { position: relative; width: 100%; aspect-ratio: 4 / 5; flex: none; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s var(--ease) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 2%, rgba(10,10,11,0.15) 40%, rgba(10,10,11,0.4) 100%);
}
.hero__body { position: relative; z-index: 4; padding: 32px 0 64px; }
.hero__title { font-size: clamp(2.5rem, 8vw, 7rem); }
.hero__foot { display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 640px) {
  .hero { height: 100svh; min-height: 38rem; justify-content: flex-end; padding-top: 112px; }
  .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__media::after { background: linear-gradient(to top, var(--ink) 4%, rgba(10,10,11,0.55) 42%, rgba(10,10,11,0.35) 100%); }
  .hero__vignette {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(120% 85% at 50% 40%, transparent 35%, rgba(10,10,11,0.85) 100%);
  }
  .hero__body { padding: 0 0 80px; margin-top: auto; }
}
@media (min-width: 1024px) {
  .hero__foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; background: var(--ink); display: flex; flex-direction: column; padding-top: 96px; }
.page-hero__media { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s var(--ease) both; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 4%, rgba(10,10,11,0.3) 55%, rgba(10,10,11,0.4) 100%);
}
.page-hero__body { position: relative; z-index: 4; padding: 28px 0 48px; }
.page-hero__title { font-size: clamp(2.4rem, 7.5vw, 6.5rem); }
@media (min-width: 640px) {
  .page-hero { height: 68svh; min-height: 26rem; justify-content: flex-end; padding-top: 112px; }
  .page-hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .page-hero__body { padding: 0 0 60px; margin-top: auto; }
}

@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .page-hero__media img { animation: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- reveals --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- grids --- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--split { grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--split { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
}

.head-row { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1024px) { .head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.head-row h2, .section h2 { font-size: clamp(2.1rem, 6vw, 5rem); }

/* ----------------------------------------------------------- car cards --- */
.card { display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #141416; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.92), transparent 55%);
}
.card__tag {
  position: absolute; top: 18px; z-index: 2;
  border-radius: 999px; border: 1px solid rgba(242,238,231,0.25);
  padding: 6px 12px; font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.card__tag--year { left: 18px; color: rgba(242,238,231,0.8); }
.card__tag--status { right: 18px; border-color: rgba(198,161,91,0.5); color: var(--champagne); }
.card__caption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 20px; }
.card__name { font-size: clamp(1.3rem, 3.4vw, 1.75rem); }
.card__specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; }
.card__specs li { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242,238,231,0.55); }
.card__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px;
}
.card__price { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.card__unit { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242,238,231,0.45); margin-left: 8px; }

/* -------------------------------------------------------------- panels --- */
.panel-grid { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 768px) { .panel-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .panel-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .panel-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.panel { background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.section--light .panel-grid { background: rgba(10,10,11,0.15); }
.section--light .panel { background: var(--bone); }

.gateway__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gateway__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gateway:hover .gateway__media img { transform: scale(1.06); }
.gateway__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,11,0.9), transparent 60%); }
.gateway__n { position: absolute; left: 20px; bottom: 14px; z-index: 2; font-size: 46px; font-weight: 800; color: rgba(242,238,231,0.25); letter-spacing: -0.05em; }
.gateway__lede { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 20px; color: var(--champagne); margin: 4px 0 0; }

/* ------------------------------------------------------------- process --- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; }
.steps li { display: grid; gap: 14px; border-top: 1px solid var(--line); padding: 34px 0; transition: border-color 0.5s; }
.steps li:hover { border-color: var(--champagne); }
@media (min-width: 768px) { .steps li { grid-template-columns: 7rem 1fr 1.2fr; gap: 40px; align-items: baseline; } }
.steps__n { font-size: 34px; font-weight: 800; color: var(--champagne); letter-spacing: -0.05em; }
.section--light .steps li { border-color: rgba(10,10,11,0.2); }

/* --------------------------------------------------------------- stats --- */
.stats { display: grid; gap: 40px; margin: 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid rgba(10,10,11,0.2); padding-top: 22px; }
.stat dd { margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.045em; }
.stat dt { margin-top: 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(10,10,11,0.55); }

/* ------------------------------------------------------------- marquee --- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 32px; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; color: rgba(242,238,231,0.25); }
.marquee__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--champagne); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- band quote --- */
.band { position: relative; overflow: hidden; height: 70svh; min-height: 26rem; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,11,0.55); }
.band__inner { position: relative; z-index: 2; height: 100%; display: grid; place-items: center; text-align: center; padding: 0 24px; }
.band__quote { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(1.6rem, 4vw, 3.4rem); line-height: 1.16; max-width: 56rem; margin: 0; }

/* --------------------------------------------------------------- forms --- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 10px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(242,238,231,0.5); }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(242,238,231,0.25);
  color: var(--bone); font: inherit; font-size: 15px; padding: 12px 0; border-radius: 0;
  transition: border-color 0.4s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--champagne); }
.field select option { background: var(--ink); color: var(--bone); }
.field--check { flex-direction: row; align-items: center; gap: 12px; }
.field--check label { letter-spacing: 0.16em; color: var(--muted); }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } .form-grid .col-2 { grid-column: span 2; } }
.form-note { font-size: 13px; color: var(--champagne); margin: 0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- flash --- */
.flash { border-radius: 10px; padding: 14px 18px; font-size: 14px; margin-bottom: 14px; }
.flash--success { background: rgba(198,161,91,0.14); border: 1px solid rgba(198,161,91,0.45); color: var(--champagne); }
.flash--error   { background: rgba(220,80,80,0.12); border: 1px solid rgba(220,80,80,0.45); color: #ff9b9b; }

/* -------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink); padding: 16px 0 48px; }
.site-footer__top { display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line); padding-top: 40px; }
@media (min-width: 640px) { .site-footer__top { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.site-footer nav a { font-size: 10px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: rgba(242,238,231,0.55); }
.site-footer nav a:hover { color: var(--bone); }
.site-footer__legal { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,238,231,0.3); margin: 40px 0 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 24px; top: 24px; z-index: 100; background: var(--champagne); color: var(--ink); padding: 12px 20px; border-radius: 999px; }

/* --------------------------------------------------------- detail page --- */
.detail { display: grid; gap: 40px; }
@media (min-width: 1024px) { .detail { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.detail__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #141416; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin: 0; }
.spec-grid > div { background: var(--ink); padding: 14px 16px; }
.spec-grid dt { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(242,238,231,0.4); }
.spec-grid dd { margin: 6px 0 0; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.gallery img { aspect-ratio: 1; object-fit: cover; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a {
  border-radius: 999px; border: 1px solid rgba(242,238,231,0.25); padding: 10px 16px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(242,238,231,0.7); transition: all 0.4s;
}
.filters a:hover { border-color: rgba(242,238,231,0.6); color: var(--bone); }
.filters a.is-active { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }

.setup-warning { background: #2a1c00; border: 1px solid var(--champagne); color: var(--champagne); padding: 16px 20px; border-radius: 10px; margin: 0 0 24px; font-size: 14px; }
