/* Mr. Gutter: site styles. Mobile first; the nav breakpoint is 900px.
   Every color, font, size, radius and shadow is a token in :root, so the
   look can be retuned in one place. Brand values: context/brand/brand.md.

   Contrast (WCAG AA):
   - Brand blue #0682ec is only used for large bold headings and decoration
     on white (3.6:1 passes for large text). Body links and buttons with
     white text use --blue-dark #0461b0 (6.4:1).
   - Red #af0607 with white text is 7.1:1; on white, 7.1:1.
   - Hero bands are #0461b0 to #033a6e, so white text is at least 6.4:1. */

:root {
  /* Brand */
  --blue: #0682ec;
  --blue-dark: #0461b0;
  --blue-deeper: #033a6e;
  --red: #af0607;
  --red-dark: #740405;
  --navy: #0a2540;
  --white: #ffffff;

  /* Roles */
  --text: #2e2e2e;
  --text-muted: #565656;
  --heading: var(--blue);
  --heading-small: var(--blue-dark);
  --link: var(--blue-dark);
  --link-hover: var(--red);
  --bg: #ffffff;
  --bg-alt: #f2f5f9;
  --bg-tint: #e8f2fd;
  --border: #dfe5ec;
  --on-dark: #ffffff;
  --on-dark-muted: #d4e2f2;
  --focus-ring: #ffbf47;
  --focus-shadow: #0a2540;

  /* Hero band (no photo needed): gradient plus a diagonal rain texture */
  --hero-from: var(--blue-dark);
  --hero-to: var(--blue-deeper);
  --hero-texture: repeating-linear-gradient(115deg, rgb(255 255 255 / 0.05) 0 2px, transparent 2px 22px);

  /* Type */
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Poppins", "Roboto", system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-h1: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  --fs-h1-compact: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem);
  --fs-h3: 1.3rem;
  --lh-body: 1.65;

  /* Space, shape, depth */
  --max-width: 1200px;
  --gutter: 1rem;
  --section-space: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgb(10 37 64 / 0.10);
  --shadow-lift: 0 12px 32px rgb(10 37 64 / 0.16);
  --sticky-call-height: 64px;
  --transition: 180ms ease;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  /* room for the sticky call bar on phones */
  padding-bottom: var(--sticky-call-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 0.6em;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4, h5 { font-size: 1.1rem; color: var(--heading-small); }

p { margin: 0 0 1em; }

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

/* Missing uploads are emitted with `hidden`; keep it winning over display rules. */
[hidden] {
  display: none !important;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-shadow);
}

main:focus {
  outline: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section-intro {
  max-width: 60ch;
  color: var(--text-muted);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--link);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--gutter);
}

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 3px;
  margin-right: 0.6rem;
  vertical-align: middle;
  background: currentColor;
}

/* ---------- Buttons: rounded pills, bold uppercase ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Blue: the default action on white backgrounds */
.btn-primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-dark);
}

/* Red: the main conversion button on blue (hero) */
.btn-accent {
  background: var(--red);
  border-color: var(--red);
  color: var(--on-dark);
}

.btn-accent:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--on-dark);
}

/* White outline: the second action on dark bands */
.btn-ghost {
  background: transparent;
  border-color: var(--white);
  color: var(--on-dark);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

.btn-secondary:hover {
  background: var(--blue-dark);
  color: var(--on-dark);
}

.btn-outline-red {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--on-dark);
}

/* ---------- Header: white top bar + red nav band ---------- */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
}

.site-logo {
  display: block;
  margin-right: auto;
}

.site-logo img {
  display: block;
  width: 132px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-financing,
.header-quote {
  display: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 700;
}

.header-phone:hover {
  background: var(--red-dark);
  color: var(--on-dark);
}

.header-phone-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-phone-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* On the smallest phones the header phone shows "Call" only; the number is
   in the sticky call bar. */
@media (max-width: 479.98px) {
  .header-phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--blue-dark);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }

.site-nav {
  background: var(--red);
}

.menu,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.menu-item > a,
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.menu-item > a:hover,
.submenu-toggle:hover,
.menu-item > a[aria-current="page"] {
  background: var(--red-dark);
  color: var(--on-dark);
}

/* A toggle right after its parent link is just the chevron. */
.menu-item > a + .submenu-toggle {
  padding-left: 0.1rem;
  padding-right: 0.8rem;
  margin-left: -0.6rem;
}

.submenu-toggle::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition);
}

.has-submenu.is-open > .submenu-toggle::after {
  transform: translateY(2px) rotate(-135deg);
}

.submenu a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.submenu a:hover,
.submenu a[aria-current="page"] {
  background: var(--bg-tint);
  color: var(--blue-dark);
}

/* Phones and tablets: the menu collapses behind the toggle (JS only). */
@media (max-width: 899.98px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .menu {
    display: none;
  }

  .js .menu.is-open {
    display: block;
    padding: 0.25rem 0 0.75rem;
  }

  .menu-item {
    border-top: 1px solid rgb(255 255 255 / 0.18);
  }

  .menu-item > a {
    flex: 1;
  }

  .submenu {
    flex-basis: 100%;
    background: var(--white);
    border-radius: var(--radius);
    margin: 0 0 0.5rem;
  }

  .js .submenu {
    display: none;
  }

  .js .has-submenu.is-open > .submenu {
    display: block;
  }
}

/* Desktop: logo + actions on top, a full-width red nav band below. */
@media (min-width: 900px) {
  .header-top-inner {
    min-height: 96px;
  }

  .site-logo img {
    width: 180px;
  }

  .header-financing,
  .header-quote {
    display: inline-flex;
  }

  .header-phone {
    padding: 0.45rem 1.1rem;
  }

  .header-phone-number {
    font-size: 1.15rem;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 16rem;
    padding: 0.4rem 0;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lift);
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu,
  .has-submenu.is-open > .submenu {
    display: block;
  }

  .no-js .submenu {
    display: block;
    position: static;
    box-shadow: none;
  }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  background: var(--bg-alt);
  font-size: var(--fs-small);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: var(--text-muted);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) 0;
  color: var(--on-dark);
  background:
    var(--hero-texture),
    radial-gradient(ellipse at 85% 15%, rgb(255 255 255 / 0.12), transparent 55%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
}

/* A red base line, like the live site's red band under the header */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--red);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  max-width: 20ch;
  color: var(--on-dark);
  text-wrap: balance;
}

.hero .eyebrow {
  color: var(--on-dark-muted);
}

.hero-subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
}

.hero-intro {
  max-width: 58ch;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.hero-intro p {
  margin: 0 0 0.35em;
}

.hero-copy a:not(.btn) {
  color: var(--on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions .btn {
  flex: 1 1 15rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.hero-aside {
  display: none;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 900px) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .hero-inner:has(.hero-media) {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero-inner:has(.hero-aside):not(:has(.hero-media)) {
    grid-template-columns: 1.4fr 1fr;
  }

  .hero-inner:not(:has(.hero-media)) .hero-aside {
    display: block;
    padding: 1.75rem;
    border-top: 5px solid var(--red);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-lift);
  }
}

.hero-aside-label {
  margin: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .hero-aside-phone {
  display: block;
  margin: 0.25rem 0;
  color: var(--blue-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 1rem + 1.4vw, 2.2rem);
  text-decoration: none;
}

.hero .hero-aside-phone:hover {
  color: var(--red);
}

.hero-aside-hours {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.hero-aside-list {
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: var(--fs-small);
}

.hero-aside-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.25rem;
}

.hero-aside-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.65em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 2px;
  background: var(--red);
}

.hero--compact {
  padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem) 0;
}

.hero--compact h1 {
  max-width: 32ch;
  margin-bottom: 0.25em;
  font-size: var(--fs-h1-compact);
}

.hero-meta .post-meta {
  margin: 0;
  color: var(--on-dark-muted);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 1.25rem 0;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.trust-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--blue-dark);
}

.trust-text {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--text-muted);
}

.trust-text strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: var(--navy);
}

.trust-text a {
  text-decoration: none;
}

@media (max-width: 559.98px) {
  .trust-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 900px) {
  .trust-list {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.5rem 0;
  }
}

/* ---------- Content ---------- */

.prose {
  max-width: 75ch;
}

/* A container that is also prose stays page-wide and centred; its content
   keeps the reading measure. */
.container.prose {
  max-width: var(--max-width);
}

.container.prose > * {
  max-width: 75ch;
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

/* The imported pages use h6 as a small label above a heading. */
.prose h6 {
  margin: 1.8em 0 0.4em;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prose img {
  display: block;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

.prose ul li::marker {
  color: var(--red);
}

.features,
.faq {
  background: var(--bg-alt);
}

.feature-list,
.link-grid,
.gallery-grid,
.post-grid,
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.feature-list li {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-list h3 {
  font-size: 1.1rem;
  color: var(--heading-small);
}

.link-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.6rem;
}

.link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.link-grid a::after {
  content: "→";
  color: var(--red);
}

.link-grid a:hover {
  border-color: var(--blue-dark);
  box-shadow: var(--shadow);
}

/* ---------- Service cards ---------- */

.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card > h3,
.card > p {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.card > h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.card > h3 a {
  color: var(--heading-small);
  text-decoration: none;
}

.card > h3 a:hover {
  color: var(--red);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto !important;
  padding-bottom: 1.25rem;
  font-weight: 700;
}

.services-index,
.home-services {
  background: var(--bg-alt);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* A gallery whose photos are all missing uploads disappears entirely. */
.gallery:not(:has(img)),
.gallery-grid:not(:has(img)) {
  display: none;
}

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

.faq-list {
  max-width: 60rem;
}

.faq-item {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-item[open] summary {
  color: var(--blue-dark);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
}

/* ---------- Reviews band ---------- */

.reviews {
  text-align: center;
  color: var(--on-dark);
  background:
    var(--hero-texture),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.reviews h2 {
  color: var(--on-dark);
}

.reviews .eyebrow {
  color: var(--on-dark-muted);
}

.reviews a {
  color: var(--on-dark);
}

.reviews-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.reviews-fallback a:hover {
  color: var(--red);
}

.reviews-widget {
  text-align: left;
}

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

.cta-band {
  padding: var(--section-space) 0;
  color: var(--on-dark);
  background:
    var(--hero-texture),
    linear-gradient(135deg, var(--red), var(--red-dark));
}

.cta-band h2 {
  color: var(--on-dark);
  margin-bottom: 0.3em;
}

.cta-band p {
  max-width: 55ch;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-band .btn-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--red);
}

.cta-band .btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-dark);
}

.cta-band .btn-secondary {
  border-color: var(--white);
  color: var(--on-dark);
}

.cta-band .btn-secondary:hover {
  background: var(--white);
  color: var(--red);
}

/* ---------- Quote form ---------- */

.quote {
  background: var(--bg-alt);
}

.quote-form {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .quote-form {
    grid-template-columns: 1fr 1fr;
  }

  .quote-form > .field-hint,
  .quote-form > .checkbox-group,
  .quote-form > .field:has(textarea),
  .quote-form > .field:has(#quote-address),
  .quote-form > .cf-turnstile,
  .quote-form > button {
    grid-column: 1 / -1;
  }
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--navy);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #8a96a3;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  color: var(--text);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue-dark);
}

.field-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.checkbox-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0 1.25rem 0 0;
  font-weight: 400;
  color: var(--text);
}

.checkbox-group input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--blue-dark);
}

.quote-form button {
  justify-self: start;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  max-width: 46rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: var(--white);
  color: var(--red-dark);
  font-weight: 700;
}

.offer-banner {
  max-width: 46rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.35rem;
  border: 2px dashed var(--red);
  border-radius: var(--radius);
  background: var(--white);
}

.offer-headline {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--red);
}

.offer-details,
.offer-expires {
  margin: 0.25rem 0 0;
}

/* ---------- Pages: careers, area index ---------- */

.apply-block {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.county-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.county {
  padding: 1.25rem;
  border-top: 4px solid var(--blue-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.county h3 {
  font-size: 1.15rem;
}

.county ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.county li {
  padding: 0.2rem 0;
}

.area-index {
  background: var(--bg-alt);
}

/* ---------- Blog ---------- */

.post-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.post-card > :not(.post-card-image) {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.post-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-title {
  margin-top: 1.1rem;
  font-size: 1.15rem;
}

.post-card-title a {
  color: var(--heading-small);
  text-decoration: none;
}

.post-meta {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.post-featured {
  margin: 0 0 1.5rem;
}

.post-featured img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  color: var(--on-dark-muted);
  background: var(--navy);
  border-top: 5px solid var(--red);
}

.site-footer a {
  color: var(--on-dark);
}

.site-footer a:hover {
  color: var(--focus-ring);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer-logo img {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

.footer-heading {
  margin-bottom: 0.8rem;
  color: var(--on-dark);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  padding: 0.25rem 0;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--fs-small);
}

.footer-bottom p {
  margin: 0;
  padding: 1rem 0;
}

/* ---------- Sticky call bar (phones) ---------- */

.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  height: var(--sticky-call-height);
  box-shadow: 0 -4px 16px rgb(10 37 64 / 0.2);
}

.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sticky-call-phone {
  flex: 1.6;
  background: var(--red);
  color: var(--on-dark);
  font-size: 1.05rem;
}

.sticky-call-quote {
  flex: 1;
  background: var(--blue-dark);
  color: var(--on-dark);
  font-size: 0.95rem;
}

.sticky-call a:hover,
.sticky-call a:focus-visible {
  color: var(--on-dark);
  filter: brightness(0.9);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .sticky-call {
    display: none;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
