/*
  Small Business template stylesheet.
  Theme: change colors, fonts, radius and shadows in :root only; every component uses these tokens.
  Sections below: base, layout, header and nav, buttons, hero, shared components, page sections,
  footer, responsive, reduced motion.
*/
:root {
  /* Colors (keep the WCAG AA contrast pairs listed in template.json) */
  --color-bg: #ffffff;
  --color-surface: #f3f6fa;
  --color-text: #13213a;
  --color-muted: #4a5a70;
  --color-primary: #0f2c59;
  --color-primary-hover: #0a2042;
  --color-primary-contrast: #ffffff;
  --color-accent: #0077b6;
  --color-border: #dbe2ea;
  --color-dark: #0f1d33;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #c3cedd;
  --color-pool-blue: #0077b6;
  --color-brand-navy: #0f2c59;
  --color-orange: #f97316;
  --color-orange-dark: #b54708;
  --shadow-service: 0 8px 24px rgb(0 119 182 / 0.22);
  --shadow-service-hover: 0 18px 36px rgb(0 119 182 / 0.32);
  --shadow-check: 0 2px 10px rgb(0 119 182 / 0.14);
  --shadow-check-hover: 0 5px 16px rgb(0 119 182 / 0.24);
  --shadow-step: 0 4px 12px rgb(15 44 89 / 0.45);

  /* Fonts (system font stacks only; no web fonts) */
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape, depth and layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(15 29 51 / 0.06), 0 2px 6px rgb(15 29 51 / 0.06);
  --shadow: 0 18px 40px -18px rgb(15 29 51 / 0.35);
  --max-width: 76rem;
  --header-height: 4.75rem;
  --space-section: clamp(4rem, 9vw, 6.5rem);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
address { font-style: normal; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: 0.75rem 1.25rem;
  background: var(--color-dark); color: var(--color-on-dark); border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* Layout */
.container { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: var(--space-section); }
.section-alt { background: var(--color-surface); }
.section-dark { background: var(--color-dark); color: var(--color-on-dark); }
.split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.grid { display: grid; gap: 1.5rem; }
.stack > * + * { margin-top: 1rem; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0F2C59;
  border-bottom: 1px solid #0F2C59;
}
.site-header .brand, .site-header .site-nav a { color: #ffffff; }
.site-header .site-nav a:hover, .site-header .site-nav a[aria-current="page"] { color: #ffffff; border-bottom-color: #F97316; }
.site-header .brand-logo { max-width: 3.25rem; object-fit: contain; }
.site-header .header-call { background: #F97316; border-color: #F97316; color: #13213a; }
.site-header .header-call:hover { background: #d95700; border-color: #d95700; color: #ffffff; }
.site-header .nav-toggle { background: #0F2C59; border-color: #ffffff; color: #ffffff; }
@media (max-width: 55.99em) {
  .js .site-header .site-nav { background: #0F2C59; border-bottom-color: #0F2C59; }
  .js .site-header .site-nav a { color: #ffffff; border-bottom-color: rgb(255 255 255 / 25%); }
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-height); }
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-right: auto;
  color: var(--color-text); text-decoration: none; font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em;
}
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; color: var(--color-primary); }
.brand-mark-fg { fill: none; stroke: var(--color-primary-contrast); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo { height: 2.75rem; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.site-nav a {
  display: inline-block; padding: 0.4rem 0; color: var(--color-text); font-weight: 550;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.header-call { white-space: nowrap; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem;
  padding: 0; cursor: pointer; background: var(--color-bg); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border: 2px solid var(--color-primary); border-radius: var(--radius-sm);
  background: var(--color-primary); color: var(--color-primary-contrast);
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}
.button:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: translateY(-1px); }
.button svg { width: 1.15rem; height: 1.15rem; flex: none; }
.button-outline { background: transparent; color: var(--color-primary); }
.button-outline:hover { background: var(--color-primary); color: var(--color-primary-contrast); }
.button-light { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-dark); }
.button-light:hover { background: var(--color-surface); border-color: var(--color-surface); }
.button-ghost-light { background: transparent; border-color: var(--color-on-dark); color: var(--color-on-dark); }
.button-ghost-light:hover { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-dark); }
.button-small { min-height: 2.75rem; padding: 0.55rem 1.1rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 1.05rem; height: 1.05rem; transition: transform 0.2s ease-out; }
.text-link:hover svg { transform: translateX(3px); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem); background: url("../assets/uploads/pexels-komet-flicker-1015379201-20774773.jpg") center / cover no-repeat; color: #ffffff; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(15 44 89 / 88%) 0%, rgb(15 44 89 / 82%) 52%, rgb(15 44 89 / 68%) 100%); pointer-events: none; }
@media (max-width: 55.99em) { .hero::before { background: rgb(15 44 89 / 82%); } }
.hero .container { position: relative; }
.hero h1, .hero .lead, .hero .eyebrow, .hero .check-list { color: #ffffff; }
.hero .eyebrow::before { background: #F97316; }
.hero .check-list svg { color: #F97316; }
.hero .button { background: #F97316; border-color: #F97316; color: #13213a; }
.hero .button:hover { background: #d95700; border-color: #d95700; color: #ffffff; }
.hero .button-outline { background: transparent; color: #ffffff; border-color: #ffffff; }
.hero .button-outline:hover { background: #ffffff; color: #13213a; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--color-muted); max-width: 38rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  color: var(--color-primary); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--color-accent); }
.check-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.15rem; color: var(--color-accent); }
[data-section="about-preview"] .check-list li {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-check);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
[data-section="about-preview"] .check-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-check-hover);
}
[data-section="about-preview"] .check-list svg { color: var(--color-orange); }
.check-list-inline { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-weight: 550; font-size: 0.95rem; }
.media-frame { position: relative; isolation: isolate; }
.media-frame::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 2px solid color-mix(in srgb, var(--color-accent) 45%, transparent); border-radius: var(--radius-lg);
}
.media-frame img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Image ratios: any photo is cropped to its slot */
.ratio-4x3, .ratio-4x5, .ratio-16x9, .ratio-1x1 { width: 100%; object-fit: cover; background: var(--color-surface); }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* Shared components */
.section-heading { max-width: 44rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
@media (min-width: 40em) {
  html body section[data-section="process"] > .container > .section-heading.centered {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }
  html body section[data-section="process"] > .container > .section-heading.centered > .eyebrow {
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }
}
.section-heading p:last-child { margin-bottom: 0; }
.section-footer { margin-top: 2.5rem; }
.card {
  display: flex; flex-direction: column; padding: 2rem; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.card p { color: var(--color-muted); }
.card-link { margin-top: auto; padding-top: 0.5rem; }
@media (min-width: 60em) {
  html body section#services[data-section="services"] > div.container > div.grid.grid-3 > article.card.card-hover {
    text-align: left !important;
    align-items: flex-start !important;
  }
  html body section#services[data-section="services"] > div.container > div.grid.grid-3 > article.card.card-hover > * {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body section#services[data-section="services"] > div.container > div.grid.grid-3 > article.card.card-hover > .icon-tile,
  html body section#services[data-section="services"] > div.container > div.grid.grid-3 > article.card.card-hover > .card-link {
    align-self: flex-start !important;
  }
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
#services .card { box-shadow: var(--shadow-service); }
#services .card-hover:hover { box-shadow: var(--shadow-service-hover); }
#services .icon-tile {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.4rem; border-radius: var(--radius-sm);
  background: var(--color-brand-navy); color: var(--color-orange);
}
#services .icon-tile svg { width: 1.6rem; height: 1.6rem; }

/* Desktop service cards: force icon and all card copy to the left; mobile stays centered. */
@media (min-width: 60em) {
  html body section#services[data-section="services"] > div.container > div.grid > article.card {
    text-align: left !important;
    align-items: flex-start !important;
  }
  html body section#services#services[data-section="services"] > div.container > div.grid > article.card > * {
    text-align: left !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Trust band */
.trust-band { padding-block: 2.5rem; background: #0077B6; color: #ffffff; border-block: 2px solid var(--color-primary); }
.trust-grid { display: grid; gap: 1.75rem 2rem; }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; animation: trust-item-enter 560ms ease-out both; }
.trust-item:nth-child(2) { animation-delay: 100ms; }
.trust-item:nth-child(3) { animation-delay: 200ms; }
.trust-item:nth-child(4) { animation-delay: 300ms; }
@keyframes trust-item-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.trust-item svg { width: 2rem; height: 2rem; flex: none; color: #F97316; opacity: 1; }
.trust-item strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; }
.trust-item span { color: #ffffff; font-size: 0.95rem; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 4.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; background: var(--color-orange); color: #ffffff; box-shadow: var(--shadow-step);
  font-family: var(--font-heading); font-weight: 700;
  animation: step-roll-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.step:nth-child(2)::before { animation-delay: 120ms; }
.step:nth-child(3)::before { animation-delay: 240ms; }
@keyframes step-roll-in {
  from { opacity: 0; transform: translateX(-2.5rem) rotate(-180deg); }
  to { opacity: 1; transform: translateX(0) rotate(0); }
}
.step p { color: var(--color-muted); }
.process-card-crop {
  width: min(100%, 34rem);
  margin: 2.5rem auto 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.process-card-crop img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Testimonials */
.quote-card { margin: 0; }
.quote-card svg { width: 2.25rem; height: 2.25rem; margin-bottom: 1rem; color: var(--color-accent); }
.quote-card blockquote { margin: 0 0 1.5rem; font-size: 1.08rem; color: var(--color-text); }
.quote-card figcaption { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--color-border); font-size: 0.95rem; color: var(--color-muted); }
.quote-card figcaption strong { display: block; color: var(--color-text); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(2.75rem, 6vw, 4.5rem); border-radius: var(--radius-lg);
  background-color: #0077B6;
  background-image: linear-gradient(rgb(0 119 182 / 82%), rgb(0 119 182 / 82%)), url("../assets/uploads/pexels-komet-flicker-1015379201-20774773.jpg");
  background-position: center; background-size: cover; color: #ffffff;
}
#contact .cta-band .button-light { background: #F97316; border-color: #F97316; color: #13213a; }
#contact .cta-band .button-light:hover { background: #d95700; border-color: #d95700; color: #ffffff; }
#contact .cta-band .button-ghost-light { background: transparent; border-color: #ffffff; color: #ffffff; }
#contact .cta-band .button-ghost-light:hover { background: #ffffff; border-color: #ffffff; color: #0F2C59; }
.cta-band::after {
  content: ""; position: absolute; right: -6rem; bottom: -10rem; width: 26rem; height: 26rem; border-radius: 50%;
  border: 3.5rem solid color-mix(in srgb, var(--color-primary-contrast) 10%, transparent); pointer-events: none;
}
.cta-band h2 { max-width: 34rem; }
.cta-band p { max-width: 36rem; font-size: 1.1rem; opacity: 0.92; }
.cta-band .button-row { position: relative; z-index: 1; justify-content: center; }

/* Page header (inner pages) */
.page-header { padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 3.75rem); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.breadcrumb { margin-bottom: 1.25rem; font-size: 0.92rem; color: var(--color-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; }
.breadcrumb a { color: var(--color-muted); }
.page-header h1 { max-width: 46rem; }
.page-header .lead { margin-bottom: 0; }

/* Services */
.service-row + .service-row { margin-top: clamp(3.5rem, 8vw, 6rem); }
.service-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.75rem 0 0; padding: 1rem 1.25rem;
  background: var(--color-surface); border-radius: var(--radius-sm); font-size: 0.95rem;
}
.service-meta dt { color: var(--color-muted); }
.service-meta dd { margin: 0; font-weight: 650; }
.service-meta div { display: flex; gap: 0.4rem; }

/* Team */
.team-card { padding: 0; overflow: hidden; }
.team-card img { border-radius: 0; }
.team-card .team-body { padding: 1.4rem 1.6rem 1.6rem; }
.team-card h3 { margin-bottom: 0.2rem; }
.team-card p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 0.85rem; }
.faq details { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
  cursor: pointer; list-style: none; font-family: var(--font-heading); font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--color-primary); transition: transform 0.2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.5rem 1.4rem; color: var(--color-muted); }

/* Contact */
.contact-card h2 { font-size: 1.35rem; }
.contact-card .contact-value { font-size: 1.2rem; font-weight: 650; overflow-wrap: anywhere; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.hours-table th { font-weight: 550; }
.hours-table td { text-align: right; color: var(--color-muted); }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; }
.area-list li { padding: 0.45rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); padding-top: clamp(3.5rem, 7vw, 5rem); font-size: 0.97rem; }
.site-footer a { color: var(--color-on-dark); text-decoration: none; }
.site-footer a { transition: color 0.2s ease-out; }
.site-footer a:hover { color: #F97316; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--color-on-dark); }
@media (max-width: 39.99em) {
  .site-footer .footer-grid > *,
  .site-footer .footer-bottom { text-align: center; }
  .site-footer .footer-brand .brand { justify-content: center; margin-inline: auto; }
  .site-footer .footer-contact .footer-list { justify-items: center; }
  .site-footer .footer-hours-block { text-align: center; }
  .site-footer .footer-hours { justify-content: center; }
  .site-footer .footer-bottom { justify-content: center; }
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand { color: var(--color-on-dark); margin-bottom: 1rem; }
.footer-brand .brand-mark { color: var(--color-on-dark); }
.footer-brand .brand-mark-fg { stroke: var(--color-dark); }
.footer-heading { margin-bottom: 1rem; color: var(--color-on-dark); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0.4rem 1.5rem; margin: 0; }
.footer-hours dd { margin: 0; color: var(--color-on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-block: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-on-dark) 15%, transparent); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

/* Center process steps on mobile only; leave desktop alignment unchanged. */
@media (max-width: 39.99em) {
  html body section[data-section="process"] .steps .step {
    text-align: center;
  }
  html body section[data-section="process"] .steps .step::before {
    left: 50%;
    margin-left: -1.625rem;
  }
}

/* Not found */
.not-found { text-align: center; }
.not-found .lead { margin-inline: auto; }
.not-found .button-row { justify-content: center; }
.not-found-code { margin-bottom: 0.5rem; font-family: var(--font-heading); font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--color-primary); }

/* Services heading: left-aligned outside the mobile breakpoint. */
@media (min-width: 40em) {
  html body section#services > .container > div.section-heading,
  html body section#services > .container > div.section-heading > p,
  html body section#services > .container > div.section-heading > h2 {
    text-align: left !important;
  }
  html body section#services > .container > div.section-heading {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  html body section#services > .container > div.section-heading > p.eyebrow {
    display: flex !important;
    width: fit-content;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  html body section#services > .container > div.section-heading > p.lead {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* About preview: restore left alignment on desktop/tablet while mobile remains centered. */
@media (min-width: 40em) {
  html body section[data-section="about-preview"] > .container > div:first-child,
  html body section[data-section="about-preview"] > .container > div:first-child > h2 {
    text-align: left !important;
  }
  html body section[data-section="about-preview"] > .container > div:first-child > .eyebrow {
    display: flex !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  html body section[data-section="about-preview"] > .container > div:first-child > .button-row {
    justify-content: flex-start !important;
  }
  html body section[data-section="about-preview"] > .container > div:first-child > .check-list {
    text-align: left !important;
  }
}

/* Responsive */
@media (min-width: 40em) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-contact { grid-column: 2; grid-row: 1; }
  .footer-hours-block { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .footer-hours { justify-content: start; }
}
@media (min-width: 56em) {
  #services > .container > .section-heading,
  #services > .container > .section-heading > *,
  #services > .container > .section-heading .eyebrow,
  #services > .container > .section-heading .lead {
    text-align: left !important;
  }
  #services > .container > .section-heading {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  #services > .container > .section-heading .eyebrow {
    display: flex;
    width: fit-content;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  #services > .container > .section-heading .lead {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}
@media (min-width: 60em) {
  #services > .container > .section-heading,
  #services > .container > .section-heading > .eyebrow,
  #services > .container > .section-heading > h2,
  #services > .container > .section-heading > .lead { text-align: left !important; }
  #services > .container > .section-heading { margin-left: 0; margin-right: auto; }
  #services > .container > .section-heading > p.eyebrow { display: flex; width: fit-content; justify-content: flex-start !important; text-align: left !important; margin-left: 0 !important; margin-right: auto !important; }
  #services > .container > .section-heading > .lead { margin-left: 0; margin-right: auto; }
  html body section#services > .container > .grid.grid-3 > article.card {
    align-items: flex-start !important;
    text-align: left !important;
  }
  html body section#services > .container > .grid.grid-3 > article.card > *,
  html body section#services > .container > .grid.grid-3 > article.card > p,
  html body section#services > .container > .grid.grid-3 > article.card > h3,
  html body section#services > .container > .grid.grid-3 > article.card > a {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  html body section#services > .container > .grid.grid-3 > article.card > .icon-tile,
  html body section#services > .container > .grid.grid-3 > article.card > .card-link {
    align-self: flex-start !important;
  }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split-reverse > :first-child { order: 2; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 1.6rem; left: 4.25rem; right: -1.5rem; height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-contact { grid-column: 2; grid-row: 1; }
  .footer-hours-block { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .footer-hours { justify-content: start; }
}
@media (max-width: 59.99em) {
  .media-frame::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
}
@media (min-width: 56em) {
  [data-section="hero"] .container > div:first-child,
  [data-section="hero"] .container > div:first-child h1,
  [data-section="hero"] .container > div:first-child .lead,
  [data-section="hero"] .container > div:first-child .eyebrow { text-align: left !important; }
  [data-section="hero"] .container > div:first-child > .eyebrow { display: flex; width: fit-content; justify-content: flex-start; margin-inline: 0; }
  [data-section="hero"] .container > div:first-child .lead { margin-inline: 0; }
  [data-section="hero"] .container > div:first-child .button-row { justify-content: flex-start; }
  [data-section="hero"] .container > div:first-child .check-list-inline { justify-content: flex-start; }
  [data-section="hero"] .container > div:first-child .check-list-inline li { text-align: left; }
}
@media (max-width: 55.99em) {
  .hero .container > div:first-child { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  .hero .button-row { justify-content: center; }
  .hero .check-list-inline { justify-content: flex-start; }
  .hero .check-list-inline li { text-align: left; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: 0.75rem 1.25rem 1.5rem; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
  .header-call { padding-inline: 0.8rem; }
}
@media (min-width: 40em) {
  [data-section="hero"] .container > div:first-child,
  [data-section="hero"] .container > div:first-child h1,
  [data-section="hero"] .container > div:first-child .lead,
  [data-section="hero"] .container > div:first-child .eyebrow { text-align: left !important; }
  [data-section="hero"] .container > div:first-child > .eyebrow { justify-content: flex-start !important; margin-inline: 0 !important; }
  [data-section="hero"] .container > div:first-child .lead { margin-inline: 0 !important; }
  [data-section="hero"] .container > div:first-child .button-row { justify-content: flex-start !important; }
}
@media (max-width: 30em) {
  .header-call .header-call-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-call { width: 2.9rem; padding: 0; }
  .brand { font-size: 1.05rem; }
  .card { padding: 1.6rem; }
  .button-row .button { width: 100%; }
}
@media (max-width: 55.99em) {
  [data-section="about-preview"] > .container > :first-child { text-align: center; }
  [data-section="about-preview"] > .container > :first-child h2 { text-align: center; }
  [data-section="about-preview"] > .container > :first-child > .eyebrow { display: flex; width: fit-content; justify-content: center; margin-inline: auto; }
  [data-section="about-preview"] > .container > :first-child .check-list li { justify-content: flex-start; text-align: left; }
  [data-section="about-preview"] > .container > :first-child .button-row { justify-content: center; }
  #services > .container > .section-heading { margin-inline: auto; text-align: center; }
  #services > .container > .section-heading .eyebrow { justify-content: center; }
  #services > .container > .section-heading .lead { margin-inline: auto; }
  #services .card { align-items: center; text-align: center; }
  #services .card-link { justify-content: center; }
  #contact .cta-band h2,
  #contact .cta-band p { margin-inline: auto; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .trust-item { animation: none; }
  .button:hover, .card-hover:hover, [data-section="about-preview"] .check-list li:hover { transform: none; }
}
