/* Frisco & The Colony Pest Control
   Mobile first: base rules are for phones, min-width queries add the wider layouts.
   Colors are custom properties; the dark values are listed twice on purpose,
   once for the system preference and once for the manual toggle (data-theme). */

/* ---------- Theme ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f2f6fc;
  --card: #ffffff;
  --text: #0f1b2d;
  --muted: #4b5b72;
  --border: #d5deeb;
  --brand: #1554c0;
  --brand-hover: #0f439c;
  --on-brand: #ffffff;
  --brand-tint: #e6effc;
  --link: #1149a8;
  --star: #b45309;
  --danger: #b42318;
  --success: #0f6b3c;
  --success-tint: #e6f4ec;
  --hero-from: #0a2452;
  --hero-to: #1554c0;
  --hero-from-rgb: 10 36 82;
  --hero-to-rgb: 21 84 192;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .08);
  --radius: 14px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #101a2c;
    --card: #152238;
    --text: #e8eef8;
    --muted: #a6b5cb;
    --border: #2a3d5a;
    --brand: #6ea8ff;
    --brand-hover: #93bdff;
    --on-brand: #06142b;
    --brand-tint: #16294a;
    --link: #8fbcff;
    --star: #fbbf24;
    --danger: #ff9a8f;
    --success: #6ee7a8;
    --success-tint: #11301f;
    --hero-from: #081632;
    --hero-to: #123a80;
    --hero-from-rgb: 8 22 50;
    --hero-to-rgb: 18 58 128;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #101a2c;
  --card: #152238;
  --text: #e8eef8;
  --muted: #a6b5cb;
  --border: #2a3d5a;
  --brand: #6ea8ff;
  --brand-hover: #93bdff;
  --on-brand: #06142b;
  --brand-tint: #16294a;
  --link: #8fbcff;
  --star: #fbbf24;
  --danger: #ff9a8f;
  --success: #6ee7a8;
  --success-tint: #11301f;
  --hero-from: #081632;
  --hero-to: #123a80;
  --hero-from-rgb: 8 22 50;
  --hero-to-rgb: 18 58 128;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  /* room for the fixed call bar on phones */
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5vw, 2.125rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

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

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 800px; }
.container--form { max-width: 560px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-300%);
  z-index: 100;
  padding: 10px 16px;
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .625em 1.25em;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline { background: var(--card); color: var(--link); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-tint); }
/* On the blue hero and call-to-action band */
.btn--light { background: #ffffff; color: #0a2452; }
.btn--light:hover { background: #e6effc; }
.btn--ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #ffffff; }
.btn--lg { min-height: 54px; padding-inline: 1.5em; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: .375em .875em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.brand__mark { color: var(--brand); flex: none; }
.brand__check { stroke: var(--on-brand); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__text strong { font-size: 1rem; font-weight: 800; white-space: nowrap; }
.brand__text span { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
/* Phones get the call button in the bar at the bottom of the screen instead */
.header-call { display: none; }

.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
/* Without JavaScript the menu button does nothing, so hide it and leave the links visible */
html:not(.js) .nav-toggle { display: none; }

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 8px 20px 16px;
}
html.js .site-nav { display: none; }
html.js .site-nav.is-open { display: block; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--link); }

@media (min-width: 480px) {
  .header-call { display: inline-flex; }
}

@media (min-width: 1000px) {
  :root { --header-h: 72px; }
  .site-header__inner { gap: 24px; }
  .nav-toggle { display: none; }
  html.js .site-nav, .site-nav {
    display: block;
    position: static;
    margin-left: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; font-size: 1rem; }
  .site-nav a:hover { background: var(--surface); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #ffffff;
  padding: 36px 0 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(500px 300px at -10% 110%, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }

/* Home and city pages: photo of a home behind the hero, under a blue wash that keeps the text readable.
   On phones the photo fills the top of the section and fades to solid blue before the form. */
.hero--photo {
  background-color: var(--hero-to);
  background-image:
    linear-gradient(180deg, rgb(var(--hero-from-rgb) / .66) 0, rgb(var(--hero-from-rgb) / .78) 340px, var(--hero-from) 650px, var(--hero-to) 100%),
    url("/img/hero-1100.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%, auto 660px;
  background-position: 0 0, center top;
}
.hero--photo::before { display: none; }
.hero__grid { display: grid; gap: 32px; }
.hero h1 { color: #ffffff; margin-bottom: .4em; }
.hero--page { padding: 28px 0 40px; }
.hero--page h1 { font-size: clamp(1.75rem, 6.5vw, 2.75rem); max-width: 18em; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: .875rem;
  font-weight: 600;
}
.hero__lead { font-size: 1.125rem; color: #dbe7fb; max-width: 56ch; margin-bottom: 1.25em; }
.hero__actions { display: grid; gap: 12px; margin-bottom: 20px; }
.hero__rating, .hero__hours { margin: 0 0 12px; color: #dbe7fb; font-size: 1rem; }
.hero__rating .stars { color: #fbbf24; }

.trust-list { display: grid; gap: 10px; font-weight: 600; font-size: 1rem; }
.trust-list li { display: flex; align-items: flex-start; gap: 10px; }
.trust-list .icon { color: #7fe3a8; margin-top: .15em; }
/* The trust list also appears next to the form on service pages, outside the hero */
.split__aside .trust-list { margin-top: 24px; }
.split__aside .trust-list .icon { color: var(--success); }

.breadcrumb { margin-bottom: 14px; font-size: .9375rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: #dbe7fb; }
.breadcrumb [aria-current] { color: #ffffff; font-weight: 600; }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}
.chip-nav a:hover { background: rgba(255, 255, 255, .14); }

@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .split__aside .trust-list { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .hero--photo {
    background-image:
      linear-gradient(100deg, rgb(var(--hero-from-rgb) / .84) 0%, rgb(var(--hero-from-rgb) / .76) 50%, rgb(var(--hero-from-rgb) / .42) 100%),
      url("/img/hero-1920.webp");
    background-size: cover;
    background-position: center;
  }
  .hero { padding: 64px 0 72px; }
  .hero--page { padding: 40px 0 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
  .hero__lead { font-size: 1.25rem; }
}

/* ---------- Request form ---------- */
.quote-card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.quote-form__title { font-size: 1.375rem; margin-bottom: .25em; }
.quote-form__lead { color: var(--muted); margin-bottom: 1em; font-size: 1rem; }
.quote-form__offer {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--link);
  font-weight: 700;
}
.quote-form__note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .9375rem; }

.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 650; }
.field__optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  /* 16px or larger stops iOS zooming into the field */
  font-size: 1rem;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 6px 0 0; color: var(--danger); font-size: .9375rem; font-weight: 600; }
.field-row { display: grid; gap: 0 12px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
html:not(.js) .quote-form button[type="submit"] { display: none; }

.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status--error {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  color: var(--danger);
}
.form-status--error a { color: inherit; }
.form-success {
  padding: 8px 4px;
  text-align: center;
}
.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--success-tint);
  color: var(--success);
}
.form-success__icon .icon { width: 28px; height: 28px; }
.form-success h2 { font-size: 1.375rem; }
.form-success p { color: var(--muted); margin: 0; }

@media (min-width: 420px) {
  .field-row { grid-template-columns: minmax(0, 1fr) 132px; }
  .quote-card { padding: 26px 24px; }
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 62ch; margin-bottom: 28px; }
.section__head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section__after { margin: 24px 0 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 700; }

@media (min-width: 960px) {
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 40px; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 16px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }
/* The whole card is the tap target for its link */
.card__link { color: var(--text); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(.card__link):hover { border-color: var(--brand); box-shadow: var(--shadow); }
.card:has(.card__link:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.card__link:focus-visible { outline: none; }
.card__more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; color: var(--link); font-weight: 700; font-size: 1rem; }

.service-card__icon, .feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--link);
}
.service-card__icon .icon, .feature__icon .icon { width: 26px; height: 26px; }
.also-offered { margin: 20px 0 0; color: var(--muted); }
.also-offered strong { color: var(--text); }

.feature-grid { display: grid; gap: 28px; }
.feature p { color: var(--muted); font-size: 1rem; margin: 0; }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 18px; height: 18px; }
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p { color: var(--text); }
.review-card__by { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.review-card__by strong { color: var(--text); }
.review-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--link);
  font-weight: 800;
}

.card-grid--pests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pest-card { padding: 0; overflow: hidden; }
.pest-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pest-card h3 { margin: 0; padding: 12px 14px; font-size: 1.0625rem; }

.area-list { display: grid; gap: 12px; }
.area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}
.area > .icon:first-child { color: var(--link); }
.area__arrow { margin-left: auto; color: var(--link); }
a.area:hover { border-color: var(--brand); box-shadow: var(--shadow); }

.nearby { margin-top: 28px; }
.nearby h3 { margin-bottom: 14px; }
.nearby p { margin: 18px 0 0; color: var(--muted); }
.nearby__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nearby__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-weight: 600;
}
.nearby__list .icon { color: var(--link); }

/* On phones the reviews sit side by side and are swiped through, to keep the page short */
@media (max-width: 639px) {
  .card-grid--reviews {
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    margin-inline: -20px;
    padding: 4px 20px 12px;
  }
  .card-grid--reviews > li { scroll-snap-align: start; }
}

@media (min-width: 640px) {
  .card-grid--4, .card-grid--3, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--pests { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearby__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .card-grid--4, .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nearby__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2.5px solid var(--link);
  border-bottom: 2.5px solid var(--link);
  transform: rotate(45deg);
  transition: transform .15s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* ---------- Long-form content ---------- */
.prose h2 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.25em; }
.prose p { max-width: 68ch; }
.prose .card-grid, .prose .faq { margin-top: 16px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon { color: var(--success); margin-top: .2em; }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
  .split__aside { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- Pest library ---------- */
.pest { padding: 28px 0; border-bottom: 1px solid var(--border); }
.pest:first-child { padding-top: 0; }
.pest:last-child { border-bottom: 0; padding-bottom: 0; }
.pest__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.pest__body ul { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.pest__body li::marker { color: var(--brand); }
.pest__cta { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--brand-tint); }
@media (min-width: 720px) {
  .pest { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
  .pest__image { aspect-ratio: 4 / 3; margin-bottom: 0; }
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #ffffff;
  padding: 44px 0;
}
.cta-band h2 { color: #ffffff; }
.cta-band p { color: #dbe7fb; margin: 0; }
.cta-band__inner { display: grid; gap: 24px; }
.cta-band__actions { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .cta-band__actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .cta-band { padding: 64px 0; }
  .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: 1rem;
}
.site-footer__grid { display: grid; gap: 28px; }
.site-footer__name { color: var(--text); font-weight: 800; font-size: 1.0625rem; margin-bottom: .5em; }
.site-footer__heading { color: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: .5em; }
.site-footer li a, .site-footer li { line-height: 1.3; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer li:not(:has(a)) { padding: 9px 0; }
.site-footer__phone { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 800; font-size: 1.125rem; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .9375rem;
}
.site-footer__legal p { margin: 0; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle span { align-items: center; gap: .5em; }
.theme-toggle__moon { display: inline-flex; }
/* The button needs JavaScript, so it is only shown when scripts run */
html:not(.js) .theme-toggle { display: none; }
.theme-toggle .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .theme-toggle__sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-toggle .theme-toggle__moon { display: none; }
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
}

/* ---------- Phone call bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(15, 27, 45, .12);
  transition: transform .2s;
}
.sticky-cta .btn { padding-inline: .5em; }
/* Slides away while the request form is on screen */
.sticky-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}

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

@media print {
  .site-header, .sticky-cta, .quote-card, .cta-band { display: none; }
  body { padding-bottom: 0; }
}
