/* ==========================================================================
   Rooster's Repairs LLC — site styles
   Plain CSS, no build step. Edit the tokens in section 1 to re-skin the site.
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */

:root {
  /* Brand */
  --brand:        #b8391c;   /* rooster rust — buttons, links, accents */
  --brand-dark:   #8f2b14;   /* hover state */
  --brand-tint:   #fdf1ed;   /* very light wash for callouts */
  --gold:         #8a6008;   /* rating stars — meets 3:1 non-text contrast */

  /* Neutrals */
  --ink:          #1b1a19;   /* headings */
  --ink-soft:     #46433f;   /* body copy */
  --muted:        #6f6a64;   /* captions, meta */
  --line:         #e5e1da;   /* hairlines */
  --bg:           #ffffff;
  --bg-warm:      #faf8f5;   /* alternating section background */
  --ink-deep:     #17161a;   /* footer */
  --surface:      rgba(255, 255, 255, .94);   /* sticky header, menus */
  --on-brand:     #ffffff;   /* text/icons on a --brand fill */
  --brand-fill:   #b8391c;   /* deep rust behind white text (CTA band) */

  /* Type */
  --font-head: "Barlow", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  /* Space + shape */
  --wrap:   1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad-y:  clamp(3.5rem, 8vw, 6rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgba(27, 26, 25, .06), 0 8px 24px -12px rgba(27, 26, 25, .18);

  /* color-scheme hints the UA to render native controls, form fields
     and scrollbars in the matching theme. */
  color-scheme: light;
}

/* Dark palette. Only the color tokens are overridden; every component
   reads these variables, so no per-component rules change. Applied when
   the visitor picks dark via the header toggle, which pins
   [data-theme="dark"] on the root. */
:root[data-theme="dark"] {
  --brand:      #f07a53;   /* lightened rust — 4.5:1 text on dark bg */
  --brand-dark: #f5936f;   /* hover brightens on dark */
  --brand-tint: #2a1c17;   /* dark rust-tinted callout wash */
  --gold:       #e0a740;   /* light gold — meets 3:1 non-text on dark */

  --ink:        #f4f2ef;   /* headings */
  --ink-soft:   #d9d5cf;   /* body copy */
  --muted:      #a49e96;   /* captions, meta */
  --line:       #34322f;   /* hairlines */
  --bg:         #17161a;
  --bg-warm:    #1f1e22;   /* alternating section background */
  --ink-deep:   #0f0e11;   /* footer sits below page bg */
  --surface:    rgba(23, 22, 26, .92);   /* sticky header, menus */
  --on-brand:   #1b1a19;   /* dark ink reads on the lightened brand */
  --brand-fill: #a3311a;   /* deep rust behind white text (CTA band) */

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);

  color-scheme: dark;
}

/* 2. Reset + base -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding-top offsets the 72px sticky header so anchored and
   focused elements are not hidden behind it (WCAG 2.4.11). */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Keeps alt text readable while the photos are still missing */
  font-size: .8125rem;
  color: var(--muted);
}

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li + li { margin-top: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; color: var(--bg); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 3. Layout helpers ------------------------------------------------------ */

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

.section { padding-block: var(--pad-y); }
.section--warm { background: var(--bg-warm); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 0; }

.lede { font-size: 1.1875rem; color: var(--ink-soft); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
/* Genuinely two columns. auto-fit with a 20rem minimum fits THREE tracks in
   the 1060px content box, which orphaned the 4th card in any set of four. */
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 45rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Photo frame — tidy placeholder while the real images are missing */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #efece7;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(27, 26, 25, .035) 0 12px,
      transparent 12px 24px);
  border: 1px solid var(--line);
}
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--3x2  { aspect-ratio: 3 / 2; }
.frame--1x1  { aspect-ratio: 1 / 1; }
.frame--16x9 { aspect-ratio: 16 / 9; }

.caption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }

/* 4. Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--brand-dark); color: var(--on-brand); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Always a white button with dark ink, whatever the theme, since it sits
   on the brand-colored CTA band in both light and dark. */
.btn--light { background: #ffffff; color: #1b1a19; }
.btn--light:hover { background: #f1ece5; color: #1b1a19; }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 5. Header + navigation ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  height: 44px;
  width: auto;
  flex: 0 0 auto;
  border-radius: var(--radius);
  object-fit: contain;
}
.brand__name  { display: block; }
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { position: static; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li + li { margin-top: 0; }

.nav__link {
  display: block;
  padding: .5rem .8rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav__link:hover { background: var(--bg-warm); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--brand); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
}

.header-cta { display: inline-flex; }

/* Theme switch flips between dark and light. A Dark and Light text label
   flank a sliding pill; margin-right auto keeps it beside the logo while
   the nav is pushed to the far side. */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
  margin-left: 1rem;
}

.theme-switch__label {
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
}

/* The track is the real control. 44px wide by 24px tall clears the 24px
   minimum target size (WCAG 2.5.8) and the switch role carries the state. */
.theme-switch__track {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand);
  cursor: pointer;
  transition: background-color .18s ease;
}

.theme-switch__thumb {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

/* Animate the thumb only after the first state is applied, so switching
   pages never shows the thumb sliding from its default position. */
html.theme-ready .theme-switch__thumb { transition: transform .18s ease; }

/* The visual state follows html[data-theme], which the head script sets
   before paint, so the switch renders correct on load with no bounce.
   Light slides the thumb right; dark greys the track. The active side's
   label is brand-colored for emphasis. */
:root[data-theme="light"] .theme-switch__thumb { transform: translate(20px, -50%); }
:root[data-theme="dark"] .theme-switch__track { background: var(--muted); }

:root[data-theme="light"] .theme-switch__label:last-child { color: var(--brand); }
:root[data-theme="dark"] .theme-switch__label:first-child { color: var(--brand); }

/* The call button inside the nav list exists for the mobile menu only —
   on desktop the .header-cta beside it does that job. */
@media (min-width: 901px) {
  .nav__list .btn { display: none; }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__list {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav__list { display: flex; }
  .nav__link { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list .btn { margin-top: 1rem; }
}

/* 6. Hero + slideshow ---------------------------------------------------- */

.hero { border-bottom: 1px solid var(--line); }

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr 1.15fr; }
}

.hero__title { margin-bottom: .4em; }
.hero__title em { font-style: normal; color: var(--brand); }

.hero__points {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .9375rem;
  color: var(--muted);
}
.hero__points li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.hero__points svg { flex: 0 0 auto; color: var(--brand); }

/* Slideshow of completed jobs */
.slideshow { position: relative; }

.slideshow__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #efece7;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(27, 26, 25, .035) 0 12px,
      transparent 12px 24px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) { .slideshow__stage { aspect-ratio: 3 / 2; } }

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(12, 11, 10, .82), rgba(12, 11, 10, 0));
  color: #fff;
  font-size: .9375rem;
  font-weight: 500;
}
.slide figcaption span { color: rgba(255, 255, 255, .72); font-weight: 400; }

.slideshow__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
}
.dots { display: flex; align-items: center; gap: .4rem; margin-right: auto; }
/* 4px visual bar with a 24px tall hit area: padding gives the target size,
   background-clip keeps the visible background to the content box. */
.dot {
  width: 30px; height: 4px;
  padding: 10px 0;
  border: 0;
  border-radius: 2px;
  background: var(--line);
  background-clip: content-box;
  box-sizing: content-box;
  cursor: pointer;
  transition: background-color .2s ease;
}
.dot:hover { background: #cfc9c0; background-clip: content-box; }
.dot[aria-current="true"] { background: var(--brand); background-clip: content-box; }

.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.slide-btn:hover { background: var(--bg-warm); }

/* 7. Trust bar ----------------------------------------------------------- */

.trustbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .82);
  padding-block: 1.1rem;
  font-size: .9375rem;
}
.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 2.25rem;
  text-align: center;
}
.trustbar strong { color: #fff; font-family: var(--font-head); letter-spacing: .01em; }

/* 8. Service cards ------------------------------------------------------- */

.card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: #d4cec5; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
}

/* 9. Announcements ------------------------------------------------------- */

.announce {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.announce:last-child { border-bottom: 1px solid var(--line); }

.announce__date {
  min-width: 4.25rem;
  padding-top: .15rem;
  font-family: var(--font-head);
  line-height: 1.1;
  text-align: center;
}
.announce__date .m {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}
.announce__date .d { display: block; font-size: 1.65rem; font-weight: 700; color: var(--ink); }

.announce h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.announce p { margin-bottom: 0; color: var(--muted); font-size: .9688rem; }

.tag {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .15rem .55rem;
  border-radius: 2px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.tag--community { background: var(--brand-tint); border-color: #f3d9d0; color: var(--brand-dark); }

@media (max-width: 560px) {
  .announce { grid-template-columns: 1fr; gap: .5rem; }
  .announce__date { display: flex; gap: .4rem; min-width: 0; text-align: left; }
  .announce__date .d { font-size: 1rem; }
  .announce__date .m { font-size: .8rem; letter-spacing: .06em; }
}

/* 9b. Facebook page feed -------------------------------------------------
   Posts are fetched from our Worker and rendered as native cards. The
   column is capped to a readable width and scrolls when the content
   exceeds the visible area.
   ------------------------------------------------------------------------ */

.fb-embed {
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.fb-feed {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-height: 720px;
  overflow-y: auto;
  padding: 1rem;
  scroll-behavior: smooth;
}
.fb-feed[hidden] { display: none; }
.fb-feed__status { margin: 0; color: var(--muted); font-size: .9375rem; }

.fb-post {
  display: block;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fb-post:hover { border-color: #d4cec5; box-shadow: var(--shadow); }
.fb-post__img {
  display: block;
  width: 100%;
  height: auto;
}
.fb-post__body { padding: .85rem 1rem; }
.fb-post__date {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.fb-post__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.5;
  white-space: pre-line;
}

.fb-embed__fallback {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}
.fb-embed__fallback h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.fb-embed__fallback p { margin-bottom: 1.25rem; color: var(--muted); font-size: .9375rem; }
.fb-embed__fallback[hidden] { display: none; }

/* 10. Ratings ------------------------------------------------------------ */

.ratings__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 860px) {
  .ratings__inner { grid-template-columns: minmax(0, 19rem) 1fr; }
}

.score {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}
.score__num {
  display: block;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.score__count { font-size: .875rem; color: var(--muted); }
.score .btn { margin-top: 1.1rem; }

.stars { display: inline-flex; gap: .15rem; margin: .6rem 0 .35rem; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.stars--sm svg { width: 15px; height: 15px; }

.review { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.review blockquote { margin: .5rem 0 1rem; color: var(--ink-soft); font-size: .9688rem; }
.review cite { font-style: normal; font-size: .875rem; font-weight: 600; color: var(--ink); }
.review .meta { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }

/* 11. CTA band ----------------------------------------------------------- */

.cta-band {
  background: var(--brand-fill);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 38rem; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

/* 12. About page --------------------------------------------------------- */

.bio {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.bio:last-of-type { border-bottom: 0; }
@media (min-width: 720px) {
  .bio { grid-template-columns: minmax(0, 15rem) 1fr; }
}
.bio__role {
  margin: -.25rem 0 .9rem;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand);
}
.bio__facts {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
}
.bio__facts li { margin: 0; }
.bio__facts span {
  display: inline-block;
  padding: .2rem .6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-warm);
  font-size: .8125rem;
  color: var(--muted);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}

.pullquote {
  margin: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--brand);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pullquote footer {
  margin-top: .85rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.values { counter-reset: v; }
.values .card { position: relative; padding-top: 2.9rem; }
.values .card::before {
  counter-increment: v;
  content: "0" counter(v);
  position: absolute;
  top: 1.4rem; left: 1.6rem;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
}

/* 13. Portfolio + before/after slider ------------------------------------ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.filter {
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: #cfc9c0; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.projects { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .projects { grid-template-columns: 1fr 1fr; } }

.project[hidden] { display: none; }

.ba__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #efece7;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(27, 26, 25, .035) 0 12px,
      transparent 12px 24px);
  border: 1px solid var(--line);
  --pos: 50%;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 11, 10, .18);
  pointer-events: none;
}
.ba__handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 11, 10, .3);
}
.ba__handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  z-index: 1;
  width: 20px; height: 8px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--ink), var(--ink)) left center / 2px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right center / 2px 8px no-repeat;
}

/* The range input is the real control: keyboard-, mouse- and touch-accessible */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; }
.ba__range:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.ba__tag {
  position: absolute;
  top: .75rem;
  padding: .2rem .6rem;
  border-radius: 2px;
  background: rgba(12, 11, 10, .72);
  color: #fff;
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--b { left: .75rem; }
.ba__tag--a { right: .75rem; }

.project__meta { margin-top: 1rem; }
/* Project titles are h2 (they are the page's top-level sections) but are
   sized like an h3 — semantics and appearance decided separately. */
.project__meta h2 {
  margin-bottom: .25rem;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.project__meta p { color: var(--muted); font-size: .9375rem; margin-bottom: .6rem; }

.spec {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  font-size: .8125rem;
}
.spec div { display: flex; gap: .35rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; color: var(--ink); }

/* 14. Forms -------------------------------------------------------------- */

.form-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .form-layout { grid-template-columns: 1.4fr 1fr; }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.panel--warm { background: var(--bg-warm); }
.panel + .panel { margin-top: 1.5rem; }
/* Panels laid out as grid cells stack by gap, not margin. */
.grid > .panel { margin-top: 0; }

/* A panel heading is a card title, not a page section. These are h2 for
   heading order, but the page-level h2 size overflows a card column and
   wraps, which knocks the panels' content out of line with each other. */
.panel > h2 { font-size: 1.25rem; letter-spacing: -.01em; }

.field { margin-bottom: 1.15rem; }
.field:last-child { margin-bottom: 0; }

.field label,
.fieldset legend {
  display: block;
  margin-bottom: .4rem;
  padding: 0;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.field .hint { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--muted); }
.req { color: var(--brand); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #bcb5aa; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(184, 57, 28, .14);
}
textarea { min-height: 8.5rem; resize: vertical; }

.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

.fieldset { margin: 0 0 1.15rem; padding: 0; border: 0; }

.checks { display: grid; gap: .55rem; }
@media (min-width: 520px) { .checks { grid-template-columns: 1fr 1fr; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9375rem;
  cursor: pointer;
}
.check input { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin-top: .25rem; accent-color: var(--brand); }

.form-note { margin-top: 1rem; font-size: .8125rem; color: var(--muted); }

/* Contact / info list */
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li {
  display: flex;
  gap: .9rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list svg { flex: 0 0 auto; margin-top: .2rem; color: var(--brand); }
.info-list strong,
.panel__label {
  display: block;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-list a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }

/* Social row appended to a panel, divided like an .info-list row. */
.panel__follow { margin-top: .25rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.panel__label { margin-bottom: .7rem; }
.info-list a:hover { color: var(--brand); text-decoration: underline; }

/* Hours table (shared by the footer and the contact page) */
.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours th, .hours td { padding: .4rem 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }
.hours .closed { color: var(--muted); }

.map-embed {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-warm);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: .9375rem;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 1.15rem 2rem 1.15rem 0;
  position: relative;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); font-size: .9688rem; }

/* 15. Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .68);
  padding-block: clamp(3rem, 6vw, 4.25rem) 0;
  font-size: .9375rem;
}
.site-footer h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .hours { color: rgba(255, 255, 255, .78); }
.site-footer .hours tr + tr th,
.site-footer .hours tr + tr td { border-top-color: rgba(255, 255, 255, .1); }
.site-footer .hours .is-today th,
.site-footer .hours .is-today td { color: #fff; }
.site-footer .hours .closed { color: rgba(255, 255, 255, .72); }

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2.75rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; } }

.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.footer-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.footer-brand span {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 0 .55rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.35rem; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .82);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.social:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Live open/closed indicator. js/main.js sets data-state from the shop's own
   timezone (America/Chicago), so it is never the visitor's clock talking. */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: .8125rem;
  line-height: 1.45;
  transition: color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.status-pill::before {
  content: "";
  flex: 0 0 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #9a938a;                 /* neutral until JS resolves the state */
  transition: background-color .3s ease, box-shadow .3s ease;
}

/* Open — green */
.status-pill[data-state="open"] {
  border-color: rgba(46, 190, 106, .5);
  box-shadow: 0 0 12px rgba(46, 190, 106, .35), inset 0 0 8px rgba(46, 190, 106, .08);
  color: #6fe0a0;
}
.status-pill[data-state="open"]::before {
  background: #33cc76;
  box-shadow: 0 0 6px rgba(51, 204, 118, .9);
}

/* Closed — red */
.status-pill[data-state="closed"] {
  border-color: rgba(226, 77, 61, .5);
  box-shadow: 0 0 12px rgba(226, 77, 61, .35), inset 0 0 8px rgba(226, 77, 61, .08);
  color: #f0917f;
}
.status-pill[data-state="closed"]::before {
  background: #e2493a;
  box-shadow: 0 0 6px rgba(226, 73, 58, .9);
}

/* The same pill also sits on white panels (Contact, Request Service), where
   the light-on-dark text colours above would wash out. */
.panel .status-pill[data-state="open"]   { color: #10693a; }
.panel .status-pill[data-state="closed"] { color: #a3271a; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .72);
}
.footer-bottom p { margin: 0; }

/* 16. Interior page header ----------------------------------------------- */

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.page-head p { max-width: 44rem; margin-bottom: 0; color: var(--muted); font-size: 1.0625rem; }

/* Scoped to .page-head so it outranks `.page-head p`, which zeroes the
   bottom margin — otherwise the breadcrumb sits flush against the h1. */
.page-head .crumbs { margin-bottom: 1rem; font-size: .8125rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* 17. Print -------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .cta-band, .slideshow__controls, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
}
