/* ===================== */
/* Variables & Base Setup */
/* ===================== */
:root {
  --mainPrimary: #2e5f33;
  --mainSecondary: #12a1e2;
  --mainAccent: #e7bf50;
  --titleFont: 'Merriweather Sans', sans-serif;
  --bodyFont: 'Open Sans', sans-serif;
  --mainPrimaryDark: color-mix(in srgb, var(--mainPrimary) 50%, black);
}

/* Root rem scaling: 1rem = 10px */
html { font-size: 62.5%; }

body {
  font-size: 1.6rem;
  font-family: var(--bodyFont);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 140rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================== */
/* Header Styles         */
/* ===================== */
.site-header {
  background: #ffffff;
  padding: 1.5rem 0;
  box-shadow: 0 0.2rem 0.2rem rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 0.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  z-index: 1001;
  pointer-events: none;
}

.site-logo img { display: block; height: 7.5rem; width: auto; }

/* Header container flex layout */
.site-header .container,
.hpe-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================== */
/* Navigation Styles     */
/* ===================== */
.main-nav .nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0;
  margin: 0;
}
.main-nav .nav-menu li { position: relative; }
.main-nav .nav-menu li a {
  text-decoration: none;
  color: var(--mainPrimary);
  font-family: var(--titleFont);
  font-weight: 400;
  font-size: 1.6rem;
  padding: 1rem 0;
  transition: color 0.3s ease;
  display: block;
}
.main-nav .nav-menu li a:hover { color: var(--mainSecondary); }

/* Contact Button */
.nav-cta .btn-contact {
  background-color: var(--mainAccent);
  color: var(--mainPrimary) !important;
  font-weight: 600 !important;
  padding: 1.2rem 2.4rem !important;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}
.nav-cta .btn-contact:hover {
  background-color: var(--mainPrimary);
  color: #fff !important;
}

/* Standard Dropdown */
.dropdown .dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 0.1rem solid var(--mainPrimary);
  border-top: none;
  border-radius: 0 0 1.5rem 1.5rem;
  min-width: 20rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-1rem);
  transition: all 0.3s ease;
  list-style: none;
  padding: 1rem 0;
  margin: 3.4rem 0 0;
  z-index: 999;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown .dropdown-menu li a {
  padding: 1.2rem 2rem;
  border-bottom: 0.1rem solid #f0f0f0;
  font-weight: 400;
}
.dropdown .dropdown-menu li:last-child a { border-bottom: none; }
.dropdown .dropdown-menu li a:hover { background-color: #f8f9fa; color: var(--mainSecondary); }

/* Mega Dropdown */
.mega-dropdown .mega-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-1rem);
  background: #fff;
  border: 0.1rem solid var(--mainPrimary);
  border-top: none;
  border-radius: 0 0 1.5rem 1.5rem;
  width: 100rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 3.4rem;
  z-index: 900;
}
.mega-dropdown:hover .mega-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-dropdown-content { display: flex; padding: 3rem; gap: 2rem; }
.mega-column { flex: 1; }
.mega-column h4 {
  font-family: var(--titleFont);
  font-weight: 600;
  color: var(--mainPrimary);
  margin: 0 0 1.5rem 0;
  font-size: 1.6rem;
  border-bottom: 0.2rem solid var(--mainAccent);
  padding-bottom: 0.8rem;
}
.mega-column ul { list-style: none; padding: 0; margin: 0; }
.mega-column ul li { margin-bottom: 0rem; }
.mega-column ul li a {
  font-family: var(--bodyFont);
  font-size: 1.4rem;
  color: #666;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.mega-column ul li a:hover { color: var(--mainSecondary); }

/* Mega dropdown footer link */
.mega-dropdown-footer { text-align: center; padding: 1.5rem 0 2rem; border-top: 0.1rem solid #eee; }
.mega-dropdown-footer a {
  font-family: var(--titleFont);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--mainSecondary);
  transition: color 0.3s ease;
}
.mega-dropdown-footer a:hover { color: var(--mainPrimary); }

/* Dropdown Toggle Arrows */
.dropdown-toggle::after {
  content: "▾"; margin-left: 0.8rem; font-size: 1.2rem; transition: transform 0.3s ease;
}
.dropdown:hover .dropdown-toggle::after,
.mega-dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }

/* ===================== */
/* Footer Styles (dual)  */
/* ===================== */
.site-footer,
.hpe-footer {
  background: var(--mainPrimaryDark);
  color: #fff;
  font-family: var(--bodyFont);
}
.site-footer *,.hpe-footer *{ box-sizing: border-box; }
.site-footer a,.hpe-footer a{ color: inherit; text-decoration: none; }
.site-footer img,.hpe-footer img{ max-width: 100%; height: auto; display: block; }

/* inner width + gutters */
.site-footer .footer-wrap,
.hpe-footer .footer-wrap {
  max-width: 140rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* contact section */
.site-footer .footer-contact,
.hpe-footer .footer-contact {
  padding: 4.8rem 0 2.4rem;
  text-align: center;
}
.site-footer .footer-contact h3,
.hpe-footer .footer-contact h3 {
  font-family: var(--titleFont);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  line-height: 1.2;
}
.site-footer .footer-contact p,
.hpe-footer .footer-contact p { margin: 0 0 2.4rem 0; opacity: .95; }

/* form */
.site-footer .footer-form,
.hpe-footer .footer-form { width: 60%; max-width: 82rem; margin: 0 auto; }
.site-footer .footer-form .form-row,
.hpe-footer .footer-form .form-row { margin-bottom: 1.4rem; }
.site-footer .footer-form input,
.site-footer .footer-form textarea,
.hpe-footer .footer-form input,
.hpe-footer .footer-form textarea {
  width: 100%; background: transparent; border: 0.15rem solid #fff; color: #fff;
  border-radius: 1.2rem; padding: 1.2rem 1.4rem; font-size: 1.6rem; outline: none; caret-color: #fff; text-align: left;
}
.site-footer .footer-form input::placeholder,
.site-footer .footer-form textarea::placeholder,
.hpe-footer .footer-form input::placeholder,
.hpe-footer .footer-form textarea::placeholder { color: rgba(255,255,255,.85); }
.site-footer .footer-form input:focus,
.site-footer .footer-form textarea:focus,
.hpe-footer .footer-form input:focus,
.hpe-footer .footer-form textarea:focus { box-shadow: 0 0 0 0.3rem rgba(255,255,255,.2); }
.site-footer .footer-form .btn-accent,
.hpe-footer .footer-form .btn-accent {
  background: var(--mainAccent); color: var(--mainPrimary); font-weight: 800; font-size: 1.5rem;
  border: none; border-radius: 1.5rem; padding: 1.2rem 2.2rem; cursor: pointer;
  transition: transform .08s ease, opacity .2s ease, background .2s ease;
  display: block; margin: .6rem auto 0; width: 50%;
}
.site-footer .footer-form .btn-accent:hover,
.hpe-footer .footer-form .btn-accent:hover { opacity: .95; }
.site-footer .footer-form .btn-accent:active,
.hpe-footer .footer-form .btn-accent:active { transform: translateY(.1rem); }

/* error box */
.site-footer .form-errors,
.hpe-footer .form-errors {
  width: 60%; max-width: 50rem; margin: 0 auto 2rem; padding: 1rem;
  border: 0.1rem solid #fff; border-radius: 0.8rem; color: #fff; font-size: 1.5rem; text-align: left;
}
.site-footer .form-errors strong,
.hpe-footer .form-errors strong { display: block; text-align: center; margin-bottom: .8rem; font-weight: 600; }
.site-footer .form-errors ul,
.hpe-footer .form-errors ul { list-style: disc; padding-left: 2rem; margin: 0; }

/* links row */
.site-footer .footer-links,
.hpe-footer .footer-links { padding: 2.4rem 0 .8rem; border-top: 0.1rem solid rgba(255,255,255,.15); }
.site-footer .footer-grid,
.hpe-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* brand + socials */
.site-footer .footer-brand .footer-logo img,
.hpe-footer .footer-brand .footer-logo img {
  height: 5.6rem; width: auto; filter: brightness(0) invert(1);
}
.site-footer .footer-socials,
.hpe-footer .footer-socials { margin-top: 1.4rem; display: flex; gap: 1.4rem; }
.site-footer .footer-socials .social,
.hpe-footer .footer-socials .social { color: #fff; opacity: .9; display: inline-flex; line-height: 1; transition: opacity .2s, transform .08s; }
.site-footer .footer-socials .social:hover,
.hpe-footer .footer-socials .social:hover { opacity: 1; transform: translateY(-.1rem); }
.site-footer .footer-socials svg,
.hpe-footer .footer-socials svg { display: block; }

/* menus */
.site-footer .footer-menus,
.hpe-footer .footer-menus { display: grid; grid-template-columns: repeat(2, minmax(16rem,1fr)); gap: 3rem 5rem; }
.site-footer .footer-heading,
.hpe-footer .footer-heading { font-family: var(--titleFont); font-size: 1.6rem; font-weight: 700; margin: 0 0 .8rem 0; color: #fff; opacity: .95; }
.site-footer .footer-menu ul,
.hpe-footer .footer-menu ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-menu li,
.hpe-footer .footer-menu li { margin: .8rem 0; }
.site-footer .footer-menu a,
.hpe-footer .footer-menu a { color: #fff; opacity: .9; text-decoration: none; font-size: 1.5rem; transition: opacity .2s, text-decoration-color .2s; text-decoration-color: transparent; }
.site-footer .footer-menu a:hover,
.hpe-footer .footer-menu a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: .1rem; }

/* copyright */
.site-footer .footer-copy,
.hpe-footer .footer-copy { padding: 1.4rem 0 2.8rem; border-top: 0.1rem solid rgba(255,255,255,.15); margin-top: .8rem; text-align: center; }
.site-footer .footer-copy p,
.hpe-footer .footer-copy p { margin: 0; font-size: 1.4rem; opacity: .9; }

/* ===================== */
/* Responsive            */
/* ===================== */
@media (max-width:1024px) {
  /* Header: keep row, show burger, hide desktop nav */
  .site-header .container { display: flex; flex-direction: row; align-items: center; gap: 1.2rem; }
  .nav-toggle { display: inline-block; }
  .site-header .main-nav { display: none; }

  /* Footer form widths */
  .site-footer .footer-form { width: 80%; }
  .site-footer .footer-form .btn-accent { width: 75%; }
}

@media (max-width:768px) {
  /* If you have a global .container stack rule elsewhere, this re-asserts header row */
  .site-header .container { flex-direction: row !important; justify-content: space-between !important; }

  .mega-dropdown .mega-dropdown-menu { width: 90vw; max-width: 50rem; }
  .mega-dropdown-content { flex-direction: column; gap: 2rem; }

  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .site-footer .footer-form { width: 100%; }
  .site-footer .footer-form .btn-accent { width: 75%; }
  .site-footer .form-errors { width: 100%; }
  .site-footer .footer-menus { grid-template-columns: 1fr 1fr; gap: 1.8rem 2.8rem; }
}

@media (max-width:520px) {
  .site-footer .footer-menus { grid-template-columns: 1fr; }
}

/* ===================== */
/* Mobile nav (off-canvas) */
/* ===================== */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: .6rem;
  margin-left: auto;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--mainSecondary); outline-offset: 2px; }
.nav-toggle-bar {
  display: block;
  width: 2.6rem; height: .24rem;
  background: var(--mainPrimary);
  border-radius: .2rem;
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: .5rem; }

.mobile-nav__overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
  opacity: 0; transition: opacity .25s ease;
}
.mobile-nav__overlay.is-visible { opacity: 1; }

.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 36rem);
  background: #fff;
  box-shadow: -2px 0 20px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1000;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__panel {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2rem;
}
.mobile-nav__panel[aria-hidden="true"] { display: block; }

.mobile-nav__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid #eee;
}
.mobile-nav__title {
  text-align: center;
  font-family: var(--titleFont);
  font-weight: 700;
  color: var(--mainPrimary);
}
.mobile-nav__close,
.mobile-nav__back {
  background: transparent; border: 0; padding: .4rem .6rem;
  font-size: 2.2rem; line-height: 1; cursor: pointer; color: var(--mainPrimary);
}
.mobile-nav__back { font-size: 1.6rem; }
.mobile-nav__back:focus-visible,
.mobile-nav__close:focus-visible { outline: 2px solid var(--mainSecondary); outline-offset: 2px; }

.mobile-nav__menu { padding: 1rem 1.6rem 2rem; }
.mobile-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__menu li { border-bottom: 1px solid #f3f3f3; }
.mobile-nav__menu a,
.mobile-nav__link-next {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: transparent; border: 0; text-align: left;
  color: var(--mainPrimary); font: inherit; text-decoration: none;
  padding: 1.2rem .4rem; cursor: pointer;
}
.mobile-nav__menu a:hover,
.mobile-nav__link-next:hover { color: var(--mainSecondary); }

.mobile-nav__link-next .chevron { font-size: 2rem; line-height: 1; }

.mobile-group { margin-top: 1.6rem; }
.mobile-group h4 {
  margin: 1.2rem 0 .4rem;
  font-family: var(--titleFont);
  font-size: 1.5rem;
  color: var(--mainPrimary);
  border-bottom: 2px solid var(--mainAccent);
  display: inline-block;
  padding-bottom: .3rem;
}
.mobile-nav__footer { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid #eee; }
.mobile-nav__viewall { display: inline-block; color: var(--mainSecondary); font-weight: 700; text-decoration: none; }
.mobile-nav__viewall:hover { color: var(--mainPrimary); }

/* Body lock when menu open */
.no-scroll { overflow: hidden; touch-action: none; }
html.no-scroll, body.no-scroll { height: 100%; overflow: hidden !important; }

/* Desktop-only mega hover */
@media (max-width: 1024px) {
  .mega-dropdown .mega-dropdown-menu { display: none !important; }
}

/* === Bricks-safe header mirroring (no removals) === */
.hpe-header {
  background: #ffffff;
  padding: 1.5rem 0;
  box-shadow: 0 0.2rem 0.2rem rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.hpe-header::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 0.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  z-index: 1001;
  pointer-events: none;
}

/* Desktop nav typography inside .hpe-header too */
.hpe-header .main-nav .nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0;
  margin: 0;
}
.hpe-header .main-nav .nav-menu li { position: relative; }
.hpe-header .main-nav .nav-menu li a {
  text-decoration: none;
  color: var(--mainPrimary);
  font-family: var(--titleFont);
  font-weight: 400;
  font-size: 1.6rem;
  padding: 1rem 0;
  transition: color 0.3s ease;
  display: block;
}
.hpe-header .main-nav .nav-menu li a:hover { color: var(--mainSecondary); }

/* Mobile header overrides apply to .hpe-header as well */
@media (max-width:1024px) {
  .hpe-header .container { display: flex; flex-direction: row; align-items: center; gap: 1.2rem; }
  .nav-toggle { display: inline-block; }
  .hpe-header .main-nav { display: none; }
}
@media (max-width:768px) {
  .hpe-header .container { flex-direction: row !important; justify-content: space-between !important; }
}

/* Make mega dropdown hover disabled on touch breakpoints (hpe-header too) */
@media (max-width: 1024px) {
  .hpe-header .mega-dropdown .mega-dropdown-menu { display: none !important; }
}
/* 1) Header shadow above off-canvas: lower its z-index; raise the drawer/overlay */
.site-header::after,
.hpe-header::after {
  z-index: 5; /* was 1001 */
}

.mobile-nav { z-index: 3001; }            /* ensure above header + pseudo */
.mobile-nav__overlay { z-index: 3000; }   /* sits just below drawer */

/* 2) Sub-nav trigger showing blue: lock visited + default button styles */
.main-nav .nav-menu a,
.hpe-header .main-nav .nav-menu a {
  color: var(--mainPrimary);
}
.main-nav .nav-menu a:visited,
.hpe-header .main-nav .nav-menu a:visited {
  color: var(--mainPrimary);
}

/* The mobile sub-nav trigger is a <button> — ensure it isn't blue/purple on some UAs */
.mobile-nav__link-next {
  color: var(--mainPrimary) !important;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* 3) Slide nav not moving: make the drawer a proper horizontal scroller track */
.mobile-nav {
  overflow: hidden;                /* hide offscreen panel */
}
.mobile-nav__panel {
  width: 100%;                     /* JS will also pin exact px width */
  display: block;
}

/* 4) CTA button wider than drawer & left-aligned: box-size to container */
.mobile-nav .btn-contact {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 1rem 0 0;
  padding: 1.2rem 1.6rem;          /* comfortable tap target */
}

/* Optional: give the burger bars dark-on-light consistently */
.nav-toggle-bar { background: var(--mainPrimary); }

/* Smooth panel entrance while the drawer slides */
.mobile-nav__panel {
  opacity: 0;
  transform: translateX(2rem);
  transition: opacity .25s ease, transform .25s ease;
}

.mobile-nav__panel.is-active {
  opacity: 1;
  transform: translateX(0);
}

/* Optional: ease the drawer itself when opening */
.mobile-nav {
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

/* ============================= */
/* WP/Bricks Footer Breakout FIX */
/* ============================= */
#brx-footer,
#brx-footer .brxe-code,
#brx-footer .brxe-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#brx-footer .hpe-footer .footer-contact,
#brx-footer .hpe-footer .footer-links,
#brx-footer .hpe-footer .footer-copy,
#brx-footer .site-footer .footer-contact,
#brx-footer .site-footer .footer-links,
#brx-footer .site-footer .footer-copy {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

#brx-footer .hpe-footer .footer-contact > .footer-wrap,
#brx-footer .hpe-footer .footer-links   > .footer-wrap,
#brx-footer .hpe-footer .footer-copy    > .footer-wrap,
#brx-footer .site-footer .footer-contact > .footer-wrap,
#brx-footer .site-footer .footer-links   > .footer-wrap,
#brx-footer .site-footer .footer-copy    > .footer-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 140rem !important;
  margin: 0 auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

#brx-footer .hpe-footer .footer-links > .footer-wrap.footer-grid,
#brx-footer .site-footer .footer-links > .footer-wrap.footer-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 2fr !important;
  gap: 4rem !important;
  align-items: start !important;
}

/* preserve contact padding often nuked by themes */
#brx-footer .hpe-footer .footer-contact,
#brx-footer .site-footer .footer-contact {
  padding-top: 4.8rem !important;
  padding-bottom: 2.4rem !important;
}

@media (max-width: 768px) {
  #brx-footer .hpe-footer .footer-links > .footer-wrap.footer-grid,
  #brx-footer .site-footer .footer-links > .footer-wrap.footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.8rem !important;
  }
}

/* ========================================= */
/* Inline SVG Social Icons — Force Rendering */
/* ========================================= */
.footer-socials .social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

/* kill any icon-font pseudo content that might overlay the SVG */
.footer-socials .social::before,
.footer-socials .social::after {
  content: none !important;
}

.footer-socials .social svg {
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
  stroke: none !important;
}

.footer-socials .social svg path,
.footer-socials .social svg use {
  fill: currentColor !important;
}

/* keep white on dark footer */
.hpe-footer .footer-socials .social,
.site-footer .footer-socials .social {
  color: #fff !important;
  opacity: 0.9;
}
.hpe-footer .footer-socials .social:hover,
.site-footer .footer-socials .social:hover {
  opacity: 1;
  transform: translateY(-0.1rem);
}
/* --- Footer social icons: simple, safe rendering --- */

/* Ensure anchors behave like inline elements and don't hide content */
.hpe-footer .footer-socials .social,
.site-footer .footer-socials .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* remove fixed square sizing to avoid clipping */
  width: auto;
  height: auto;
  line-height: 1;
  color: #fff;                 /* paths use currentColor */
  text-decoration: none;
  /* DO NOT zero the font-size (it can suppress some inline-SVG in certain stacks) */
}

/* Make sure any pseudo injected glyphs don’t cover the SVG */
.hpe-footer .footer-socials .social::before,
.hpe-footer .footer-socials .social::after,
.site-footer .footer-socials .social::before,
.site-footer .footer-socials .social::after {
  content: none !important;
}

/* Force the SVG visible and sized predictably */
.hpe-footer .footer-socials .social svg,
.site-footer .footer-socials .social svg {
  display: inline-block !important;
  width: 2.2rem;
  height: 2.2rem;
  vertical-align: middle;
  fill: currentColor !important;
  stroke: none !important;
}

/* In case inner <path> gets overridden by a theme */
.hpe-footer .footer-socials .social svg path,
.site-footer .footer-socials .social svg path {
  fill: currentColor !important;
}

/* Optional: tidy spacing between icons */
.hpe-footer .footer-socials .social + .social,
.site-footer .footer-socials .social + .social {
  margin-left: 1.4rem;
}

/* Mobile: footer brand row (logo left, socials right) */
@media (max-width: 768px) {
  .site-footer .footer-brand,
  .hpe-footer .footer-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
  }

  /* Remove the top margin so icons align vertically with the logo */
  .site-footer .footer-socials,
  .hpe-footer .footer-socials {
    margin-top: 0;
  }

  /* Optional: slightly smaller logo on small screens */
  .site-footer .footer-brand .footer-logo img,
  .hpe-footer .footer-brand .footer-logo img {
    height: 4.8rem;
  }

  /* Keep everything else left-aligned as requested (menus, text, etc.) */
}

/* ===== Locations page layout ===== */

/* Title section */
.page-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-hero .hero-inner {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  color: var(--mainPrimary);
  font-family: var(--titleFont);
  font-size: 5rem;
  line-height: 6.2rem;
  font-weight: 700;
  max-width: none;
  margin: 0;
}

/* Content section */
.page-content {
  padding: 2rem 0 4rem; /* 2rem top, 4rem bottom */
}
.page-content .content-wrap {
  max-width: 60%;
  margin: 0 auto;
  text-align: left;
}
.page-content p { margin: 0 0 1.6rem; }

/* Responsive widths */
@media (max-width: 1024px) {
  .page-content .content-wrap { max-width: 80%; }
}
@media (max-width: 768px) {
  .page-content .content-wrap { max-width: 100%; }
  .page-hero h1 {
    font-size: 3rem;
    line-height: 3.2rem;
    font-weight: 700;
    max-width: 100%;
  }
}

/* ===== Locations Section ===== */
.locations-section {
  background: #fafafa; /* very slightly off-white */
  padding: 4rem 0;
  text-align: center;
}

.locations-section h2 {
  color: var(--mainPrimary);
  font-family: var(--titleFont);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
}

.locations-section p {
  max-width: 70rem;
  margin: 0 auto 3rem;
  font-size: 1.6rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 100rem;
  margin: 0 auto;
}

.location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 0.2rem solid var(--mainPrimary);
  background: transparent;
  color: var(--mainPrimary);
  font-family: var(--titleFont);
  font-weight: 500;
  font-size: 1.6rem;
  text-decoration: none;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  min-height: 4rem; /* keeps all buttons same height */
}

.location-btn:hover {
  background: var(--mainPrimary);
  color: #fff;
}

/* Responsive grid */
@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* Locations section container override */
.locations-section .container {
  display: block;   /* override flex – now just explicit, harmless */
  text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-top: 1.6rem;
  font-size: 1.4rem;
  font-family: var(--bodyFont);
  color: #666;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centred under H1 */
  gap: 0.6rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li+li::before {
  content: "›"; /* separator */
  margin: 0 0.6rem;
  color: #aaa;
}

.breadcrumbs a {
  color: var(--mainPrimary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--mainSecondary);
}

/* Locations index layout */
.locations-index {
  padding: 4rem 0;
}

.locations-index .locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}

/* Each top-level location group */
.location-group {
  border: 1px solid #e0e0e0;
  border-radius: 0.8rem;
  padding: 1.6rem 1.8rem;
}

/* Top-level location heading/link */
.location-group h3 {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  font-family: var(--titleFont, system-ui);
}

.location-group h3 a {
  text-decoration: none;
  color: var(--mainPrimary, #2e5f33);
}

/* Sub-location list */
.location-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-group li + li {
  margin-top: 0.4rem;
}

.location-group a {
  text-decoration: none;
  color: var(--mainPrimary, #2e5f33);
  font-size: 1.5rem;
}

/* Hover state – tweak later if needed */
.location-group a:hover {
  color: var(--mainSecondary, #12a1e2);
}

/* Responsive: 1 column from mobile landscape down */
@media (max-width: 768px) {
  .locations-index .locations-grid {
    grid-template-columns: 1fr;
  }
}