/* FAHE Global header & footer. Design copied from faheglobal.com */
:root {
  --ef-navy:   #0B2545;
  --ef-navy-dk:#081A33;
  --ef-gold:   #F9A825;
  --ef-blue:   #1565C0;
  --ef-teal:   #00897B;
  --ef-muted:  #64748B;
  --ef-text:   #1E293B;
  --ef-light:  #F0F6FF;
  --ef-border: #E2E8F0;
  --ef-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/*
 * Safety net only — this does not fix the actual cause of the page being
 * wider than the viewport (that's a leftover/duplicate menu block
 * elsewhere in the page, most likely pasted directly into page content
 * from before this header existed, and it should be located and removed
 * directly). This just stops that overflow from pushing the whole page
 * sideways and misaligning the footer while that block is tracked down.
 */
html, body { max-width: 100vw; overflow-x: hidden; }
.fahe-header * { box-sizing: border-box; }
.fahe-header { font-family: var(--ef-font); position: relative; z-index: 9000; background: #fff; border-bottom: 1px solid var(--ef-border); }
.fahe-header a { text-decoration: none; color: inherit; }
.fahe-header__bar { max-width: 1280px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fahe-header__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ef-navy); flex-shrink: 0; }
.fahe-header__logo { max-width:170px !important; overflow:hidden; }
.fahe-header__logo .fahe-header__logo-img, .fahe-header img.fahe-header__logo-img { display:block !important; height:40px !important; width:auto !important; max-width:150px !important; min-width:0 !important; max-height:40px !important; object-fit:contain !important; margin:0 !important; padding:0 !important; border:0 !important; }
.fahe-header__logo-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--ef-navy), var(--ef-blue)); display: flex; align-items: center; justify-content: center; color: var(--ef-gold); font-weight: 800; font-size: 16px; }
.fahe-header__logo-sub { display:block; font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color: var(--ef-muted); }

.fahe-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.fahe-nav__item { position: relative; }
.fahe-nav__link { display: flex; align-items: center; gap: 5px; padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--ef-text); border-radius: 6px; white-space: nowrap; cursor: pointer; border: none; background: none; font-family: inherit; }
.fahe-nav__link:hover, .fahe-nav__item.is-open .fahe-nav__link { color: var(--ef-navy); background: var(--ef-light); }
.fahe-nav__caret { font-size: 10px; color: var(--ef-muted); transition: transform .15s ease; }
.fahe-nav__item.is-open .fahe-nav__caret { transform: rotate(180deg); }

.fahe-header__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.fahe-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 7px; border: none; cursor: pointer; white-space: nowrap; }
.fahe-btn--gold { background: var(--ef-gold); color: var(--ef-navy); }
.fahe-btn--gold:hover { background: #f0a500; }
.fahe-btn--ghost { background: transparent; color: var(--ef-navy); border: 1.5px solid var(--ef-border); }
.fahe-btn--ghost:hover { border-color: var(--ef-navy); }

.fahe-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.fahe-burger span { width: 22px; height: 2px; background: var(--ef-navy); border-radius: 2px; }

/*
 * This is the fix: the mobile full-screen panel must default to hidden
 * at EVERY viewport width, not just narrow ones. It was previously only
 * declared inside the `@media (max-width: 1080px)` block below, which
 * meant on a normal desktop-width screen it had no display rule at all
 * and fell back to the browser's default `display: block` for a <div>
 * — rendering the entire mobile nav tree in-flow, unstyled, at the top
 * of the page. That's the exact bug behind the "Menu ×" block. Fixed by
 * moving its hidden-by-default state here, outside any media query.
 */
.fahe-mobile-panel { display: none; position: fixed; inset: 0; background: #fff; z-index: 9999; overflow-y: auto; }
.fahe-mobile-panel.is-open { display: block; }

/* ---------- Services mega menu (two-pane) ---------- */
.fahe-mega { position: fixed; top: var(--fahe-header-h, 68px); left: 0; right: 0; background: #fff; border-top: 1px solid var(--ef-border); box-shadow: 0 24px 48px rgba(11,37,69,.16); display: none; max-height: calc(100vh - var(--fahe-header-h, 68px)); overflow: hidden; }
.fahe-nav__item.is-open .fahe-mega { display: block; }
.fahe-mega__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; height: min(560px, calc(100vh - var(--fahe-header-h, 68px))); }
.fahe-mega__cats { background: var(--ef-light); overflow-y: auto; padding: 10px; border-right: 1px solid var(--ef-border); }
.fahe-mega__cat { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ef-text); background: none; border: none; cursor: pointer; font-family: inherit; }
.fahe-mega__cat:hover { background: #fff; }
.fahe-mega__cat.is-active { background: #fff; color: var(--ef-navy); box-shadow: var(--ef-shadow, 0 2px 10px rgba(11,37,69,.08)); }
.fahe-mega__cat-arrow { font-size: 11px; color: var(--ef-muted); }
.fahe-mega__panel { display: none; overflow-y: auto; padding: 26px 32px; }
.fahe-mega__panel.is-active { display: block; }
.fahe-mega__panel-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-gold); margin: 0 0 4px; }
.fahe-mega__panel-heading { font-size: 20px; font-weight: 800; color: var(--ef-navy); margin: 0 0 18px; }
.fahe-mega__services { columns: 2; column-gap: 32px; }
.fahe-mega__service { break-inside: avoid; margin-bottom: 20px; }
.fahe-mega__service-title { display: block; font-size: 14px; font-weight: 700; color: var(--ef-navy); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ef-border); }
.fahe-mega__sub-list { list-style: none; margin: 0; padding: 0; }
.fahe-mega__sub-list li { margin-bottom: 6px; }
.fahe-mega__sub-list a { font-size: 13px; color: var(--ef-muted); }
.fahe-mega__sub-list a:hover { color: var(--ef-blue); }

/* ---------- Lifestyle dropdown (flat) ---------- */
.fahe-drop { position: fixed; top: var(--fahe-header-h, 68px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--ef-border); border-radius: 10px; box-shadow: 0 24px 48px rgba(11,37,69,.16); display: none; padding: 20px; width: 620px; max-width: calc(100vw - 32px); }
.fahe-nav__item.is-open .fahe-drop { display: block; }
.fahe-drop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; }
.fahe-drop__grid a { display: block; padding: 9px 10px; border-radius: 6px; font-size: 13.5px; color: var(--ef-text); }
.fahe-drop__grid a:hover { background: var(--ef-light); color: var(--ef-navy); }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .fahe-nav, .fahe-header__cta .fahe-btn--ghost { display: none; }
  .fahe-burger { display: flex; }
  .fahe-mega, .fahe-drop { position: static; transform: none; box-shadow: none; border: none; width: auto; max-width: none; display: none; }
  .fahe-mega__inner { grid-template-columns: 1fr; height: auto; max-height: none; }
  .fahe-mega__cats { border-right: none; border-bottom: 1px solid var(--ef-border); }
  .fahe-mega__services { columns: 1; }
  .fahe-drop__grid { grid-template-columns: 1fr; }

  .fahe-mobile-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ef-border); }
  .fahe-mobile-panel__close { background: none; border: none; font-size: 26px; color: var(--ef-navy); cursor: pointer; }
  .fahe-mobile-nav { padding: 8px 12px 40px; }
  .fahe-mobile-item { border-bottom: 1px solid var(--ef-border); }
  .fahe-mobile-item__link { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 15px 10px; font-size: 15px; font-weight: 600; color: var(--ef-text); background: none; border: none; font-family: inherit; }
  .fahe-mobile-sub { display: none; padding-left: 14px; }
  .fahe-mobile-item.is-open > .fahe-mobile-sub { display: block; }
  .fahe-mobile-sub .fahe-mobile-item__link { font-size: 13.5px; font-weight: 600; padding: 11px 10px; }
  .fahe-mobile-sub .fahe-mobile-sub .fahe-mobile-item__link { font-weight: 500; color: var(--ef-muted); }
}
.fahe-footer * { box-sizing: border-box; }
.fahe-footer { font-family: var(--ef-font); background: var(--ef-navy); color: #C9D2E4; }
.fahe-footer a { text-decoration: none; color: #C9D2E4; }
.fahe-footer a:hover { color: #fff; }

.fahe-footer__top { max-width: 1280px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }

.fahe-footer__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: #fff; margin-bottom: 16px; }
.fahe-footer__logo { max-width:170px !important; overflow:hidden; }
.fahe-footer__logo .fahe-footer__logo-img, .fahe-footer img.fahe-footer__logo-img { display:block !important; height:44px !important; width:auto !important; max-width:150px !important; min-width:0 !important; max-height:44px !important; object-fit:contain !important; background:#fff; padding:5px 9px !important; border-radius:10px; border:0 !important; box-sizing:content-box; }
.fahe-footer__affil { display:inline-flex !important; align-items:center; gap:8px; margin-top:18px; padding:11px 22px; border-radius:999px; background:var(--ef-gold) !important; color:var(--ef-navy) !important; font-weight:800; font-size:13.5px; text-decoration:none !important; border:2px solid var(--ef-gold) !important; transition:background .2s,color .2s; }
.fahe-footer__affil:hover { background:transparent !important; color:var(--ef-gold) !important; }
.fahe-footer__logo-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--ef-gold), #f0a500); display: flex; align-items: center; justify-content: center; color: var(--ef-navy); font-weight: 800; font-size: 16px; }
.fahe-footer__desc { font-size: 13.5px; line-height: 1.7; color: #9FB0CC; margin: 0 0 20px; max-width: 300px; }
.fahe-footer__social { display: flex; gap: 10px; }
.fahe-footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.fahe-footer__social a:hover { background: var(--ef-gold); border-color: var(--ef-gold); color: var(--ef-navy); }

.fahe-footer__col h4 { color: #fff; font-size: 15.5px; font-weight: 700; margin: 0 0 18px; }
.fahe-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fahe-footer__col ul a { font-size: 13.5px; }

.fahe-footer__newsletter-form { display: flex; border-radius: 7px; overflow: hidden; margin-bottom: 20px; }
.fahe-footer__newsletter-form input { flex: 1; border: none; padding: 12px 14px; font-size: 13.5px; font-family: inherit; }
.fahe-footer__newsletter-form button { background: var(--ef-gold); border: none; color: var(--ef-navy); padding: 0 18px; cursor: pointer; font-weight: 700; }
.fahe-footer__newsletter-form button:hover { background: #f0a500; }
.fahe-footer__contact { font-size: 13px; line-height: 1.9; color: #9FB0CC; }
.fahe-footer__contact strong { color: #fff; display: block; margin-top: 12px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.fahe-footer__bottom { background: var(--ef-gold); }
.fahe-footer__bottom-inner { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.fahe-footer__copy { font-size: 13px; color: var(--ef-navy); font-weight: 600; }
.fahe-footer__call { display: flex; align-items: center; gap: 12px; }
.fahe-footer__call-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--ef-navy); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex-shrink: 0; }
.fahe-footer__call-text { line-height: 1.3; }
.fahe-footer__call-text small { display: block; font-size: 11px; color: var(--ef-navy); opacity: .75; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.fahe-footer__call-text a { color: var(--ef-navy); font-weight: 800; font-size: 15px; }
.fahe-footer__call-text a:hover { color: var(--ef-navy-dk); }

@media (max-width: 900px) {
  .fahe-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fahe-footer__top { grid-template-columns: 1fr; padding: 44px 20px 32px; }
  .fahe-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- plugin additions (not part of the original design) ---- */
.fahe-nav__link.fahe-is-current,.fahe-drop__grid a.fahe-is-current{color:var(--ef-navy);background:var(--ef-light);font-weight:700}
.fahe-mobile-item__link.fahe-is-current{color:var(--ef-navy)}
body.admin-bar .fahe-mega,body.admin-bar .fahe-drop{margin-top:32px}
@media (max-width:782px){body.admin-bar .fahe-mega,body.admin-bar .fahe-drop{margin-top:46px}}
.fahe-footer{clear:both;width:100%}
