/* ==========================================================================
   SHAFAAT INDUSTRIES — main stylesheet
   Palette: clean neutral ground, green-black ink, burgundy + forest green.
   Type: DM Serif Display (headings) + DM Sans (text), loaded from Google Fonts.
   Note: DM Serif Display ships a single 400 weight — never set the display
   font bolder than 400 or the browser will synthesize a smudged faux bold.
   ========================================================================== */

:root {
  --linen: #f4f4f1;
  --linen-deep: #e9eae4;
  --paper: #fdfdfb;
  --ink: #20241f;
  --ink-soft: #5c635b;
  --ink-faint: #8d938b;
  --maroon: #7d2a33;
  --maroon-deep: #5c1e26;
  --maroon-wash: #f3e2e0;
  --green: #34604a;
  --pine: #24402f;
  --green-bright: #a9cbb1;
  --green-soft: #d6e4d6;
  --line: rgba(32, 36, 31, 0.16);
  --line-strong: rgba(32, 36, 31, 0.55);
  --shadow: 0 1px 2px rgba(32, 36, 31, 0.06), 0 8px 24px rgba(32, 36, 31, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-text: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul, ol { list-style: none; }

::selection { background: var(--green-soft); color: var(--ink); }

/* ---- type scale ---------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  border-top: 2px dashed var(--maroon);
  opacity: 0.7;
}

/* ---- layout helpers ------------------------------------------------------ */

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section--dark {
  background: var(--pine);
  color: var(--linen);
}
.section--dark h2 { color: var(--paper); }
.section--dark .eyebrow { color: var(--green-bright); }
.section--dark .eyebrow::before { border-top-color: var(--green-bright); }

.section-head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lede { margin-top: 0.85rem; }

.stitch-rule {
  border: none;
  border-top: 2px dashed var(--line-strong);
  opacity: 0.5;
  margin: 0;
}

/* ---- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1.55rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  line-height: 1.2;
}

.btn--primary {
  background: var(--maroon);
  border-color: var(--maroon-deep);
  color: #fff;
  box-shadow: 3px 3px 0 var(--maroon-deep);
}
.btn--primary:hover {
  background: var(--maroon-deep);
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(92, 30, 38, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-style: solid;
}
.btn--ghost:hover {
  border-style: dashed;
  color: var(--maroon-deep);
  background: var(--paper);
}

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.btn--light:hover { background: #fff; transform: translate(-1px, -1px); }

.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--maroon-deep); }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 244, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(32, 36, 31, 0.07);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--font-text);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-top: 0.18rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a {
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.35rem;
  border-bottom: 2px dashed transparent;
}
.site-nav a:hover { border-bottom-color: var(--green); color: var(--maroon-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--maroon); color: var(--maroon); }
.site-nav .btn { margin-left: 0.5rem; }

/* The CTA button in the nav must keep its own colours — the .site-nav a
   link styles above otherwise out-rank .btn--primary and darken its text. */
.site-nav a.btn--primary,
.site-nav a.btn--primary:hover,
.site-nav a.btn--primary[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid var(--maroon-deep);
  padding-block: 0.8rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(32, 36, 31, 0.16);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] { color: var(--maroon); }
  .site-nav .btn { margin: 1rem 0 0; justify-content: center; }
}

/* ---- hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(2.75rem, 6vw, 5.5rem); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy .btn-row { margin-top: 2rem; }
.hero-copy .lede { margin-top: 1.25rem; }

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

.hero-notes {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.hero-notes li { display: flex; align-items: center; gap: 0.5rem; }
.hero-notes svg { color: var(--green); flex: none; }

.hero-figure { position: relative; }
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px dashed var(--green);
  border-radius: var(--radius);
  opacity: 0.75;
  pointer-events: none;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-badge {
  position: absolute;
  left: -0.9rem;
  bottom: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}
.hero-badge svg { color: var(--maroon); flex: none; }
.hero-badge strong { display: block; font-size: 0.98rem; line-height: 1.25; }
.hero-badge span { font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { margin-top: 0.5rem; }
  .hero-figure::before { inset: 0.8rem -0.6rem -0.8rem 0.6rem; }
  .hero-badge { left: 0.75rem; }
}

/* ---- category strip ------------------------------------------------------ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.cat-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
  color: var(--ink);
}
.cat-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cat-card span {
  display: block;
  padding: 0.7rem 0.9rem 0.8rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- capability spec table ---------------------------------------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
}
.section--dark .spec-card {
  background: rgba(253, 253, 251, 0.05);
  border-color: rgba(253, 253, 251, 0.18);
}
.spec-card h3 { margin-bottom: 0.55rem; display: flex; align-items: center; gap: 0.6rem; }
.spec-card h3 svg { color: var(--green); flex: none; }
.section--dark .spec-card h3 svg { color: var(--green-bright); }
.spec-card p { color: var(--ink-soft); font-size: 0.98rem; }
.section--dark .spec-card p { color: rgba(244, 244, 241, 0.72); }

.spec-list { margin-top: 0.9rem; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.4rem;
}
.section--dark .spec-list li { border-bottom-color: rgba(244, 244, 241, 0.2); }
.spec-list b { font-weight: 700; }
.spec-list span { color: var(--ink-faint); }
.section--dark .spec-list span { color: rgba(244, 244, 241, 0.6); }

/* ---- gallery / catalogue -------------------------------------------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip {
  font-family: var(--font-text);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.work-card figure { position: relative; overflow: hidden; }
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.work-card:hover img { transform: scale(1.045); }

.work-card .tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(36, 64, 47, 0.88);
  color: var(--linen);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.work-card .body { padding: 1.05rem 1.2rem 1.25rem; display: grid; gap: 0.3rem; }
.work-card h3 { font-size: 1.12rem; }
.work-card .meta { font-size: 0.9rem; color: var(--ink-soft); }
.work-card .link-hint {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--maroon);
}

.work-card.is-hidden { display: none; }

.grid-empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

/* ---- lightbox ------------------------------------------------------------ */

.lightbox {
  margin: auto;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(880px, calc(100vw - 2rem));
  width: 100%;
  background: var(--paper);
  box-shadow: 0 40px 90px rgba(15, 20, 16, 0.4);
}
.lightbox::backdrop { background: rgba(17, 22, 18, 0.62); backdrop-filter: blur(3px); }

.lightbox-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.lightbox-inner img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.lightbox-info { padding: 1.75rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.lightbox-info .tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
}
.lightbox-info p { color: var(--ink-soft); font-size: 0.98rem; }
.lightbox-info dl { display: grid; gap: 0.4rem; margin-top: 0.4rem; font-size: 0.94rem; }
.lightbox-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.35rem;
}
.lightbox-info dt { color: var(--ink-faint); }
.lightbox-info dd { font-weight: 700; text-align: right; }
.lightbox-info .btn { margin-top: auto; align-self: flex-start; }

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lightbox-close:hover { color: var(--maroon); }

@media (max-width: 680px) {
  .lightbox-inner { grid-template-columns: 1fr; }
  .lightbox-inner img { min-height: 220px; max-height: 260px; }
}

/* ---- process steps ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--green);
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---- FAQ ------------------------------------------------------------------ */

.faq { display: grid; gap: 0.9rem; max-width: 780px; }

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--maroon);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
  max-width: 60ch;
}

/* ---- CTA band ------------------------------------------------------------- */

.cta-band {
  background: var(--maroon);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.cta-band h2 { color: #fff; max-width: 18em; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 0.5rem; max-width: 38em; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .band-link { color: var(--linen); font-weight: 700; }
.cta-band .band-link:hover { color: #fff; }

/* ---- process page ---------------------------------------------------------- */

.step-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.step-label small {
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.faq-group { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group > h2 { margin-bottom: 1.25rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

/* ---- quote form ----------------------------------------------------------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .quote-layout { grid-template-columns: 1fr; }
}

.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.progress li {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-faint);
  padding-top: 0.55rem;
  border-top: 3px solid var(--line);
}
.progress li.is-active { color: var(--maroon); border-top-color: var(--maroon); }
.progress li.is-done { color: var(--ink); border-top-color: var(--green); }

.form-step { display: none; border: none; padding: 0; min-width: 0; }
.form-step.is-active { display: block; }
.form-step > h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-step > .hint { color: var(--ink-soft); margin-bottom: 1.5rem; font-size: 0.98rem; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
}
.choice {
  position: relative;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 0.9rem;
  cursor: pointer;
  display: block;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--maroon); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice strong { display: block; font-size: 0.98rem; }
.choice small { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.4; display: block; margin-top: 0.2rem; }
.choice:has(input:checked) {
  border-color: var(--maroon);
  background: var(--maroon-wash);
  box-shadow: inset 0 0 0 1px var(--maroon);
}
.choice:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.field label span { color: var(--ink-faint); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(125, 42, 51, 0.15);
}
.field .error-msg { display: none; color: #a4272e; font-size: 0.85rem; margin-top: 0.3rem; font-weight: 700; }
.radio-error { color: #a4272e; font-weight: 700; font-size: 0.9rem; margin-top: 0.8rem; }
.radio-error[hidden] { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a4272e; }
.field.has-error .error-msg { display: block; }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--line);
}

.quote-aside { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }

.summary-card {
  background: var(--pine);
  color: var(--linen);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.summary-card h2 { color: var(--paper); font-size: 1.25rem; margin-bottom: 1rem; }
.summary-card dl { display: grid; gap: 0.55rem; font-size: 0.95rem; }
.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed rgba(244, 244, 241, 0.25);
  padding-bottom: 0.4rem;
}
.summary-card dt { color: rgba(244, 244, 241, 0.6); }
.summary-card dd { font-weight: 700; text-align: right; }
.summary-card .note { margin-top: 1rem; font-size: 0.85rem; color: rgba(244, 244, 241, 0.6); }

.aside-help {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  font-size: 0.95rem;
}
.aside-help h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.aside-help p { color: var(--ink-soft); }
.aside-help a { font-weight: 700; }

.quote-success {
  display: none;
  text-align: left;
}
.quote-success.is-active { display: block; }
.quote-success .btn-row { margin-top: 1.5rem; }
.quote-success .fine { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- about / contact ------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.split figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split figure figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.6rem; }

.split .prose p + p { margin-top: 1rem; }
.prose p { color: var(--ink-soft); }
.prose p b, .prose p strong { color: var(--ink); }

.value-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.value-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.value-list svg { color: var(--maroon); flex: none; margin-top: 0.2rem; }
.value-list strong { display: block; }
.value-list span { color: var(--ink-soft); font-size: 0.96rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-card svg { color: var(--maroon); margin-bottom: 0.7rem; }
.contact-card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--ink-soft); font-size: 0.96rem; }
.contact-card a { font-weight: 700; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table td { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 700; }

/* ---- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--pine);
  color: rgba(244, 244, 241, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dashed rgba(244, 244, 241, 0.25);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--paper); }
.site-footer .brand-name small { color: var(--green-bright); }
.footer-about { max-width: 30em; font-size: 0.95rem; margin-top: 1rem; }

.site-footer h3 {
  color: var(--paper);
  font-size: 0.85rem;
  font-family: var(--font-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}
.footer-links { display: grid; gap: 0.55rem; font-size: 0.97rem; }
.footer-links a { color: rgba(244, 244, 241, 0.78); text-decoration: none; }
.footer-links a:hover { color: var(--green-soft); text-decoration: underline; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(244, 244, 241, 0.55);
}
.footer-meta a { color: inherit; }

/* ---- page hero (interior pages) ------------------------------------------ */

.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero .lede { margin-top: 1rem; }

/* ---- reveal animation ----------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-card img, .work-card, .cat-card, .btn { transition: none; }
}

/* ---- utilities ------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--paper); }
