/* Shared by all six roofing sites. Each site's colours are in theme.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent-one); }
h1, h2, h3 { font-family: var(--heading-font); color: var(--accent-one); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--highlight-color); outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.3em; border-radius: var(--button-radius); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body-font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--cta { background: var(--highlight-color); color: var(--accent-one); box-shadow: 0 6px 16px -6px rgb(0 0 0 / .35); }
.button--cta:hover { background: var(--highlight-hover); color: var(--accent-one); }
.button--ghost { border-color: rgb(255 255 255 / .7); color: #fff; background: rgb(255 255 255 / .08); }
.button--ghost:hover { background: rgb(255 255 255 / .18); color: #fff; }
.button--outline { border-color: var(--accent-one); color: var(--accent-one); background: transparent; }
.button--large { padding: .9em 1.6em; font-size: 1.0625rem; }
.button--block { width: 100%; }
.icon { flex: none; }

/* Top bar and header ---------------------------------------------------- */
.topbar { background: var(--accent-one); color: rgb(255 255 255 / .85); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 18px; padding: 6px 0; }

.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgb(0 0 0 / .3); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent-one); flex: none; }
.brand__mark { border-radius: 10px; }
/* An uploaded logo file: sized by height, so any shape fits. */
.brand__logo { display: block; height: 66px; width: auto; max-width: min(330px, 62vw); object-fit: contain; }
.brand--footer .brand__logo { height: 72px; }
@media (max-width: 700px) { .brand__logo { height: 50px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__city { font: 900 1.15rem/1.1 var(--heading-font); }
.brand__trade { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); }

.nav { margin-left: auto; display: none; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link, .menu > summary {
  display: block; white-space: nowrap; padding: 10px 12px; border-radius: 6px; font-weight: 700; color: var(--accent-one);
  text-decoration: none; cursor: pointer; list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav__link:hover, .menu > summary:hover, .menu[open] > summary { background: var(--neutral-color); color: var(--accent-one); }
.menu__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 260px;
  background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 20px 50px -12px rgb(0 0 0 / .3);
  border-top: 4px solid var(--primary-color);
}
.menu--mega .menu__panel { left: -180px; display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 6px 28px; width: min(820px, 90vw); }
.menu__heading { margin: 0 0 6px; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-ink); }
.menu__heading a { color: inherit; text-decoration: none; }
.menu__heading a:hover { text-decoration: underline; }
.menu__group ul { list-style: none; margin: 0 0 14px; padding: 0; }
.menu__group li a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.menu__group li a:hover { color: var(--primary-ink); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__phone { display: none; align-items: center; gap: 8px; font-weight: 900; color: var(--accent-one); text-decoration: none; }
.header__actions .button--cta { display: none; }
.nav-toggle { width: 46px; height: 46px; border: 0; border-radius: 8px; background: var(--neutral-color); cursor: pointer; display: grid; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2.5px; background: var(--accent-one); border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 20px; }
.mobile-nav__section { border-bottom: 1px solid var(--line); }
.mobile-nav__section > summary { padding: 14px 0; font-weight: 900; color: var(--accent-one); cursor: pointer; }
.mobile-nav__heading { margin: 8px 0 4px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink); }
.mobile-nav__heading a { color: inherit; }
.mobile-nav ul { list-style: none; margin: 0 0 10px; padding: 0; columns: 2; column-gap: 16px; }
.mobile-nav li a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.mobile-nav__link { display: block; padding: 14px 0; font-weight: 900; color: var(--accent-one); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (min-width: 640px) {
  .header__actions .button--cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header__actions { margin-left: 8px; }
}
@media (min-width: 1240px) {
  .header__phone { display: inline-flex; }
}

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(135deg, var(--accent-one) 0%, var(--accent-one) 45%, var(--accent-two) 100%);
}
.hero::before {
  /* Roof-tile ridges, so a hero without a photograph still has texture. */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background-image: radial-gradient(circle at 50% 0, transparent 14px, #fff 15px, #fff 17px, transparent 18px);
  background-size: 36px 18px;
}
.hero--photo::before { display: none; }
.hero__picture, .hero__picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__picture img { object-fit: cover; }
/* Shade only behind the text, so the roof in the photograph shows through. */
.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(10 25 40 / .35) 0%, rgb(10 25 40 / .6) 55%, rgb(10 25 40 / .75) 100%);
}
.hero--photo h1, .hero--photo .hero__intro, .hero--photo .hero__points, .hero--photo .eyebrow--hero, .hero--photo .crumbs { text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
@media (min-width: 900px) {
  .hero--photo::after { background: linear-gradient(90deg, rgb(10 25 40 / .8) 0%, rgb(10 25 40 / .55) 38%, rgb(10 25 40 / .1) 68%, rgb(10 25 40 / 0) 100%); }
}
.hero__inner { padding: 48px 0 56px; display: grid; gap: 32px; align-items: center; }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: .4em; }
.hero__intro { font-size: 1.15rem; max-width: 58ch; color: rgb(255 255 255 / .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--highlight-color); }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: rgb(255 255 255 / .7); }
.crumbs a { color: rgb(255 255 255 / .85); }
.crumbs--dark, .crumbs--dark a { color: var(--muted); }
.eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); }
.eyebrow--hero { color: var(--highlight-color); }
@media (min-width: 900px) {
  .hero__inner { padding: 72px 0 80px; }
  .hero--home .hero__inner { grid-template-columns: 1fr 380px; padding: 88px 0 96px; }
}

/* Estimate card ---------------------------------------------------------- */
.estimate-card {
  background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .45); border-top: 5px solid var(--highlight-color);
}
.estimate-card__title { font: 900 1.3rem/1.2 var(--heading-font); color: var(--accent-one); margin-bottom: 6px; }
.estimate-card__lede { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.estimate-card label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 10px; color: var(--accent-one); }
.estimate-card input { display: block; width: 100%; margin-top: 4px; }
.estimate-card .button { margin-top: 6px; }
.estimate-card__small { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

input, select, textarea {
  font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgb(37 150 190 / .2); }

/* Trust row ----------------------------------------------------------- */
.trust { background: var(--neutral-color); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; gap: 18px; padding: 28px 0; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; }
.trust__item p { margin: 0; font-size: .95rem; color: var(--muted); }
.trust__item .trust__title { color: var(--accent-one); font-weight: 900; font-size: 1rem; }
.trust__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--primary-ink); box-shadow: 0 2px 8px -4px rgb(0 0 0 / .2); flex: none; }
@media (min-width: 700px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

/* Sections ------------------------------------------------------------- */
.section { padding: 64px 0; }
.section--tint { background: var(--neutral-color); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-lede { font-size: 1.1rem; color: var(--muted); }

.service-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-tile, .card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-tile:hover, .card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .35); border-color: var(--primary-color); color: var(--text); }
.service-tile__icon { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; background: var(--accent-one); color: var(--highlight-color); }
.service-tile__icon .icon { width: 24px; height: 24px; }
.service-tile__title, .card__title { font: 700 1.15rem/1.3 var(--heading-font); color: var(--accent-one); }
.service-tile__text, .card__text { font-size: .95rem; color: var(--muted); flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .9rem; color: var(--primary-ink); margin-top: auto; }
.card__more .icon { width: 16px; height: 16px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.process--panel { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
.process__title { font-size: 1.5rem; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.process__steps li { display: flex; gap: 14px; }
.process__steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.process__steps .process__step { color: var(--accent-one); font-weight: 900; font-size: 1rem; }
.process__num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--highlight-color); color: var(--accent-one); font-weight: 900; }

.area-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; color: var(--accent-one); font-weight: 700; background: #fff; }
.area-pill .icon { color: var(--primary-ink); width: 18px; height: 18px; }
.area-pill:hover, .area-pill--home { background: var(--accent-one); color: #fff; border-color: var(--accent-one); }
.area-pill:hover .icon, .area-pill--home .icon { color: var(--highlight-color); }

/* Page body ------------------------------------------------------------ */
.page-layout { display: grid; gap: 40px; padding: 56px 0; }
@media (min-width: 1000px) { .page-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; } }
.page-aside .sticky { position: sticky; top: 100px; display: grid; gap: 20px; }
.page-aside { display: grid; gap: 20px; align-content: start; }
.aside-box { background: var(--neutral-color); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.aside-box--dark { background: var(--accent-one); color: #fff; border: 0; }
.aside-box--dark .aside-box__title { color: #fff; }
.aside-box__title { font: 900 1.1rem/1.3 var(--heading-font); color: var(--accent-one); margin-bottom: 10px; }
.steps-mini { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .95rem; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--primary-color); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--neutral-color); color: var(--accent-one); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--highlight-color); background: var(--neutral-color); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.page-body__hub { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); }

/* FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item > summary { padding: 18px 52px 18px 20px; font-weight: 900; color: var(--accent-one); cursor: pointer; list-style: none; position: relative; }
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary-ink); }
.faq__item[open] > summary::after { content: "–"; }
.faq__answer { padding: 0 20px 6px; }

/* Call to action band -------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--accent-one), var(--accent-two)); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .85); max-width: 60ch; margin: 0; }
.cta-band__inner { display: grid; gap: 24px; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* Simple page head (forms, thanks, errors) ----------------------------- */
.page-head { background: var(--neutral-color); padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.page-head__intro { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Forms ---------------------------------------------------------------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend { font: 900 1.2rem/1.3 var(--heading-font); color: var(--accent-one); margin-bottom: 12px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--accent-one); }
.field__req { color: #b42318; }
.field--error input, .field--error select, .field--error textarea { border-color: #b42318; }
.field__error { color: #b42318; font-size: .9rem; margin: 6px 0 0; }
.field__help { color: var(--muted, #5b6470); font-size: .85rem; margin: 6px 0 0; }
.form__alert { background: #fef3f2; color: #b42318; border-radius: 8px; padding: 12px 16px; font-weight: 700; }
.form__small { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Footer --------------------------------------------------------------- */
.footer { background: var(--footer-bg); color: rgb(255 255 255 / .78); padding: 56px 0 0; font-size: .95rem; }
.footer a { color: rgb(255 255 255 / .85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__trade { color: var(--highlight-color); }
.footer__contact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--highlight-color); }
.footer__contact address { font-style: normal; }
.footer__license { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius); color: #fff; font-weight: 700; font-size: .88rem; }
.footer__license span { color: var(--highlight-color); }
.footer__heading { color: #fff; font-weight: 900; margin-bottom: 10px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / .12); padding: 20px 0 96px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer__legal p { margin: 0; }
.footer__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
@media (min-width: 900px) { .footer__legal { padding-bottom: 24px; } }

/* Phone call bar, on small screens ------------------------------------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px; background: #fff; box-shadow: 0 -6px 20px -10px rgb(0 0 0 / .35); }
.mobile-cta a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--button-radius); font-weight: 900; text-decoration: none; }
.mobile-cta__call { background: var(--accent-one); color: #fff; }
.mobile-cta__estimate { background: var(--highlight-color); color: var(--accent-one); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

@media (max-width: 639px) {
  .hide-sm { display: none; }
  .topbar__inner { font-size: .8rem; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Definition box and macro sections (edited per page in the admin) ------------ */
.definition { margin: 0 0 1.6em; padding: 18px 22px; background: var(--neutral-color); border-left: 4px solid var(--primary-color); border-radius: 0 var(--radius) var(--radius) 0; }
.definition__label { margin: 0 0 4px; font: 700 .8rem/1.2 var(--body-font); letter-spacing: .1em; text-transform: uppercase; color: var(--primary-ink); }
.definition__text { margin: 0; font-size: 1.08rem; color: var(--text); }
/* Macro 1: suitability, bridge and the cause-and-effect chains, under the definition. */
.macro-lead { margin: 0 0 2em; }
.macro-lead__media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 0 0 1.2em; }
.macro-lead ul { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 12px; }
.macro-lead li { margin: 0; padding: 14px 18px; background: var(--neutral-color); border-radius: var(--radius); border-left: 3px solid var(--highlight-color, var(--primary-color)); }
.macro-lead li p { margin: 0; }
/* Macro 2 as arrow chains (the home page): the same cards as Macro 1. */
.macro-assess ul { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 12px; }
.macro-assess ul li { margin: 0; padding: 14px 18px; background: var(--neutral-color); border-radius: var(--radius); border-left: 3px solid var(--highlight-color, var(--primary-color)); }
.macro-assess ul li p { margin: 0; }
/* Macro 2: how the job is assessed, as numbered steps. */
.macro-assess { margin: 0 0 2em; }
.macro-assess ol { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0; display: grid; gap: 14px; }
.macro-assess ol > li { counter-increment: step; position: relative; margin: 0; padding: 0 0 0 46px; }
.macro-assess ol > li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem/1 var(--body-font); color: #fff; background: var(--primary-color); }
.macro-assess li p { margin: 0; }
/* Macro 4: closing call to action at the end of the article. */
.macro-cta { margin: 2.4em 0 0; padding: 24px 26px; background: var(--neutral-color); border-radius: var(--radius); border-top: 4px solid var(--highlight-color, var(--primary-color)); }
.macro-cta > h2:first-child { margin-top: 0; }
.macro-cta__action { margin: 1.2em 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.macro-cta__phone { font-weight: 700; }
/* List pages (Service Areas, service hubs): the directory in the main column, near the top. */
.page-directory { margin: 2em 0 2.4em; }
.page-directory h2 { margin-top: 0; }
.prose .directory { list-style: none; padding: 0; margin: 1em 0 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .prose .directory { grid-template-columns: repeat(2, 1fr); } }
.prose .directory li { margin: 0; }
.prose .directory a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.prose .directory a:hover { border-color: var(--primary-color); }
.prose .directory strong { display: block; color: var(--primary-color); }
.prose .directory span { display: block; margin-top: 4px; font-size: .92em; line-height: 1.45; opacity: .8; }

/* Chain cards on a tinted section need their own background to stand out. */
.section--tint .macro-lead li, .section--tint .macro-assess ul li { background: #fff; }

/* Home pages with their own long copy: readable measure, process panel below. */
.story--long .story__text { max-width: 820px; }
.story--long .process--panel { margin-top: 48px; }

/* The library: a heading row per topic, then article cards with photographs. */
.lib-topic { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.lib-topic > div { max-width: 680px; }
.lib-topic h2 { margin: 0 0 .3em; }
.lib-topic h2 a { color: inherit; text-decoration: none; }
.lib-topic p { margin: 0; }
.lib-cards { display: grid; gap: 22px; }
@media (min-width: 640px) { .lib-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lib-cards { grid-template-columns: repeat(3, 1fr); } }
.lib-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.lib-card:hover { box-shadow: 0 14px 30px -18px rgb(0 0 0 / .35); transform: translateY(-2px); }
.lib-card__media { display: block; aspect-ratio: 16 / 9; background: var(--primary-color); }
.lib-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.lib-card__topic { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--highlight-color, var(--primary-color)); }
.lib-card__title { font-family: var(--heading-font); font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--primary-color); }
.lib-card__text { font-size: .95rem; line-height: 1.5; opacity: .85; }
.lib-card__more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .9rem; color: var(--primary-color); display: inline-flex; gap: 6px; align-items: center; }
.lib-card__more svg { width: 14px; height: 14px; }

/* Single-section menus end with one link to the section's overview page. */
.menu__all { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(0, 0, 0, .08); font-weight: 700; }

/* Town pages: the main services. */
.area-services { margin: 2.4em 0 0; }
.area-services__list { list-style: none; padding: 0; margin: 1em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.area-services__list a { display: block; padding: 12px 16px; border: 1px solid var(--neutral-color); border-radius: var(--radius); background: var(--neutral-color); font-weight: 700; text-decoration: none; }
.area-services__list a:hover { border-color: var(--primary-color); }
.macros .wrap { display: grid; gap: 56px; }
.macro { display: grid; gap: 28px; align-items: center; }
.macro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.macro__text > :first-child { margin-top: 0; }
@media (min-width: 900px) {
  .macro { grid-template-columns: 1fr 1fr; gap: 56px; }
  .macro--flip .macro__media { order: 2; }
  .macro--text { grid-template-columns: minmax(0, 72ch); }
}
