/* =========================================================================
   Motor City Barrels - LIGHT theme
   White base, sapphire-blue pop (complementary to Rucci gold), a whisper of
   gold as a brand nod. Product photos sit on a dark "stage" tile; the hero
   is a large full-bleed banner.
   ========================================================================= */

:root {
  --paper:   #ffffff;
  --mist:    #f4f5f7;
  --ink:     #15171b;
  --ink-2:   #565c66;
  --ink-3:   #8b919b;
  --line:    #e3e6ea;
  --stage:   #101216;   /* dark tile behind product photos + hero base */
  --pop:     #1a4fd6;   /* sapphire - complementary to Rucci gold */
  --pop-2:   #1540b0;   /* pressed */
  --pop-soft:#eaf0fd;
  --gold:    #c2a05a;   /* subtle Rucci nod */

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pop); font-weight: 700; margin: 0 0 14px;
}
.eyebrow--ondark { color: #7ea0f6; }

/* chrome-text was a dark-theme treatment; on light it is just ink */
.chrome-text { color: var(--ink); }

/* =========================  HEADER  =================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; display: block; }
.wordmark { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; color: var(--ink); }
.wordmark small {
  display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--pop); margin-top: 4px; font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--pop); }

.cta-call {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; background: var(--pop);
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid var(--pop);
  white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cta-call svg { width: 15px; height: 15px; }
.cta-call:hover { background: var(--pop-2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(26,79,214,0.28); }
.cta-call--ghost { color: var(--pop); background: transparent; border-color: var(--line); }
.cta-call--ghost:hover { color: #fff; background: var(--pop); border-color: var(--pop); }
.on-dark .cta-call--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.on-dark .cta-call--ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }

.nav-toggle { display: none; }

/* =========================  HERO BANNER  ============================= */
.hero-banner {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--stage);
}
.hero-banner__media {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(120deg, rgba(16,18,22,0.55) 0%, rgba(16,18,22,0.15) 45%, rgba(16,18,22,0) 70%),
    url("../images/hero-car.png");
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}
/* dark fallback texture if the photo is not present yet */
.hero-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 120% at 75% 40%, #2a2f38 0%, #14161a 60%, #0c0d10 100%);
}
.hero-banner__media { z-index: 1; }
.hero-banner__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(10,11,14,0.78) 0%, rgba(10,11,14,0.35) 42%, rgba(10,11,14,0) 68%);
}
.hero-banner__inner { position: relative; z-index: 3; color: #fff; padding-block: clamp(40px, 8vw, 96px); }
.hero-banner h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 20px; color: #fff; max-width: 16ch;
}
.hero-banner__lead { color: rgba(255,255,255,0.82); font-size: clamp(16px, 1.7vw, 19px); max-width: 44ch; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* =========================  SECTIONS  ================================ */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--mist { background: var(--mist); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 42px); margin: 0; letter-spacing: -0.01em; color: var(--ink); }
.section__head .link { font-size: 14px; font-weight: 600; color: var(--pop); }
.section__head .link:hover { color: var(--pop-2); }

/* =========================  CATALOG  =============================== */
.catalog-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--ink-3); font-size: 13.5px; margin-bottom: 22px; }
.catalog-meta strong { color: var(--ink); font-weight: 700; }

.type-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 40px; }
.type-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-2);
  border: 1px solid var(--line); padding: 9px 17px; border-radius: 999px;
  transition: all .16s ease;
}
.type-nav a:hover { color: #fff; background: var(--pop); border-color: var(--pop); }

.type-bar { position: sticky; top: 75px; z-index: 40; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.type-bar .type-nav { margin: 0; padding: 13px 0; }
.type-nav a.active { color: #fff; background: var(--pop); border-color: var(--pop); }

.cat-section { scroll-margin-top: 150px; }

/* back to top */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 45;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--pop); background: var(--pop); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(26,79,214,0.35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--pop-2); }
.to-top svg { width: 20px; height: 20px; }
.cat-section + .cat-section { margin-top: clamp(44px, 6vw, 76px); }
.cat-section__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.cat-section__head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 34px); margin: 0; color: var(--ink); }
.cat-count { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pop); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: clamp(16px, 2vw, 26px); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(20,22,26,0.04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  opacity: 0; transform: translateY(14px);
}
.card.in { opacity: 1; transform: none; }
.card:hover { transform: translateY(-4px); border-color: #cdd3da; box-shadow: 0 18px 40px rgba(20,22,26,0.12); }

.card__img { position: relative; aspect-ratio: 1 / 1; background: var(--stage); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.finish-chip {
  position: absolute; top: 10px; left: 10px;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: #fff; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-left: 2px solid var(--gold);
  padding: 4px 8px 4px 7px; border-radius: 2px; backdrop-filter: blur(2px);
}

.card__plate { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); flex: 1; }
.card__spec { display: flex; align-items: baseline; gap: 8px; }
.card__spec .lbl { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.card__spec .val { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.card__name { font-family: var(--serif); font-size: 19px; margin: 0; color: var(--ink); }
.card__price { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: -2px; }
.card__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--pop);
  border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.card__cta svg { width: 13px; height: 13px; }
.card__cta:hover { background: var(--pop); color: #fff; border-color: var(--pop); }

/* =========================  CONTACT  =============================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 60px); }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: grid; gap: 4px; }
.info-list .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pop); font-weight: 700; }
.info-list .v { font-size: 17px; color: var(--ink); }
.info-list .v a:hover { color: var(--pop); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-family: var(--sans); font-size: 15px; padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pop); box-shadow: 0 0 0 3px var(--pop-soft); }
.form button {
  justify-self: start; font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--pop); border: 1px solid var(--pop); border-radius: var(--radius);
  padding: 12px 26px; cursor: pointer; transition: transform .15s ease, background .2s ease;
}
.form button:hover { background: var(--pop-2); transform: translateY(-1px); }
.form__note { font-size: 12.5px; color: var(--ink-3); }
.form__note a { color: var(--pop); }

/* =========================  SALES CALL-OUT BAND  ================== */
.cta-band {
  background-image: linear-gradient(90deg, rgba(13,24,86,0.92) 0%, rgba(15,28,100,0.55) 42%, rgba(15,28,100,0.10) 72%), url("../images/cta-bg.png");
  background-size: cover; background-position: center; color: #fff;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(60px, 8vw, 96px) 0; flex-wrap: wrap; }
.cta-band .eyebrow { color: #bcd0ff; margin-bottom: 10px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 42px); margin: 0 0 8px; color: #fff; letter-spacing: -0.01em; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.85); font-size: 16px; max-width: 54ch; }
.cta-band__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-light { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--pop); background: #fff; padding: 13px 22px; border-radius: var(--radius); border: 1px solid #fff; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease; }
.btn-light svg { width: 16px; height: 16px; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0,0,0,0.28); }
.btn-ghost-light { display: inline-flex; align-items: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,0.55); padding: 13px 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: background .18s ease, color .18s ease; }
.btn-ghost-light:hover { background: #fff; color: var(--pop); }

/* =========================  FOOTER (dark, substantial)  ========== */
.site-footer { background: #0e1430; color: rgba(255,255,255,0.72); padding: clamp(50px, 6vw, 76px) 0 0; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); padding-bottom: 42px; }
.footer-brand__name { font-family: var(--serif); font-weight: 600; font-size: 25px; color: #fff; letter-spacing: 0.01em; margin: 0 0 12px; }
.footer-logo { display: inline-block; background: #fff; padding: 13px 17px; border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,0.28); margin-bottom: 16px; }
.footer-logo img { height: 38px; width: auto; display: block; }
.footer-brand p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.6); max-width: 36ch; line-height: 1.6; }
.footer-brand .gold-rule { width: 48px; height: 3px; background: var(--gold); margin-top: 18px; border-radius: 2px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8fa0c8; margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,0.72); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-contact .phone { font-size: 21px; font-weight: 700; color: #fff; }
.footer-contact .phone:hover { color: var(--gold); }
.footer-contact .small { font-size: 14px; color: rgba(255,255,255,0.58); line-height: 1.55; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer__bar span, .site-footer__bar a { font-size: 13px; color: rgba(255,255,255,0.5); }
.site-footer__bar a:hover { color: rgba(255,255,255,0.85); }

/* =========================  A11Y  ================================= */
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--pop); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

/* =========================  RESPONSIVE  ========================== */
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .nav { gap: 20px; } }
@media (max-width: 680px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px var(--gutter); width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); display: block; }
  .header-cta-label { display: none; }
  .cta-call { padding: 10px 12px; }
  .hero-banner__media { background-position: 70% center; }
}
@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .brand img { height: 34px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card { opacity: 1; transform: none; }
}
