/* ==========================================================================
   Smith Bros. Restorations — v3
   Design system matched to the approved concept: OKLCH dark palette,
   Bebas Neue display over Barlow body, General Lee orange as the single accent.
   ========================================================================== */

:root {
  /* Core palette (OKLCH, matched to the concept) */
  --inkdeep: oklch(19% .022 244);
  --ink:     oklch(25% .037 244);
  --steel:   oklch(35% .06 250);
  --cream:   oklch(95.5% .015 85);
  --cream2:  oklch(92% .028 80);
  --lee:     oklch(63% .19 47);
  --leealt:  oklch(70% .165 52);
  --amber:   oklch(75% .11 70);
  --muted:   oklch(75% .03 250);
  --border:  oklch(95.5% .015 85 / .12);
  --border-strong: oklch(95.5% .015 85 / .22);

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.8rem, .77rem + .14vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.4rem);
  --step-2:  clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-3:  clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --step-4:  clamp(3.2rem, 1.7rem + 7vw, 8rem);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4rem, 9vw, 8rem);
  --radius: .375rem;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

body {
  margin: 0; background: var(--inkdeep); color: var(--cream);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lee); text-underline-offset: .2em; }
a:hover { color: var(--leealt); }
:focus-visible { outline: 2px solid var(--lee); outline-offset: 3px; }
::selection { background: var(--lee); color: var(--inkdeep); }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 400; line-height: .95;
  letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .35em;
  color: var(--cream); text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: .04em; }
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; }
.section { padding-block: var(--section); border-top: 1px solid var(--border); }
.section--store { background: linear-gradient(180deg, oklch(63% .19 47 / .09), transparent 65%); }
.section--store .sec-label { color: var(--lee); }
.store-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.lede { font-size: var(--step-1); color: var(--cream2); font-weight: 400; max-width: 58ch; }
.muted { color: var(--muted); }

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

/* Section label: "(a) — Why Choose Smith Bros" */
.sec-label {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--lee);
  margin: 0 0 1.5rem; display: flex; align-items: center; gap: .85rem;
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }

/* --- Header --- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--inkdeep) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr-in { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.logo { display: block; margin-right: auto; text-decoration: none; line-height: 1; }
.logo b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .06em; color: var(--cream); font-weight: 400; }
.logo span { display: block; font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--lee); margin-top: .18rem; }
.nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .75rem; color: var(--cream2); text-decoration: none; font-size: .92rem; font-weight: 500; border-radius: var(--radius); }
.nav a:hover { color: var(--cream); background: oklch(95.5% .015 85 / .07); }
.nav .estore {
  margin-left: .6rem; padding: .62rem 1.05rem;
  background: var(--lee); border: 1px solid var(--lee); color: var(--inkdeep);
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav .estore:hover { background: var(--leealt); border-color: var(--leealt); color: var(--inkdeep); }
.burger { display: none; background: none; border: 1px solid var(--border-strong); color: var(--cream); padding: .6rem .85rem; border-radius: var(--radius); font: 500 .85rem/1 var(--font-body); cursor: pointer; }
@media (max-width: 1040px) {
  .burger { display: block; }
  .nav { position: absolute; inset: 100% 0 auto; background: var(--inkdeep); border-bottom: 1px solid var(--border); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav .estore { margin: 1rem 0 0; padding: .95rem 1rem; font-size: .95rem; text-align: center; border: 1px solid var(--lee); border-radius: var(--radius); }
}

/* --- Hero --- */
.hero { position: relative; overflow: clip; border-top: 0; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture { display: contents; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(19% .022 244 / .55) 0%, oklch(19% .022 244 / .75) 55%, var(--inkdeep) 100%);
}
.hero-in { position: relative; z-index: 2; padding-block: clamp(5rem, 14vw, 10rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 14ch; margin-bottom: .3em; }
.hero h1 .lee { color: var(--lee); display: block; }
.hero .lede { max-width: 52ch; }
.hero .btns { margin-top: 2.5rem; }

/* Stat band */
.band { border-top: 1px solid var(--border); position: relative; z-index: 2; }
.band-in { display: grid; gap: 1px; background: var(--border); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.band-in > * { background: var(--inkdeep); padding: 1.75rem clamp(1rem, 2vw, 1.75rem); }
.band .feature { display: grid; align-content: center; gap: .3rem; }
.band .feature .tag { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--lee); font-weight: 600; }
.band .feature p { margin: 0; color: var(--cream2); font-size: .98rem; }
.band dt { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--cream); }
.band dd { margin: .3rem 0 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* --- Buttons --- */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: 1.05rem 1.75rem; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  background: var(--lee); color: var(--inkdeep); border: 1px solid var(--lee);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--leealt); border-color: var(--leealt); color: var(--inkdeep); transform: translateY(-1px); }
.btn--out { background: transparent; color: var(--cream); border-color: var(--border-strong); }
.btn--out:hover { background: oklch(95.5% .015 85 / .08); border-color: var(--cream); color: var(--cream); }
.btn--store { background: transparent; color: var(--lee); border-color: var(--lee); }
.btn--store:hover { background: var(--lee); border-color: var(--lee); color: var(--inkdeep); }
.btn--lg { padding: 1.25rem 2.25rem; font-size: 1.05rem; }

/* --- Numbered feature cards --- */
.nums { display: grid; gap: 1px; background: var(--border); grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); margin: 3rem 0 0; padding: 0; list-style: none; }
.nums > li { background: var(--inkdeep); padding: 2rem 1.75rem 2.25rem; list-style: none; }
.nums .n { font-family: var(--font-display); font-size: 1.25rem; color: var(--lee); letter-spacing: .06em; }
.nums h3 { margin: .5rem 0 .6rem; }
.nums p { margin: 0; color: var(--muted); font-size: .97rem; }

/* --- Pricing --- */
.tiers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); margin-top: 2.5rem; }
.tier { background: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.85rem 2.25rem; display: flex; flex-direction: column; gap: .85rem; }
.tier--feature { border-color: var(--lee); position: relative; }
.tier--feature::before { content: "Most requested"; position: absolute; top: -.7rem; left: 1.85rem; background: var(--lee); color: var(--inkdeep); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 3px; }
.tier h3 { margin: 0; }
.tier .price { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--lee); }
.tier .price small { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .35rem; font-weight: 600; }
.tier p { margin: 0; color: var(--muted); font-size: .95rem; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .93rem; color: var(--cream2); }
.tier ul li { padding-left: 1.35rem; position: relative; }
.tier ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--lee); }
.tier .btn { margin-top: auto; justify-content: center; }

/* --- Split media --- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > *:first-child { order: 2; } }
.split img { border-radius: var(--radius); }
.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* --- Cutout figure --- */
.cutout { position: relative; }
.cutout::before { content: ""; position: absolute; inset: 10% -4% -6%; background: radial-gradient(50% 50% at 50% 60%, oklch(63% .19 47 / .3), transparent 70%); filter: blur(34px); }
.cutout img { position: relative; filter: drop-shadow(0 30px 30px oklch(0% 0 0 / .6)); }

/* ==========================================================================
   Gallery: album cards -> lightbox carousel
   ========================================================================== */
.albums { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); margin-top: 2.5rem; list-style: none; padding: 0; }
.albums li { margin: 0; }
.album-card {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer;
  background: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: inherit; font: inherit;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.album-card:hover { border-color: var(--lee); transform: translateY(-3px); }
.album-card .cover { display: block; flex: 0 0 auto; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--steel); }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.album-card:hover .cover img { transform: scale(1.06); }
.album-card .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, oklch(19% .022 244 / .8) 100%); }
.album-card .meta { flex: 1 0 auto; padding: 1.15rem 1.25rem 1.35rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.album-card .nm { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); line-height: 100%; }
.album-card .ct { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lee); white-space: nowrap; font-weight: 600; }

/* Lightbox */
.lb { border: 0; padding: 0; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: transparent; color: var(--cream); overflow: hidden; }
.lb::backdrop { background: oklch(12% .015 244 / .96); backdrop-filter: blur(8px); }
.lb-shell { display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.lb-top { display: flex; align-items: center; gap: 1rem; padding: 1rem clamp(.85rem, 3vw, 1.75rem); border-bottom: 1px solid var(--border); }
.lb-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.lb-count { font-size: .82rem; letter-spacing: .1em; color: var(--lee); font-variant-numeric: tabular-nums; margin-left: auto; font-weight: 600; }
.lb-close { background: oklch(95.5% .015 85 / .09); border: 0; color: var(--cream); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.lb-close:hover { background: var(--lee); color: var(--inkdeep); }
.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: clamp(.5rem, 2vw, 1.25rem) clamp(.5rem, 7vw, 5rem); }
.lb-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.lb-arrow { position: absolute; top: 50%; translate: 0 -50%; width: clamp(46px, 5vw, 58px); aspect-ratio: 1; border-radius: 50%; background: oklch(95.5% .015 85 / .1); border: 0; color: var(--cream); cursor: pointer; font-size: 1.6rem; display: grid; place-items: center; }
.lb-arrow:hover { background: var(--lee); color: var(--inkdeep); }
.lb-prev { left: clamp(.4rem, 2vw, 1.5rem); } .lb-next { right: clamp(.4rem, 2vw, 1.5rem); }
.lb-foot { border-top: 1px solid var(--border); min-width: 0; }
.lb-cap { text-align: center; font-size: .9rem; color: var(--muted); padding: .8rem 1rem .2rem; min-height: 1.4em; }
.lb-strip { display: flex; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; padding: .7rem clamp(.85rem, 3vw, 1.75rem) 1.1rem; scroll-snap-type: x proximity; }
.lb-strip button { flex: 0 0 auto; width: 78px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--ink); cursor: pointer; opacity: .45; scroll-snap-align: center; 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(--lee); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lb-strip { display: none; } }

/* --- Contact --- */
.contact-grid { display: grid; gap: 1px; background: var(--ink); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 2.5rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.contact-grid > div { background: var(--ink); padding: 1.85rem 1.6rem 2rem; box-shadow: 0 0 0 1px var(--border); }
.contact-grid h3 { font-size: .78rem; letter-spacing: .16em; color: var(--muted); margin-bottom: .85rem; font-family: var(--font-body); font-weight: 700; }
.contact-grid .big { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: .02em; color: var(--cream); text-decoration: none; display: block; word-break: break-word; }
.contact-grid .big:hover { color: var(--lee); }

/* --- Links list --- */
.linklist { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.linklist li { background: var(--ink); padding: 1.15rem 1.4rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; justify-content: space-between; }
.linklist .nm { font-weight: 600; color: var(--cream); }
.linklist a { font-size: .92rem; }

/* --- Footer --- */
.ftr { border-top: 1px solid var(--border); padding-block: 3.5rem 2rem; }
.ftr-in { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; justify-content: space-between; align-items: flex-start; }
.ftr p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 46ch; }
.ftr .ftr-store { display: inline-block; margin-top: .75rem; color: var(--lee); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.ftr .fine { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* stage image has no src until an album is opened */
.lb-stage img:not([src]) { display: none; }

/* --- Contact form --- */
.cform { position: relative; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); max-width: 800px; }
.cform-h { margin-top: 1.25rem; }
.cform-note { max-width: 54ch; }
.cform-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 1.75rem; }
.cform-full { grid-column: 1 / -1; }
.cform label { display: grid; gap: .45rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cform .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.cform input, .cform textarea {
  font: 400 var(--step-0)/1.5 var(--font-body); color: var(--cream); background: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .85rem 1rem;
  width: 100%; min-width: 0; transition: border-color .2s var(--ease);
}
.cform textarea { resize: vertical; min-height: 9rem; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--lee); }
.cform input:user-invalid, .cform textarea:user-invalid { border-color: oklch(65% .2 25); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-actions { margin-top: 1.5rem; align-items: center; }
.cform-status { margin: 0; font-size: .95rem; color: var(--cream2); }
.cform-status[data-state="ok"] { color: var(--amber); }
.cform-status[data-state="error"] { color: oklch(78% .15 30); }
.cform[data-busy="true"] .btn { opacity: .6; pointer-events: none; }

/* --- Quote dialog (opened from the pricing tiers) --- */
.qd { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0; width: min(760px, 100vw - 2rem); max-width: none; max-height: calc(100dvh - 2rem); background: var(--inkdeep); color: var(--cream); overflow-y: auto; overscroll-behavior: contain; }
.qd::backdrop { background: oklch(12% .015 244 / .88); backdrop-filter: blur(6px); }
.qd .cform { margin: 0; border-top: 0; max-width: none; padding: clamp(1.25rem, 4vw, 2.5rem); }
.qd .cform-h { font-size: var(--step-2); margin-top: 1rem; }
.qd-close { position: sticky; top: 0; float: right; margin: 0 0 .5rem 1rem; z-index: 1; }
.qd-close:not(:hover) { background: var(--ink); box-shadow: 0 0 0 1px var(--border-strong); }
.cform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cform legend { padding: 0; margin-bottom: .6rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cform .pick { margin-top: 1.5rem; }
.cform .bsheet { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
/* Floated so it sits inside the fieldset, not on its top border; clearance eats the
   next group's margin-top, so the gap lives on the legend. */
.cform .bsheet > legend { float: left; width: 100%; margin-bottom: .9rem; color: var(--cream2); }
.cform .bsheet > legend + * { clear: both; }
.cform .bsheet .pick { margin-top: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cform .chips label {
  position: relative; display: inline-flex; align-items: center; cursor: pointer;
  font-size: .95rem; letter-spacing: .01em; text-transform: none; font-weight: 600; color: var(--cream2);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: .5rem 1.05rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.cform .chips label:hover { border-color: var(--cream); }
.cform .chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cform .chips label:has(:checked) { background: var(--lee); border-color: var(--lee); color: var(--inkdeep); }
.cform .chips label:has(:focus-visible) { outline: 2px solid var(--lee); outline-offset: 3px; }
