/* ==========================================================================
   Huntsville Rug Cleaning & Restoration — huntsvillerugcleaning.com
   Plain CSS. Mobile-first. No build step, no framework, no preprocessor.

   Palette: Alabama clay red, Tennessee Valley slate, aged brass, warm
   limestone. Square-ish corners and hairline rules keep the feel closer to
   a workshop drawing than to a soft coastal brochure.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --background: #ffffff;
  --foreground: #14161a;
  --muted: #f4f1ea;
  --muted-2: #fbf9f5;
  --muted-foreground: #58606a;

  --primary: #8e2f22;
  --primary-dark: #6f2419;
  --primary-foreground: #ffffff;

  --secondary: #3b4a57;
  --secondary-dark: #2a353f;
  --secondary-foreground: #ffffff;

  --accent: #b8923d;
  --accent-soft: #dcc48b;

  --border: #ddd8ce;
  --border-strong: #c6bfb1;
  --ring: #8e2f22;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 0.25rem;
  --radius-btn: 0.25rem;

  --shadow-sm: 0 1px 2px 0 rgb(20 22 26 / 0.07);
  --shadow-md: 0 2px 4px -1px rgb(20 22 26 / 0.10), 0 4px 10px -4px rgb(20 22 26 / 0.10);
  --shadow-lg: 0 2px 4px -1px rgb(20 22 26 / 0.10), 0 14px 28px -12px rgb(20 22 26 / 0.22);

  --wrap: 1140px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.55em; font-weight: 700; letter-spacing: -0.018em; }
h1 { font-size: clamp(2.05rem, 5.4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.05rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 4rem; }
.section--tight { padding-block: 2.25rem; }
.section--muted { background: var(--muted); }
.section--muted-soft { background: var(--muted-2); border-block: 1px solid var(--border); }
.section--dark { background: var(--secondary); color: var(--secondary-foreground); }
.section--brand { background: var(--primary); color: var(--primary-foreground); }
.section--rule { border-top: 1px solid var(--border); }
.lead { font-size: 1.07rem; color: var(--muted-foreground); }
.section--dark .lead, .section--brand .lead { color: rgb(255 255 255 / 0.86); }
.center { text-align: center; }
.measure { max-width: 66ch; }
.mx-auto { margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }

/* Eyebrow carries a short brass rule instead of standing alone. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.eyebrow--gold { color: var(--accent); }
.center .eyebrow, .eyebrow.center { justify-content: center; }

.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 999;
  padding: 0.7rem 1.1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.7); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.13); color: #fff; border-color: #fff; }
.btn--onbrand { background: #fff; color: var(--primary); border-color: #fff; }
.btn--onbrand:hover { background: var(--muted); color: var(--primary-dark); }
.btn--outline { background: #fff; color: var(--primary); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--muted); border-color: var(--primary); color: var(--primary-dark); }
.btn--brass { background: var(--accent); color: #24292f; border-color: var(--accent); }
.btn--brass:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #24292f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.arrow-link:hover { text-decoration: underline; }
.arrow-link::after { content: "\2192"; transition: transform 0.15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* --- Announcement bar --------------------------------------------------- */
.topbar {
  background: var(--secondary-dark);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.81rem;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0.55rem 1.25rem;
}
.topbar strong { color: var(--accent); }
.topbar a { color: #fff; font-weight: 600; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 2px solid var(--secondary);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
/* flex: none stops the nav from squeezing the brand block, which otherwise
   breaks the wordmark onto a third line and grows the whole header. */
.brand { display: flex; flex: none; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { flex: none; width: 40px; height: 40px; }
.brand__name { font-weight: 700; font-size: 0.99rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--secondary); }
.brand__tag { display: block; font-size: 0.67rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--primary); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--muted); }

.site-nav { display: none; }
.site-nav ul { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: none;
  /* Six nav items plus a CTA is tight at 1024px; without this the labels
     break mid-phrase and the header grows to two lines. */
  white-space: nowrap;
}
.site-nav a:hover { background: var(--muted); color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.header-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .header-cta { display: flex; align-items: center; gap: 0.85rem; }
  .header-cta .btn { white-space: nowrap; padding-inline: 1.1rem; }
  /* Service-area build: no phone number anywhere, so this reassurance line
     occupies the slot a number would normally hold. It is the first thing
     dropped when the header runs out of room. */
  .header-cta__note { display: none; font-size: 0.83rem; color: var(--muted-foreground); white-space: nowrap; }
}
@media (min-width: 1240px) {
  .header-cta__note { display: block; }
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 0.7rem 0 1.1rem;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .mobile-nav, .mobile-nav.is-open { display: none; } }
.mobile-nav ul { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.mobile-nav a {
  display: block;
  padding: 0.68rem 0.3rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--primary); }
.mobile-nav .btn { width: 100%; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding-block: 4rem 4.5rem;
  background: var(--secondary);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 6px solid var(--primary);
}
.hero--short { min-height: 320px; padding-block: 2.75rem 3rem; }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(85% 90% at 8% 96%, rgb(142 47 34 / 0.52) 0%, transparent 60%),
    radial-gradient(70% 80% at 92% 6%, rgb(184 146 61 / 0.26) 0%, transparent 62%),
    linear-gradient(200deg, #4c5f6d 0%, #3b4a57 45%, #242e37 100%);
}
.hero__pattern { position: absolute; inset: 0; z-index: -2; opacity: 0.2; pointer-events: none; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, rgb(18 23 28 / 0.84) 0%, rgb(18 23 28 / 0.58) 52%, rgb(18 23 28 / 0.22) 100%);
}
.hero__inner { position: relative; max-width: 41rem; color: #fff; }
.hero__rule { width: 62px; height: 4px; background: var(--accent); margin-bottom: 1.2rem; }
.hero h1 { color: #fff; margin-bottom: 0.7rem; }
.hero__sub { font-size: 1.08rem; font-weight: 600; color: var(--accent-soft); margin-bottom: 0.9rem; }
.hero p.hero__body { color: rgb(255 255 255 / 0.9); font-size: 1.02rem; margin-bottom: 1.6rem; }
.hero .btn-row { margin-bottom: 1.5rem; }
.hero__trust {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: rgb(255 255 255 / 0.86);
}
@media (min-width: 760px) { .hero__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.6rem; } }
.hero__trust li { display: flex; align-items: flex-start; gap: 0.5rem; }
.hero__trust svg { flex: none; margin-top: 0.32rem; color: var(--accent); }

/* Ridge line along the base of the hero — a nod to the plateau edge that
   frames the city, and a cheap way to make the fold feel local. */
.hero__ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: -1;
  width: 100%;
  height: 90px;
  opacity: 0.35;
  pointer-events: none;
}

/* --- Breadcrumb --------------------------------------------------------- */
.crumbs { font-size: 0.83rem; color: var(--muted-foreground); padding-block: 0.85rem; border-bottom: 1px solid var(--border); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 0.4rem; color: var(--border-strong); }
.crumbs a { color: var(--muted-foreground); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }

/* --- Grids -------------------------------------------------------------- */
.grid { display: grid; gap: 1.15rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: 2.25rem; align-items: start; }
/* Grid items default to min-width:auto, which lets a wide child (a prose
   column, a table) push the track past the viewport. Reset it. */
.grid > *, .split > *, .steps > *, .features > *, .stats > *, .footer-grid > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: 1.2fr 1fr; } }
@media (min-width: 900px) { .split--wide-right { grid-template-columns: 1fr 1.2fr; } }

/* --- Feature list ------------------------------------------------------- */
.features { display: grid; gap: 1.35rem; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; gap: 0.85rem; }
.feature__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--accent-soft);
}
.feature h3 { font-size: 0.99rem; margin-bottom: 0.2rem; }
.feature p { font-size: 0.9rem; color: var(--muted-foreground); }

/* --- Cards -------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.95rem;
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--primary);
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.04rem; }
.card p { font-size: 0.93rem; color: var(--muted-foreground); }
.card .arrow-link { margin-top: auto; padding-top: 1rem; }
/* Left brass edge rather than a top flag — small change, but it is what
   stops the card grid reading as the same component as the sibling site. */
.card--edge { border-left: 3px solid var(--accent); }
.card--clay { border-left: 3px solid var(--primary); }
.card--onDark { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.2); }
.card--onDark h3 { color: #fff; }
.card--onDark p { color: rgb(255 255 255 / 0.82); }

.tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.22rem 0.62rem;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag--brass { background: var(--accent); color: #24292f; }

/* --- Highlight panel ---------------------------------------------------- */
.panel {
  display: grid;
  gap: 1.75rem;
  padding: 1.6rem;
  border: 1px solid var(--border-strong);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff 0%, var(--muted) 120%);
}
@media (min-width: 900px) { .panel { grid-template-columns: 1.1fr 1fr; padding: 2.25rem; align-items: start; gap: 2.5rem; } }
.panel h2 { margin-bottom: 0.55rem; }
.panel--dark {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.2);
  border-top-color: var(--accent);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.checklist li { display: flex; gap: 0.6rem; font-size: 0.93rem; }
.checklist svg { flex: none; margin-top: 0.3rem; color: var(--primary); }
.section--dark .checklist svg, .panel--dark .checklist svg { color: var(--accent); }
.checklist--tight li { font-size: 0.9rem; }

/* --- Process steps ------------------------------------------------------ */
.steps { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  top: 3.45rem;
  height: 1px;
  background: var(--border);
}
.step__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: var(--accent);
  color: #24292f;
  font-size: 0.88rem;
  font-weight: 700;
}
.step h3 { font-size: 1rem; margin-bottom: 0.35rem; padding-top: 0.55rem; }
.step p { font-size: 0.91rem; color: var(--muted-foreground); margin: 0; }

/* --- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding-top: 0.9rem; border-top: 3px solid var(--accent); }
.stat__num { font-size: clamp(1.85rem, 4.6vw, 2.4rem); font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat__label { font-size: 0.88rem; color: var(--muted-foreground); }
.section--dark .stat__num { color: var(--accent); }
.section--dark .stat__label { color: rgb(255 255 255 / 0.84); }

/* --- Info list ---------------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.info-list li { display: flex; gap: 0.8rem; }
.info-list .info__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--primary);
}
.info__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.info__value { font-weight: 600; color: var(--foreground); text-decoration: none; overflow-wrap: anywhere; }

/* --- Forms -------------------------------------------------------------- */
.form-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-top: 5px solid var(--secondary);
  border-radius: var(--radius);
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--secondary); }
.field .hint { font-size: 0.77rem; font-weight: 400; color: var(--muted-foreground); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.94rem;
  color: var(--foreground);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
fieldset { margin: 0 0 1.25rem; padding: 0; border: 0; }
fieldset legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.form-note { font-size: 0.81rem; color: var(--muted-foreground); margin-top: 0.9rem; }
.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-btn);
  background: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.form-status:empty { display: none; }
/* Tone is set by main.js on submit. Color is never the only signal — the
   message text always states what happened, for color-blind and screen
   reader users. */
.form-status[data-tone='ok'] {
  background: #edf5ee;
  border-color: #b3d3b7;
  color: #1d4f2c;
}
.form-status[data-tone='error'] {
  background: #fbeeeb;
  border-color: #e2bdb2;
  color: #7d2a1c;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Callout ------------------------------------------------------------ */
.callout {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
}
@media (min-width: 800px) { .callout { grid-template-columns: 54px 1fr auto; gap: 1.4rem; } }
.callout__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius); background: var(--secondary); color: var(--accent); }
.callout h2 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.callout p { font-size: 0.91rem; color: var(--muted-foreground); margin: 0; }

/* --- Areas served ------------------------------------------------------- */
.area-group + .area-group { margin-top: 1.6rem; }
.area-group h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.7rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.pill-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: #fff;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--secondary);
}
.pill-list li::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }
.section--dark .pill-list li { background: rgb(255 255 255 / 0.07); border-color: rgb(255 255 255 / 0.22); color: #fff; }

/* --- FAQ / details ------------------------------------------------------ */
.faq { display: grid; gap: 0.6rem; }
.faq details {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq details[open] { border-left-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  font-size: 0.99rem;
  color: var(--secondary);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.3rem; font-weight: 400; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--muted-2); }
.faq .faq__body { padding: 0 1.1rem 1.1rem; font-size: 0.93rem; color: var(--muted-foreground); }

/* --- Prose -------------------------------------------------------------- */
.prose { width: 100%; max-width: 70ch; }
.prose img, .prose table { max-width: 100%; }
.prose h2 { margin-top: 2.6rem; padding-top: 1rem; border-top: 2px solid var(--border); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.7rem; font-size: 1.04rem; color: var(--secondary); }
.prose p, .prose li { color: #2c3138; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--muted);
  font-size: 0.95rem;
}
.toc {
  padding: 1.15rem 1.3rem;
  background: var(--secondary);
  border-radius: var(--radius);
  color: #fff;
}
.toc h2 { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.7rem; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: 0.91rem; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: rgb(255 255 255 / 0.88); text-decoration: none; }
.toc a:hover { color: #fff; text-decoration: underline; }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.91rem; background: #fff; }
caption { padding: 0.75rem 1rem; text-align: left; font-size: 0.84rem; color: var(--muted-foreground); background: var(--muted); border-bottom: 1px solid var(--border); }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--muted-2); font-weight: 700; color: var(--secondary); }
thead th { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* --- Photo placeholders ------------------------------------------------- */
.photo-ph {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1.5rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgb(142 47 34 / 0.12) 0%, rgb(59 74 87 / 0.12) 100%),
    repeating-linear-gradient(90deg, var(--muted) 0 14px, var(--muted-2) 14px 28px);
  text-align: center;
}
.photo-ph--tall { min-height: 340px; }
.photo-ph__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.photo-ph__caption { font-size: 0.88rem; color: var(--muted-foreground); max-width: 32ch; margin: 0.35rem auto 0; }
.photo-ph svg { margin: 0 auto 0.6rem; color: var(--border-strong); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--secondary-dark); color: rgb(255 255 255 / 0.78); font-size: 0.9rem; border-top: 6px solid var(--primary); }
.site-footer a { color: rgb(255 255 255 / 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand__name { font-weight: 700; color: #fff; font-size: 0.98rem; line-height: 1.2; }
.site-footer h3 { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  justify-content: space-between;
  padding-block: 1.15rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.83rem;
}

/* --- Sticky mobile action bar ------------------------------------------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1px;
  background: var(--border-strong);
  border-top: 1px solid var(--border-strong);
}
.callbar a {
  padding: 0.8rem 0.5rem;
  background: #fff;
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.callbar a.is-primary { background: var(--primary); color: #fff; }
@media (min-width: 1024px) { .callbar { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 52px; } }

/* --- 404 ---------------------------------------------------------------- */
.err { display: grid; place-items: center; text-align: center; padding-block: 4.5rem; }
.err__code { font-size: clamp(3.6rem, 15vw, 7.5rem); font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -0.05em; }

/* --- Utilities ---------------------------------------------------------- */
/* Inline style="" attributes are blocked by the Content-Security-Policy in
   _headers. They fail silently in production while looking perfect on a
   plain local server. Every one-off spacing or color tweak lives here as a
   class instead. Do not reintroduce style="". */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.u-mt-05 { margin-top: 0.5rem; }
.u-mt-1 { margin-top: 1rem; }
.u-mt-125 { margin-top: 1.25rem; }
.u-mt-15 { margin-top: 1.5rem; }
.u-mt-175 { margin-top: 1.75rem; }
.u-mt-2 { margin-top: 2rem; }
.u-mt-25 { margin-top: 2.5rem; }
.u-my-15 { margin: 1.5rem 0; }
.u-my-2 { margin: 2rem 0; }
.u-row-center { justify-content: center; }
.u-row-center-15 { justify-content: center; margin-top: 1.5rem; }
.u-row-center-175 { justify-content: center; margin-top: 1.75rem; }
.u-white { color: #fff; }
.u-white-80 { color: rgb(255 255 255 / 0.8); }
.u-accent { color: var(--accent); }
.u-fw-500 { font-weight: 500; }
.u-fs-092 { font-size: 0.92rem; }
.u-fs-094-muted { font-size: 0.94rem; color: var(--muted-foreground); }
.u-fs-098 { font-size: 0.98rem; }
.u-fs-112 { font-size: 1.12rem; }
.u-fs-122 { font-size: 1.22rem; }
.u-fs-132 { font-size: 1.32rem; }
.u-narrow { max-width: 58rem; margin-inline: auto; }
.u-bt-0 { border-top: 0; }
.u-sticky-aside { position: static; }
@media (min-width: 900px) {
  .u-sticky-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}

@media print {
  .site-header, .callbar, .topbar, .site-footer { display: none; }
}
