/*
Theme Name: Elite Birmingham Roofing (Kadence child)
Theme URI: https://www.elitebirminghamroofing.co.uk/
Template: kadence
Author: Carlos Real
Description: Child theme carrying Heather's 2026 design for elitebirminghamroofing.co.uk on the Kadence base. Same URLs, same copy, same links as the 2017 Betheme site; only presentation changes. See REDESIGN-PLAN.md.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: ebr-kadence-child
*/

/* ---------------------------------------------------------------------------
   Fonts: Archivo (SIL OFL) and Instrument Sans (SIL OFL), self-hosted, subset to
   Latin, instanced from the Google variable fonts. Licences in assets/fonts/.
   "Archivo Condensed" = Archivo at width 75; "Archivo SemiCondensed" = width 90
   (phone numbers). Weight axis kept at 800..900.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo Condensed';
  src: url('assets/fonts/archivo-condensed-800-900.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo SemiCondensed';
  src: url('assets/fonts/archivo-semi-800-900.woff2') format('woff2');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/instrument-sans-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   Design tokens (values from the prototype, design/heather-2026-10-27)
   ------------------------------------------------------------------------- */
:root {
  --ebr-navy: #0b1233;
  --ebr-orange: #ff5b1f;
  --ebr-orange-light: #ff8a5c;
  --ebr-cobalt: #2340ff;
  --ebr-paper: #f5f2ec;
  --ebr-white: #ffffff;
  --ebr-body: #3d4258;
  --ebr-body-2: #4a4f63;
  --ebr-muted: #8a8577;
  --ebr-white-75: rgba(255, 255, 255, .75);
  --ebr-white-85: rgba(255, 255, 255, .85);
  --ebr-rule-light: rgba(255, 255, 255, .1);

  --ebr-font-display: 'Archivo Condensed', Impact, 'Arial Narrow', sans-serif;
  --ebr-font-display-wide: 'Archivo SemiCondensed', 'Archivo Condensed', Impact, sans-serif;
  --ebr-font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ebr-max: 1280px;
  --ebr-gutter: clamp(20px, 4vw, 48px);
  --ebr-section: clamp(72px, 9vw, 128px);
  --ebr-section-sm: clamp(56px, 7vw, 96px);
  --ebr-h1: clamp(50px, 11vw, 168px);
  --ebr-h2: clamp(48px, 6.5vw, 96px);
  --ebr-h2-sm: clamp(36px, 4.5vw, 64px);
  --ebr-h3: clamp(30px, 3.2vw, 44px);
  --ebr-label: 12px;
  --ebr-header-h: 78px;
}

/* ---------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
html { -webkit-font-smoothing: antialiased; scroll-padding-top: 90px; }
body {
  font-family: var(--ebr-font-body);
  color: var(--ebr-navy);
  background: var(--ebr-paper);
  font-size: 17px;
  line-height: 1.6;
}
::selection { background: var(--ebr-orange); color: var(--ebr-navy); }
a { color: var(--ebr-cobalt); text-decoration: none; }
a:hover { color: var(--ebr-orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ebr-cobalt);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
.ebr-picture { display: block; }
.ebr-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ebr-container { max-width: var(--ebr-max); margin: 0 auto; padding-left: var(--ebr-gutter); padding-right: var(--ebr-gutter); }

/* Labels (the prototype's mono labels, set in Instrument Sans per the review) */
.ebr-label {
  font-family: var(--ebr-font-body);
  font-weight: 700;
  font-size: var(--ebr-label);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Display headings */
.ebr-display, .ebr-hero__title, .ebr-intro__title, .ebr-entry h2, .ebr-entry h3, .ebr-card__title, .ebr-section-title, .ebr-404__title {
  font-family: var(--ebr-font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: 0;
  margin: 0;
  color: inherit;
}

/* Buttons */
.ebr-btn, .ebr-entry .ebr-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ebr-orange);
  color: var(--ebr-white);
  padding: 18px 26px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid var(--ebr-orange);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ebr-btn:hover { background: var(--ebr-navy); border-color: var(--ebr-navy); color: var(--ebr-white); }
.ebr-btn--outline { background: transparent; border-color: var(--ebr-white); color: var(--ebr-white); }
.ebr-btn--outline:hover { background: var(--ebr-white); border-color: var(--ebr-white); color: var(--ebr-navy); }
.ebr-btn--navy { background: var(--ebr-navy); border-color: var(--ebr-navy); color: var(--ebr-white); }
.ebr-btn--navy:hover { background: var(--ebr-cobalt); border-color: var(--ebr-cobalt); color: var(--ebr-white); }
.ebr-btn--white { background: transparent; border-color: var(--ebr-white); color: var(--ebr-white); }
.ebr-btn--white:hover { background: var(--ebr-white); color: var(--ebr-navy); }

/* Numbered lists: the numbers are CSS counters, not page text */
.ebr-numbered { list-style: none; margin: 0; padding: 0; counter-reset: ebr; }
.ebr-numbered > li { counter-increment: ebr; }
.ebr-numbered > li::before {
  content: counter(ebr, decimal-leading-zero);
  font-family: var(--ebr-font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ebr-orange);
}
.ebr-numbered--plain > li::before { content: counter(ebr); }

/* Skip link (inside a nav) */
.ebr-skip .skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; background: var(--ebr-white); color: var(--ebr-navy); padding: 12px 16px; font-weight: 700; }

/* ---------------------------------------------------------------------------
   Kadence layout resets
   ------------------------------------------------------------------------- */
#inner-wrap { background: var(--ebr-paper); }
#inner-wrap .site-container { max-width: var(--ebr-max); padding-left: var(--ebr-gutter); padding-right: var(--ebr-gutter); }
.content-area { padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--ebr-section-sm); }
body.ebr-landing .content-area { padding: 0; }
body.ebr-landing #inner-wrap .site-container { max-width: none; padding: 0; }
body.ebr-landing .content-container { display: block; }
body.ebr-landing .content-wrap { max-width: none; }
.single-entry.content-bg, .entry.content-bg, .content-style-unboxed .entry.content-bg { background: transparent; }
.site-main .content-wrap > .entry-content-wrap { padding: 0; }
.single-entry { background: transparent; }

/* Content + sidebar grid (Kadence puts <aside> after #main) */
.content-container { gap: 56px; }
@media (min-width: 1025px) {
  body.has-sidebar:not(.ebr-landing) .content-container { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
}

/* ---------------------------------------------------------------------------
   Header (Kadence header builder markup)
   ------------------------------------------------------------------------- */
#masthead { position: relative; z-index: 50; background: var(--ebr-navy); color: var(--ebr-white); border-bottom: 1px solid rgba(255, 255, 255, .08); }
#masthead .site-header-row-container-inner { background: var(--ebr-navy); }
#masthead .site-container { max-width: var(--ebr-max); padding-left: var(--ebr-gutter); padding-right: var(--ebr-gutter); }
#masthead .site-main-header-inner-wrap { min-height: var(--ebr-header-h); }
/* Brand lockup (Heather's design): orange house mark + wordmark; stands in for the final SVG logo */
.ebr-brand { display: flex; align-items: center; gap: 14px; color: var(--ebr-white); text-decoration: none; }
.ebr-brand:hover, .ebr-brand:focus { color: var(--ebr-white); }
.ebr-brand__mark { flex: none; width: 38px; height: 38px; background: var(--ebr-orange); clip-path: polygon(50% 0, 100% 50%, 100% 100%, 0 100%, 0 50%); }
.ebr-brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ebr-brand__name { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: 23px; line-height: 1; letter-spacing: .01em; }
.ebr-brand__call { font-family: var(--ebr-font-body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; color: var(--ebr-orange-light); }
.ebr-brand--mobile { gap: 10px; }
.ebr-brand--mobile .ebr-brand__mark { width: 28px; height: 28px; }
.ebr-brand--mobile .ebr-brand__name { font-size: 17px; max-width: 9ch; }
#masthead .site-header-item { display: flex; align-items: center; }

/* Desktop menu */
#masthead #primary-menu { display: flex; align-items: center; gap: 2px; }
#masthead #primary-menu > li > a {
  position: relative;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ebr-white);
  line-height: 1.2;
}
#masthead #primary-menu > li > a:hover, #masthead #primary-menu > li.current-menu-ancestor > a:hover { color: var(--ebr-orange-light); }
#masthead #primary-menu > li.current-menu-item > a::after,
#masthead #primary-menu > li.current-menu-ancestor > a::after,
#masthead #primary-menu > li.current_page_parent > a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 3px;
  background: var(--ebr-orange);
}
#masthead #primary-menu .dropdown-nav-toggle, #masthead #primary-menu .dropdown-nav-toggle svg { color: var(--ebr-white); }
#masthead #primary-menu > li > a .dropdown-nav-toggle { margin-left: 2px; }
#masthead #primary-menu ul.sub-menu {
  background: var(--ebr-navy);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 3px solid var(--ebr-orange);
  box-shadow: 0 18px 40px rgba(11, 18, 51, .35);
  min-width: 240px;
  padding: 8px 0;
}
#masthead #primary-menu ul.sub-menu li a {
  color: var(--ebr-white);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  background: transparent;
}
#masthead #primary-menu ul.sub-menu li a:hover { color: var(--ebr-orange-light); background: rgba(255, 255, 255, .04); }
#masthead #primary-menu ul.sub-menu li.current-menu-item > a { color: var(--ebr-orange-light); }

/* Phone button, desktop */
#masthead .header-button-wrap { margin-left: 18px; }
#masthead .header-button-wrap a.header-button, #masthead .header-button-wrap a.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ebr-orange);
  color: var(--ebr-white);
  padding: 13px 20px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: none;
}
#masthead .header-button-wrap a.header-button::before, #masthead .header-button-wrap a.button::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
#masthead .header-button-wrap a.header-button:hover, #masthead .header-button-wrap a.button:hover { background: var(--ebr-white); color: var(--ebr-navy); }

/* Mobile header */
#mobile-header .site-header-row-container-inner { background: var(--ebr-navy); }
#mobile-header .site-main-header-inner-wrap { min-height: 64px; }
#mobile-header .site-header-section-right { gap: 8px; }
#mobile-header .mobile-header-button-wrap a.mobile-button, #mobile-header .mobile-header-button-wrap a.button {
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ebr-orange);
  background: transparent;
  color: var(--ebr-white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: none;
}
#mobile-header .mobile-header-button-wrap a:hover { background: var(--ebr-orange); color: var(--ebr-white); }
#mobile-header .mobile-toggle-open-container #mobile-toggle, #mobile-toggle.menu-toggle-open {
  width: 44px; height: 44px;
  background: var(--ebr-orange);
  color: var(--ebr-white);
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#mobile-toggle.menu-toggle-open svg { width: 22px; height: 22px; }

/* Mobile drawer (full-width navy panel) */
#mobile-drawer .drawer-inner { background: var(--ebr-navy); color: var(--ebr-white); }
#mobile-drawer .drawer-header { padding: 10px var(--ebr-gutter); min-height: 64px; display: flex; align-items: center; justify-content: flex-end; }
#mobile-drawer .drawer-header .menu-toggle-close { color: var(--ebr-white); }
#mobile-drawer .drawer-content { padding: 0 var(--ebr-gutter) 32px; }
#mobile-drawer .mobile-navigation { width: 100%; }
#mobile-drawer #mobile-menu { display: flex; flex-direction: column; }
#mobile-drawer #mobile-menu > li { border-bottom: 1px solid var(--ebr-rule-light); }
#mobile-drawer #mobile-menu > li > a, #mobile-drawer #mobile-menu > li > .drawer-nav-drop-wrap > a {
  font-family: var(--ebr-font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1;
  padding: 14px 0;
  color: var(--ebr-white);
  background: transparent;
  border: 0;
}
#mobile-drawer #mobile-menu > li > a:hover, #mobile-drawer #mobile-menu li a:hover { color: var(--ebr-orange-light); background: transparent; }
#mobile-drawer #mobile-menu .drawer-nav-drop-wrap { border: 0; }
#mobile-drawer #mobile-menu .drawer-sub-toggle { color: var(--ebr-white); border: 0; background: transparent; padding: 0 8px; }
#mobile-drawer #mobile-menu .drawer-sub-toggle svg { color: var(--ebr-orange-light); }
#mobile-drawer #mobile-menu ul.sub-menu { padding: 0 0 12px 12px; border-left: 2px solid var(--ebr-orange); margin-bottom: 12px; }
#mobile-drawer #mobile-menu ul.sub-menu li a {
  color: var(--ebr-white-85);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 0;
  border: 0;
  background: transparent;
}
#mobile-drawer #mobile-menu li.ebr-menu-call { border: 0; margin-top: 20px; }
#mobile-drawer #mobile-menu li.ebr-menu-call > a {
  font-family: var(--ebr-font-body);
  text-transform: none;
  background: var(--ebr-orange);
  color: var(--ebr-white);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  display: block;
  line-height: 1.2;
}
#mobile-drawer #mobile-menu li.ebr-menu-call > a:hover { background: var(--ebr-white); color: var(--ebr-navy); }

/* Sticky header */
#masthead .kadence-sticky-header.item-is-fixed { box-shadow: 0 6px 30px rgba(11, 18, 51, .3); }

/* ---------------------------------------------------------------------------
   Title bar / hero (every template except home and contact)
   ------------------------------------------------------------------------- */
.ebr-hero {
  position: relative;
  background: var(--ebr-navy);
  color: var(--ebr-white);
  overflow: hidden;
}
.ebr-hero__photo { position: absolute; inset: 0; z-index: 0; }
.ebr-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ebr-hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 18, 51, .95) 0%, rgba(11, 18, 51, .78) 50%, rgba(11, 18, 51, .25) 100%); }
.ebr-hero--archive .ebr-hero__photo { opacity: .45; }
.ebr-hero--archive .ebr-hero__shade { background: linear-gradient(0deg, rgba(11, 18, 51, .9) 0%, rgba(11, 18, 51, .4) 100%); }
.ebr-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.ebr-hero--compact .ebr-hero__inner { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); gap: 16px; }
.ebr-hero__title { font-size: var(--ebr-h1); line-height: .86; max-width: 12ch; text-wrap: balance; }
.ebr-hero--compact .ebr-hero__title { font-size: clamp(36px, 5vw, 72px); max-width: 20ch; }
.ebr-hero__title em, .ebr-hero__title strong { font-style: normal; font-weight: inherit; }
.ebr-kicker { order: -2; margin: 0; font-weight: 700; font-size: var(--ebr-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ebr-orange-light); }
/* Breadcrumb trail: its own slim strip above the hero on every page but home, one line
   (Heather's review, 2 Nov 2026). Long trails end in an ellipsis instead of wrapping. */
.ebr-crumbstrip { background: var(--ebr-navy); color: var(--ebr-white); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ebr-crumbstrip > .ebr-container { padding-top: 14px; padding-bottom: 14px; }
.ebr-crumbstrip .ebr-breadcrumbs { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.ebr-crumbstrip .ebr-breadcrumbs li { flex: none; }
.ebr-crumbstrip .ebr-breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ebr-breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
  font-size: var(--ebr-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ebr-white);
}
.ebr-breadcrumbs li + li::before { content: '/'; opacity: .5; margin-right: 10px; }
.ebr-breadcrumbs a { color: var(--ebr-orange-light); }
.ebr-breadcrumbs [aria-current] { color: var(--ebr-white); pointer-events: none; }
.ebr-breadcrumbs a:hover { color: var(--ebr-white); }

/* ---------------------------------------------------------------------------
   Article body (service pages, area pages, local pages, articles)
   ------------------------------------------------------------------------- */
.ebr-article { min-width: 0; }
.ebr-article__date { margin: 0 0 20px; }
.ebr-article__date time { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ebr-orange); }
.ebr-featured { margin: 0 0 28px; }
.ebr-featured img { display: block; width: 100%; max-width: 760px; height: auto; }
.ebr-entry { font-size: 17px; line-height: 1.7; color: var(--ebr-body); display: flow-root; }
.ebr-entry > *:first-child { margin-top: 0; }
.ebr-entry > p, .ebr-entry > div, .ebr-entry > ul, .ebr-entry > ol { margin: 0 0 18px; }
.ebr-entry > p:first-child, .ebr-entry > div:first-of-type:not(:empty) {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ebr-navy);
  font-weight: 500;
}
.ebr-entry h2 { font-size: clamp(34px, 4vw, 44px); line-height: .92; margin: 40px 0 16px; color: var(--ebr-navy); }
.ebr-entry h3 { font-size: clamp(28px, 3.2vw, 38px); line-height: .95; margin: 32px 0 14px; color: var(--ebr-navy); }
.ebr-entry h4, .ebr-entry h5, .ebr-entry h6 { color: var(--ebr-navy); margin: 24px 0 10px; }
.ebr-entry strong { color: var(--ebr-navy); }
.ebr-entry a { font-weight: 600; border-bottom: 2px solid currentColor; }
.ebr-entry a:hover { color: var(--ebr-orange); }
.ebr-entry img { height: auto; }
.ebr-entry ul, .ebr-entry ol { padding-left: 1.2em; }
.ebr-entry ul > li, .ebr-entry ol > li { margin: 0 0 8px; }
/* Lists of headings (the old site's "service list" pattern): numbered rows with rules */
.ebr-entry { counter-reset: ebr; }
.ebr-entry ul:has(> li > h3) {
  list-style: none;
  padding: 0;
  margin: 8px 0 28px;
  border-top: 2px solid var(--ebr-navy);
}
.ebr-entry ul:has(> li > h3) + ul:has(> li > h3) { margin-top: -30px; border-top: 0; }
.ebr-entry :is(h2, h3, p) + ul:has(> li > h3) { counter-reset: ebr; }
.ebr-entry ul:has(> li > h3) > li {
  counter-increment: ebr;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 18px 0;
  margin: 0;
  border-bottom: 2px solid var(--ebr-navy);
}
.ebr-entry ul:has(> li > h3) > li::before {
  content: counter(ebr, decimal-leading-zero);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ebr-orange);
  padding-top: 3px;
}
.ebr-entry ul:has(> li > h3) > li > h3 {
  font-family: var(--ebr-font-body);
  text-transform: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}
/* Plain bullet lists become check lists */
.ebr-entry ul:not(:has(> li > h3)):not(.list_check) { list-style: none; padding: 0; }
.ebr-entry ul:not(:has(> li > h3)):not(.list_check) > li { position: relative; padding-left: 26px; }
.ebr-entry ul:not(:has(> li > h3)):not(.list_check) > li::before { content: '\2713'; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--ebr-orange); }
/* Captioned images */
.ebr-entry .wp-caption, .ebr-entry figure { max-width: 100%; margin: 24px 0; background: var(--ebr-white); }
.ebr-entry .wp-caption.alignright, .ebr-entry figure.alignright { float: right; margin: 8px 0 20px 28px; max-width: min(100%, 360px); }
.ebr-entry .wp-caption.alignleft, .ebr-entry figure.alignleft { float: left; margin: 8px 28px 20px 0; max-width: min(100%, 360px); }
.ebr-entry .wp-caption img, .ebr-entry figure img { display: block; width: 100%; height: auto; }
.ebr-entry .wp-caption-text, .ebr-entry figcaption {
  padding: 12px 16px;
  font-weight: 700;
  font-size: var(--ebr-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ebr-body-2);
  text-align: left;
  margin: 0;
}
@media (max-width: 640px) {
  .ebr-entry .wp-caption.alignright, .ebr-entry figure.alignright, .ebr-entry .wp-caption.alignleft, .ebr-entry figure.alignleft { float: none; margin: 20px 0; max-width: 100%; }
}
/* Embedded video and maps */
.ebr-entry p:has(> iframe:only-child) { position: relative; aspect-ratio: 16 / 9; background: var(--ebr-navy); margin: 24px 0; }
.ebr-entry p:has(> iframe:only-child) > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* A paragraph holding only a link ("Roof repair service area") is marked up as a button by ebr_split_content() */
.ebr-entry .ebr-entry__cta { margin-top: 8px; }
.ebr-entry .ebr-entry__cta .ebr-btn { border: 0; }
.ebr-entry .ebr-entry__cta .ebr-btn::after { content: '\2192'; }
/* Old inline styles from the builder era */
.ebr-entry [style*="text-align: center"] { text-align: left; }
.ebr-entry .list_check { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ebr-entry .list_check li { margin: 0; }
.ebr-entry .list_check li a { display: block; border: 2px solid var(--ebr-navy); padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ebr-navy); }
.ebr-entry .list_check li a:hover { background: var(--ebr-navy); color: var(--ebr-white); }

/* ---------------------------------------------------------------------------
   Sidebar (Kadence prints <aside id="secondary" class="primary-sidebar">)
   ------------------------------------------------------------------------- */
.primary-sidebar.widget-area { padding: 0; }
.primary-sidebar .sidebar-inner-wrap { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.ebr-sidebar-nav { display: contents; }
.ebr-sidebar-call {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--ebr-orange);
  color: var(--ebr-white);
  padding: 28px 24px;
}
.ebr-sidebar-call:hover { background: var(--ebr-navy); color: var(--ebr-white); }
.ebr-sidebar-call__label { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: 56px; line-height: .9; }
.ebr-sidebar-call__number { font-family: var(--ebr-font-display-wide); font-weight: 800; font-size: 34px; line-height: 1; }
.primary-sidebar .widget { margin: 0; padding: 0; }
.primary-sidebar .widget_text .textwidget > p, .primary-sidebar .widget_custom_html .textwidget > p { margin: 0; }
.primary-sidebar .list_check, .primary-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--ebr-navy);
  display: flex;
  flex-direction: column;
}
.primary-sidebar .list_check li, .primary-sidebar .widget ul li { margin: 0; border-bottom: 1px solid var(--ebr-rule-light); }
.primary-sidebar .list_check li a, .primary-sidebar .widget ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--ebr-white);
  font-weight: 600;
  font-size: 15px;
}
.primary-sidebar .list_check li a::before, .primary-sidebar .widget ul li a::before { content: '\2713'; color: var(--ebr-orange); font-weight: 800; }
.primary-sidebar .list_check li a:hover, .primary-sidebar .widget ul li a:hover { color: var(--ebr-orange-light); background: rgba(255, 255, 255, .04); }
.primary-sidebar img { display: block; max-width: 100%; height: auto; }

/* ---------------------------------------------------------------------------
   Archive listing (category, tag, author)
   ------------------------------------------------------------------------- */
.ebr-listing { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.ebr-listing__item { margin: 0; }
.ebr-card {
  background: var(--ebr-white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-top: 6px solid var(--ebr-navy);
  height: 100%;
  box-sizing: border-box;
}
.ebr-card__date { margin: 0; }
.ebr-card__date time { font-weight: 700; font-size: var(--ebr-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ebr-orange); }
.ebr-card__thumb img { display: block; width: 100%; height: auto; }
.ebr-card__title { font-size: 36px; line-height: .95; }
.ebr-card__title a { color: var(--ebr-navy); }
.ebr-card__title a:hover { color: var(--ebr-cobalt); }
.ebr-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--ebr-body-2); flex: 1; }
.ebr-card__excerpt p { margin: 0; }
.ebr-card__more { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ebr-cobalt); border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.ebr-card__more::after { content: '\2192'; }
.ebr-card__more:hover { color: var(--ebr-orange); }
.navigation.pagination { margin-top: 40px; }
.navigation.pagination .page-numbers { font-weight: 700; color: var(--ebr-navy); border: 2px solid var(--ebr-navy); padding: 10px 16px; margin-right: 6px; display: inline-block; }
.navigation.pagination .page-numbers.current { background: var(--ebr-navy); color: var(--ebr-white); }

/* ---------------------------------------------------------------------------
   Attachment and testimonial singles
   ------------------------------------------------------------------------- */
.ebr-attachment__inner { background: var(--ebr-white); padding: 24px; }
.ebr-attachment__link img { display: block; margin: 0 auto; width: auto; max-width: 100%; height: auto; }
.ebr-testimonial--single { max-width: 760px; }

/* Testimonial cards (home page block) */
.ebr-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ebr-testimonial {
  margin: 0;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
  background: var(--ebr-navy);
  color: var(--ebr-white);
  --mark: var(--ebr-orange-light);
  --rule: rgba(255, 255, 255, .15);
}
.ebr-testimonial--cobalt { background: var(--ebr-cobalt); --mark: var(--ebr-white); --rule: rgba(255, 255, 255, .3); }
.ebr-testimonial--white { background: var(--ebr-white); color: var(--ebr-navy); --mark: var(--ebr-orange); --rule: rgba(11, 18, 51, .15); }
.ebr-testimonial::before { content: '\201C'; font-family: var(--ebr-font-display); font-weight: 900; font-size: 120px; line-height: .6; height: 48px; display: block; color: var(--mark); }
.ebr-testimonial blockquote { margin: 0; padding: 0; border: 0; font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; text-wrap: pretty; flex: 1; font-style: normal; color: inherit; background: transparent; }
.ebr-testimonial blockquote p { margin: 0; }
.ebr-testimonial figcaption { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--rule); padding-top: 20px; }
.ebr-testimonial figcaption h5 { margin: 0; font-size: 17px; font-weight: 700; font-family: var(--ebr-font-body); text-transform: none; color: inherit; }
.ebr-testimonial__job { font-weight: 700; font-size: var(--ebr-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mark); }

/* ---------------------------------------------------------------------------
   404
   ------------------------------------------------------------------------- */
.ebr-404 { background: var(--ebr-navy); color: var(--ebr-white); }
.ebr-404 .ebr-container { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); display: flex; flex-direction: column; gap: 28px; }
.ebr-404__code { font-family: var(--ebr-font-display); font-weight: 900; font-size: clamp(140px, 26vw, 360px); line-height: .8; color: var(--ebr-orange); }
.ebr-404__title { font-size: clamp(44px, 6vw, 88px); }
.ebr-404__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ebr-404__actions .ebr-btn:not(.ebr-btn--outline)::after { content: '\2192'; }
body.error404 .content-area { padding: 0; }
body.error404 #primary { margin-top: 0; margin-bottom: 0; } /* the panel meets the strip and the footer (Heather's review) */
body.error404 #inner-wrap .site-container { max-width: none; padding: 0; }

/* ---------------------------------------------------------------------------
   Landing pages (home, about, roofing services, contact): block classes
   ------------------------------------------------------------------------- */
.ebr-section { padding-top: var(--ebr-section); padding-bottom: var(--ebr-section); }
.ebr-section--sm { padding-top: var(--ebr-section-sm); padding-bottom: var(--ebr-section-sm); }
.ebr-section--white { background: var(--ebr-white); }
.ebr-section--navy { background: var(--ebr-navy); color: var(--ebr-white); }
.ebr-section--cobalt { background: var(--ebr-cobalt); color: var(--ebr-white); }
.ebr-section--orange { background: var(--ebr-orange); color: var(--ebr-navy); }
.ebr-section-title { font-size: var(--ebr-h2); }
.ebr-section-title .ebr-accent { color: var(--ebr-cobalt); }
.ebr-section--navy .ebr-section-title .ebr-accent, .ebr-hero__title .ebr-accent, .ebr-home-hero__title .ebr-accent, .ebr-split__title .ebr-accent, .ebr-hub-hero__title .ebr-accent { color: var(--ebr-orange); }
.ebr-landing-content > .wp-block-group { margin: 0; }
.ebr-landing-content .wp-block-group__inner-container { max-width: none; }
.ebr-landing-content h1, .ebr-landing-content h2, .ebr-landing-content h3, .ebr-landing-content h4, .ebr-landing-content h5, .ebr-landing-content h6 { color: inherit; }
/* Coloured headings inside landing sections (the rule above would otherwise win on specificity) */
.ebr-landing-content .ebr-intro__sub { color: var(--ebr-cobalt); }
.ebr-landing-content .ebr-company__label { color: var(--ebr-orange-light); }
.ebr-landing-content p { margin: 0; }
.ebr-grid { display: grid; gap: 48px 72px; align-items: start; }
.ebr-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ebr-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.ebr-stack { display: flex; flex-direction: column; gap: 20px; }
.ebr-lead { font-size: 19px; line-height: 1.55; color: var(--ebr-white-85); max-width: 46ch; }
.ebr-lead a { color: var(--ebr-orange-light); font-weight: 700; }

/* Home: hero */
.ebr-home-hero { position: relative; background: var(--ebr-navy); color: var(--ebr-white); overflow: hidden; display: block; }
.ebr-home-hero__photo { position: absolute; inset: 0; z-index: 0; }
.ebr-home-hero__photo img { object-position: 60% 40%; }
.ebr-home-hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 18, 51, .94) 0%, rgba(11, 18, 51, .78) 42%, rgba(11, 18, 51, .15) 100%); }
.ebr-home-hero__inner { position: relative; z-index: 2; padding-top: clamp(90px, 13vw, 170px); padding-bottom: clamp(90px, 11vw, 150px); }
.ebr-home-hero__title { font-size: var(--ebr-h1); line-height: .86; max-width: 9ch; text-wrap: balance; }
.ebr-home-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 48px; margin-top: 40px; }
.ebr-home-hero__call { display: flex; flex-direction: column; gap: 6px; }
.ebr-home-hero__call-label { font-weight: 500; font-size: clamp(17px, 1.6vw, 21px); color: var(--ebr-white-85); }
.ebr-home-hero__number { font-family: var(--ebr-font-display-wide); font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--ebr-white); letter-spacing: -.01em; }
.ebr-home-hero__number:hover { color: var(--ebr-orange-light); }
.ebr-home-hero__cta { display: inline-flex; align-items: center; gap: 14px; background: var(--ebr-orange); color: var(--ebr-white); padding: 20px 28px; font-weight: 700; font-size: 17px; }
.ebr-home-hero__cta:hover { background: var(--ebr-white); color: var(--ebr-navy); }
.ebr-home-hero__cta::after { content: '\2192'; font-size: 22px; line-height: 1; }

/* Home: marquee (decorative; the words are CSS generated content, not page text) */
.ebr-marquee { background: var(--ebr-orange); color: var(--ebr-navy); overflow: hidden; border-bottom: 3px solid var(--ebr-navy); }
.ebr-marquee__track { display: flex; width: max-content; animation: ebrMarquee 38s linear infinite; }
.ebr-marquee__track > span::before {
  content: attr(data-text);
  display: block;
  padding: 18px 0 18px 28px;
  font-family: var(--ebr-font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
}
@keyframes ebrMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ebr-marquee__track { animation: none; } }

/* Home: intro */
.ebr-intro__title { font-size: clamp(52px, 7vw, 104px); }
.ebr-intro__sub { font-family: var(--ebr-font-body); text-transform: none; font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--ebr-cobalt); text-wrap: pretty; margin: 0; }
.ebr-intro__text { margin: 8px 0 0; font-size: 17px; line-height: 1.6; color: var(--ebr-body-2); max-width: 48ch; }
.ebr-points { list-style: none; margin: 0; padding: 0; counter-reset: ebr; }
.ebr-points > li { counter-increment: ebr; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 2px solid var(--ebr-navy); margin: 0; }
.ebr-points > li::before { content: counter(ebr, decimal-leading-zero); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ebr-orange); padding-top: 4px; }
.ebr-points > li > h3 { font-family: var(--ebr-font-body); text-transform: none; font-weight: 600; font-size: 19px; line-height: 1.45; margin: 0; text-wrap: pretty; }

/* Home: services grid */
.ebr-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 48px; counter-reset: ebr; }
.ebr-service { display: flex; flex-direction: column; background: var(--ebr-paper); color: var(--ebr-navy); counter-increment: ebr; transition: transform .25s, box-shadow .25s; }
.ebr-service:hover { transform: translateY(-6px); box-shadow: 0 18px 0 -8px var(--ebr-orange); color: var(--ebr-navy); }
.ebr-service__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ebr-navy); }
.ebr-service__media .ebr-picture, .ebr-service__media img { width: 100%; height: 100%; }
.ebr-service__media::after { content: counter(ebr, decimal-leading-zero); position: absolute; top: 0; left: 0; background: var(--ebr-navy); color: var(--ebr-white); font-weight: 700; font-size: 12px; letter-spacing: .06em; padding: 8px 10px; }
.ebr-service__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ebr-service__body h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; line-height: .95; margin: 0; font-size: 30px; display: flex; justify-content: space-between; gap: 12px; }
.ebr-service__body h2::after { content: '\2192'; color: var(--ebr-orange); }
.ebr-service__body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ebr-body-2); }
.ebr-service__image-only { display: none; }

/* Home: company section (navy) */
.ebr-promise { background: var(--ebr-orange); color: var(--ebr-navy); padding: 32px; }
.ebr-promise__title { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; line-height: .92; font-size: 38px; margin: 0 0 22px; }
.ebr-promise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ebr-promise li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(11, 18, 51, .25); font-weight: 600; font-size: 16px; margin: 0; }
.ebr-promise li::before { content: '\2713'; font-weight: 800; }
.ebr-company__label { font-family: var(--ebr-font-body); text-transform: uppercase; font-size: 13px; letter-spacing: .1em; color: var(--ebr-orange-light); margin: 0; font-weight: 700; }
.ebr-company__big { font-size: 22px; line-height: 1.4; font-weight: 500; text-wrap: pretty; margin: 0; }
.ebr-company__text { font-size: 16px; line-height: 1.65; color: var(--ebr-white-75); margin: 0; }
.ebr-company__call { margin: 8px 0 0; font-size: inherit; font-weight: inherit; }
.ebr-company__call a { display: block; font-family: var(--ebr-font-display-wide); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 3.6vw, 48px); line-height: 1; color: var(--ebr-white); }
.ebr-company__call a:hover { color: var(--ebr-orange-light); }
/* The number on its own line, spaced 0121 726 1024 by an empty spacer so the text stays "0121 7261024" as live */
.ebr-company__number { display: block; white-space: nowrap; }
.ebr-gap { display: inline-block; width: .28em; }
.ebr-company .ebr-btn { align-self: flex-start; }
.ebr-company .ebr-btn::after { content: '\2192'; }
.ebr-section--navy .ebr-section-title { max-width: 14ch; margin-bottom: 56px; }

/* Home: stats band */
.ebr-stats { background: var(--ebr-cobalt); color: var(--ebr-white); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ebr-stats__text { padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.ebr-stats__label { margin: 0; font-family: var(--ebr-font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.ebr-stats__row { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.ebr-stat { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ebr-stat strong { font-family: var(--ebr-font-display); font-weight: 900; font-size: clamp(96px, 12vw, 176px); line-height: .8; }
.ebr-stat--navy strong { color: var(--ebr-navy); }
.ebr-stat span { font-weight: 600; font-size: 18px; }
.ebr-stats__photo { min-height: 320px; position: relative; overflow: hidden; }
.ebr-stats__photo .ebr-picture { position: absolute; inset: 0; }

/* Home: testimonials heading row */
.ebr-testimonials-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.ebr-testimonials-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ebr-body-2); max-width: 40ch; }

/* About */
.ebr-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); background: var(--ebr-navy); color: var(--ebr-white); }
.ebr-split__text { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.ebr-split__title { font-size: clamp(56px, 7.5vw, 112px); line-height: .88; }
.ebr-split__photo { min-height: 380px; position: relative; overflow: hidden; }
.ebr-split__photo .ebr-picture { position: absolute; inset: 0; }
.ebr-areas-intro { font-weight: 600; font-size: 22px; line-height: 1.35; margin: 0; }
.ebr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ebr-chips li { background: var(--ebr-white); border: 2px solid var(--ebr-navy); padding: 10px 16px; font-weight: 600; font-size: 15px; margin: 0; }
.ebr-about-text { font-size: 18px; line-height: 1.65; color: var(--ebr-body); margin: 0; }
.ebr-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: ebr; }
.ebr-feature { padding: 48px 28px 52px 0; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid rgba(255, 255, 255, .2); counter-increment: ebr; }
.ebr-feature:last-child { border-right: 0; }
.ebr-feature::before { content: counter(ebr, decimal-leading-zero); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ebr-navy); background: var(--ebr-white); align-self: flex-start; padding: 6px 9px; }
.ebr-feature h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; line-height: .95; margin: 0; font-size: 36px; }
.ebr-feature p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 30ch; }
.ebr-recommended h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; line-height: .9; margin: 0; font-size: clamp(40px, 3.6vw, 52px); }
.ebr-recommended__score { display: flex; align-items: baseline; gap: 6px; color: var(--ebr-cobalt); font-family: var(--ebr-font-display); font-weight: 900; }
.ebr-recommended__score::before { content: '9.94'; font-size: 112px; line-height: .85; }
.ebr-recommended__score::after { content: '/10'; font-weight: 800; font-size: 40px; }
.ebr-recommended__big { font-weight: 600; font-size: 19px; line-height: 1.4; margin: 0; }
.ebr-recommended__text { font-size: 16px; line-height: 1.65; color: var(--ebr-body); margin: 0; }
.ebr-biglinks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ebr-navy); }
.ebr-biglinks li { border-bottom: 2px solid var(--ebr-navy); margin: 0; }
.ebr-biglinks li a { display: flex; justify-content: space-between; align-items: center; padding: 20px 4px; font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--ebr-navy); transition: padding .2s, color .2s; }
.ebr-biglinks li a::after { content: '\2713'; color: var(--ebr-orange); }
.ebr-biglinks li a:hover { color: var(--ebr-orange); padding-left: 12px; }

/* Roofing services hub */
.ebr-hub-hero { background: var(--ebr-navy); color: var(--ebr-white); padding: clamp(40px, 6vw, 96px) 0 clamp(48px, 6vw, 80px); }
.ebr-hub-hero .ebr-container { display: flex; flex-direction: column; gap: 28px; }
.ebr-hub-hero__title { font-size: clamp(56px, 9vw, 140px); line-height: .86; max-width: 12ch; }
.ebr-hub-hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ebr-white-85); max-width: 52ch; }
.ebr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; counter-reset: ebr; margin: 0; padding: 0; list-style: none; }
.ebr-tile { position: relative; display: block; aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--ebr-navy); color: var(--ebr-white); counter-increment: ebr; }
.ebr-tile:hover { color: var(--ebr-white); box-shadow: inset 0 -8px 0 var(--ebr-orange); }
.ebr-tile .ebr-picture { position: absolute; inset: 0; opacity: .75; }
.ebr-tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 51, 0) 30%, rgba(11, 18, 51, .92) 100%); }
.ebr-tile::before { content: counter(ebr, decimal-leading-zero); position: absolute; top: 16px; left: 16px; z-index: 2; font-weight: 700; font-size: 12px; letter-spacing: .06em; background: var(--ebr-orange); color: var(--ebr-navy); padding: 6px 9px; }
.ebr-tile__label { position: absolute; left: 22px; right: 22px; bottom: 24px; z-index: 2; font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: .92; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ebr-tile__label::after { content: '\2192'; color: var(--ebr-orange); font-size: 32px; }

/* Contact */
.ebr-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.ebr-contact-form h1 { font-size: clamp(52px, 6.5vw, 92px); margin: 0 0 18px; }
.ebr-contact-form .wpcf7 form { display: flex; flex-wrap: wrap; gap: 14px; }
.ebr-contact-form .wpcf7 .column { width: 100%; margin: 0; }
.ebr-contact-form .wpcf7 .column.one-second { width: calc(50% - 7px); }
@media (max-width: 560px) { .ebr-contact-form .wpcf7 .column.one-second { width: 100%; } }
.ebr-contact-form .wpcf7 .column p { margin: 0; }
.ebr-contact-form .wpcf7 .wpcf7-form-control-wrap { display: block; }
.ebr-contact-form .wpcf7 input[type="text"], .ebr-contact-form .wpcf7 input[type="email"], .ebr-contact-form .wpcf7 textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 18px;
  border: 2px solid var(--ebr-navy);
  border-radius: 0;
  background: var(--ebr-white);
  color: var(--ebr-navy);
  box-shadow: none;
}
.ebr-contact-form .wpcf7 textarea { resize: vertical; min-height: 180px; }
.ebr-contact-form .wpcf7 input:focus, .ebr-contact-form .wpcf7 textarea:focus { border-color: var(--ebr-cobalt); box-shadow: 0 0 0 3px rgba(35, 64, 255, .2); outline: none; }
.ebr-contact-form .wpcf7 input[type="submit"] {
  background: var(--ebr-orange);
  color: var(--ebr-white);
  border: 0;
  border-radius: 0;
  padding: 18px 28px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: none;
}
.ebr-contact-form .wpcf7 input[type="submit"]:hover { background: var(--ebr-navy); color: var(--ebr-white); }
.ebr-contact-form .wpcf7 .wpcf7-response-output { margin: 0; width: 100%; border: 2px solid var(--ebr-navy); padding: 12px 16px; }
.ebr-contact-form .wpcf7 .wpcf7-not-valid-tip { color: #b3261e; font-size: 14px; margin-top: 4px; display: block; }
.ebr-contact-call { background: var(--ebr-navy); color: var(--ebr-white); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; align-self: start; }
.ebr-contact-call h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; line-height: .9; margin: 0; font-size: 56px; color: var(--ebr-orange); }
.ebr-contact-call__lead { font-size: 20px; font-weight: 600; }
.ebr-contact-call p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.ebr-contact-call p strong, .ebr-contact-call p b { color: var(--ebr-white); }
.ebr-contact-call__number { margin-top: 8px; font-family: var(--ebr-font-display-wide); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--ebr-white); border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 24px; }
.ebr-contact-call__number:hover { color: var(--ebr-orange-light); }
.ebr-band { background: var(--ebr-cobalt); color: var(--ebr-white); overflow: hidden; }
.ebr-band .ebr-container { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.ebr-band h2 { margin: 0; }
.ebr-band h2 a { display: block; font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 5.5vw, 80px); line-height: .92; color: var(--ebr-white); text-wrap: balance; }
.ebr-band h2 a:hover { color: var(--ebr-navy); }
.ebr-band h2 a .ebr-accent { color: var(--ebr-navy); }
.ebr-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: start; }
.ebr-faq-head { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.ebr-faq-head h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; line-height: .9; margin: 0; font-size: clamp(48px, 5.5vw, 80px); }
.ebr-faq-head h6 { margin: 0; font-family: var(--ebr-font-body); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ebr-body-2); }
.ebr-faq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ebr-navy); min-width: 0; counter-reset: ebr; }
.ebr-faq > li { counter-increment: ebr; border-bottom: 2px solid var(--ebr-navy); display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 26px 0; margin: 0; }
.ebr-faq > li::before { content: counter(ebr); font-weight: 700; font-size: 14px; color: var(--ebr-orange); padding-top: 4px; }
.ebr-faq__body { display: flex; flex-direction: column; gap: 10px; }
.ebr-faq h3 { font-family: var(--ebr-font-body); text-transform: none; margin: 0; font-weight: 700; font-size: 20px; line-height: 1.3; }
.ebr-faq p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ebr-body); }
.ebr-map { height: clamp(360px, 50vw, 560px); background: var(--ebr-navy); }
.ebr-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* ---------------------------------------------------------------------------
   Footer (Kadence footer builder markup)
   ------------------------------------------------------------------------- */
#colophon.site-footer { background: var(--ebr-navy); color: var(--ebr-white); border-top: 6px solid var(--ebr-orange); }
#colophon .site-footer-row-container-inner { background: transparent; }
#colophon .site-container { max-width: var(--ebr-max); padding-left: var(--ebr-gutter); padding-right: var(--ebr-gutter); }
#colophon .site-middle-footer-inner-wrap { padding: clamp(56px, 7vw, 96px) 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px; }
#colophon .site-footer-section { display: flex; flex-direction: column; gap: 28px; }
#colophon .footer-widget-area { padding: 0; }
#colophon .footer-widget-area-inner { display: flex; flex-direction: column; gap: 20px; }
#colophon .widget { margin: 0; }
#colophon .widget-title { display: none; }
#colophon .widget_custom_html img, #colophon .widget_media_image img { display: block; height: auto; }
#colophon .widget_text .textwidget { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ebr-white-75); }
#colophon .widget_text .textwidget p { margin: 0; }
#colophon .widget_text .textwidget strong { display: block; margin-top: 16px; font-family: var(--ebr-font-display-wide); font-weight: 800; font-size: 40px; line-height: 1; color: var(--ebr-white); }
#colophon .widget_custom_html a.ebr-brand, #colophon .widget_custom_html a.ebr-brand:hover { color: var(--ebr-white); text-decoration: none; }
#colophon .ebr-brand--footer .ebr-brand__name { font-size: 28px; max-width: 10ch; }
#colophon .widget_custom_html iframe { width: 100%; height: 100%; min-height: 220px; aspect-ratio: 4 / 3; border: 0; display: block; filter: grayscale(.4); background: #1a2350; }
#colophon .footer-navigation-wrap { padding: 0; }
#colophon #footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
#colophon #footer-menu li { margin: 0; padding: 0; }
#colophon #footer-menu li a { display: flex; gap: 8px; color: var(--ebr-white-85); font-weight: 600; font-size: 14px; padding: 0; line-height: 1.4; background: transparent; }
#colophon #footer-menu li a::before { content: '\2713'; color: var(--ebr-orange); }
#colophon #footer-menu li a:hover { color: var(--ebr-orange-light); }
#colophon .widget_nav_menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
#colophon .widget_nav_menu ul ul { display: none; }
#colophon .widget_nav_menu li { margin: 0; }
#colophon .widget_nav_menu li a { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1.15; color: var(--ebr-white); }
#colophon .widget_nav_menu li a:hover { color: var(--ebr-orange); }
#colophon .ebr-footer-payments img { max-width: 200px; background: var(--ebr-white); padding: 4px; }
#colophon .site-bottom-footer-wrap { border-top: 1px solid var(--ebr-rule-light); }
#colophon .site-bottom-footer-inner-wrap { padding: 24px 0; }
#colophon .footer-html, #colophon .footer-html .footer-html-inner p { margin: 0; }
#colophon .footer-html .footer-html-inner p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, .6); }
#colophon .ebr-footer-social { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; font-size: var(--ebr-label); letter-spacing: .06em; text-transform: uppercase; }
#colophon .ebr-footer-social a { color: var(--ebr-white-75); }
#colophon .ebr-footer-social a:hover { color: var(--ebr-orange-light); }

/* ---------------------------------------------------------------------------
   Sticky call bar (phones only)
   ------------------------------------------------------------------------- */
.ebr-callbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 84px; }
  .ebr-callbar { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
  .ebr-callbar a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--ebr-orange);
    color: var(--ebr-white);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 10px 30px rgba(11, 18, 51, .35);
  }
  .ebr-callbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ebr-white); }
  body.showing-popup-drawer-from-full .ebr-callbar { display: none; }
}

/* ---------------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .ebr-grid, .ebr-grid--2, .ebr-grid--3 { gap: 32px; }
  .ebr-card__title { font-size: 30px; }
  .ebr-sidebar-call__label { font-size: 44px; }
  .primary-sidebar .sidebar-inner-wrap { position: static; }
  .ebr-feature { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 32px 0; }
  .ebr-tile__label { font-size: 32px; }
  .ebr-faq-head { position: static; }
}

/* Home intro: the paragraph follows the list in the DOM (as the old page ordered its copy) but sits under the heading */
.ebr-intro__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px 72px; align-items: start; grid-template-areas: "head list" "text list"; }
.ebr-intro__head { grid-area: head; display: flex; flex-direction: column; gap: 24px; }
.ebr-intro__grid > .ebr-points { grid-area: list; }
.ebr-intro__grid > .ebr-intro__text { grid-area: text; }
@media (max-width: 959px) { .ebr-intro__grid { grid-template-areas: "head" "text" "list"; gap: 32px; } }
/* Whole service card clickable through its heading link */
.ebr-service { position: relative; }
.ebr-service__body h2 a { color: inherit; }
.ebr-service__body h2 a::after { content: ''; position: absolute; inset: 0; }

/* Never break a word inside display headings (Kadence sets overflow-wrap on the body) */
.ebr-landing-content h1, .ebr-landing-content h2, .ebr-landing-content h3, .ebr-promise__title, .ebr-tile__label, .ebr-sidebar-call__label, .ebr-display, .ebr-hero__title, .ebr-home-hero__title, .ebr-section-title, .ebr-split__title, .ebr-hub-hero__title, .ebr-card__title, .ebr-entry h2, .ebr-entry h3, .ebr-404__title { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.ebr-home-hero__title, .ebr-hero__title { max-width: none; }
@media (max-width: 1100px) { :root { --ebr-h1: clamp(44px, 9.5vw, 120px); } }

/* ---------------------------------------------------------------------------
   Service pages: sectioned layouts (Heather's templates 4 and 5), content written as
   group blocks by staging-local/scripts/ebr-service-layouts.php
   ------------------------------------------------------------------------- */
body.ebr-service .content-area { padding: 0; }
body.ebr-service #primary { margin-top: 0; } /* no empty band between the hero and the first section (Heather's review) */
body.ebr-service #inner-wrap .site-container { max-width: none; padding: 0; }
body.ebr-service .content-container { display: block; }
body.ebr-service .content-wrap { max-width: none; }
.ebr-service-page .wp-block-group { margin: 0; }

/* Hero: the title-bar text as the big display line (H1 in the intro below) ... */
.ebr-kicker--display {
  order: 0;
  font-family: var(--ebr-font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: var(--ebr-h1);
  line-height: .86;
  letter-spacing: 0;
  color: var(--ebr-white);
  max-width: 12ch;
  text-wrap: balance;
  overflow-wrap: normal;
}
.ebr-kicker--display .ebr-accent { color: var(--ebr-orange); }
/* ... or the content heading and its lead inside the hero (template 5) */
.ebr-svc--hero { display: flex; flex-direction: column; gap: 24px; }
.ebr-svc--hero h1 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(50px, 10vw, 152px); line-height: .86; margin: 0; max-width: 10ch; text-wrap: balance; color: var(--ebr-white); overflow-wrap: normal; }
.ebr-svc--hero h1 .ebr-accent { color: var(--ebr-orange); }
.ebr-svc--hero p { margin: 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; max-width: 44ch; color: rgba(255, 255, 255, .9); }
.ebr-svc--hero p a { color: var(--ebr-orange-light); font-weight: 700; }
@media (max-width: 1100px) { .ebr-svc--hero h1 { font-size: clamp(44px, 9.5vw, 120px); } }

/* Two-column sections: intro (H1 + lead | label + numbered rows) and rows (heading | rows) */
.ebr-svc--intro, .ebr-svc--rows { padding: clamp(56px, 7vw, 96px) 0; }
.ebr-svc--rows + .ebr-svc--rows { padding-top: 0; }
.ebr-svc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 72px; align-items: start; }
.ebr-svc__left, .ebr-svc__right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ebr-svc--intro h1 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 6vw, 88px); line-height: .9; margin: 0; color: var(--ebr-navy); overflow-wrap: normal; }
.ebr-svc--intro h1 .ebr-accent { color: var(--ebr-cobalt); }
.ebr-svc--intro .ebr-svc__left p { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; max-width: 40ch; color: var(--ebr-navy); }
.ebr-svc--intro .ebr-svc__right h2 { margin: 0 0 8px; font-family: var(--ebr-font-body); text-transform: uppercase; font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--ebr-orange); }
.ebr-svc--rows .ebr-svc__left h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 4.5vw, 64px); line-height: .92; margin: 0; color: var(--ebr-navy); overflow-wrap: normal; }
.ebr-svc--rows .ebr-svc__right p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ebr-body); }
.ebr-svc--rows .ebr-svc__right > p:first-child { font-weight: 600; font-size: 18px; color: var(--ebr-navy); }
.ebr-svc__right ul:has(> li > h3) { list-style: none; margin: 0; padding: 0; counter-reset: ebr; border-top: 2px solid var(--ebr-navy); }
.ebr-svc__right ul:has(> li > h3) > li { counter-increment: ebr; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; margin: 0; border-bottom: 2px solid var(--ebr-navy); }
.ebr-svc__right ul:has(> li > h3) > li::before { content: counter(ebr, decimal-leading-zero); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ebr-orange); padding-top: 3px; }
.ebr-svc__right ul:has(> li > h3) > li > h3 { font-family: var(--ebr-font-body); text-transform: none; font-weight: 600; font-size: 18px; line-height: 1.45; margin: 0; color: var(--ebr-navy); }
.ebr-svc__right ul:has(> li > h3) > li > h3 a { border-bottom: 2px solid currentColor; }

/* Cobalt band: heading + chips + paragraph */
.ebr-svc--band { background: var(--ebr-cobalt); color: var(--ebr-white); }
.ebr-svc--band > .ebr-container { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 28px; }
.ebr-svc--band h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 4.5vw, 64px); line-height: .92; margin: 0; max-width: 18ch; color: inherit; overflow-wrap: normal; }
.ebr-svc--band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ebr-svc--band ul li { margin: 0; }
.ebr-svc--band ul li h3 { margin: 0; border: 2px solid var(--ebr-white); padding: 12px 18px; font-family: var(--ebr-font-body); text-transform: none; font-weight: 700; font-size: 16px; line-height: 1.3; color: inherit; }
.ebr-svc--band p { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.5; max-width: 52ch; }

/* Orange band with numbered cards (the Emergency template) */
.ebr-svc--band-orange { background: var(--ebr-orange); color: var(--ebr-navy); }
.ebr-svc--band-orange > .ebr-container { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head intro" "list list"; gap: 36px 24px; align-items: end; }
.ebr-svc--band-orange h2 { grid-area: head; font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 6vw, 88px); line-height: .9; margin: 0; color: inherit; overflow-wrap: normal; }
.ebr-svc--band-orange p { grid-area: intro; margin: 0; font-weight: 600; font-size: 18px; }
.ebr-svc--band-orange ul { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 3px; background: var(--ebr-navy); border: 3px solid var(--ebr-navy); counter-reset: ebr; }
.ebr-svc--band-orange ul li { counter-increment: ebr; background: var(--ebr-orange); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 150px; margin: 0; }
.ebr-svc--band-orange ul li::before { content: counter(ebr, decimal-leading-zero); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.ebr-svc--band-orange ul li h3 { margin: 0; font-family: var(--ebr-font-body); text-transform: none; font-weight: 700; font-size: 21px; line-height: 1.25; color: inherit; }
@media (max-width: 767px) { .ebr-svc--band-orange > .ebr-container { grid-template-columns: 1fr; grid-template-areas: "head" "intro" "list"; } }

/* Narrow text block between full-width sections */
.ebr-svc--text > .ebr-container { max-width: 900px; padding-top: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 16px; }
.ebr-svc--text h2 { font-family: var(--ebr-font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 4.5vw, 64px); line-height: .92; margin: 0; color: var(--ebr-navy); overflow-wrap: normal; }
.ebr-svc--text p { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--ebr-navy); }

/* Article beside the sidebar */
.ebr-svc-main { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: clamp(56px, 7vw, 96px); padding-bottom: var(--ebr-section-sm); }
.ebr-svc-main__article { flex: 1 1 560px; min-width: 0; }
.ebr-svc-main > .primary-sidebar { flex: 1 1 280px; max-width: 380px; }
.ebr-svc--article > p:first-child:empty, .ebr-svc--article > p:first-child:has(> br:only-child) { display: none; }

/* Numbered cards (runs of heading + paragraph) */
.ebr-cards-run { counter-reset: ebr; margin: 16px 0 24px; display: flex; flex-direction: column; gap: 24px; clear: both; }
.ebr-svc--band h2.ebr-long, .ebr-svc--rows .ebr-svc__left h2.ebr-long, .ebr-svc--text h2.ebr-long { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05; max-width: 32ch; text-transform: none; }
.ebr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ebr-card-item { background: var(--ebr-white); padding: 26px; display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--ebr-navy); counter-increment: ebr; }
.ebr-card-item::before { content: counter(ebr, decimal-leading-zero); font-family: var(--ebr-font-display); font-weight: 900; font-size: 48px; line-height: .8; color: var(--ebr-orange); }
.ebr-entry .ebr-card-item h3 { margin: 0; font-size: 28px; line-height: .95; }
.ebr-entry .ebr-card-item p { margin: 0; font-size: 15px; line-height: 1.6; }
.ebr-cards-run > .ebr-embed { margin: 0; }
.ebr-embed { position: relative; aspect-ratio: 16 / 9; background: var(--ebr-navy); margin: 24px 0; }
.ebr-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
