/* =====================================================================
   ACF clone stylesheet (2026-10-04)
   Recreates the live Kadence site at acfplumbingandheating.co.uk.
   Loaded on EVERY page. Clone pages (body.acf-skin) load ONLY this file;
   template-skinned pages (blogs, projects, form, thank-you) load the template
   style.css first, then this file, so header/footer/buttons below use
   .acf-* classes and defensive resets that survive the template's globals.
   Section components keep their own layout in scoped <style> blocks.
   ===================================================================== */
:root {
  --acf-blue: #00a3f2;
  --acf-blue-hover: #0086c7;
  --acf-orange: #fa9c18;
  --acf-orange-hover: #e8870a;
  --acf-orange-deep: #f47c2a;
  --acf-green: #318704;
  --acf-navy: #2b6cb0;
  --acf-navy-2: #2a77b5;
  --acf-sky: #ecf8fe;
  --acf-sky-2: #f3faff;
  --acf-cream: #fff8ee;
  --acf-grey: #f1f1f1;
  --acf-grey-2: #f4f5f7;
  --acf-text: #27333a;
  --acf-muted: #555555;
  --acf-head-font: 'Palanquin', 'Roboto', Arial, sans-serif;
  --acf-body-font: 'Roboto', Arial, sans-serif;
  --acf-wrap: 1350px;
  --acf-radius: 14px;
  --acf-shadow: 0 10px 30px rgba(17, 60, 100, 0.10);
  --acf-section-y: 64px; /* live Kadence row padding */
  /* Accessible button shades (2026-10-05, approved): same hues as the live site, deepened to pass
     WCAG AA 4.5:1 with white text. Brand colours above stay for headings, bands and accents. */
  --acf-btn-orange: #ab6504;
  --acf-btn-orange-hover: #975903;
  --acf-btn-blue: #007dba;
  --acf-btn-blue-hover: #006fa5;
}

/* ---------- Base (clone pages only) ---------- */
html { background-color: #ececec; }
html.acf-noscroll { overflow: hidden; }
body.acf-skin {
  margin: 0; font-family: var(--acf-body-font); font-size: 18px; line-height: 1.5;
  color: #333; background: #fff; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body.acf-skin main { flex: 1 0 auto; display: block; }
body.acf-skin *, body.acf-skin *::before, body.acf-skin *::after { box-sizing: border-box; }
body.acf-skin img { max-width: 100%; height: auto; display: block; }
body.acf-skin a { color: var(--acf-blue); }
body.acf-skin h1, body.acf-skin h2, body.acf-skin h3, body.acf-skin h4, body.acf-skin h5 {
  font-family: var(--acf-head-font); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; color: var(--acf-blue);
}
/* Live Kadence type scale: desktop / tablet (<=1024) / mobile (<=767) */
body.acf-skin h1 { font-size: 41px; }
body.acf-skin h2 { font-size: 37px; }
body.acf-skin h3 { font-size: 28px; }
body.acf-skin h4 { font-size: 24px; }
@media (max-width: 1024px) { body.acf-skin h1 { font-size: 40px; } body.acf-skin h2 { font-size: 35px; } body.acf-skin h4 { font-size: 21px; } }
@media (max-width: 767px) { :root { --acf-section-y: 37.5px; } body.acf-skin h1 { font-size: 27px; } body.acf-skin h2 { font-size: 23px; } body.acf-skin h3 { font-size: 21px; } body.acf-skin h4 { font-size: 19px; } }
body.acf-skin p { margin: 0 0 1.15em; }
body.acf-skin p:last-child { margin-bottom: 0; }
.skip-nav { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #000; color: #fff; padding: 10px 16px; }
.skip-nav:focus { left: 8px; top: 8px; }
.acf-wrap { width: 100%; max-width: var(--acf-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.acf-icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }
.acf-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.acf-btn, a.acf-btn, button.acf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 250px; min-height: 49px; padding: 10px 24px; border-radius: 50px; border: 0;
  font-family: var(--acf-body-font); font-weight: 500; font-size: 18px; line-height: 1.6; letter-spacing: 0;
  text-transform: uppercase; text-decoration: none !important; cursor: pointer; text-align: center;
  transition: background-color .18s, color .18s, transform .18s, box-shadow .18s;
  box-shadow: none; white-space: nowrap;
}
.acf-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .14); }
.acf-btn:focus-visible { outline: 3px solid #1a202c; outline-offset: 2px; }
.acf-btn--orange { background: var(--acf-btn-orange) !important; color: #fff !important; }
.acf-btn--orange:hover { background: var(--acf-btn-orange-hover) !important; }
.acf-btn--blue { background: var(--acf-btn-blue) !important; color: #fff !important; }
.acf-btn--blue:hover { background: var(--acf-btn-blue-hover) !important; }
.acf-btn--green { background: var(--acf-green) !important; color: #fff !important; }
.acf-btn--green:hover { background: #276c03 !important; }
.acf-btn--white { background: #fff !important; color: var(--acf-btn-orange) !important; }
.acf-btn--white:hover { background: #fff7ea !important; }
.acf-btn--sm { min-width: 0; min-height: 44px; padding: 8px 22px; font-size: 16px; }
.acf-btnrow { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.acf-btnrow--center { justify-content: center; }
@media (max-width: 767px) {
  .acf-btn, a.acf-btn { min-width: 0; width: 100%; max-width: 100%; white-space: normal; }
  .acf-btnrow { flex-direction: column; align-items: stretch; }
  .acf-btnrow--center { align-items: center; }
  .acf-btnrow .acf-btn { width: 100%; }
}

/* ---------- Header (live Kadence header, measured 2026-10-05) ----------
   Desktop (>1024): full-width row, 10px edge padding. Row 1 (57px): blue pill top bar, right.
   Row 2 (90px): logo 150px | centred nav (Roboto 18/500 uppercase #333) | "Call us today".
   Tablet/mobile (<=1024): orange phone / blue Contact Us halves, then sky row with logo + burger. */
.acf-header { position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .2s; font-family: var(--acf-body-font); }
.acf-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.acf-header nav { position: static !important; left: auto !important; transform: none !important; }
.acf-header ul { list-style: none; margin: 0; padding: 0; }
.acf-header a { text-decoration: none; }
.acf-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 57px 90px; column-gap: 20px; align-items: center; padding: 0 10px; max-width: none; box-sizing: border-box; }
.acf-header__logo { grid-column: 1; grid-row: 2; justify-self: start; display: block; align-self: start; margin-top: 3px; /* live: logo top at y=60 in the 57-147 row */ }
.acf-header__logo img { width: 150px; height: auto; display: block; }
.acf-header__main { display: contents; }
.acf-topbar {
  grid-column: 1 / 4; grid-row: 1; justify-self: end; align-self: end; display: flex; align-items: center; height: 47px;
  background: var(--acf-blue); color: #fff; border-radius: 50px; padding: 0 30px; font-weight: 500; font-size: 16px; line-height: 24px;
}
.acf-topbar a { color: #fff !important; }
.acf-topbar a:hover { text-decoration: underline; }
.acf-topbar strong { font-weight: 700; }
.acf-topbar__sep { margin: 0 15px; }
.acf-topbar__social { display: inline-flex; gap: 6px; margin-left: 15px; }
.acf-topbar__social a { width: 36px; height: 36px; border-radius: 50%; background: var(--acf-orange); display: inline-flex; align-items: center; justify-content: center; }
.acf-topbar__social a:hover { background: var(--acf-orange-hover); text-decoration: none; }
.acf-nav { grid-column: 2; grid-row: 2; justify-self: center; }
.acf-nav__list { display: flex; align-items: center; gap: 0; }
.acf-nav__list > li { position: static; }
.acf-nav__link, button.acf-nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10.8px 18px; background: none; border: 0; cursor: pointer; line-height: 27px;
  font-family: var(--acf-body-font); font-size: 18px; font-weight: 500; text-transform: uppercase; color: #333 !important;
}
.acf-nav__link .acf-icon { color: #333; }
.acf-nav__link:hover, .acf-nav__toggle[aria-expanded="true"], .acf-nav__link[aria-current] { color: var(--acf-blue) !important; }
.acf-nav__link:hover .acf-icon, .acf-nav__toggle[aria-expanded="true"] .acf-icon { color: var(--acf-blue); }
.acf-nav__home[aria-current] .acf-icon { color: #333; }
.acf-nav__link:focus-visible { outline: 2px solid var(--acf-blue); outline-offset: 2px; border-radius: 6px; }
/* Mega menu: full-width dark band under the header with three tall cards (live Kadence mega menu). */
.acf-mega {
  position: absolute; left: 0; right: 0; top: 100%; background: rgba(0, 0, 0, .75); padding: 24px 10px;
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; z-index: 50;
}
.acf-mega::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
/* Open state is driven only by JS (hover intent + click + keyboard) via aria-expanded, so hover,
   focus and click can never disagree. :hover remains as a no-JS fallback only. */
html:not(.acf-js) .acf-nav__item--mega:hover .acf-mega,
.acf-nav__toggle[aria-expanded="true"] + .acf-mega { opacity: 1; visibility: visible; }
.acf-mega__inner { max-width: 1300px; margin: 0 auto; }
.acf-mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acf-mega__card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 394px; padding: 15px; border-radius: 20px; overflow: hidden; isolation: isolate;
  color: #fff !important; background: #333 center / cover no-repeat; transition: transform .18s; }
.acf-mega__card:hover { transform: translateY(-3px); }
.acf-mega__card--orange, .acf-mega__card--svc { background-color: var(--acf-orange-deep); }
.acf-mega__card--navy { background-color: #2b79b4; }
.acf-mega__card--blue { background-color: var(--acf-blue); }
.acf-mega__card--orange::before, .acf-mega__card--svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/pictures/site/mask-group-12.webp') center / cover no-repeat; opacity: .35; }
.acf-mega__card--orange { padding: 30px 30px 32px; justify-content: space-between; }
.acf-mega__card--photo { padding: 30px 30px 32px; }
.acf-mega__card--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.acf-mega__circle { width: 150px; height: auto; border-radius: 50%; align-self: flex-start; }
.acf-mega__photo { width: 100%; height: 254px; object-fit: cover; border-radius: 10px; margin-bottom: auto; }
.acf-mega__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.acf-mega__card--svc .acf-mega__body { padding: 16px 0 4px; }
.acf-mega__title { font-family: var(--acf-head-font); font-weight: 700; color: #fff; font-size: 21px; line-height: 1.4; }
.acf-mega__text { font-size: 18px; line-height: 27px; color: #fff; }
.acf-mega__cta { display: inline-block; margin-top: 12px; padding: 8px 30px; border-radius: 50px; font-size: 18px; line-height: 27px; font-weight: 400; }
.acf-mega__cta--white { background: #fff; color: #333; }
.acf-mega__cta--orange { background: var(--acf-btn-orange); color: #fff; }
.acf-mega__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px !important; justify-content: center; }
.acf-mega__links a { font-size: 16px; font-weight: 500; color: #fff !important; }
.acf-mega__links a:hover { text-decoration: underline; }
.acf-mega__cards--heat { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.acf-mega__heat-main { grid-row: 1 / 3; }
.acf-mega__heat-0 { grid-column: 2; grid-row: 1; }
.acf-mega__heat-1 { grid-column: 2; grid-row: 2; }
.acf-mega__heat-2 { grid-column: 3; grid-row: 1 / 3; }
.acf-mega__card--tile { min-height: 196px; padding: 24px; justify-content: center; border: 2px solid var(--acf-orange-deep); background-size: cover; }
.acf-mega__card--tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .55); }
.acf-mega__card--tile .acf-mega__cta { margin-top: 14px; padding: 8px 30px; }
.acf-mega__boiler { width: 180px; height: auto; margin: 0 0 auto 25px; }
@media (max-width: 1240px) { .acf-nav__link, button.acf-nav__link { padding-left: 12px; padding-right: 12px; } }
.acf-header__call { grid-column: 3; grid-row: 2; justify-self: end; display: flex; align-items: center; gap: 10px; }
.acf-header__call img { width: 20px; height: 20px; }
.acf-header__call span { display: flex; flex-direction: column; }
.acf-header__call small { font-family: var(--acf-head-font); font-size: 18px; line-height: 27px; font-weight: 700; text-transform: uppercase; color: #333; }
.acf-header__call strong { font-family: var(--acf-body-font); font-size: 21px; line-height: 17px; font-weight: 700; color: #2b79b4; }
.acf-mbar, .acf-header__burger { display: none; }

@media (max-width: 1024px) {
  .acf-mbar { display: grid; grid-template-columns: 1fr 1fr; }
  .acf-mbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 2px 8px; color: #fff !important;
    font-size: 18px; font-weight: 500; text-transform: uppercase; line-height: 1.2; }
  .acf-mbar__call { background: var(--acf-btn-orange); }
  .acf-mbar__contact { background: var(--acf-btn-blue); }
  .acf-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 0; padding: 15px 10px; background: var(--acf-sky); }
  .acf-header__logo { align-self: center; margin-top: 0; }
  .acf-header__logo img { width: 150px; }
  .acf-topbar, .acf-nav, .acf-header__call { display: none; }
  .acf-header__burger { display: inline-flex; align-items: center; justify-content: center; width: 57px; height: 51px; border: 0; background: none; color: #333; cursor: pointer; padding: 0; }
}
@media (max-width: 767px) {
  .acf-mbar a { font-size: 16px; gap: 8px; }
  .acf-mbar a { min-height: 33px; }
  /* live phones: 33px bar + 90px row, 120x55 logo centred */
  .acf-header__inner { padding: 0 10px; min-height: 90px; }
  .acf-header__logo img { width: 120px; }
}

/* ---------- Mobile drawer (live: full-width white popup, blue close, logo, bordered uppercase list, orange socials) ---------- */
.acf-drawer { position: fixed; inset: 0; z-index: 1200; background: #fff; opacity: 0; transition: opacity .2s; }
.acf-drawer.is-open { opacity: 1; }
.acf-drawer[hidden] { display: none; }
.acf-drawer__panel { position: absolute; inset: 0; background: #fff; padding: 22px 20px 32px; overflow-y: auto; font-family: var(--acf-body-font); }
.acf-drawer__close { position: absolute; top: 14px; right: 20px; width: 52px; height: 52px; border: 0; background: none; color: var(--acf-blue); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.acf-drawer__logo { display: inline-block; margin: 62px 0 26px; }
.acf-drawer__logo img { width: 150px; height: auto; display: block; }
.acf-drawer ul { list-style: none; margin: 0; padding: 0; }
.acf-drawer__list > li { border-bottom: 1px solid #333; }
.acf-drawer__list a, .acf-drawer__list summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 9px; font-size: 18px; font-weight: 500; text-transform: uppercase; color: #333 !important; text-decoration: none; cursor: pointer; }
.acf-drawer__list summary { list-style: none; padding-right: 0; }
.acf-drawer__list summary::-webkit-details-marker { display: none; }
.acf-drawer__tog { align-self: stretch; width: 44px; display: inline-flex; align-items: center; justify-content: center; border-left: 1px solid #333; }
.acf-drawer__list details[open] .acf-drawer__tog .acf-icon { transform: rotate(180deg); }
.acf-drawer__list details ul { padding: 0 0 8px 14px; border-top: 1px solid #e3e3e3; }
.acf-drawer__list details a { font-size: 16px; min-height: 44px; text-transform: none; }
.acf-drawer__list > li:first-child a { justify-content: flex-start; }
.acf-drawer__social { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.acf-drawer__social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--acf-orange); }
.acf-drawer__call { width: 100%; margin-top: 18px; }

/* ---------- Contact band (live: orange card 480px + Google map 720px, 600px tall, over the wave artwork;
   tablet: card only on the wave; mobile: full-width card on cream) ---------- */
.acf-contactband { position: relative; padding: 64px 26px 26px; background: #f3f3f3 url('/pictures/site/map_background_img.webp') 49% 0% / 100% 100% no-repeat; }
.acf-contactband__inner { display: grid; grid-template-columns: 40% 60%; align-items: stretch; max-width: 1200px; padding: 0; }
.acf-contactcard { background: var(--acf-orange); color: #fff; border-radius: 30px 0 0 30px; padding: 30px; position: relative; z-index: 1; min-height: 600px; display: flex; flex-direction: column; justify-content: center; }
.acf-contactcard h2, .acf-contactcard h3 { font-family: var(--acf-head-font) !important; color: #fff !important; font-weight: 700; margin: 0 0 30px; }
.acf-contactcard h2 { font-size: 37px !important; line-height: 1.3 !important; }
.acf-contactcard h3 { font-size: 28px !important; line-height: 1.3 !important; margin: 18px 0 30px; }
.acf-contactcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.acf-contactcard li { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 18px; line-height: 27px; }
.acf-contactcard li img { flex: 0 0 auto; width: 30px; height: auto; }
.acf-contactcard li .acf-icon, .acf-contactcard li svg { flex: 0 0 auto; }
.acf-contactcard .acf-contactcard__at { display: none; }
@media (max-width: 767px) { .acf-contactcard .acf-contactcard__env { display: none; } .acf-contactcard .acf-contactcard__at { display: block; } }
.acf-contactcard a { color: #fff !important; text-decoration: none; word-break: break-word; }
.acf-contactcard a:hover { text-decoration: underline; }
.acf-contactband__map { border-radius: 0 30px 30px 0; overflow: hidden; min-height: 600px; background: #e5e3df; }
.acf-contactband__map iframe { width: 100%; height: 100%; min-height: 600px; border: 0; display: block; }
@media (max-width: 1024px) {
  .acf-contactband { padding: 64px 10px 26px; }
  .acf-contactband__inner { grid-template-columns: minmax(0, 492px); }
  .acf-contactband__map { display: none; }
  .acf-contactcard { border-radius: 20px; min-height: 0; padding: 40px 30px; }
}
@media (max-width: 767px) {
  .acf-contactband { background: #fef6e9; padding: 40px 19px; }
  .acf-contactband__inner { grid-template-columns: 1fr; }
  .acf-contactcard { padding: 30px 30px 30px 15px; }
  .acf-contactcard h2 { font-size: 23px !important; margin-bottom: 24px; }
  .acf-contactcard h3 { font-size: 21px !important; margin: 10px 0 24px; }
  .acf-contactcard ul { gap: 24px; }
  .acf-contactcard li { font-size: 15px; line-height: 22.5px; }
  /* live phones: full-bleed 250px map directly under the cream card band */
  .acf-contactband__map { display: block; border-radius: 0; min-height: 250px; height: 250px; margin: 40px -19px -40px; }
  .acf-contactband__map iframe { min-height: 250px; height: 250px; }
}

/* ---------- Footer (live: #efefef link row, #f1f1f1 card strip + legal lines) ---------- */
.acf-footer { background: #f1f1f1; color: #333; font-family: var(--acf-body-font); padding: 0 0 26px; }
.acf-footer ul { list-style: none; margin: 0; padding: 0; }
.acf-footer nav { position: static !important; transform: none !important; }
.acf-footer__top { background: #efefef; padding: 30px 0 32px; }
.acf-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 230px); column-gap: 30px; row-gap: 28px; align-items: start; }
.acf-footer__brand { align-self: center; }
.acf-footer .acf-footer__brand > a img { width: 250px; height: auto; display: block; }
.acf-footer__certs { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.acf-footer .acf-footer__certs img { height: 52px; width: auto; max-width: 140px; object-fit: contain; }
.acf-footer__col h2 { font-family: var(--acf-head-font) !important; font-size: 21px !important; line-height: 29.4px !important; font-weight: 700; color: var(--acf-blue) !important; text-transform: uppercase; margin: 0 0 5px; }
.acf-footer__col li { margin: 0; }
.acf-footer__col li a { display: inline-block; padding: 1.8px 0; color: #333 !important; text-decoration: none; font-size: 18px; line-height: 32.4px; }
.acf-footer__col li a:hover { color: var(--acf-btn-blue) !important; text-decoration: underline; }
.acf-footer__social { display: flex; gap: 16px; margin: 5px 0 20px; }
.acf-footer__social a { width: 38px; height: 38px; border-radius: 50%; background: var(--acf-orange); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; transition: transform .18s; }
.acf-footer__social a:hover { transform: translateY(-2px); }
.acf-footer__social a.acf-footer__g { background: #fff; }
.acf-footer__social a.acf-footer__g img { width: 18px; height: 18px; }
.acf-footer .acf-footer__col .acf-btn { min-width: 200px; }
.acf-footer__cards { display: flex; align-items: center; justify-content: center; padding-top: 30px; }
.acf-footer .acf-footer__cards img { width: min(1024px, 100%); height: auto; }
.acf-footer__line { display: none; }
.acf-footer__legal { text-align: center; font-size: 16px; line-height: 24px; color: #333; max-width: 988px; margin-top: 16px; }
.acf-footer__legal p { margin: 0 0 20px; }
.acf-footer__legal p:last-child { margin-bottom: 0; }
.acf-footer__legal a { color: inherit; text-decoration: underline; }
@media (max-width: 1024px) {
  .acf-footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 22px; }
  .acf-footer .acf-footer__brand > a img { width: 250px; margin: 0 auto; }
  .acf-footer__certs, .acf-footer__social { justify-content: center; }
}
@media (max-width: 767px) {
  .acf-footer .acf-footer__brand > a img { width: 180px; }
  .acf-footer__col { width: 100%; }
  .acf-footer__col h2 { font-size: 18px !important; line-height: 23.4px !important; }
  .acf-footer .acf-footer__col .acf-btn { width: 100%; max-width: none; }
  .acf-footer__cards { padding-left: 0; padding-right: 0; }
  .acf-footer__cards img { width: 100%; }
}

/* ---------- Shared section helpers used across clone pages ---------- */
.acf-section { padding: var(--acf-section-y) 0; position: relative; }
.acf-section--sky { background: linear-gradient(180deg, #f4fbff 0%, #e9f6fe 100%); }
.acf-section--grey { background: var(--acf-grey-2); }
.acf-section--cream { background: linear-gradient(180deg, #fff9f0 0%, #eef8fe 100%); }
.acf-section--blue { background: var(--acf-navy-2); color: #fff; }
.acf-section--blue h1, .acf-section--blue h2, .acf-section--blue h3 { color: #fff !important; }
.acf-section--orange { background: var(--acf-orange-deep); color: #fff; }
.acf-head { text-align: center; max-width: 820px; margin: 0 auto 32px; }
.acf-head h2 { font-size: 37px !important; line-height: 1.3 !important; margin-bottom: 18px; }
.acf-head p { font-size: 18px; }
.acf-prose h2 { font-size: 37px; }
.acf-prose h3 { font-size: 28px; margin-top: 1.4em; }
@media (max-width: 1024px) { .acf-head h2, .acf-prose h2 { font-size: 35px !important; } }
@media (max-width: 767px) { .acf-head h2, .acf-prose h2 { font-size: 23px !important; } .acf-prose h3 { font-size: 21px; } }
.acf-prose ul { padding-left: 1.2em; margin: 0 0 1.15em; }
.acf-prose li { margin-bottom: .4em; }
.acf-checklist { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
.acf-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 20px; line-height: 30px; }
.acf-checklist .acf-icon { color: var(--acf-orange); margin-top: 6px; }
@media (max-width: 1024px) { .acf-checklist li { font-size: 19.25px; line-height: 28.9px; } }
@media (max-width: 767px) { .acf-checklist li { font-size: 17.6px; line-height: 26.4px; } }
.acf-section--blue .acf-checklist .acf-icon { color: #fff; }

/* ---------- Template-skinned pages (blogs/projects/form/thank-you) ---------- */
/* Template main.js and style.css target .header/.mobile-menu which are absent; keep the
   page content clear of the sticky ACF header and align headings to the ACF palette. */
body.tpl-skin { padding-top: 0 !important; }
body.tpl-skin .acf-header { position: sticky !important; }
body.tpl-skin h1, body.tpl-skin h2, body.tpl-skin h3 { font-family: var(--acf-head-font); }
@media (prefers-reduced-motion: reduce) {
  .acf-btn, .acf-mega, .acf-drawer, .acf-drawer__panel { transition: none !important; }
}

/* Template-skinned pages: in-body links + mid-article CTA in the ACF palette (blogs, projects incl. J2C-generated) */
body.tpl-skin .article-content a:not(.btn), body.tpl-skin .article-body a:not(.btn), body.tpl-skin .project-content a:not(.btn) { color: var(--acf-navy-2); font-weight: 600; text-underline-offset: 3px; }
body.tpl-skin .quick-fact-value a { color: inherit; text-decoration: underline; }
body.tpl-skin .mid-article-cta { background: var(--acf-navy-2) !important; }

/* Accessible buttons on template-skinned pages (blogs, projects incl. J2C-generated, form) */
body.tpl-skin .btn.btn-primary, body.tpl-skin .article-cta-btn, body.tpl-skin .project-card-btn, body.tpl-skin .cta-banner-btn { background: var(--acf-btn-blue) !important; border-color: var(--acf-btn-blue) !important; color: #fff !important; }
body.tpl-skin .btn.btn-primary:hover, body.tpl-skin .article-cta-btn:hover { background: var(--acf-btn-blue-hover) !important; }
body.tpl-skin .article-bottom-cta .article-cta-btn.btn.btn-primary, body.tpl-skin .mid-article-cta .btn.btn-primary { background: #fff !important; color: var(--acf-btn-blue) !important; border-color: #fff !important; }
body.tpl-skin[data-service] .hero .btn.btn-primary, body.tpl-skin[data-service] .hero-cta-row .btn.btn-primary, body.tpl-skin[data-service] .btn.btn-primary { background: var(--acf-btn-blue) !important; border-color: var(--acf-btn-blue) !important; color: #fff !important; }
/* Nav polish (2026-10-07): chevron flips when a mega menu is open. */
.acf-nav__toggle .acf-icon { transition: transform .18s; }
.acf-nav__toggle[aria-expanded="true"] .acf-icon { transform: rotate(180deg); }
/* A closing (fading) mega panel must not catch the pointer, or a quick move can re-open the wrong menu. */
.acf-mega { pointer-events: none; }
.acf-nav__toggle[aria-expanded="true"] + .acf-mega, html:not(.acf-js) .acf-nav__item--mega:hover .acf-mega { pointer-events: auto; }
/* Nav polish 2 (2026-10-07): mega band near-solid so the page never shows through behind the
   bottom link row; tablet drawer as a right-hand side panel instead of a full-width sheet. */
.acf-mega { background: rgba(18, 22, 28, .93); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.acf-mega__links { margin-top: 22px !important; gap: 8px 28px; }
@media (min-width: 600px) {
  .acf-drawer { background: rgba(15, 23, 42, .45); }
  .acf-drawer__panel { left: auto; width: min(420px, 86vw); box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
    transform: translateX(24px); transition: transform .22s ease; }
  .acf-drawer.is-open .acf-drawer__panel { transform: none; }
}
