/* ==========================================================================
   Smith Bros. Restorations — v2
   Palette carried from the 2006 site, rebuilt as a modern scale.
   #FF5307 General Lee orange is the signature and stays the primary accent.
   ========================================================================== */

:root {
  /* Brand */
  --orange:      #ff5307;
  --orange-600:  #e04604;
  --orange-300:  #ff8a4d;
  --red:         #8f2316;
  --red-700:     #6e1a10;
  --steel:       #435972;
  --yellow:      #ffcc00;

  /* Neutrals */
  --ink:         #0f1216;
  --ink-800:     #171b21;
  --ink-700:     #232932;
  --ink-500:     #4a5461;
  --ink-300:     #7d8896;
  --paper:       #ffffff;
  --paper-soft:  #f5f7f9;
  --paper-warm:  #faf8f6;
  --line:        #e2e6ea;
  --line-dark:   #2c333d;

  /* Type */
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.875rem, .84rem + .18vw, .95rem);
  --step-0:  clamp(1.0625rem, 1.02rem + .22vw, 1.1875rem);
  --step-1:  clamp(1.3rem, 1.2rem + .5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.45rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.7rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.8rem, 1.9rem + 4.2vw, 5.5rem);

  /* Space + shape */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --r-sm: 4px;
  --r: 10px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgb(15 18 22 / .06), 0 4px 14px rgb(15 18 22 / .07);
  --shadow-2: 0 12px 40px rgb(15 18 22 / .16);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-800);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--orange-600); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--soft { background: var(--paper-soft); }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: #d8dde3; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--black-300); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- Eyebrow / kicker --------------------------------------------------- */
.kicker {
  font-family: var(--display);
  font-size: var(--step--1);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; max-width: 90px; }
.section--dark .kicker { color: var(--orange-300); }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.brand-mark span { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--orange); font-weight: 400; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: #fff;
  font: 500 .9rem/1 var(--body); padding: .65rem .9rem; border-radius: var(--r-sm); cursor: pointer;
}
.nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .55rem .8rem; border-radius: var(--r-sm);
  color: #c8cfd8; text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgb(255 255 255 / .07); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .cta {
  background: var(--orange); color: #fff; padding: .6rem 1.05rem; border-radius: 100px; margin-left: .5rem;
}
.nav .cta:hover { background: var(--orange-600); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto; background: var(--ink);
    border-bottom: 1px solid var(--line-dark); padding: .75rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav .cta { margin: .6rem 0 0; text-align: center; }
}

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: clip; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgb(15 18 22 / .93) 0%, rgb(15 18 22 / .78) 45%, rgb(15 18 22 / .3) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 9rem); }
.hero h1 { font-size: var(--step-4); color: #fff; max-width: 16ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { font-size: var(--step-1); color: #d6dce3; max-width: 46ch; font-weight: 300; line-height: 1.45; }
.hero .btn-row { margin-top: 2.25rem; }

.hero-facts {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgb(255 255 255 / .12);
}
.hero-facts div { flex: 1 1 190px; padding: 1.4rem 0 1.6rem; }
.hero-facts dt { font-family: var(--display); font-size: 1.9rem; color: var(--orange); line-height: 1; }
.hero-facts dd { margin: .35rem 0 0; font-size: .88rem; color: #aab3bd; letter-spacing: .02em; }

/* --- Buttons ------------------------------------------------------------ */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  --btn-bg: var(--orange); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--body); letter-spacing: .01em;
  padding: 1rem 1.6rem; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--orange-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgb(255 255 255 / .1); color: currentColor; }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--ink-700); }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:has(a:hover) { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card > img, .card-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--ink-500); font-size: .98rem; }
.card-body .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--red); }
.card-body .more::after { content: " →"; }

/* --- Media rows --------------------------------------------------------- */
.media { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 800px) {
  .media { grid-template-columns: 1fr 1.15fr; }
  .media--flip > figure { order: 2; }
}
.media figure { margin: 0; }
.media img { border-radius: var(--r); box-shadow: var(--shadow-1); width: 100%; }

/* --- Prose -------------------------------------------------------------- */
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); box-shadow: var(--shadow-1); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }

.pull {
  border-left: 4px solid var(--orange); background: var(--paper-warm);
  padding: 1.5rem 1.75rem; border-radius: 0 var(--r) var(--r) 0; margin: 2em 0;
}
.pull p:first-child { margin-top: 0; }
.pull-title { font-family: var(--display); font-size: var(--step-1); color: var(--ink); margin-bottom: .5rem; }

.callout {
  background: var(--ink); color: #dfe4ea; border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); margin: 2em 0;
}
.callout h3 { color: #fff; margin-top: 0; }
.callout a { color: var(--orange-300); }

/* --- Spec lists --------------------------------------------------------- */
.spec { list-style: none; padding: 0; margin: 1.5em 0; border-top: 1px solid var(--line); }
.spec li { padding: .85rem .25rem; border-bottom: 1px solid var(--line); display: flex; gap: .85rem; }
.spec li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--orange); }
.spec li ul { list-style: none; padding: .5rem 0 0; margin: 0; columns: 2; column-gap: 2rem; font-size: .95rem; color: var(--ink-500); }
.spec li ul li { border: 0; padding: .18rem 0; break-inside: avoid; }
.spec li ul li::before { display: none; }
.spec .spec-head { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: .9rem 1.1rem; font-family: var(--display); letter-spacing: .02em; }
.spec .spec-head::before { display: none; }
.spec .spec-head a { color: var(--orange-300); }

.spec {
  border-top: none;
  padding-left: 0 !important;
}

/* --- Link list ---------------------------------------------------------- */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.link-list li { background: var(--paper); padding: 1.25rem 1.4rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; justify-content: space-between; }
.link-list .name { font-weight: 600; color: var(--ink); }

/* --- Contact cards ------------------------------------------------------ */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; background: var(--paper); }
.contact-card h3 { margin-bottom: .6rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.contact-big { font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.85rem); color: var(--ink); text-decoration: none; display: block; margin-bottom: 1rem; word-break: break-word; }
.contact-big:hover { color: var(--orange-600); }

/* --- Video -------------------------------------------------------------- */
.video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* --- Page head ---------------------------------------------------------- */
.page-head { background: var(--ink); color: #fff; padding-block: clamp(3rem, 8vw, 5.5rem); }
.page-head h1 { color: #fff; margin-bottom: .4em; }
.page-head .lede { font-size: var(--step-1); color: #b9c2cc; max-width: 52ch; font-weight: 300; margin: 0; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #97a1ac; padding-block: var(--section) 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h2 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #b9c2cc; text-decoration: none; }
.site-footer a:hover { color: var(--orange-300); }
.colophon { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: #6e7883; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-bar {
  position: sticky; top: 72px; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: .85rem;
}
.filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .15rem; scroll-snap-type: x proximity; }
.filters button {
  flex: 0 0 auto; scroll-snap-align: start;
  font: 500 .9rem/1 var(--body); white-space: nowrap;
  padding: .6rem 1.05rem; border-radius: 100px; cursor: pointer;
  background: var(--paper); color: var(--ink-500);
  border: 1px solid var(--line);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filters button:hover { border-color: var(--ink-300); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .count { opacity: .55; margin-left: .4em; font-variant-numeric: tabular-nums; }

.album { padding-block: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.album:last-of-type { border-bottom: 0; }
.album[hidden] { display: none; }
.album-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.album-head h2 { margin: 0; }
.album-head .n { font-family: var(--body); font-size: .9rem; color: var(--ink-300); letter-spacing: .04em; text-transform: uppercase; }

.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
@media (min-width: 700px) { .shots { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.shots li { margin: 0; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--paper-soft); border-radius: var(--r); overflow: hidden;
  position: relative; aspect-ratio: 4 / 3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), filter .3s var(--ease); }
.shot::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgb(15 18 22 / .08); pointer-events: none;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot:hover::after { box-shadow: inset 0 0 0 2px var(--orange); }

/* --- Lightbox ----------------------------------------------------------- */
.lb { border: 0; padding: 0; inset: 0; margin: 0; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; background: transparent; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgb(8 10 13 / .94); backdrop-filter: blur(6px); }
.lb-shell { display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); height: 100dvh; overflow: hidden; background: rgb(12 14 18 / .6); }
.lb-shell > * { min-width: 0; }

.lb-top { display: flex; align-items: center; gap: 1rem; padding: .9rem clamp(.75rem, 3vw, 1.5rem); }
.lb-title { font-family: var(--display); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin: 0; }
.lb-counter { font-size: .85rem; color: #9aa4af; font-variant-numeric: tabular-nums; margin-left: auto; }
.lb-x { background: rgb(255 255 255 / .08); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; display: grid; place-items: center; }
.lb-x:hover { background: var(--orange); }

.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-width: 0; min-height: 0; overflow: hidden; padding: 0 clamp(.5rem, 6vw, 4.5rem); }
.lb-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: clamp(44px, 6vw, 56px); aspect-ratio: 1; border-radius: 50%;
  background: rgb(255 255 255 / .1); border: 0; color: #fff; cursor: pointer;
  font-size: 1.5rem; display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lb-nav:hover { background: var(--orange); }
.lb-prev { left: clamp(.4rem, 2vw, 1.25rem); }
.lb-next { right: clamp(.4rem, 2vw, 1.25rem); }
.lb-cap { text-align: center; font-size: .9rem; color: #aeb7c1; padding: .75rem 1rem 0; min-height: 1.5em; }

.lb-strip { display: flex; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; padding: .85rem clamp(.75rem, 3vw, 1.5rem) 1.1rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.lb-strip button { flex: 0 0 auto; width: 74px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1a1e24; cursor: pointer; scroll-snap-align: center; opacity: .5; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.lb-strip button:hover { opacity: .85; }
.lb-strip button[aria-current="true"] { opacity: 1; border-color: var(--orange); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) { .lb-strip { display: none; } .lb-nav { background: rgb(255 255 255 / .16); } }

/* ==========================================================================
   Cutout treatments
   ========================================================================== */
.hero--cutout { background: radial-gradient(120% 90% at 78% 45%, #232a34 0%, #12161c 55%, #0b0e12 100%); }
.hero--cutout::after { content: none; }
.hero--cutout .hero-inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero--cutout .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero-car { position: relative; }
.hero-car::before {
  content: ""; position: absolute; inset: 8% -6% -8%;
  background: radial-gradient(50% 50% at 50% 60%, rgb(255 83 7 / .34), transparent 70%);
  filter: blur(30px); z-index: 0;
}
.hero-car img {
  position: relative; z-index: 1; width: 100%;
  filter: drop-shadow(0 34px 34px rgb(0 0 0 / .55));
}
@media (min-width: 900px) { .hero-car { margin-right: calc(var(--gutter) * -1.5); } }

.card--cutout .card-media {
  background: linear-gradient(165deg, #eef1f5 0%, #dfe4ea 100%);
  padding: 1.5rem 1.25rem .5rem; display: grid; place-items: center;
}
.card--cutout .card-media img {
  aspect-ratio: auto; width: 100%; max-height: 190px; object-fit: contain;
  filter: drop-shadow(0 14px 16px rgb(15 18 22 / .3));
  transition: transform .35s var(--ease);
}
.card--cutout:has(a:hover) .card-media img { transform: scale(1.04) translateY(-2px); }
