/* =====================================================================
   HFDC Header — Manrope · #252525 · #E30613 · white
   Desktop ≥ 1280px: [left menu]  LOGO  [right menu] [search] [quote]
   Below 1280px:     LOGO ............................ [search] [menu]
   ===================================================================== */
.hfdc-hd-wrap {
  --hd-h: 96px; --hd-h-small: 76px; --hd-h-mob: 72px;
  --hd-ink: #252525; --hd-red: #E30613; --hd-red-dk: #B8050F; --hd-line: #E8E6E1; --hd-muted: #6b6b6b;
  --hd-top: var(--wp-admin--admin-bar--height, 0px);
}
.hfdc-hd-wrap, .hfdc-hd-wrap *, .hfdc-hd-wrap *::before, .hfdc-hd-wrap *::after {
  box-sizing: border-box;
  font-family: "Manrope", sans-serif !important;
  word-spacing: normal !important;
}
.hfdc-hd-wrap ul { list-style: none; margin: 0; padding: 0; }
.hfdc-hd-wrap a { text-decoration: none; }
.hfdc-hd-wrap [hidden] { display: none !important; }

/* Skip link */
.hfdc-hd__skip { position: fixed; left: 16px; top: -60px; z-index: 100001; padding: 10px 16px; background: var(--hd-ink); color: #fff; font-size: 14px; }
.hfdc-hd__skip:focus { top: calc(var(--hd-top) + 12px); }

/* ---------- Bar: fixed to the top, spacer keeps page content below it ---------- */
.hfdc-hd {
  position: fixed; top: var(--hd-top); left: 0; right: 0; z-index: 9990;
  background: #fff; border-bottom: 1px solid var(--hd-line);
  transition: box-shadow .25s ease;
}
.hfdc-hd-spacer { height: var(--hd-h); }
.hfdc-hd.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.hfdc-hd__bar {
  max-width: 1600px; margin: 0 auto; padding: 0 32px; height: var(--hd-h);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  transition: height .25s ease;
}
.hfdc-hd.is-scrolled .hfdc-hd__bar { height: var(--hd-h-small); }
.hfdc-hd__side { display: flex; align-items: center; gap: 28px; min-width: 0; }
.hfdc-hd__side--left { justify-content: space-between; }
.hfdc-hd__side--right { justify-content: space-between; }
.hfdc-hd__center { display: flex; justify-content: center; }

/* Logo */
.hfdc-hd__logo { display: inline-flex; align-items: center; }
.hfdc-hd__logo img, .hfdc-hd__logo-img { display: block; width: auto; height: 58px; max-width: 220px; object-fit: contain; transition: height .25s ease; }
.hfdc-hd.is-scrolled .hfdc-hd__logo img { height: 46px; }
.hfdc-hd__logo-text { color: var(--hd-ink); font-size: 18px; font-weight: 600; white-space: nowrap; }

/* Get a Free Quote */
.hfdc-hd-wrap .hfdc-hd__quote {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 46px; padding: 12px 22px; background: var(--hd-red); color: #fff !important; border: 1px solid var(--hd-red);
  font-size: 15px !important; font-weight: 600 !important; line-height: 1.2; letter-spacing: normal !important; text-transform: none !important;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.hfdc-hd-wrap .hfdc-hd__quote:hover { background: var(--hd-red-dk); border-color: var(--hd-red-dk); }
.hfdc-hd-wrap .hfdc-hd__quote:focus-visible { outline: 2px solid var(--hd-ink); outline-offset: 3px; }

/* ---------- Desktop menus ---------- */
.hfdc-hd__nav { flex: 1 1 auto; min-width: 0; }
.hfdc-hd__nav > .hfdc-hd__menu { display: flex; align-items: center; justify-content: space-evenly; gap: 18px; }
.hfdc-hd__menu > li { position: relative; display: flex; align-items: center; }
.hfdc-hd-wrap .hfdc-hd__menu > li > a {
  display: inline-block; padding: 10px 2px; color: var(--hd-ink);
  font-size: 13px !important; font-weight: 600 !important; line-height: 1.2;
  text-transform: uppercase !important; letter-spacing: 1px !important; white-space: nowrap;
  background: linear-gradient(var(--hd-red), var(--hd-red)) left calc(100% - 4px) / 0 2px no-repeat;
  transition: color .2s, background-size .25s;
}
.hfdc-hd-wrap .hfdc-hd__menu > li > a:hover,
.hfdc-hd-wrap .hfdc-hd__menu > li:focus-within > a { color: var(--hd-red); }
/* Active page (and its parent) — red with underline */
.hfdc-hd-wrap .hfdc-hd__menu > li.current-menu-item > a,
.hfdc-hd-wrap .hfdc-hd__menu > li.current-menu-ancestor > a,
.hfdc-hd-wrap .hfdc-hd__menu > li.current-menu-parent > a,
.hfdc-hd-wrap .hfdc-hd__menu > li.current_page_parent > a,
.hfdc-hd-wrap .hfdc-hd__menu > li.hfdc-active > a { color: var(--hd-red); background-size: 100% 2px; }
.hfdc-hd-wrap .hfdc-hd__menu a:focus-visible { outline: 2px solid var(--hd-red); outline-offset: 4px; }

/* Dropdown arrow button */
.hfdc-hd-wrap .hfdc-hd__sub-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 28px; margin: 0 0 0 2px; padding: 0;
  background: none !important; border: 0; color: var(--hd-ink); cursor: pointer; border-radius: 0; box-shadow: none;
}
.hfdc-hd__sub-btn svg { transition: transform .2s; }
.hfdc-hd__menu > li:hover > .hfdc-hd__sub-btn,
.hfdc-hd__menu > li.current-menu-ancestor > .hfdc-hd__sub-btn,
.hfdc-hd__menu > li.hfdc-active > .hfdc-hd__sub-btn { color: var(--hd-red); }
.hfdc-hd__menu > li:hover > .hfdc-hd__sub-btn svg,
.hfdc-hd__menu > li.is-open > .hfdc-hd__sub-btn svg { transform: rotate(180deg); }
.hfdc-hd-wrap .hfdc-hd__sub-btn:focus-visible { outline: 2px solid var(--hd-red); outline-offset: 2px; }

/* Dropdown panel */
.hfdc-hd__menu .sub-menu {
  position: absolute; top: 100%; left: -20px; z-index: 10; min-width: 250px;
  padding: 12px 0; margin-top: 10px; background: #fff; border-top: 2px solid var(--hd-red);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.hfdc-hd__menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.hfdc-hd__menu > li:hover > .sub-menu,
.hfdc-hd__menu > li:focus-within > .sub-menu,
.hfdc-hd__menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hfdc-hd__menu > li.is-closed > .sub-menu { opacity: 0 !important; visibility: hidden !important; }
.hfdc-hd-wrap .hfdc-hd__menu .sub-menu a {
  display: block; padding: 10px 22px; color: var(--hd-ink);
  font-size: 15px !important; font-weight: 500 !important; line-height: 1.35; text-transform: none !important; letter-spacing: normal !important; white-space: nowrap;
  transition: color .15s, background-color .15s, padding-left .15s;
}
.hfdc-hd-wrap .hfdc-hd__menu .sub-menu a:hover { color: var(--hd-red); background: #F6F5F2; padding-left: 26px; }
.hfdc-hd-wrap .hfdc-hd__menu .sub-menu .current-menu-item > a,
.hfdc-hd-wrap .hfdc-hd__menu .sub-menu .hfdc-active > a { color: var(--hd-red); }

/* Icons (search, menu, close) */
.hfdc-hd-wrap .hfdc-hd__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: none !important; color: var(--hd-ink); cursor: pointer; transition: color .2s;
}
.hfdc-hd-wrap .hfdc-hd__icon:hover { color: var(--hd-red); }
.hfdc-hd-wrap .hfdc-hd__icon:focus-visible { outline: 2px solid var(--hd-red); outline-offset: 2px; }
.hfdc-hd__menu-btn { display: none !important; }

/* Tight desktops */
@media (max-width: 1440px) { .hfdc-hd__bar { padding: 0 24px; } .hfdc-hd__side { gap: 20px; } }
@media (max-width: 1360px) { .hfdc-hd-wrap .hfdc-hd__menu > li > a { letter-spacing: .6px !important; font-size: 12.5px !important; } .hfdc-hd-wrap .hfdc-hd__quote { padding: 11px 16px; font-size: 14px !important; } }

/* ---------- Compact layout: logo left, search + menu button right ----------
   Used below 1280px, and at any width where the menus would not fit (added by header.js). */
@media (max-width: 1279px) {
  .hfdc-hd-spacer { height: var(--hd-h-mob); }
  .hfdc-hd__bar, .hfdc-hd.is-scrolled .hfdc-hd__bar { height: var(--hd-h-mob); grid-template-columns: auto 1fr; padding: 0 20px; }
  .hfdc-hd__center { order: -1; justify-content: flex-start; }
  .hfdc-hd__side--left { display: none; }
  .hfdc-hd__side--right { justify-content: flex-end; gap: 4px; }
  .hfdc-hd__nav { display: none; }
  .hfdc-hd__menu-btn { display: inline-flex !important; }
  .hfdc-hd__logo img, .hfdc-hd__logo-img, .hfdc-hd.is-scrolled .hfdc-hd__logo img { height: 44px; max-width: 180px; }
}
  .hfdc-hd-wrap.is-compact .hfdc-hd-spacer { height: var(--hd-h-mob); }
  .hfdc-hd-wrap.is-compact .hfdc-hd__bar, .hfdc-hd-wrap.is-compact .hfdc-hd.is-scrolled .hfdc-hd__bar { height: var(--hd-h-mob); grid-template-columns: auto 1fr; padding: 0 20px; }
  .hfdc-hd-wrap.is-compact .hfdc-hd__center { order: -1; justify-content: flex-start; }
  .hfdc-hd-wrap.is-compact .hfdc-hd__side--left { display: none; }
  .hfdc-hd-wrap.is-compact .hfdc-hd__side--right { justify-content: flex-end; gap: 4px; }
  .hfdc-hd-wrap.is-compact .hfdc-hd__nav { display: none; }
  .hfdc-hd-wrap.is-compact .hfdc-hd__menu-btn { display: inline-flex !important; }
  .hfdc-hd-wrap.is-compact .hfdc-hd__logo img, .hfdc-hd-wrap.is-compact .hfdc-hd__logo-img, .hfdc-hd-wrap.is-compact .hfdc-hd.is-scrolled .hfdc-hd__logo img { height: 44px; max-width: 180px; }
/* Mobile admin bar scrolls away on phones */
@media (max-width: 600px) { .hfdc-hd.is-scrolled { top: 0; } }

/* ---------- Search popup ---------- */
.hfdc-search {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center;
  padding: 18vh 24px 24px; background: rgba(255,255,255,.98);
  animation: hfdcFade .2s ease;
}
.hfdc-search__close { position: absolute; top: 20px; right: 20px; }
.hfdc-search__form { width: 100%; max-width: 760px; }
.hfdc-hd-wrap .hfdc-search__label { display: block; margin: 0 0 18px; color: var(--hd-ink); font-size: 28px !important; font-weight: 600 !important; line-height: 1.2; letter-spacing: normal !important; }
.hfdc-search__row { display: flex; align-items: stretch; border-bottom: 2px solid var(--hd-ink); }
.hfdc-search__row:focus-within { border-color: var(--hd-red); }
.hfdc-hd-wrap .hfdc-search__input {
  flex: 1 1 auto; min-width: 0; height: 64px; padding: 0 4px; border: 0 !important; outline: none; background: transparent !important; box-shadow: none !important;
  color: var(--hd-ink); font-size: 22px !important; letter-spacing: normal !important; border-radius: 0;
}
.hfdc-search__input::-webkit-search-cancel-button, .hfdc-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.hfdc-hd-wrap .hfdc-search__input::placeholder { color: #9a9a9a; opacity: 1; }
.hfdc-hd-wrap .hfdc-search__submit {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; margin: 0; border: 0; border-radius: 0; cursor: pointer;
  background: var(--hd-red) !important; color: #fff; font-size: 15px !important; font-weight: 600 !important; letter-spacing: normal !important; text-transform: none !important;
}
.hfdc-hd-wrap .hfdc-search__submit:hover { background: var(--hd-red-dk) !important; }
.hfdc-hd-wrap .hfdc-search__submit:focus-visible { outline: 2px solid var(--hd-ink); outline-offset: 2px; }
@media (max-width: 767px) {
  .hfdc-search { padding-top: 96px; }
  .hfdc-hd-wrap .hfdc-search__label { font-size: 22px !important; }
  .hfdc-hd-wrap .hfdc-search__input { height: 56px; font-size: 18px !important; }
  .hfdc-search__submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hfdc-hd-wrap .hfdc-search__submit { padding: 0 16px; }
}

/* ---------- Mobile drawer ---------- */
.hfdc-drawer { position: fixed; inset: 0; z-index: 100000; background: rgba(20,20,20,.45); animation: hfdcFade .2s ease; }
.hfdc-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: #fff; overflow-y: auto; overscroll-behavior: contain;
  animation: hfdcSlide .25s ease;
}
.hfdc-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--hd-h-mob); padding: 0 12px 0 20px; border-bottom: 1px solid var(--hd-line); flex: 0 0 auto; }
.hfdc-drawer__top .hfdc-hd__logo img { height: 40px; max-width: 170px; }
.hfdc-drawer__nav { flex: 1 1 auto; padding: 8px 20px; }
.hfdc-drawer__nav .hfdc-hd__menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--hd-line); }
.hfdc-hd-wrap .hfdc-drawer__nav .hfdc-hd__menu > li > a {
  flex: 1 1 auto; padding: 16px 0; color: var(--hd-ink); background: none !important;
  font-size: 16px !important; font-weight: 600 !important; line-height: 1.3; text-transform: none !important; letter-spacing: normal !important;
}
.hfdc-hd-wrap .hfdc-drawer__nav .hfdc-hd__menu > li.current-menu-item > a,
.hfdc-hd-wrap .hfdc-drawer__nav .hfdc-hd__menu > li.current-menu-ancestor > a,
.hfdc-hd-wrap .hfdc-drawer__nav .hfdc-hd__menu > li.hfdc-active > a { color: var(--hd-red); }
.hfdc-hd-wrap .hfdc-drawer__nav .hfdc-hd__sub-btn { width: 44px; height: 44px; }
.hfdc-drawer__nav .hfdc-hd__sub-btn svg { width: 13px; height: 9px; }
.hfdc-drawer__nav li.is-open > .hfdc-hd__sub-btn svg { transform: rotate(180deg); }
.hfdc-drawer__nav .hfdc-hd__menu > li:hover > .hfdc-hd__sub-btn svg { transform: none; }
.hfdc-drawer__nav .hfdc-hd__menu > li.is-open:hover > .hfdc-hd__sub-btn svg { transform: rotate(180deg); }
.hfdc-drawer__nav .sub-menu, .hfdc-drawer__nav .hfdc-hd__menu > li:hover > .sub-menu, .hfdc-drawer__nav .hfdc-hd__menu > li:focus-within > .sub-menu {
  display: none; position: static; flex: 0 0 100%; min-width: 0; margin: 0 0 14px; padding: 0 0 4px 14px;
  opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none;
  border-top: 0; border-left: 2px solid var(--hd-red);
}
.hfdc-drawer__nav .sub-menu::before { display: none; }
.hfdc-drawer__nav .hfdc-hd__menu > li > .sub-menu a:hover { padding-left: 0; background: none; }
.hfdc-drawer__nav .hfdc-hd__menu > li.is-open > .sub-menu { display: block; }
.hfdc-hd-wrap .hfdc-drawer__nav .sub-menu a {
  display: block; padding: 10px 0; color: #4A4A4A;
  font-size: 15px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: normal !important;
}
.hfdc-hd-wrap .hfdc-drawer__nav .sub-menu .current-menu-item > a,
.hfdc-hd-wrap .hfdc-drawer__nav .sub-menu .hfdc-active > a { color: var(--hd-red); }
.hfdc-drawer__foot { padding: 20px; border-top: 1px solid var(--hd-line); flex: 0 0 auto; }
.hfdc-drawer__foot .hfdc-hd__quote { width: 100%; min-height: 52px; font-size: 16px !important; }

.hfdc-hd__note { margin: 0; padding: 8px 24px; background: #fff7d6; color: #5c4a00; font-size: 13px; text-align: center; }

@keyframes hfdcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hfdcSlide { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hfdc-hd, .hfdc-hd__bar, .hfdc-hd__logo img, .hfdc-hd__menu .sub-menu, .hfdc-search, .hfdc-drawer, .hfdc-drawer__panel { transition: none !important; animation: none !important; }
}
html.hfdc-lock, html.hfdc-lock body { overflow: hidden !important; }

/* =====================================================================
   v1.1.1 — Hardening against theme / Elementor global styles
   (Elementor's ".elementor img { height:auto; max-width:100% }" made the
   logo load at full size, so the menus no longer fitted and the header
   switched to the compact layout.)
   ===================================================================== */
.hfdc-hd-wrap .hfdc-hd__logo img, .hfdc-hd-wrap .hfdc-hd__logo .hfdc-hd__logo-img {
  width: auto !important; height: 58px !important; max-width: 220px !important; max-height: none !important;
  margin: 0 !important; border: 0 !important; box-shadow: none !important;
}
.hfdc-hd-wrap .hfdc-hd.is-scrolled .hfdc-hd__logo img { height: 46px !important; }
.hfdc-hd-wrap .hfdc-drawer__top .hfdc-hd__logo img { height: 40px !important; max-width: 170px !important; }
.hfdc-hd-wrap.is-compact .hfdc-hd__logo img, .hfdc-hd-wrap.is-compact .hfdc-hd.is-scrolled .hfdc-hd__logo img { height: 44px !important; max-width: 180px !important; }
@media (max-width: 1279px) {
  .hfdc-hd-wrap .hfdc-hd__logo img, .hfdc-hd-wrap .hfdc-hd__logo .hfdc-hd__logo-img, .hfdc-hd-wrap .hfdc-hd.is-scrolled .hfdc-hd__logo img { height: 44px !important; max-width: 180px !important; }
}
.hfdc-hd-wrap.is-compact .hfdc-hd__logo .hfdc-hd__logo-img { height: 44px !important; max-width: 180px !important; }
.hfdc-hd-wrap .hfdc-drawer__top .hfdc-hd__logo .hfdc-hd__logo-img { height: 40px !important; max-width: 170px !important; }
/* Quote button sits at the far right, after the search icon (desktop only) */
.hfdc-hd-wrap .hfdc-hd__side--right .hfdc-hd__quote { margin-left: 4px; flex: 0 0 auto; }
.hfdc-hd-wrap.is-compact .hfdc-hd__side--right .hfdc-hd__quote { display: none !important; }
@media (max-width: 1279px) { .hfdc-hd-wrap .hfdc-hd__side--right .hfdc-hd__quote { display: none !important; } }
.hfdc-hd-wrap .hfdc-hd__menu, .hfdc-hd-wrap .hfdc-hd__menu li { margin: 0 !important; padding: 0 !important; float: none !important; width: auto !important; background: none !important; list-style: none !important; }
.hfdc-hd-wrap .hfdc-hd__nav .hfdc-hd__menu li { border: 0 !important; }
.hfdc-hd-wrap .hfdc-hd__menu > li::before, .hfdc-hd-wrap .hfdc-hd__menu > li::after { content: none !important; }
.hfdc-hd-wrap .hfdc-hd__nav .hfdc-hd__menu .sub-menu { padding: 12px 0 !important; margin-top: 10px !important; background: #fff !important; }
/* drawer keeps its own list styling */
.hfdc-hd-wrap .hfdc-drawer__nav .hfdc-hd__menu > li { border-bottom: 1px solid var(--hd-line) !important; }
.hfdc-hd-wrap .hfdc-drawer__nav .sub-menu { margin: 0 0 14px !important; padding: 0 0 4px 14px !important; border-left: 2px solid var(--hd-red) !important; }

/* Laptops 1280–1439px: a little tighter so the full menu still fits (1366 / 1280 screens) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .hfdc-hd-wrap .hfdc-hd__bar { padding: 0 20px; gap: 16px; }
  .hfdc-hd-wrap .hfdc-hd__side { gap: 14px; }
  .hfdc-hd-wrap .hfdc-hd__nav > .hfdc-hd__menu { gap: 12px; }
  .hfdc-hd-wrap .hfdc-hd__menu > li > a { font-size: 12.5px !important; letter-spacing: .5px !important; }
  .hfdc-hd-wrap .hfdc-hd__sub-btn { width: 18px; }
  .hfdc-hd-wrap .hfdc-hd__side--right .hfdc-hd__quote { padding: 10px 14px; min-height: 42px; font-size: 14px !important; }
  .hfdc-hd-wrap .hfdc-hd__logo img, .hfdc-hd-wrap .hfdc-hd__logo .hfdc-hd__logo-img { height: 50px !important; max-width: 190px !important; }
}
