:root {
  font-family: system-ui, sans-serif;
  color: #20262c;
  background: #f2f3f4;
  line-height: 1.55;
  --accent: #ff9027;
  --dark: #20262c;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.site-header, .site-footer { background: var(--dark); color: white; }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
a { color: #823b00; text-underline-offset: .2em; }
.site-header a, .site-footer a { color: white; }
.brand { font-size: clamp(1rem, 3vw, 1.4rem); font-weight: 850; text-decoration: none; }
.brand span { color: var(--accent); }
.hero {
  color: white;
  background: linear-gradient(90deg, rgba(20,26,32,.96), rgba(20,26,32,.78)), #20262c url('/images/groundworks-profile-background.webp') center / cover;
  padding-block: clamp(3rem, 11vw, 7.25rem);
  border-bottom: 4px solid var(--accent);
}
h1, h2, h3 { line-height: 1.13; margin: 0 0 .8rem; }
h1 { max-width: 17ch; font-size: clamp(2.6rem, 7vw, 5.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.hero p { max-width: 49ch; color: #f3f4f5; font-size: 1.15rem; }
.button { display: inline-block; border-radius: 4px; padding: .8rem 1.15rem; color: #20262c; background: var(--accent); font-weight: 750; }
.services { padding-block: clamp(2rem, 6vw, 4rem); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 16px; margin-top: 1.4rem; }
article { background: white; border: 1px solid #d1d7dc; border-top: 3px solid var(--accent); border-radius: 5px; padding: 1.25rem; overflow-wrap: anywhere; }
article p:last-child { margin-bottom: 0; }
.coverage { font-size: .9rem; color: #49545f; }
.enquiries { padding-block: 2.5rem; background: #e5e8eb; }
.skip { position: absolute; top: .75rem; left: 1rem; transform: translateY(-200%); padding: .5rem; background: white; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid #ad590d; outline-offset: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: white; }

.location-directory {
  padding-block: clamp(2.25rem, 6vw, 4.5rem);
  color: #142232;
  background:
    linear-gradient(90deg, #344e65a6, #68839952 32px, transparent clamp(56px, 9vw, 132px)),
    radial-gradient(#aebfd2 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(130deg, #f5f8fc, #e0eaf4);
  border-block: 1px solid #b1c1d1;
}
.directory-label { color: #a2381c; font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.directory-label::before { content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; margin-right: .55rem; }
.directory-intro { max-width: 66ch; color: #40536a; margin-bottom: 1.5rem; }
.coverage-form { padding: 12px; background: #fff; border: 1px solid #dce4ed; border-radius: 17px; box-shadow: 0 12px 30px #20365115; }
.coverage-row { display: flex; gap: 12px; align-items: center; padding: 13px 12px; }
.coverage-row + .coverage-row { border-top: 1px solid #e9eef3; }
.coverage-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: #9c361c; background: #eef3f8; border-radius: 8px; }
.coverage-row label { flex: 1; min-width: 0; color: #475c74; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.coverage-row input, .coverage-row select { display: block; width: 100%; min-width: 0; min-height: 40px; border: 0; padding: 5px 0; color: #142232; background: white; font: 1rem system-ui, sans-serif; }
.coverage-form button { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: #a83b20; color: #fff; font: 700 1rem system-ui, sans-serif; cursor: pointer; }
.coverage-form button:hover { background: #8e3019; }
.coverage-status { margin: .75rem 0 0; }
.coverage-status:empty { display: none; }
.coverage-results { padding: 0; list-style: none; }
.coverage-results li + li { margin-top: .4rem; }
.coverage-results a { display: block; background: white; border: 1px solid #dce4ed; border-radius: 6px; padding: .65rem .8rem; }

.coverage-row {
  padding-block: 14px;
}
.coverage-row label {
  display: grid;
  gap: 7px;
  line-height: 1.3;
}
.coverage-row input, .coverage-row select {
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 4px;
}
.coverage-row input:focus, .coverage-row select:focus {
  outline: none;
  box-shadow: inset 0 -2px #345b80;
}
.coverage-row input:focus-visible, .coverage-row select:focus-visible {
  background-color: #f0f5fb;
  box-shadow: inset 0 -3px #345b80;
}
.coverage-form button {
  margin-top: 6px;
}

.location-directory {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .93fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}
.coverage-content { min-width: 0; position: relative; z-index: 1; }
.coverage-content h2 { max-width: 24ch; font-size: clamp(1.85rem, 3.5vw, 2.75rem); letter-spacing: -.035em; }
.coverage-content .directory-intro { margin-bottom: 1.2rem; }
.coverage-content .coverage-form { max-width: 34rem; }
.coverage-content .coverage-row { padding-block: 10px; }
.coverage-content .coverage-results { max-width: 34rem; margin-bottom: 0; }
.coverage-art {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 48%;
  overflow: hidden;
  background: #14232e;
}
.coverage-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.coverage-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eaf1f8, #eaf1f8cc 6%, transparent 33%);
  pointer-events: none;
}
@media (min-width: 761px) {
  .coverage-layout { min-height: 385px; }
}
@media (max-width: 760px) {
  .location-directory {
    background-image:
      linear-gradient(90deg, #344e6540, transparent 18px),
      radial-gradient(#aebfd2 1px, transparent 1px),
      linear-gradient(130deg, #f5f8fc, #e0eaf4);
  }
  .coverage-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .coverage-content h2 { max-width: 27ch; }
  .coverage-content .coverage-form, .coverage-content .coverage-results { max-width: none; }
  .coverage-art { position: relative; inset: auto; border-radius: 12px; aspect-ratio: 3 / 2; }
  .coverage-art img { object-fit: contain; }
  .coverage-art::after { content: none; }
}

.hero {
  background: #14222d;
  background-image:
    linear-gradient(90deg, #14222d 4%, #14222df5 28%, #14222db0 44%, #14222d00 70%),
    url("./directory-hub-hero.webp");
  background-position: right center;
  background-size: cover;
  padding-block: clamp(3rem, 8vw, 7.5rem);
}
.hero h1 { max-width: 13ch; }
.hero h1 span { display: block; color: #ff9b40; }
.hero .hero-eyebrow {
  color: #ff9b40;
  font-size: .79rem;
  letter-spacing: .14em;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions a { text-decoration: none; }
.hero-secondary {
  display: inline-block;
  padding: .8rem 1.15rem;
  border: 1px solid #9babb8;
  border-radius: 4px;
  background: #14222dc7;
  color: white;
  font-weight: 750;
}
.hero-secondary:hover { background: #263d50; }
@media (max-width: 760px) {
  .hero { padding-block: 2.5rem clamp(150px, 49vw, 280px); background-image:
    linear-gradient(180deg, #14222d 42%, #14222d20 78%),
    url("./directory-hub-hero.webp");
    background-position: center, right bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%, 132% auto;
  }
}
