/* Macey Bail Bonds
   Colours: navy and orange from the owner's brand, warm ivory paper.
   Type: Rye (wordmark only), Roboto Slab (headings), Source Sans 3 (text). */

@font-face { font-family: "Rye"; src: url(/assets/fonts/rye.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url(/assets/fonts/roboto-slab.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/assets/fonts/source-sans-3.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/assets/fonts/source-sans-3-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --charcoal: #1a2d42;
  --night: #12202f;
  --walnut: #26425f;
  --gold: #ee6835;
  --gold-pale: #f7a47e;
  --brass: #d9602b;
  --brass-deep: #b0441a;
  --ivory: #f5f0e5;
  --paper: #fcfaf5;
  --ink: #1f2732;
  --ink-soft: #4a5260;

  --slab: "Roboto Slab", Rockwell, "Courier New", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --sign: "Rye", var(--slab);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;

  /* per-section colours, overridden by dark bands */
  --text: var(--ink);
  --muted: var(--ink-soft);
  --rule: rgba(38, 66, 95, 0.28);
  --link: var(--brass-deep);
  --focus: var(--brass-deep);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--sans);
  font-kerning: normal;
}

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

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

address { font-style: normal; margin: 0 0 0.75rem; }

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

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--gold); color: var(--charcoal); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.small { font-size: 0.95rem; color: var(--muted); }

/* ---------- Dark contexts ---------- */
.masthead, .hero, .band--dark, .band--walnut, .pagehead, .footer, .callbar {
  --text: var(--ivory);
  --muted: rgba(245, 240, 229, 0.78);
  --rule: rgba(245, 240, 229, 0.22);
  --link: var(--gold-pale);
  --focus: var(--gold);
  color: var(--text);
}

/* ---------- Wordmark: modelled on the sign over the office door ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  margin: 0;
  padding: 0.3em 0.7em 0.25em;
  border: 1px solid rgba(245, 240, 229, 0.7);
  box-shadow: inset 0 0 0 3px var(--charcoal), inset 0 0 0 4px rgba(245, 240, 229, 0.25);
  background: var(--charcoal);
  color: var(--ivory);
  line-height: 1;
  white-space: nowrap;
}
.wordmark__name { font-family: var(--sign); font-size: 1.5em; letter-spacing: 0.03em; }
.wordmark__trade {
  font-family: var(--slab); font-weight: 600; font-size: 0.78em;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-pale);
}
/* Macey Court Services: the same sign, painted the other way round */
.wordmark--court {
  background: var(--ivory); color: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4px rgba(26, 45, 66, 0.45);
}
.wordmark--court .wordmark__trade { color: var(--brass-deep); }

/* Court Services band near the bottom of the home pages */
.courtband__head { margin: 0 0 1.25rem; font-size: clamp(1rem, 0.85rem + 0.7vw, 1.3rem); }
.courtband__grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .courtband__grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; } }
.courtband p { color: var(--muted); }
.courtband .services--court { margin-top: 0; border-top-color: var(--gold); }
.courtband .services--court strong { color: var(--ivory); }
.courtband .services--court a:hover strong { color: var(--gold-pale); }
.offices { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 1rem; }
.offices address { font-style: normal; }
.pagehead__brand { margin: 0 0 1rem; font-size: 0.95rem; }
.footer__also { margin: 0.75rem 0 0; font-size: 0.8rem; }
.footer__also a { text-decoration: none; }
.footer__brand .wordmark.wordmark--court { background: var(--ivory); color: var(--charcoal); box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4px rgba(26, 45, 66, 0.45); }
.footer__also a:hover .wordmark--court { border-color: var(--gold); }

/* ---------- Header ---------- */
.masthead {
  background: var(--charcoal);
  border-bottom: 3px double var(--brass);
  position: relative;
  z-index: 20;
}
.masthead__inner {
  max-width: var(--max); margin-inline: auto; padding: 0.7rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.masthead__brand { text-decoration: none; font-size: 0.95rem; }
.masthead__brand:hover .wordmark { border-color: var(--gold); }

.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.mainnav a {
  display: block; padding: 0.6rem 0.7rem; color: var(--ivory);
  text-decoration: none; font-weight: 600; font-size: 1rem;
}
.mainnav a:hover { color: var(--gold-pale); }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.masthead__phone { display: flex; align-items: center; gap: 0.9rem; }
.masthead__247 { font-size: 0.9rem; font-weight: 600; color: var(--gold-pale); white-space: nowrap; }
.masthead__call {
  font-family: var(--slab); font-weight: 700; font-size: 1.2rem;
  color: var(--night); background: var(--gold);
  padding: 0.55rem 0.9rem; text-decoration: none; white-space: nowrap; border-radius: 2px;
}
.masthead__call:hover { background: var(--gold-pale); }
.masthead__call-label { font-weight: 500; }

.menu-toggle {
  display: none;
  font: 600 1rem var(--sans); color: var(--ivory);
  background: transparent; border: 1px solid rgba(245, 240, 229, 0.55); border-radius: 2px;
  padding: 0.55rem 0.9rem; min-height: 44px; margin-left: auto; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-pale); }

@media (max-width: 62em) {
  .masthead__inner { flex-wrap: wrap; gap: 0.75rem; }
  .masthead__phone { margin-left: auto; }
  .masthead__call { font-size: 1.05rem; }
  .js .menu-toggle { display: block; margin-left: 0; }
  .js .mainnav { display: none; }
  .js .mainnav.is-open { display: block; }
  .mainnav { order: 5; flex-basis: 100%; margin-left: 0; }
  .mainnav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); }
  .mainnav li + li { border-top: 1px solid var(--rule); }
  .mainnav a { padding: 0.85rem 0; font-size: 1.1rem; }
  .mainnav a[aria-current="page"] { box-shadow: none; color: var(--gold-pale); }
}
@media (max-width: 40em) {
  /* the call bar takes over on phones */
  .masthead__phone { display: none; }
  .js .menu-toggle { margin-left: auto; }
  .masthead__brand { font-size: 0.85rem; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-block; text-decoration: none; border-radius: 2px;
  font-family: var(--slab); font-weight: 700; font-size: 1.2rem; line-height: 1.2;
  padding: 0.85rem 1.3rem; min-height: 48px;
}
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-pale); }

.textlink { font-weight: 600; }
.textlink::after { content: " \2192"; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band--paper { background: var(--paper); }
.band--ivory {
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .26 0 0 0 0 .14 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band--walnut { background: var(--walnut); }
.band--dark { background: var(--charcoal); }

.prose { max-width: 40rem; }
.article { max-width: 46rem; }
.article h2 { margin-top: 2.75rem; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }
.article h2:first-child { margin-top: 0; }

.ruled { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--rule); }
.ruled li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.hero__photo { position: relative; }
.hero__photo img {
  width: 100%; height: clamp(14rem, 58vw, 24rem);
  object-fit: cover; object-position: 62% 55%;
  filter: contrast(1.05);
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26, 45, 66, 0) 55%, var(--charcoal) 100%);
}
.hero__text { position: relative; padding: 0.5rem var(--gutter) 2.5rem; }
.hero h1 { max-width: 15ch; margin-bottom: 1.1rem; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem); }
.hero__lede { font-size: 1.2rem; max-width: 32rem; color: var(--muted); margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-bottom: 1.75rem; }
.hero__247 {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.98rem; color: var(--gold-pale); margin-bottom: 1.1rem;
}
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #7fb069; box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.22); }
.hero__where { font-size: 1rem; }

@media (min-width: 60em) {
  .hero { min-height: min(44rem, calc(100vh - 5rem)); }
  .hero__photo { position: absolute; inset: 0 0 0 auto; width: 64%; }
  .hero__photo img {
    height: 100%; object-position: 70% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
    mask-image: linear-gradient(to right, transparent 0, #000 38%);
  }
  .hero__photo::after { background: linear-gradient(to top, rgba(26, 45, 66, 0.55), rgba(26, 45, 66, 0) 30%); }
  .hero__text {
    align-self: center; max-width: 40rem;
    padding: 4rem 2rem 4rem max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    box-sizing: content-box;
  }
  .hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
}

/* Address links with a map pin */
.maplink { display: inline-flex; align-items: flex-start; gap: 0.5rem; }
.maplink .icon { width: 0.8em; height: 1em; flex: none; margin-top: 0.28em; fill: currentColor; color: var(--gold); }

/* ---------- Intro ---------- */
.intro__grid { display: grid; gap: 2rem; }
.intro__first {
  font-family: var(--slab); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
  line-height: 1.45; color: var(--ink);
}
.intro .services { margin-top: 0; }
@media (min-width: 60em) {
  .intro__grid { grid-template-columns: 7fr 5fr; gap: 4.5rem; align-items: end; }
}

/* The sign over the office door, as a heading */
.signboard {
  display: inline-block; margin-bottom: 1.5rem;
  background: var(--charcoal); color: var(--ivory);
  padding: 0.55rem 1.1rem 0.45rem;
  border: 1px solid var(--charcoal);
  box-shadow: inset 0 0 0 4px var(--charcoal), inset 0 0 0 5px rgba(245, 240, 229, 0.7);
  font-family: var(--slab); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.45rem); line-height: 1.2;
}

.services { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 2px solid var(--charcoal); }
.services li { border-bottom: 1px solid var(--rule); }
.services a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center;
  padding: 0.9rem 0; text-decoration: none; color: var(--ink);
}
.services strong, .services span { grid-column: 1; }
.services a::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; color: var(--brass); font-size: 1.2rem; transition: transform 0.15s; }
.services a:hover::after { transform: translateX(4px); }
.services strong { font-family: var(--slab); font-weight: 600; font-size: 1.15rem; }
.services span { color: var(--muted); font-size: 1rem; }
.services a:hover strong { color: var(--brass-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

/* ---------- Section heading used above full-width content ---------- */
.sectionhead { max-width: 40rem; margin-bottom: 2.5rem; }
.sectionhead p { color: var(--muted); }

/* ---------- Numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps__item {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 0.75rem; align-content: start;
  padding: 1.4rem 0; border-top: 1px solid var(--rule);
}
.steps__item:last-child { border-bottom: 1px solid var(--rule); }
.steps__num {
  font-family: var(--sign); font-size: 2.6rem; line-height: 0.9; color: var(--brass);
}
.steps__title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 1.05rem; }

@media (min-width: 60em) {
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--charcoal); }
  .steps__item {
    grid-template-columns: 1fr; border-top: 0; padding: 1.5rem 1.5rem 0.5rem;
  }
  .steps__item:first-child { padding-left: 0; }
  .steps__item + .steps__item { border-left: 1px solid var(--rule); }
  .steps__item:last-child { border-bottom: 0; padding-right: 0; }
  .steps__num { font-size: 4rem; margin-bottom: 1rem; }
}
.process__more { margin-top: 2rem; }

.process__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2.75rem; align-items: start; }
.process__cost h3 { font-size: 1.35rem; }
.process__cost p { max-width: 34rem; }
@media (min-width: 52em) { .process__foot { grid-template-columns: 6fr 5fr; gap: 4rem; } }

/* ---------- Fee calculator ---------- */
.calc {
  background: var(--ivory); border-top: 3px solid var(--charcoal);
  padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem) 1.4rem; margin: 1.5rem 0;
}
.calc__head { font-size: 1.3rem; margin-bottom: 0.35rem; }
.calc__intro { color: var(--muted); font-size: 1rem; }
.calc__form label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.calc__field {
  display: flex; align-items: center; background: var(--paper);
  border: 1px solid var(--ink-soft); border-radius: 2px;
}
.calc__field span { padding-left: 0.9rem; font: 600 1.4rem var(--slab); color: var(--muted); }
.calc__field input {
  flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 600 1.4rem var(--slab); padding: 0.65rem 0.75rem 0.65rem 0.35rem; min-height: 48px;
}
.calc__field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc__field input:focus { outline: none; }
.calc__result {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 1.1rem 0 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--rule);
}
.calc__label { font-weight: 700; }
.calc__result output { font: 600 clamp(1.9rem, 1.5rem + 1.5vw, 2.5rem) var(--slab); color: var(--brass-deep); }
.calc__note { font-size: 0.92rem; color: var(--muted); }
html:not(.js) .calc__form, html:not(.js) .calc__result { display: none; }
.band--ivory .calc { background: var(--paper); }

/* ---------- Co-signer guide ---------- */
.btn--ghost {
  background: transparent; color: var(--text); border: 1px solid currentColor; cursor: pointer;
  font-size: 1.05rem; padding: 0.7rem 1.1rem;
}
.btn--ghost:hover { color: var(--gold-pale); }
.pagehead__actions { margin-top: 1.5rem; }
.calc-wrap .calc { margin-top: 0; }
.checklist__list { list-style: none; counter-reset: c; margin: 0 0 1.5rem; padding: 0; border-top: 2px solid var(--charcoal); }
.checklist__list li { position: relative; padding: 0.9rem 0 0.9rem 2.6rem; border-bottom: 1px solid var(--rule); font-size: 1.12rem; }
.checklist__list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.05rem;
  width: 1.25rem; height: 1.25rem; border: 2px solid var(--charcoal); border-radius: 2px; background: var(--paper);
}

/* ---------- What you'll need ---------- */
.need__grid { display: grid; gap: 2rem; }
.need h2 { color: var(--ivory); }
.need p { color: var(--muted); }
.need__note { font-size: 0.98rem; padding-left: 1rem; border-left: 2px solid var(--gold); }
.need .ruled li { font-size: 1.15rem; }
.need__also { font-size: 1rem; }
@media (min-width: 52em) { .need__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* ---------- Areas ---------- */
.areas__home { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60em) { .areas__home { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.areas__map { margin-inline: calc(var(--gutter) * -0.5); }
.countymap { width: 100%; height: auto; display: block; }
.countymap__other path { fill: none; stroke: rgba(38, 66, 95, 0.3); stroke-width: 1.2; }
.countymap__served path { fill: var(--walnut); stroke: var(--ivory); stroke-width: 2.5; stroke-linejoin: round; transition: fill 0.15s; }
.countymap__served a:hover path, .countymap__served a:focus path { fill: var(--brass-deep); }
.countymap__served a:focus { outline: none; }
.countymap__served a:focus-visible path { stroke: var(--gold); stroke-width: 5; }
.countymap__served path.is-current { fill: var(--gold); }
.countymap__labels text {
  font: 700 15px var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  fill: var(--ivory); text-anchor: middle; dominant-baseline: middle; pointer-events: none;
}
.countymap__pin circle { fill: var(--gold); stroke: var(--ivory); stroke-width: 3; }
.countymap__pin text { font: 700 19px var(--slab); fill: var(--ivory); paint-order: stroke; stroke: var(--charcoal); stroke-width: 5px; stroke-linejoin: round; }
.countymap__city { font: italic 600 15px var(--sans); fill: var(--charcoal); text-anchor: middle; paint-order: stroke; stroke: var(--ivory); stroke-width: 4px; stroke-linejoin: round; }
@media (max-width: 40em) { .countymap__labels text { font-size: 19px; } .countymap__pin text { font-size: 24px; } }

.areas__grid { display: grid; gap: 1.25rem; }
.areas__counties {
  font-family: var(--slab); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.3; color: var(--ink);
}
.countylist {
  list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 2px solid var(--charcoal);
  columns: 2; column-gap: 2rem;
  font-family: var(--slab); font-weight: 500; font-size: 1.2rem;
}
.countylist li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
@media (min-width: 52em) {
  .areas__grid { grid-template-columns: 4fr 8fr; gap: 3rem; }
  .areas__grid > h2 { border-top: 2px solid var(--charcoal); padding-top: 1rem; }
}

.restable { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.restable th, .restable td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.restable thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 2px solid var(--charcoal); }
.restable tbody th { font-family: var(--slab); font-weight: 600; padding-right: 1.5rem; white-space: nowrap; }
@media (max-width: 36em) {
  .restable thead { display: none; }
  .restable tr { display: block; border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
  .restable th, .restable td { display: block; border: 0; padding: 0.1rem 0; }
}

.deflist { margin: 0; }
.deflist > div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.deflist > div:first-child { border-top: 1px solid var(--rule); }
.deflist dt { font-family: var(--slab); font-weight: 600; font-size: 1.15rem; }
.deflist dd { margin: 0.25rem 0 0; color: var(--muted); }

/* ---------- Questions ---------- */
.faq__grid { display: grid; gap: 1.5rem; }
@media (min-width: 52em) {
  .faq__grid { grid-template-columns: 4fr 8fr; gap: 3rem; }
  .faq__side { position: sticky; top: 1.5rem; align-self: start; }
}
.faq__page { max-width: 50rem; }

.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; min-height: 44px;
  font-family: var(--slab); font-weight: 600; font-size: 1.15rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--brass);
}
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--brass-deep); }
.qa__body { padding: 0 0 1.25rem; max-width: 42rem; }

/* ---------- Contact band ---------- */
.contact__grid, .contactpage__grid { display: grid; gap: 2.5rem; }
.contact h2 { color: var(--ivory); }
.contact__phone {
  font-family: var(--slab); font-weight: 600; line-height: 1.05;
  font-size: clamp(2.3rem, 1.4rem + 4.5vw, 4.25rem); margin: 0.5rem 0 1rem; letter-spacing: -0.01em;
}
.contact__phone a { color: var(--gold); text-decoration: none; }
.contact__phone a:hover { color: var(--gold-pale); text-decoration: underline; text-decoration-thickness: 2px; }
.contact__lead > p:last-child { color: var(--muted); }
.contact__details h3, .contactpage h2 {
  font-size: 0.85rem; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-pale); margin: 1.5rem 0 0.4rem;
}
.contact__details .office:first-child h3 { margin-top: 0; }
.office address { margin-bottom: 0.5rem; }
.contactpage__offices .office + .office { margin-top: 2rem; }
.contactpage__offices p { color: var(--muted); }
.contactpage__offices address { font-size: 1.2rem; }
@media (min-width: 52em) {
  .contact__grid { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; }
  .contact__details { border-left: 1px solid var(--rule); padding-left: 2.5rem; }
  .contactpage__grid { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

.hours { margin: 0; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1.5rem; max-width: 22rem; padding: 0.2rem 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }

.contact__photo img { width: 100%; }

/* ---------- Page heads ---------- */
.pagehead {
  background: var(--charcoal);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.25rem);
  border-bottom: 1px solid var(--brass);
}
.pagehead h1 { margin-bottom: 0.6rem; }
.pagehead p { max-width: 38rem; color: var(--muted); font-size: 1.15rem; }
.pagehead--tall { padding-block: 6rem; }

/* ---------- County pages ---------- */
.crumbs { font-size: 0.95rem; margin-bottom: 0.5rem; }
.crumbs a::after { content: " /"; color: var(--muted); }
.county__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60em) { .county__grid { grid-template-columns: 6fr 5fr; gap: 3.5rem; align-items: start; } .county__map { position: sticky; top: 1.5rem; } }
.county__grid h3 { margin-top: 2rem; }
.facts { margin: 0 0 1.5rem; border-top: 2px solid var(--charcoal); }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.25rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 36em) { .facts > div { grid-template-columns: 1fr; } }
.nearby h2 { font-size: 1.35rem; }
.nearby__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.nearby__list a { font-family: var(--slab); font-weight: 600; font-size: 1.15rem; }
.nearby { padding-block: 2.5rem; border-top: 1px solid var(--rule); }

/* ---------- In-page navigation ---------- */
.jumpnav { background: var(--ivory); border-bottom: 1px solid var(--rule); }
.jumpnav .wrap { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.jumpnav a { padding: 0.85rem 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.jumpnav a:hover { color: var(--brass-deep); text-decoration: underline; }
[id] { scroll-margin-top: 1rem; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 2.5rem; }
.about__photo figcaption { font-size: 0.9rem; color: var(--muted); padding-top: 0.6rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; }
@media (min-width: 52em) {
  .about__grid { grid-template-columns: 7fr 4fr; gap: 4rem; align-items: start; }
}
.people__grid { display: grid; gap: 1.25rem; }
.people__list { margin: 0; display: grid; gap: 0; }
.people__list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.people__list > div:first-child { border-top: 2px solid var(--charcoal); }
.people__list dt { font-family: var(--slab); font-weight: 600; font-size: 1.15rem; }
.people__list dd { margin: 0; color: var(--muted); }
.people__owner dt { font-size: 1.4rem; }
@media (min-width: 52em) { .people__grid { grid-template-columns: 4fr 8fr; gap: 3rem; } }

.wide-photo { background: var(--charcoal); }
.wide-photo img { width: 100%; max-height: 38rem; object-fit: cover; object-position: 50% 45%; }

/* ---------- Footer ---------- */
.footer { background: var(--night); padding-top: 3.5rem; font-size: 1rem; border-top: 3px double var(--brass); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-bottom: 2.5rem; }
.footer__brand .wordmark { font-size: 0.95rem; background: var(--night); box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4px rgba(245, 240, 229, 0.25); }
.footer__legal { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }
.footer__head {
  font: 700 0.8rem var(--sans); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-pale); margin-bottom: 0.7rem;
}
.footer__phone { font-family: var(--slab); font-size: 1.35rem; font-weight: 600; }
.footer__phone { margin: 1.25rem 0 0.2rem; }
.footer__phone a { color: var(--gold); text-decoration: none; }
.footer__note { color: var(--muted); font-size: 0.92rem; }
.footer address { margin-bottom: 1rem; }
.footer .maplink { color: var(--text); }
.footer .hours { margin-bottom: 1rem; font-size: 0.95rem; color: var(--muted); }
.footer .hours div { flex-direction: column; gap: 0; }
.footer__nav { list-style: none; margin: 0; padding: 0; }
.footer__nav a { display: inline-block; padding: 0.3rem 0; color: var(--text); text-decoration: none; }
.footer__nav a:hover { color: var(--gold-pale); text-decoration: underline; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px;
  padding-block: 1.25rem; font-size: 0.88rem; color: var(--muted);
}

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 40em) {
  body { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--charcoal); border-top: 2px solid var(--gold);
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    text-align: center; text-decoration: none;
    font: 700 1.15rem var(--slab); color: var(--gold-pale);
  }
  .callbar:focus-visible { outline-offset: -4px; }
  .callbar span { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .callbar, .menu-toggle, .footer, .contact, .skip, [data-print], .calc { display: none !important; }
  body { padding: 0; font-size: 11.5pt; }
  .band, .pagehead { padding-block: 1rem; }
  .band--dark, .band--walnut, .band--ivory, .pagehead, .hero {
    background: none !important; --text: #000; --muted: #333; --rule: #999; --link: #000; color: #000;
  }
  .checklist { break-before: page; }
  a { color: #000; }
  main::after { content: "Macey Bail Bonds · 816-776-6969 · maceybailbonds.com"; display: block; margin-top: 1rem; font-weight: 600; }
}
.countylist a { color: var(--ink); text-decoration-color: var(--rule); }
.countylist a:hover { color: var(--brass-deep); }
.restable tbody th a { color: var(--ink); }

/* ---------- Callback form ---------- */
.cbform { background: var(--paper); border-top: 3px solid var(--gold); padding: clamp(1.25rem, 3vw, 2rem); color: var(--ink); --text: var(--ink); --muted: var(--ink-soft); --link: var(--brass-deep); --focus: var(--brass-deep); --rule: rgba(38, 66, 95, 0.28); }
.cbform__head { font-size: 1.45rem; margin-bottom: 0.4rem; color: var(--ink); }
.cbform__intro { color: var(--muted); }
.cbform form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.cbform__row label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.cbform input, .cbform select {
  width: 100%; min-height: 48px; padding: 0.6rem 0.75rem; border: 1px solid var(--ink-soft); border-radius: 2px;
  background: #fff; color: var(--ink); font: 400 1.1rem var(--sans);
}
.cbform input:focus, .cbform select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.cbform input[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.cbform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cbform__note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.cbform button { justify-self: start; border: 0; cursor: pointer; }
.cbform button:disabled { opacity: 0.6; cursor: wait; }
.cbform__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.cbform__status:focus { outline: none; }
.cbform__status[data-kind="error"] { color: #b3261e; }
.cbform__status[data-kind="ok"] { color: #2e6b34; }
.contactpage__form { margin-top: 2.5rem; }
.callback__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .callback__grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; } .callback__grid .contact__photo { align-self: stretch; } .callback__grid .contact__photo img { height: 100%; object-fit: cover; } }
.contact .contact__lead a { color: var(--gold-pale); }
a[href^="tel:"] { white-space: nowrap; }
.callback__grid .contact__photo img { object-position: 50% 80%; }

/* ---------- Monitoring page ---------- */
@media (min-width: 60em) {
  .steps--list { display: block; border-top: 0; }
  .steps--list .steps__item { display: grid; grid-template-columns: 3.5rem 1fr; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
  .steps--list .steps__item + .steps__item { border-left: 0; }
  .steps--list .steps__item:last-child { border-bottom: 1px solid var(--rule); }
  .steps--list .steps__num { font-size: 2.6rem; margin: 0; }
}
.devices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 60em) { .devices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.device h3 { font-size: 1.25rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--charcoal); margin-bottom: 0; }
.device .ruled { border-top: 0; }
.device .ruled li { font-size: 1.02rem; }
.callback__single { max-width: 36rem; }
.band--walnut h3 { color: var(--ivory); font-size: 1.2rem; }

/* ---------- Language ---------- */
.mainnav__lang a { color: var(--gold-pale); }
@media (min-width: 62.01em) {
  .mainnav__lang { margin-left: 0.5rem; padding-left: 0.5rem; border-left: 1px solid var(--rule); }
}
.masthead__lang { display: none; }
@media (max-width: 62em) {
  .js .masthead__lang {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
    color: var(--gold-pale); font-weight: 600; text-decoration: none;
  }
  .js .mainnav__lang { display: none; }
  .js .masthead__lang + .menu-toggle { margin-left: 0; }
}
@media (max-width: 40em) { .js .masthead__lang { margin-left: auto; } }
.langnote {
  border-left: 3px solid var(--gold); padding: 0.4rem 0 0.4rem 1rem; margin-top: 1.25rem;
  font-size: 1.02rem; color: var(--ink);
}
.band--dark .langnote { color: var(--text); }
.mainnav a { white-space: nowrap; }
@media (min-width: 62.01em) and (max-width: 80em) {
  .masthead__247, .masthead__call-label { display: none; }
  .mainnav a { padding-inline: 0.5rem; }
  .masthead__inner { gap: 1rem; }
}
