/* ==========================================================================
   Clay's Fix-It Co. -- stylesheet
   Vintage sign-painter identity: cream paper, teal, brick red.
   No build step. Plain CSS custom properties.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.25rem, 1.4rem + 2.9vw, 3.75rem);

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;   --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --maxw: 1160px;
  --header-h: 72px;

  --font-display: 'Alfa Slab One', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root, [data-theme='light'] {
  --bg: #F5EEDD;
  --bg-2: #EFE5CF;
  --surface: #FCF8EE;
  --surface-2: #F7F0DF;
  --ink: #23201B;
  --ink-muted: #6B6355;
  --ink-faint: #7E7563;
  --line: #DCCFB2;
  --line-strong: #C9B893;
  --teal: #1C6B70;
  --teal-band: #1C6B70;
  --red: #C33A2C;
  --red-solid: #C33A2C;
  --red-dark: #9E2C20;
  --teal-solid: #1C6B70;
  --orange: #D9862C;
  --star: #A9620F;
  --green: #2F7A4F;
  --on-dark: #FBF5E6;
  --skeleton: linear-gradient(90deg, #EBE1C9 25%, #F4ECD9 50%, #EBE1C9 75%);
  --shadow: 0 2px 0 rgba(35,32,27,.10), 0 10px 30px -12px rgba(35,32,27,.28);
  --shadow-lg: 0 24px 60px -20px rgba(35,32,27,.45);
}

[data-theme='dark'] {
  --bg: #1A1E1C;
  --bg-2: #141817;
  --surface: #232826;
  --surface-2: #1F2422;
  --ink: #F3EBD9;
  --ink-muted: #A79E8B;
  --ink-faint: #8C8474;
  --line: #363C39;
  --line-strong: #4A524E;
  --teal: #4FA9AE;
  --teal-band: #12474B;
  --red: #E0604F;
  --red-solid: #B03828;
  --red-dark: #8E2C1F;
  --teal-solid: #14555A;
  --orange: #E5A254;
  --star: #E5A254;
  --green: #5BB183;
  --on-dark: #FBF5E6;
  --skeleton: linear-gradient(90deg, #262C29 25%, #2F3633 50%, #262C29 75%);
  --shadow: 0 2px 0 rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* Components that set their own display (buttons, flex rows) would otherwise
   win against the hidden attribute, so make hidden always mean hidden. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

:where(h1,h2,h3,h4) { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; }
h2 { font-size: var(--text-xl); }
h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); line-height: 1.25; }
p { margin: 0 0 var(--space-4); }

:target { scroll-margin-top: calc(var(--header-h) + var(--space-6)); }
section[id] { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

::selection { background: var(--red-solid); color: #FFF7E8; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section--tight { padding-top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--red-solid); color: #FFF7E8; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

.eyebrow {
  font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--teal); margin: 0 0 var(--space-3);
}
.eyebrow--accent { color: var(--orange); }
.lede { font-size: var(--text-base); color: var(--ink-muted); max-width: 58ch; }
.section__head { max-width: 62ch; margin-bottom: var(--space-10); }
.section__head .lede { margin-top: var(--space-4); }
.link-accent { color: var(--red); font-weight: 600; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .02em; line-height: 1.2;
  padding: var(--space-3) var(--space-6);
  min-height: 46px;
  border-radius: var(--radius-sm);
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: not-allowed; opacity: .6; transform: none; }

.btn--primary { background: var(--red-solid); color: #FFF7E8; box-shadow: 0 3px 0 var(--red-dark); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--onteal { background: var(--on-dark); color: #14484C; }
.btn--onteal:hover { background: #fff; }
.btn--outline-light { border-color: rgba(251,245,230,.5); color: var(--on-dark); }
.btn--outline-light:hover { background: rgba(251,245,230,.14); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-3); position: relative;
}
/* Clay's real logo is a full lockup: wrench, wordmark and ribbon. It is set
   here at a size where the wordmark still reads, and it is delivered through
   the Netlify Image CDN because the source file is nearly a megabyte. */
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand__logo { width: 88px; height: auto; display: block; }
.brand__name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; display: block; white-space: nowrap; }
.brand__sub { font-size: 0.6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav a {
  font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: var(--ink-muted);
  padding-block: var(--space-1); border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a[aria-current='true'] { color: var(--ink); border-bottom-color: var(--red); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--ink-muted);
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}
.hero h1 { font-size: var(--text-3xl); letter-spacing: -0.01em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__services { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: var(--space-6) 0; }
.chip {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--teal); color: var(--teal);
  padding: var(--space-1) var(--space-3); border-radius: 999px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__note { margin-top: var(--space-5); font-size: var(--text-sm); color: var(--ink-muted); }

.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  aspect-ratio: 16/9; object-fit: cover; width: 100%;
}
.hero__stamp {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--red-solid); color: #FFF7E8;
  font-family: var(--font-display); font-size: 0.95rem; line-height: 1.15;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  box-shadow: var(--shadow); transform: rotate(-3deg); text-align: center;
}
.hero__stamp span {
  display: block; font-family: var(--font-body); font-size: 0.6875rem;
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85;
}

/* --------------------------------------------------------------------------
   6. Trust strip
   -------------------------------------------------------------------------- */
.strip { background: var(--teal-band); color: var(--on-dark); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); padding-block: var(--space-8); }
.strip__item strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; font-weight: 400; }
.strip__item span { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; opacity: .82; }

/* --------------------------------------------------------------------------
   7. Service cards
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-6);
  transition: transform .18s var(--ease), box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon { color: var(--red); margin-bottom: var(--space-4); }
.card p { font-size: var(--text-sm); color: var(--ink-muted); margin: var(--space-2) 0 0; }

/* --------------------------------------------------------------------------
   8. Before / after slider

   DORMANT. The markup for this section is commented out in index.html until
   Clay has enough matched before and after pairs to fill it. These rules are
   deliberately left in place, including user-select: none on .ba, so that
   turning the section back on is a one line change and not a restyle.
   -------------------------------------------------------------------------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.ba {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/9; background: var(--bg-2);
  touch-action: pan-y; user-select: none; cursor: ew-resize;
  box-shadow: var(--shadow);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: var(--on-dark); transform: translateX(-50%);
  pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--on-dark); color: #23201B;
  display: grid; place-items: center; box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.ba__tag {
  position: absolute; top: var(--space-3); z-index: 2;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: var(--space-1) var(--space-3); border-radius: 999px;
  background: rgba(20,18,14,.72); color: #FBF5E6; backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba__tag--before { left: var(--space-3); }
.ba__tag--after { right: var(--space-3); }
.ba:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.ba__cap { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--ink-muted); }
.ba__cap strong { color: var(--ink); display: block; font-size: var(--text-base); }

/* --------------------------------------------------------------------------
   9. Work gallery
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.shot {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-2); margin: 0; padding: 0; border: 0;
  cursor: zoom-in; display: block; width: 100%; text-align: left;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.045); }
.shot--wide { grid-column: span 2; grid-row: span 2; }
.shot--wide img { aspect-ratio: 1/1; }
.shot:not(.shot--wide) img { aspect-ratio: 4/3; }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(20,18,14,.85), rgba(20,18,14,0));
  color: #FBF5E6; padding: var(--space-8) var(--space-4) var(--space-3);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.gallery__more { display: flex; justify-content: center; margin-top: var(--space-8); }

/* --------------------------------------------------------------------------
   10. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14,13,11,.94);
  display: none; place-items: center;
  padding: var(--space-6);
  opacity: 0; transition: opacity .2s ease;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox.is-visible { opacity: 1; }
.lightbox__img {
  max-width: min(1100px, 92vw); max-height: 82vh;
  width: auto; object-fit: contain; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__cap {
  color: #E8DFC9; text-align: center; margin-top: var(--space-4);
  font-size: var(--text-sm); letter-spacing: .04em;
}
.lightbox__count { color: rgba(232,223,201,.55); font-size: var(--text-xs); margin-top: var(--space-1); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; }
.lb-btn {
  position: absolute; background: rgba(251,245,230,.1); border: 1px solid rgba(251,245,230,.25);
  color: #FBF5E6; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(251,245,230,.24); }
.lb-close { top: var(--space-5); right: var(--space-5); }
.lb-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   11. Reviews
   -------------------------------------------------------------------------- */
.reviews { background: var(--bg-2); border-block: 1px solid var(--line); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-bottom: var(--space-10); }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
  margin: 0;
}
.stars { color: var(--star); letter-spacing: .12em; font-size: 0.95rem; }
.quote p { font-size: var(--text-sm); margin: 0; }
.quote footer { margin-top: auto; font-size: var(--text-xs); color: var(--ink-muted); }
.quote footer strong { display: block; color: var(--ink); font-size: var(--text-sm); }
.quote__source { display: block; margin-top: 2px; color: var(--ink-faint); font-size: var(--text-xs); }
.quote__source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.quote__source a:hover { color: var(--teal); }

.review-cta {
  background: var(--teal-band); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(var(--space-8), 5vw, var(--space-12));
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-8); align-items: center;
}
.review-cta h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: var(--on-dark); }
.review-cta p { color: rgba(251,245,230,.82); font-size: var(--text-sm); margin: var(--space-3) 0 0; max-width: 46ch; }
.review-cta__btns { display: flex; flex-direction: column; gap: var(--space-3); }

/* --------------------------------------------------------------------------
   12. Skeleton loaders
   -------------------------------------------------------------------------- */
.skeleton {
  background: var(--skeleton); background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite; border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-line { height: 12px; margin-bottom: var(--space-3); }
.sk-line:nth-child(2) { width: 92%; }
.sk-line:nth-child(3) { width: 76%; }

/* --------------------------------------------------------------------------
   14. Booking form
   -------------------------------------------------------------------------- */
.book__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: start;
}
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10)); box-shadow: var(--shadow);
  position: relative;
}
.field { margin-bottom: var(--space-5); }
.field label {
  display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2);
}
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: var(--text-sm); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); min-height: 46px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent);
}
.field__err { display: none; font-size: var(--text-xs); color: var(--red); margin-top: var(--space-2); font-weight: 600; text-transform: none; letter-spacing: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid .field__err { display: block; }
.field__hint { font-size: var(--text-xs); color: var(--ink-faint); margin-top: var(--space-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__note { font-size: var(--text-xs); color: var(--ink-muted); margin: var(--space-4) 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__alert {
  display: none; align-items: flex-start; gap: var(--space-3);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid var(--red); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.form__alert.is-shown { display: flex; }

.form__success { display: none; text-align: center; padding-block: var(--space-6); }
.form__success.is-shown { display: block; animation: fadeUp .4s var(--ease); }
.form.is-done .form__body { display: none; }
.success__icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--space-5);
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green); display: grid; place-items: center;
}
.form__success h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); margin-bottom: var(--space-3); }
.form__success p { font-size: var(--text-sm); color: var(--ink-muted); max-width: 40ch; margin-inline: auto; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,247,232,.35); border-top-color: #FFF7E8;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-5); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list svg { color: var(--red); flex-shrink: 0; margin-top: 3px; }
.contact-list strong {
  display: block; font-size: var(--text-xs); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-muted); font-weight: 700;
}
.contact-list a, .contact-list span { font-size: var(--text-base); text-decoration: none; }
.contact-list a:hover { color: var(--red); }

/* --------------------------------------------------------------------------
   15. Sticky mobile call bar
   -------------------------------------------------------------------------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: var(--space-3);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .28s var(--ease);
}
.callbar.is-shown { transform: none; }
.callbar .btn { flex: 1; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: #1B1E1B; color: #CFC6B0; padding-block: var(--space-12) var(--space-8); }
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8);
  padding-bottom: var(--space-8); border-bottom: 1px solid rgba(251,245,230,.14);
}
.footer__brand { max-width: 34ch; }
.footer__logo { width: 160px; height: auto; display: block; }
.footer__brand p { font-size: var(--text-sm); color: rgba(251,245,230,.62); margin-top: var(--space-4); }
.footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-16); }
.footer h4 { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(251,245,230,.5); margin: 0 0 var(--space-4); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer a { color: #E8DFC9; text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  padding-top: var(--space-6); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs); color: rgba(251,245,230,.45);
}

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   18. Error page
   -------------------------------------------------------------------------- */
.oops { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.oops h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.oops .btn { margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   20. Announcement banner (CMS controlled)
   -------------------------------------------------------------------------- */
.banner {
  background: var(--red-solid); color: #FFF7E8;
  font-size: var(--text-sm); font-weight: 600; text-align: center;
}
.banner__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
}
.banner a {
  color: #FFF7E8; font-weight: 700; text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.banner a:hover { text-decoration-thickness: 3px; }

/* --------------------------------------------------------------------------
   21. Rolling showcase carousel
   -------------------------------------------------------------------------- */
.roll { position: relative; }
.roll__viewport {
  display: flex; gap: var(--space-4);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: var(--space-2) var(--space-5);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.roll__viewport::-webkit-scrollbar { display: none; }

.roll__item {
  flex: 0 0 min(440px, 78vw);
  scroll-snap-align: center;
  position: relative; margin: 0; padding: 0; border: 0; background: none;
  border-radius: var(--radius-md); overflow: hidden;
  cursor: zoom-in; text-align: left;
  box-shadow: var(--shadow);
  transition: transform .28s var(--ease);
}
.roll__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.roll__item:hover { transform: translateY(-4px); }
.roll__item:hover img { transform: scale(1.05); }

.roll__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(18,16,13,.9), rgba(18,16,13,.55) 55%, rgba(18,16,13,0));
  color: #FBF5E6; padding: var(--space-10) var(--space-5) var(--space-4);
}
.roll__meta strong { display: block; font-size: var(--text-base); font-weight: 700; line-height: 1.3; }
.roll__meta span {
  display: inline-block; margin-top: var(--space-2);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.roll__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-2); }
.roll__arrows { display: flex; gap: var(--space-2); }
.roll__arrow {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.roll__arrow:hover { background: var(--bg-2); border-color: var(--line-strong); }
.roll__arrow[disabled] { opacity: .35; cursor: default; }

.roll__dots { display: flex; gap: var(--space-2); align-items: center; }
.roll__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-strong); cursor: pointer;
  transition: width .25s var(--ease), background .2s ease;
}
.roll__dot[aria-current='true'] { width: 26px; background: var(--red-solid); }

.roll__pause {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: none; border: 0; cursor: pointer;
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-muted);
  padding: var(--space-2);
}
.roll__pause:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   22. My Work page
   -------------------------------------------------------------------------- */
.page-head { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head__inner { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); max-width: 62ch; }
.page-head h1 { font-size: var(--text-2xl); text-wrap: balance; }
.page-head .lede { margin-top: var(--space-5); }

.crumbs { font-size: var(--text-xs); color: var(--ink-muted); margin-bottom: var(--space-5); }
.crumbs a { color: var(--teal); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

.filters {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-8); padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}
.filter {
  font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  background: none; color: var(--ink-muted);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: var(--space-2) var(--space-5); min-height: 40px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.filter:hover { color: var(--ink); border-color: var(--line-strong); }
.filter[aria-pressed='true'] { background: var(--teal-solid); border-color: var(--teal-solid); color: #FBF5E6; }
.filter__n { opacity: .6; margin-left: var(--space-1); font-weight: 500; }

/* A real grid rather than CSS columns. Columns balance their own height, which
   made the last row ragged and read top to bottom instead of left to right.
   auto-fill plus a min track width reflows cleanly at any window size and at
   any number of photos, including one. */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
  align-items: start;
}

.tile {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--radius-md); overflow: hidden;
  cursor: zoom-in; text-align: left;
  color: var(--ink); font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
/* Every photo is cropped to the same shape, so the grid lines up no matter
   what Clay shoots: portrait phone photos, wide landscape shots, anything. */
.tile img { width: 100%; display: block; background: var(--bg-2); aspect-ratio: 4/3; object-fit: cover; }
.tile__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.tile__body strong { display: block; font-size: var(--text-base); line-height: 1.3; }
.tile__body p { font-size: var(--text-sm); color: var(--ink-muted); margin: var(--space-2) 0 0; }
.tile__tags {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-4); align-items: center;
}
.tag {
  font-size: 0.625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); border: 1px solid currentColor; border-radius: 999px;
  padding: 2px var(--space-3);
}
.tile__date { font-size: var(--text-xs); color: var(--ink-faint); margin-left: auto; }

.empty-state {
  text-align: center; padding: var(--space-20) var(--space-6);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  color: var(--ink-muted);
}
.empty-state svg { color: var(--ink-faint); margin-bottom: var(--space-4); }
.empty-state strong { display: block; color: var(--ink); font-size: var(--text-lg); margin-bottom: var(--space-2); }

.cta-band {
  background: var(--teal-band); color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  text-align: center;
}
.cta-band h2 { color: var(--on-dark); }
.cta-band p { color: rgba(251,245,230,.82); max-width: 48ch; margin: var(--space-4) auto var(--space-8); }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* --------------------------------------------------------------------------
   23. Skeleton placeholders for photo blocks
   -------------------------------------------------------------------------- */
.sk-shot { border-radius: var(--radius-md); aspect-ratio: 4/3; }
.sk-roll { flex: 0 0 min(440px, 78vw); }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-bottom: var(--space-8); }
  .hero__stamp { left: 12px; bottom: -18px; }
  .hero__cta .btn { flex: 1 1 auto; }

  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .reviews__grid, .ba-grid { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; grid-row: auto; }
  .shot--wide img { aspect-ratio: 16/10; }

  .review-cta { grid-template-columns: 1fr; }
  .book__grid { grid-template-columns: 1fr; }
  .footer__cols { gap: var(--space-10); }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-5) var(--space-5);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
  .nav-toggle { display: grid; }

  .header__actions .btn--primary { padding-inline: var(--space-4); font-size: 0; gap: 0; min-width: 46px; }
  .header__actions .btn--primary svg { width: 17px; height: 17px; }

  .callbar { display: flex; }
  body { padding-bottom: 78px; }

  /* auto-fill already handles the column count, nothing to override here. */
  .roll__item { flex: 0 0 min(400px, 86vw); }

  .lb-prev { left: var(--space-3); }
  .lb-next { right: var(--space-3); }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .brand { gap: var(--space-2); }
  .brand__logo { width: 64px; }
  /* The logo art already spells out "Clay's Fix-It Co.", so on the narrowest
     screens the repeated wordmark is dropped rather than squeezed into the
     menu and theme buttons. The link keeps its aria-label and the image keeps
     its alt text, so the name is still announced. */
  .brand__name { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .shot--wide { grid-column: span 1; }
  .shot img, .shot--wide img { aspect-ratio: 4/3 !important; }
  .strip__inner { grid-template-columns: 1fr 1fr; gap: var(--space-4); }

  .roll__item { flex: 0 0 88vw; }
  .filters { gap: var(--space-2); }
  .filter { padding-inline: var(--space-4); font-size: var(--text-xs); }
}

@media print {
  .header, .callbar, .nav, .lightbox, .form, .review-cta, .banner, .roll__nav, .filters { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   24. Mini pages (thanks, 404)
   ========================================================================== */
.mini-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-10) var(--space-5);
  background:
    radial-gradient(1100px 520px at 50% -10%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%),
    var(--bg);
}
.mini-page__card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  box-shadow: var(--shadow-md);
}
.mini-page__card .success__icon { margin: 0 auto var(--space-6); }
.mini-page__logo { width: 140px; height: auto; display: block; margin: 0 auto var(--space-6); }
.mini-page__card h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.1;
  margin: var(--space-3) 0 var(--space-4);
}
.mini-page__card p {
  color: var(--ink-muted);
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
}
.mini-page__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-7);
}

@media (max-width: 560px) {
  .mini-page__card { padding: var(--space-8) var(--space-5); }
  .mini-page__btns .btn { width: 100%; justify-content: center; }
}
