/* ═══════════════════════════════════════════
   BABY PALOMINO — 1969 Ford Bronco
   Vintage Americana · collector presentation
   ═══════════════════════════════════════════ */

:root {
  --ivory: #f6f1e5;
  --cream: #fcf9f1;
  --butter: #e8d88a;
  --butter-soft: #f2e9c0;
  --gold: #9c8534;        /* accessible accent on ivory */
  --charcoal: #26231f;
  --ink: #3a362f;
  --line: rgba(38, 35, 31, 0.14);
  --white: #fffdf8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

section { scroll-margin-top: 4.5rem; }

/* ── Navigation ─────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 241, 229, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover { color: var(--charcoal); border-bottom-color: var(--butter); }

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 18, 14, 0.18) 0%,
    rgba(20, 18, 14, 0.05) 35%,
    rgba(20, 18, 14, 0.62) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 7vh, 5rem);
  color: var(--white);
  text-align: center;
}

.hero-kicker {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 9.5vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.5;
  margin: 1.25rem auto 2rem;
  max-width: 34ch;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero-note {
  margin-top: 1.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-solid {
  background: var(--butter);
  color: var(--charcoal);
  border-color: var(--butter);
}
.btn-solid:hover { background: var(--butter-soft); border-color: var(--butter-soft); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.75);
}
.btn-ghost:hover { background: rgba(255, 253, 248, 0.14); }

.btn-ghost-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost-dark:hover { background: var(--charcoal); color: var(--ivory); }

.btn-large { padding: 1.15rem 2.6rem; font-size: 0.85rem; }

/* ── Sections ───────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem); }
.section-alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.wrap { max-width: 72rem; margin: 0 auto; }
.wrap-narrow { max-width: 58rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  max-width: 24ch;
}

.center { text-align: center; }
.center h2 { margin-inline: auto; }
.center .eyebrow { margin-inline: auto; }

.lede {
  font-size: 1.15rem;
  max-width: 62ch;
  margin-bottom: 1.25rem;
}

/* ── Story ──────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-text p { margin-bottom: 1.15rem; max-width: 58ch; }
.story-text p:first-child {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--charcoal);
}

.story-figure { position: sticky; top: 6rem; }
.story-figure img { border-radius: 3px; box-shadow: 0 18px 44px rgba(38, 35, 31, 0.16); }

figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(58, 54, 47, 0.72);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ── Specs ──────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.specs-grid > div {
  padding: 1.15rem 1.25rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.specs-grid dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.specs-grid dd {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--charcoal);
}

.spec-note {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(58, 54, 47, 0.66);
  margin-top: 0.2rem;
}

.specs-footnote {
  font-size: 0.9rem;
  color: rgba(58, 54, 47, 0.78);
  max-width: 70ch;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--butter);
}

/* ── Galleries ──────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin: 2.25rem 0 2.5rem;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.88; }

.gallery-grid-4 { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.gallery-grid-tight { gap: 0.8rem; margin: 0; }
.gallery-grid-archive { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.7rem; }
.gallery-grid-archive img { aspect-ratio: 1 / 1; }

.archive { margin-top: 1rem; }

/* ── Split layouts ──────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

.split-text p { margin-bottom: 1.1rem; max-width: 52ch; }
.split-text h2 { margin-bottom: 1.25rem; }

.split-media.gallery-grid-tight { grid-template-columns: 1fr 1fr; }
.split-media figure:first-child { grid-column: 1 / -1; }

.split-figure img { border-radius: 3px; box-shadow: 0 18px 44px rgba(38, 35, 31, 0.16); }

.full-figure { margin-top: 2.5rem; }
.full-figure img { border-radius: 3px; box-shadow: 0 18px 44px rgba(38, 35, 31, 0.16); }

/* ── Inquire ────────────────────────────── */
.section-inquire {
  background: var(--charcoal);
  color: var(--ivory);
}

.section-inquire .eyebrow { color: var(--butter); }
.section-inquire h2 { color: var(--white); }
.section-inquire .lede { margin-inline: auto; color: rgba(246, 241, 229, 0.88); }
.section-inquire .btn { margin-top: 1.5rem; }

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(246, 241, 229, 0.75);
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid rgba(246, 241, 229, 0.14);
}

.footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--butter);
  margin-bottom: 1.4rem;
}

.footer-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
}

.footer-sub {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* ── Lightbox ───────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lb-img {
  max-width: min(94vw, 75rem);
  max-height: 88svh;
  object-fit: contain;
  border-radius: 2px;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(246, 241, 229, 0.85);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  transition: color 0.15s;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--butter); }

.lb-close { top: 0.75rem; right: 1rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }

/* ── Mobile ─────────────────────────────── */
@media (max-width: 760px) {
  .nav { flex-direction: column; gap: 0.5rem; padding-bottom: 0.7rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.6rem 1rem; }
  .nav-links a { font-size: 0.66rem; letter-spacing: 0.12em; }
  section { scroll-margin-top: 6.5rem; }

  .hero { min-height: 88svh; }
  .hero-actions .btn { width: 100%; max-width: 22rem; }

  .story-grid, .split, .split-reverse { grid-template-columns: 1fr; }
  .story-figure { position: static; order: -1; }
  .split-reverse .split-figure { order: 1; }

  .specs-grid > div { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
