/* Openplan Homes Ltd — enhancement layer.
   Every value below was lifted from the site's OWN computed styles
   (getComputedStyle on the live staging homepage, /services/ and a legacy town
   page, 2026-09-07), not chosen fresh:

     body        Montserrat 400 16px / 26.4px, #76787F on #F3F4F6
     h1          Montserrat 600 67.2px, #F9F9F9 over the photo hero
     h2          Montserrat 800 56px, #263238
     h3          Montserrat 800 40px, #263238
     h5          Montserrat 700 24px, #263238
     kicker (h6) Montserrat 700 18px, #263238, sentence case (NOT uppercase)
     buttons     Montserrat 700 18px, uppercase, 2px tracking,
                 padding 15px 23px, radius 8px,
                 primary  #1976D2 bg / #F9F9F9 text / 1px #2951D5 border
                 secondary #263238 bg / #F9F9F9 text
     bands       alternating #F9F9F9 and #CFD8DC, container max 1200px
     header      fixed, 91px tall -> 110px scroll anchor offset

   Astra + Elementor fight injected styles, so typography and colour are stated
   in explicit px with !important throughout, and photo band text carries a
   text shadow.

   CACHE TRAP: this file lives under /wp-content/, which vercel.json caches
   immutable for a year. The <link> is versioned (oph-enhance.css?v=N) and N is
   bumped on EVERY change to this file. Editing it without bumping N ships a
   fix nobody sees. Current: v4

   v4 appends the IA-wiring rules at the foot of this file. They are the only
   rules that run on the MIRRORED pages, which now load this sheet so the wired
   service-card links and the homepage coverage band resolve. Every selector is
   .oph-* scoped, so no mirrored element is restyled.
*/

:root {
  --oph-ink: #263238;
  --oph-ink2: #26262c;
  --oph-body: #4a5257;  /* AA: site uses #76787F, which is 3.06:1 on the #CFD8DC band. #4A5257 is 5.49:1 there and 7.54:1 on #F9F9F9. */
  --oph-light: #f9f9f9;
  --oph-band: #cfd8dc;
  --oph-page: #f3f4f6;
  --oph-blue: #1976d2;
  --oph-blue-edge: #2951d5;
  --oph-blue-dk: #135ba1;
}

/* ---------- layout bands ---------- */
.oph-band { padding: 72px 40px !important; }
.oph-band--light { background-color: var(--oph-light) !important; }
.oph-band--tint { background-color: var(--oph-band) !important; }
.oph-band--dark { background-color: var(--oph-ink) !important; }
.oph-inner { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ---------- type ---------- */
.oph-band, .oph-band p, .oph-band li {
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  line-height: 30px !important;
  color: var(--oph-body) !important;
}
.oph-band--dark p, .oph-band--dark li { color: #dfe5e8 !important; }
.oph-kicker {
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 22.5px !important;
  color: var(--oph-ink) !important;
  margin: 0 0 10px !important;
}
.oph-band--dark .oph-kicker { color: #9fd0ff !important; }
.oph-h2 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(30px, 4.4vw, 56px) !important;
  line-height: 1.3 !important;
  color: var(--oph-ink) !important;
  margin: 0 0 22px !important;
}
.oph-band--dark .oph-h2 { color: #ffffff !important; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.oph-h3 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  line-height: 1.3 !important;
  color: var(--oph-ink) !important;
  margin: 0 0 10px !important;
}
.oph-num {
  font-family: Montserrat, sans-serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  color: var(--oph-blue) !important;
  margin: 0 0 6px !important;
  display: block;
}
.oph-band p { margin: 0 0 18px !important; }
.oph-lead { font-size: 20px !important; line-height: 34px !important; }

/* ---------- breadcrumb ----------
   Lives INSIDE the hero: the site header is fixed at 91px, so a breadcrumb
   strip above the hero is hidden underneath it on load. Found on the first
   rendered exemplar, fixed before any page was fanned out. */
.oph-crumbs {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 0 20px !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: #eef2f4 !important;
}
.oph-crumbs a { color: #ffffff !important; text-decoration: none; font-weight: 600; }
.oph-crumbs a:hover, .oph-crumbs a:focus-visible { text-decoration: underline; }
.oph-crumbs a:focus-visible { outline: 2px solid #9fd0ff; outline-offset: 2px; }
.oph-crumbs span[aria-current] { color: #d7e3ea !important; }
.oph-crumbs span[aria-hidden] { color: rgba(255, 255, 255, .55) !important; padding: 0 2px; }

/* ---------- hero ---------- */
.oph-hero {
  position: relative;
  padding: 108px 40px 84px !important;
  background-size: cover;
  background-position: center;
  background-color: var(--oph-ink);
}
.oph-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,32,37,.90) 0%, rgba(23,32,37,.72) 55%, rgba(23,32,37,.55) 100%);
}
.oph-hero .oph-inner { position: relative; z-index: 1; }
.oph-hero .oph-kicker { color: #9fd0ff !important; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.oph-hero h1 {
  font-family: Montserrat, sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(32px, 5.2vw, 67px) !important;
  line-height: 1.22 !important;
  color: var(--oph-light) !important;
  margin: 0 0 18px !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
  max-width: 20ch;
}
.oph-hero p {
  color: #eef2f4 !important;
  max-width: 68ch;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

/* ---------- buttons ---------- */
.oph-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
a.oph-btn {
  display: inline-block;
  font-family: Montserrat, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 15px 23px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: transform .18s ease, background-color .18s ease;
}
a.oph-btn--primary {
  background-color: var(--oph-blue) !important;
  color: #ffffff !important; /* AA: 4.61:1 on #1976D2; --oph-light would be 4.38:1 */
  border: 1px solid var(--oph-blue-edge) !important;
}
a.oph-btn--primary:hover, a.oph-btn--primary:focus-visible { background-color: var(--oph-blue-dk) !important; transform: translateY(-2px); }
a.oph-btn--dark {
  background-color: var(--oph-ink) !important;
  color: var(--oph-light) !important;
  border: 1px solid var(--oph-ink) !important;
}
a.oph-btn--dark:hover, a.oph-btn--dark:focus-visible { background-color: #10181c !important; transform: translateY(-2px); }
a.oph-btn--ghost {
  background-color: transparent !important;
  color: var(--oph-light) !important;
  border: 1px solid rgba(249,249,249,.7) !important;
}
a.oph-btn--ghost:hover, a.oph-btn--ghost:focus-visible { background-color: rgba(249,249,249,.14) !important; transform: translateY(-2px); }
a.oph-btn:focus-visible { outline: 3px solid #9fd0ff; outline-offset: 3px; }

/* ---------- numbered cards (echoes the site's own "01. / 02." service list) ---------- */
.oph-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.oph-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 26px 26px 24px;
  border-top: 4px solid var(--oph-blue);
  box-shadow: 0 2px 14px rgba(38,50,56,.07);
}
.oph-band--tint .oph-card { background: var(--oph-light); }
.oph-card h3 { margin-top: 0 !important; font-size: clamp(20px, 1.9vw, 26px) !important; }
.oph-card p:last-child { margin-bottom: 0 !important; }

/* ---------- facts strip ---------- */
.oph-facts { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 6px 0 28px; background: rgba(38,50,56,.16); border-radius: 8px; overflow: hidden; }
.oph-fact { background: var(--oph-light); padding: 18px 20px; }
.oph-band--light .oph-fact { background: #ffffff; }
.oph-fact dt {
  font-family: Montserrat, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  color: var(--oph-blue-dk) !important;
  margin: 0 0 6px !important;
}
.oph-fact dd {
  margin: 0 !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 17px !important;
  line-height: 25px !important;
  font-weight: 600 !important;
  color: var(--oph-ink) !important;
}

/* ---------- photo statement band ---------- */
.oph-split { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .oph-split { grid-template-columns: 1.05fr .95fr; } }
.oph-split img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ---------- FAQ accordions ---------- */
.oph-faq { border-top: 1px solid rgba(38,50,56,.18); }
.oph-faq details { border-bottom: 1px solid rgba(38,50,56,.18); }
.oph-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: Montserrat, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  color: var(--oph-ink) !important;
}
.oph-faq summary::-webkit-details-marker { display: none; }
.oph-faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 16px;
  font-size: 28px; font-weight: 700; line-height: 1;
  color: var(--oph-blue-dk);
}
.oph-faq details[open] summary::after { content: "\2212"; }
.oph-faq summary:focus-visible { outline: 3px solid var(--oph-blue); outline-offset: 2px; }
.oph-faq .oph-a { padding: 0 44px 22px 0; }
.oph-faq .oph-a p { margin: 0 !important; }

/* ---------- designed internal link blocks ---------- */
/* Towns: pin icon cards with a hover lift. Services: solid arrow buttons. */
.oph-links { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); }
a.oph-pin {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(38,50,56,.14);
  border-radius: 8px;
  padding: 15px 18px;
  text-decoration: none !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--oph-ink) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.oph-band--light a.oph-pin { background: #ffffff; }
a.oph-pin svg { flex: 0 0 auto; width: 18px; height: 18px; fill: var(--oph-blue); }
a.oph-pin:hover, a.oph-pin:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38,50,56,.14);
  border-color: var(--oph-blue);
}
a.oph-pin:focus-visible { outline: 3px solid var(--oph-blue); outline-offset: 2px; }

a.oph-arrow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--oph-blue) !important;
  color: #ffffff !important; /* AA: as oph-btn--primary */
  border: 1px solid var(--oph-blue-edge) !important;
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  transition: transform .18s ease, background-color .18s ease;
}
a.oph-arrow span.oph-ar { font-size: 20px; line-height: 1; }
a.oph-arrow:hover, a.oph-arrow:focus-visible { background-color: var(--oph-blue-dk) !important; transform: translateY(-3px); }
a.oph-arrow:focus-visible { outline: 3px solid #9fd0ff; outline-offset: 3px; }

/* ---------- authority groups on the areas hub ---------- */
.oph-auth { margin: 0 0 38px; }
.oph-auth h3 { margin-bottom: 6px !important; }
.oph-auth .oph-authmeta {
  font-family: Montserrat, sans-serif !important;
  font-size: 15px !important;
  color: var(--oph-body) !important;
  margin: 0 0 16px !important;
}

/* ---------- prose lists ---------- */
.oph-band ul.oph-list { margin: 0 0 20px; padding: 0 0 0 22px; }
.oph-band ul.oph-list li { margin: 0 0 10px; }

/* ---------- fixed-header scroll anchors ---------- */
.oph-band, .oph-hero { scroll-margin-top: 110px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  a.oph-btn, a.oph-pin, a.oph-arrow { transition: none !important; }
  a.oph-btn:hover, a.oph-pin:hover, a.oph-arrow:hover { transform: none !important; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 640px) {
  .oph-band { padding: 46px 20px !important; }
  .oph-hero { padding: 84px 20px 56px !important; }
  .oph-crumbs { padding: 12px 20px; }
  .oph-cta { gap: 10px; }
  a.oph-btn { font-size: 16px !important; padding: 14px 18px !important; letter-spacing: 1.4px !important; }
}

/* ===========================================================================
   v4 — IA wiring. Runs on the MIRRORED pages as well as the generated ones.
   The mirror's "Our Core Services" cards were headings with no link and its
   footer Services widget pointed at "#". Wiring them must not change how the
   mirror LOOKS, so the anchor inherits everything from the heading it sits in
   and only earns an underline on hover and a visible focus ring.
   =========================================================================== */
a.oph-wire {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  text-decoration: none !important;
  background: none !important;
}
a.oph-wire:hover, a.oph-wire:focus-visible { text-decoration: underline !important; text-underline-offset: 4px; }
a.oph-wire:focus-visible { outline: 3px solid var(--oph-blue); outline-offset: 3px; }

/* homepage coverage band, grouped by planning authority */
.oph-covgroup { margin: 0 0 26px; }
.oph-covgroup:last-of-type { margin-bottom: 4px; }
.oph-covauth {
  font-family: Montserrat, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  color: var(--oph-blue-dk) !important;   /* 4.72:1 on #CFD8DC */
  margin: 0 0 12px !important;
}
.oph-covgroup .oph-links { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.oph-covgroup a.oph-pin { padding: 13px 16px; font-size: 16px !important; }
#oph-coverage .oph-lead { max-width: 74ch; }
