/* ==========================================================================
   Chimney Sweep Middletown NY — site styles
   Single stylesheet. Mobile-first. No frameworks, no external fonts.
   Sections: 1 tokens · 2 base · 3 layout · 4 header · 5 buttons · 6 hero
             7 diagram · 8 content blocks · 9 forms · 10 footer · 11 utilities
   ========================================================================== */

/* 1 — Design tokens ------------------------------------------------------ */
:root {
  --navy: #0a2045;          /* brand navy, taken from the logo */
  --navy-mid: #16305f;
  --navy-deep: #061532;
  --soot: #242424;          /* logo charcoal */
  --ink: #1d2430;           /* body text */
  --smoke: #55606f;         /* secondary text */
  --brick: #8c3b22;         /* accent, used sparingly */
  --brick-soft: #f3ece8;
  --paper: #ffffff;
  --mist: #eef1f5;          /* alternating band */
  --mist-deep: #e2e7ee;
  --line: #d5dce5;
  --line-soft: #e7ebf1;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --measure: 68ch;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(10, 32, 69, .08), 0 8px 24px rgba(10, 32, 69, .06);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.05rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.18rem, 2.4vw, 1.35rem); }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 700; }

p, ul, ol { margin: 0 0 1.15em; }
li { margin-bottom: .45em; }

a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brick); }

strong { font-weight: 650; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

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

::selection { background: var(--navy); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 200;
}
.skip-link:focus { left: .5rem; top: .5rem; color: #fff; }

/* 3 — Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

.band { padding-block: 3.25rem; }
.band--mist { background: var(--mist); }
.band--tight { padding-block: 2.25rem; }
.band--navy {
  background: var(--navy-deep);
  color: #dbe3ee;
}
.band--navy h2, .band--navy h3 { color: #fff; }
.band--navy a { color: #fff; }

.measure { max-width: var(--measure); }

.lede {
  font-size: 1.14rem;
  color: var(--smoke);
  max-width: 62ch;
}
.band--navy .lede { color: #b9c6d8; }

/* Short brick rule used to open major sections — marks hierarchy, not decor */
.rule {
  width: 46px;
  height: 3px;
  background: var(--brick);
  margin-bottom: 1.1rem;
}
.band--navy .rule { background: #c98a6d; }

.grid { display: grid; gap: 1.5rem; }

/* 4 — Header and navigation ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: .5rem;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { display: block; width: 178px; height: 37px; }

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  width: 100%;
  flex-basis: 100%;
  order: 3;
  border-top: 1px solid var(--line-soft);
  padding-block: .5rem .9rem;
}
.site-nav.is-open { display: block; }

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

.site-nav a {
  display: block;
  padding: .72rem .25rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.site-nav a:hover { color: var(--brick); }
.site-nav a[aria-current="page"] { color: var(--brick); }

.header-actions .nav-cta { display: none; }

/* --- Services submenu ---------------------------------------------------
   Mobile: an accordion inside the stacked menu, opened by .sub-toggle.
   Desktop: a panel that opens on hover or keyboard focus (see breakpoints).
   The links are always in the HTML, so crawlers and no-JS visitors get them. */
.has-sub { position: relative; }

.sub-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 47px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
}
.sub-toggle svg { transition: transform .18s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-toggle:hover { color: var(--brick); }

.subnav {
  display: none;
  margin: 0;
  padding: 0 0 .4rem .9rem;
  list-style: none;
}
.has-sub.is-open > .subnav { display: block; }

.subnav a {
  padding: .6rem .25rem;
  font-weight: 500;
  font-size: .97rem;
  color: var(--smoke);
}
.subnav a:hover { color: var(--brick); }
.subnav li:last-child a { border-bottom: 0; }

/* With JavaScript off there is no way to open the accordion, so show it. */
.no-js .sub-toggle { display: none; }
.no-js .subnav { display: block; }

/* No-JS fallback: show the menu as a plain list, hide the toggle */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; }

/* 5 — Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-mid); color: #fff; border-color: var(--navy-mid); }

.btn--call { background: var(--brick); color: #fff; border-color: var(--brick); }
.btn--call:hover { background: #75301b; color: #fff; border-color: #75301b; }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--mist); color: var(--navy); border-color: var(--navy); }

.band--navy .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.band--navy .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.btn--sm { min-height: 42px; padding: .5rem 1rem; font-size: .95rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

/* 6 — Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--mist) 0%, #f7f9fb 100%);
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}

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

.hero h1 { margin-bottom: .5rem; }
.hero .lede { font-size: 1.18rem; color: var(--ink); }

.hero-place {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .9rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brick);
}
.hero-place svg { flex-shrink: 0; }

.hero-assure {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .97rem;
  color: var(--smoke);
  max-width: 54ch;
}

.hero-phone {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.hero-phone:hover { color: var(--brick); }

/* 7 — Photographs and chimney diagram ------------------------------------ */
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(10, 32, 69, .12), 0 14px 34px rgba(10, 32, 69, .1);
}

.photo {
  margin: 0 0 2rem;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.photo figcaption {
  margin-top: .6rem;
  font-size: .93rem;
  color: var(--smoke);
}

.diagram { width: 100%; max-width: 440px; justify-self: center; }
.diagram svg { display: block; width: 100%; height: auto; }
.d-masonry { fill: #dfe4ea; stroke: #9aa6b4; stroke-width: 1.5; }
.d-void { fill: #fbfcfd; stroke: #9aa6b4; stroke-width: 1.5; }
.d-liner { fill: #efe1d9; stroke: #bb9b8b; stroke-width: 1.5; }
.d-metal { fill: var(--navy); }
.d-joint { stroke: #a8b3c0; stroke-width: 1.1; fill: none; }
.d-roof { stroke: var(--navy); stroke-width: 3; fill: none; stroke-linecap: round; }
.d-lead { stroke: #8b96a5; stroke-width: 1.2; fill: none; }
.d-lead-dash { stroke-dasharray: 4 3; }
.d-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  fill: #3d4756;
}
.d-caption { font-family: var(--sans); font-size: 13px; fill: #6b7482; }

/* 8 — Content blocks ----------------------------------------------------- */
.section-head { margin-bottom: 2rem; max-width: 66ch; }
.section-head p { margin-bottom: 0; }

/* Service rows — bordered rows with a brick left rule, not identical cards */
.svc-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.svc-list li { margin: 0; }

.svc {
  display: block;
  height: 100%;
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.svc:hover { border-color: var(--navy); border-left-color: var(--brick); box-shadow: var(--shadow); color: var(--ink); }
.svc h3 { margin-bottom: .4rem; display: flex; align-items: center; gap: .6rem; }
.svc h3 svg { flex-shrink: 0; color: var(--brick); }
.svc p { margin-bottom: .5rem; color: var(--smoke); font-size: 1rem; }
.svc .svc-more { font-weight: 650; color: var(--navy-mid); font-size: .97rem; }
.svc:hover .svc-more { color: var(--brick); text-decoration: underline; }

/* Checklist — signs, inclusions */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .7rem;
  margin: 0;
  align-items: start;
}
.checklist svg { margin-top: .3rem; color: var(--brick); }
.checklist strong { display: block; color: var(--navy); }
.checklist span { color: var(--smoke); font-size: .98rem; }

/* Numbered process — the content genuinely is a sequence */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}
.steps h3 { margin-bottom: .25rem; font-size: 1.12rem; }
.steps p { margin-bottom: 0; color: var(--smoke); }

/* Problem / definition list */
.deflist { margin: 0; padding: 0; }
.deflist > div {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.deflist > div:last-child { border-bottom: 1px solid var(--line); }
.deflist dt {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}
.deflist dd { margin: 0; color: var(--smoke); }
.deflist dd a { font-weight: 600; }

/* Two column prose */
.cols { display: grid; gap: 1.75rem; }

.panel {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel--mist { background: var(--mist); border-color: var(--mist-deep); }
.panel--brick { background: var(--brick-soft); border-color: #e3d3cb; }
.panel h3 { margin-bottom: .5rem; }
.panel > :last-child { margin-bottom: 0; }

/* FAQ — native details, works with JavaScript disabled */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: .45rem;
  border-right: 2px solid var(--brick);
  border-bottom: 2px solid var(--brick);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--brick); }
.faq .faq-body { padding-bottom: 1.2rem; max-width: var(--measure); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* Breadcrumbs */
.crumbs { padding-block: .9rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--smoke); }
.crumbs li + li::before { content: "/"; color: #9aa6b4; }
.crumbs a { color: var(--smoke); }
.crumbs a:hover { color: var(--brick); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Page intro for interior pages */
.page-head { padding-block: 2.5rem 1.75rem; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .55rem; }
.page-head p { margin-bottom: 0; }

/* Inline call-to-action strip */
.cta-strip {
  display: grid;
  gap: 1.1rem;
  padding: 1.6rem;
  background: var(--mist);
  border: 1px solid var(--mist-deep);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
}
.cta-strip h2, .cta-strip h3 { margin-bottom: .35rem; }
.cta-strip p { margin-bottom: 0; color: var(--smoke); }
.cta-strip .btn-row { margin-bottom: 0; }

/* Related links block */
.related { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.related li { margin: 0; }
.related a { font-weight: 600; }

/* Compact list of linked nearby areas */
.area-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.area-links li { margin: 0; }
.area-links a { font-weight: 600; font-size: .98rem; }

/* Area grid on the service areas page */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.area-grid li { margin: 0; }
.area-grid a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.area-grid a:hover { border-color: var(--navy); border-left-color: var(--brick); box-shadow: var(--shadow); }
.area-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: .15rem;
}
.area-grid span { display: block; font-size: .93rem; color: var(--smoke); }

/* Area list */
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.area-list li {
  margin: 0;
  padding: .8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
}
.area-list li span { display: block; font-weight: 400; font-size: .93rem; color: var(--smoke); }

/* Contact detail rows */
.contact-rows { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-rows li { display: grid; grid-template-columns: 26px 1fr; gap: .85rem; margin: 0; align-items: start; }
.contact-rows svg { margin-top: .25rem; color: var(--brick); }
.contact-rows strong { display: block; color: var(--navy); }
.contact-rows a { font-weight: 600; }
.contact-rows address { font-style: normal; color: var(--smoke); }

/* The email address is long enough to overflow narrow screens on its own */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* 9 — Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; color: var(--navy); font-size: .97rem; }
.field .hint { font-size: .88rem; color: var(--smoke); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9c3d0;
  border-radius: var(--radius);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }

.field-required { color: var(--brick); }

.form-note {
  font-size: .92rem;
  color: var(--smoke);
  margin: 0;
}

/* Honeypot — hidden from people, catches simple bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 10 — Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  color: #b9c6d8;
  padding-block: 2.75rem 1.5rem;
  font-size: .97rem;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
  margin-bottom: .85rem;
}
.site-footer a { color: #cfdae8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer address { font-style: normal; }
.site-footer li { margin-bottom: .5rem; }

.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 210px; height: 43px; margin-bottom: .9rem; }
.footer-brand p { max-width: 42ch; color: #a4b3c8; }
.footer-brand address { font-style: normal; margin-bottom: .6rem; color: #cfdae8; }

.footer-phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: .35rem;
}
.footer-phone:hover { color: #e8b9a5 !important; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  gap: .5rem;
  font-size: .89rem;
  color: #8fa0b8;
}
.footer-bottom p { margin: 0; }

/* Sticky mobile call bar */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(10, 32, 69, .1);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 54px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}
.callbar a.is-call { background: var(--brick); color: #fff; }
body { padding-bottom: 54px; }

/* 11 — Utilities --------------------------------------------------------- */
.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;
}

.stack > * + * { margin-top: 1.15em; }
.mb0 { margin-bottom: 0; }

/* --- Breakpoints -------------------------------------------------------- */
@media (min-width: 600px) {
  .brand img { width: 200px; height: 41px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .svc-list { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; gap: 1rem 1.75rem; }
  .area-list { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

  .band { padding-block: 4.25rem; }
  .band--tight { padding-block: 2.75rem; }

  .header-inner { min-height: 76px; }
  .brand img { width: 232px; height: 48px; }
  .nav-toggle { display: none; }

  /* Order across the header bar: logo, navigation, then the call button */
  .site-nav {
    display: block;
    border-top: 0;
    padding: 0;
    width: auto;
    flex-basis: auto;
    margin-left: auto;
    order: 2;
  }
  .header-actions { order: 3; margin-left: .75rem; }
  /* Direct child only — the nested .subnav must stay display:none until opened */
  .site-nav > ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav a {
    padding: .5rem .7rem;
    border-bottom: 2px solid transparent;
    font-size: .99rem;
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--brick); }
  .header-actions .nav-cta { display: inline-flex; }

  /* Desktop submenu: a floating panel under Services */
  .site-nav .has-sub > a { padding-right: 1.4rem; }
  .sub-toggle {
    width: 20px;
    height: 44px;
    right: -.15rem;
    pointer-events: none;   /* hover/focus opens it; the button is decorative here */
  }
  .sub-toggle svg { width: 14px; height: 14px; }

  .subnav {
    position: absolute;
    top: 100%;
    left: -.5rem;
    z-index: 120;
    min-width: 268px;
    padding: .4rem 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 2px solid var(--brick);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }
  .has-sub:hover > .subnav,
  .has-sub:focus-within > .subnav { display: block; }

  .subnav a {
    padding: .6rem 1.1rem;
    border-bottom: 0;
    white-space: nowrap;
    color: var(--ink);
  }
  .subnav a:hover { background: var(--mist); color: var(--brick); }
  .subnav a[aria-current="page"] { color: var(--brick); font-weight: 650; }
  .subnav li:first-child a {
    border-bottom: 1px solid var(--line-soft);
    font-weight: 650;
  }
  /* Keep the panel open while the pointer travels from label to panel */
  .has-sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
  }

  .hero { padding-block: 3.75rem 4.25rem; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
  .diagram { max-width: 470px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
  .svc-list { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .cols--wide { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
  .footer-bottom { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
}

@media (min-width: 1100px) {
  .svc-list--four { grid-template-columns: repeat(4, 1fr); }
}

/* Respect a reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
