/* ==========================================================
   Header and footer, matching wedoelectrical.co.nz:
   near-black top strip with red icons, white sticky bar with
   logo + red uppercase "Get a Quote" + bold Poppins menu with
   hover dropdowns, right-hand slide-out menu on mobile, and a
   dark slate four-column footer with red-underlined headings.
   Fonts are self-hosted (no Google Fonts request).
   ========================================================== */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/montserrat-600.woff2') format('woff2'); }

:root {
  --wd-red: #ff3131;
  --wd-red-icon: #e4231a;
  --wd-red-dark: #e01e1e;
  --wd-green: #15965a;
  --wd-top: #111111;
  --wd-slate: #2b2b35;
  --wd-ink: #1a1a1a;
}

.wd-header, .wd-offcanvas, .wd-footer { font-family: 'Poppins', 'Inter', sans-serif; }

/* ---------- Top strip ---------- */
.wd-top { background: var(--wd-top); padding: 10px 0; font-size: 13px; }
.wd-top-links { display: flex; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.wd-top-links li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; padding: 0 28px; border-left: 1px solid rgba(255,255,255,0.18); }
.wd-top-links li:first-child { padding-left: 0; border-left: 0; }
.wd-top-links a { color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.wd-top-links a:hover { color: var(--wd-red); }
.wd-top-links .svgi { color: var(--wd-red-icon); font-size: 1.15em; }
@media (max-width: 767.98px) { .wd-top-links { justify-content: center; } }

/* ---------- Sticky white bar ---------- */
.wd-header { position: relative; z-index: 1030; }
.wd-bar { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.12); }
@supports (position: sticky) {
  .wd-header { position: sticky; top: -41px; } /* keeps the white bar pinned while the top strip scrolls away */
}
.wd-bar-row { display: flex; align-items: center; gap: 32px; min-height: 100px; }
.wd-header .logo-wrap { flex-shrink: 0; }

.wd-quote-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wd-red); color: #fff !important; font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 15px 28px; border-radius: 6px; white-space: nowrap; transition: background-color .2s;
}
.wd-quote-btn:hover { background: var(--wd-slate); color: #fff !important; }

.wd-nav { margin-left: auto; }
.wd-menu { display: flex; align-items: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
.wd-menu > li { position: relative; }
.wd-menu > li > a { display: block; padding: 38px 0; font-size: 16px; font-weight: 600; color: var(--wd-ink); line-height: 1; }
.wd-menu > li:hover > a, .wd-menu > li.is-active > a { color: var(--wd-green); }
.wd-sub {
  position: absolute; top: 100%; left: 0; width: 250px; background: #fff; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14); padding: 8px 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 10;
}
.wd-menu > li:hover > .wd-sub, .wd-menu > li:focus-within > .wd-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.wd-sub a { display: block; padding: 9px 22px; font-size: 14px; font-weight: 500; color: var(--wd-ink); line-height: 1.6; }
.wd-sub a:hover { color: var(--wd-red); }
.wd-sub .dd-price { color: var(--wd-green); font-size: 12px; font-weight: 600; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .wd-bar-row { gap: 20px; }
  .wd-menu { gap: 22px; }
  .wd-menu > li > a { font-size: 15px; }
  .wd-quote-btn { padding: 13px 18px; }
}

.wd-burger { margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--wd-ink); padding: 6px; line-height: 1; }
@media (max-width: 991.98px) {
  .wd-bar-row { min-height: 80px; gap: 14px; }
  .wd-header .logo-icon { width: 46px; min-height: 42px; }
}
@media (max-width: 575.98px) {
  .wd-bar .wd-quote-btn { padding: 10px 12px; font-size: 12px; }
  .wd-header .brand-city { display: none; }
}

/* ---------- Slide-out mobile menu ---------- */
.wd-offcanvas { width: 320px !important; max-width: 86vw; }
.wd-offcanvas .offcanvas-header { justify-content: flex-end; padding: 18px 20px 0; }
.wd-close { background: none; border: 0; font-size: 26px; color: var(--wd-ink); }
.wd-close:hover { color: var(--wd-red); }
.wd-offcanvas .offcanvas-body { display: flex; flex-direction: column; padding: 10px 28px 30px; }
.wd-mobile-menu { margin: 0; padding: 0; list-style: none; }
.wd-mobile-menu > li { border-bottom: 1px solid #ececec; }
.wd-mobile-menu > li > a { display: block; padding: 13px 0; font-size: 15px; font-weight: 600; color: var(--wd-ink); }
.wd-mobile-menu > li.is-active > a, .wd-mobile-menu a:hover { color: var(--wd-red); }
.wd-mobile-menu .wd-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: auto; padding: 0 0 10px 12px; border-radius: 0; }
.wd-mobile-menu .wd-sub a { padding: 5px 0; font-size: 14px; color: #555; }
.wd-mobile-contact { margin: 28px 0 0; padding: 0; list-style: none; }
.wd-mobile-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--wd-ink); }
.wd-mobile-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--wd-ink); }
.wd-mobile-contact .svgi { color: var(--wd-red-icon); }

/* ---------- Footer ---------- */
.wd-footer { background: var(--wd-slate); color: #fff; padding: 80px 0 0; }
.wd-footer .logo-wrap { margin-bottom: 22px; color: #fff; }
.wd-footer .brand-top, .wd-footer .brand-mid { color: #fff; }
.wd-widget-title { font-family: 'Montserrat', 'Inter', sans-serif; font-size: 24px; font-weight: 600; color: #fff; margin: 0 0 30px; padding-bottom: 6px; position: relative; letter-spacing: 0; }
.wd-widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--wd-red); }
.wd-widget-list, .wd-widget-address { margin: 0; padding: 0; list-style: none; }
.wd-widget-list li { margin-bottom: 10px; }
.wd-widget-list a { color: #fff; font-size: 14px; line-height: 1.9; }
.wd-widget-list a:hover, .wd-widget-address a:hover { color: var(--wd-red); }
.wd-widget-address li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 14px; color: #fff; }
.wd-widget-address a { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.wd-widget-address .svgi { color: var(--wd-red); margin-top: 3px; flex-shrink: 0; }
.wd-footer-blurb { color: #fff; font-size: 13.5px; line-height: 1.85; margin-bottom: 18px; }
.wd-footer-bottom { border-top: 1px solid #8b8b8b; margin-top: 70px; padding: 16px 0; text-align: center; }
.wd-footer-bottom p { margin: 0; color: #fff; font-size: 15px; }
@media (max-width: 767.98px) {
  .wd-footer { padding-top: 56px; padding-bottom: 60px; } /* room for the mobile call bar */
  .wd-footer-bottom { margin-top: 40px; }
}

/* overflow-x:hidden on html/body (style.css) disables position:sticky;
   clip stops sideways scroll the same way without breaking the sticky header. */
html, body { overflow-x: clip; }

/* ---------- Logo (image files in /assets/logo) ---------- */
.ehc-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.ehc-logo img { height: 46px; width: auto; max-width: none; }
.ehc-logo.is-light { margin-bottom: 24px; }
.ehc-logo.is-light img { height: 44px; }
@media (min-width: 992px) and (max-width: 1199.98px) { .wd-header .ehc-logo img { height: 36px; } }
@media (max-width: 575.98px) { .wd-header .ehc-logo img { height: 34px; } }
@media (max-width: 339.98px) { .wd-header .ehc-logo img { height: 28px; } }
@media (max-width: 419.98px) { .wd-bar .wd-quote-btn { display: none; } } /* mobile call bar covers the CTA */
.wd-menu > li > a { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .wd-bar-row { gap: 16px; }
  .wd-menu { gap: 16px; }
  .wd-menu > li > a { font-size: 14px; }
  .wd-bar .wd-quote-btn { padding: 11px 14px; font-size: 13px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .wd-bar-row { gap: 24px; }
  .wd-menu { gap: 26px; }
  .wd-menu > li > a { font-size: 15px; }
  .wd-header .ehc-logo img { height: 40px; }
}

/* ---------- Footer: installation guides row ---------- */
.wd-footer-guides { margin-top: 56px; }
.wd-footer-guides .wd-widget-title { font-size: 20px; margin-bottom: 22px; }
.wd-footer-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.wd-footer-guides a { color: #fff; font-size: 14px; }
.wd-footer-guides a:hover { color: var(--wd-red); }
.wd-sub { max-height: 70vh; overflow-y: auto; }
