.bhf-header {
  position: relative;
  z-index: 999;
  background: rgba(247, 242, 232, .97);
  border-bottom: 1px solid var(--bh-border, rgba(28,43,74,.14));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bhf-header--sticky { position: sticky; top: 0; }
.bhf-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(170px, 215px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 1.7vw, 28px);
}
.bhf-brand { display: flex; align-items: center; min-width: 0; }
.bhf-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.bhf-logo { display: block; width: auto; object-fit: contain; }
.bhf-logo--header { max-width: 205px; max-height: 50px; }
.bhf-logo--footer { max-width: 250px; max-height: 74px; }
.bhf-brand .custom-logo-link { display: inline-flex; }
.bhf-brand .custom-logo { width: auto; max-height: 52px; }
.bhf-brand__text {
  color: var(--bh-navy, #1C2B4A);
  font-family: var(--bh-heading-font, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 700;
  text-decoration: none;
}
.bhf-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(12px, 1.2vw, 20px);
  min-width: 0;
  width: 100%;
}
.bhf-menu, .bhf-menu ul, .bhf-footer__links { margin: 0; padding: 0; list-style: none; }
.bhf-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.55vw, 30px);
  min-width: 0;
  flex: 0 1 auto;
}
.bhf-menu > li { position: relative; }
.bhf-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bh-navy, #1C2B4A);
  font-family: var(--bh-body-font, Arial, sans-serif);
  font-size: clamp(.84rem, .72vw, .94rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bhf-menu a:hover, .bhf-menu .current-menu-item > a, .bhf-menu .current-menu-ancestor > a { color: #9B7712; }
.bhf-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  width: max-content;
  max-width: min(360px, calc(100vw - 32px));
  max-height: min(66vh, 520px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--bh-border, rgba(28,43,74,.16));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(28,43,74,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.bhf-menu li:hover > .sub-menu,
.bhf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bhf-menu .sub-menu a { display: flex; padding: 7px 10px; border-radius: 10px; }
.bhf-menu .sub-menu a:hover { background: var(--bh-cream, #F7F2E8); }

/* v1.3: all desktop submenus use a compact single-column dropdown. */
.bhf-menu > li.mega-menu { position: relative; }
.bhf-menu > li.mega-menu > .sub-menu {
  left: 0;
  width: 330px;
  min-width: 330px;
  transform: translateY(8px);
  display: block;
}
.bhf-menu > li.mega-menu:hover > .sub-menu,
.bhf-menu > li.mega-menu:focus-within > .sub-menu { transform: none; }

.bhf-cta {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .62rem .9rem;
  border: 1px solid rgba(28,43,74,.08);
  border-radius: 999px;
  background: var(--bh-gold, #E8B840);
  color: var(--bh-navy, #1C2B4A);
  font-weight: 800;
  font-size: .84rem;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bhf-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232,184,64,.24); background: #f0c85f; }
.bhf-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.bhf-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--bh-navy, #1C2B4A); transition: .2s ease; }

.bhf-footer {
  position: relative;
  overflow: hidden;
  background: var(--bh-navy, #1C2B4A);
  color: #fff;
  padding: clamp(70px, 8vw, 112px) 0 26px;
}
.bhf-footer::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -180px;
  top: -220px;
  border: 1px solid rgba(232,184,64,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(232,184,64,.025), 0 0 0 144px rgba(232,184,64,.02);
  pointer-events: none;
}
.bhf-footer a { color: #fff; }
.bhf-footer__cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(58px, 7vw, 90px);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(232,184,64,.28);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(232,184,64,.13), rgba(255,255,255,.035));
}
.bhf-footer__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--bh-gold, #E8B840);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.bhf-footer__cta-card h2 {
  margin: 0;
  color: #fff;
  font-family: var(--bh-heading-font, Georgia, serif);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
}
.bhf-footer__cta {
  flex: 0 0 auto;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.35rem;
  border-radius: 999px;
  background: var(--bh-gold, #E8B840);
  color: var(--bh-navy, #1C2B4A) !important;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bhf-footer__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.bhf-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(140px, .72fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.bhf-footer__brand { min-width: 0; }
.bhf-footer__logo { margin-bottom: 22px; }
.bhf-footer__statement {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--bh-heading-font, Georgia, serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
}
.bhf-footer__description {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  line-height: 1.7;
}
.bhf-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.bhf-footer__contact a { color: rgba(255,255,255,.84); text-decoration: none; }
.bhf-footer__contact a:hover { color: var(--bh-gold, #E8B840); }
.bhf-footer__column h3 {
  margin: 4px 0 18px;
  color: var(--bh-gold, #E8B840);
  font-family: var(--bh-body-font, Arial, sans-serif);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bhf-footer__links { display: grid; gap: 10px; }
.bhf-footer__links a,
.bhf-footer__placeholder {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: rgba(255,255,255,.76);
  font-size: .97rem;
  line-height: 1.45;
  text-decoration: none;
}
.bhf-footer__links a:hover { color: #fff; transform: translateX(2px); }
.bhf-footer__placeholder { cursor: default; }
.bhf-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.bhf-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.bhf-socials a:hover { background: var(--bh-gold, #E8B840); border-color: var(--bh-gold, #E8B840); transform: translateY(-2px); }
.bhf-socials svg { width: 18px; height: 18px; fill: currentColor; }
.bhf-socials a:hover { color: var(--bh-navy, #1C2B4A); }
.bhf-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: clamp(54px, 6vw, 76px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,.52);
  font-size: .88rem;
}
.bhf-back-to-top { color: rgba(255,255,255,.74) !important; font-weight: 700; text-decoration: none; }
.bhf-back-to-top:hover { color: var(--bh-gold, #E8B840) !important; }

@media (max-width: 1120px) {
  .bhf-footer__grid { grid-template-columns: 1.35fr repeat(3, minmax(120px, .7fr)); gap: 30px; }
}

/* Large desktop: menu begins close to the logo, with generous spacing between items. */
@media (min-width: 1500px) {
  .bhf-header__inner {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: 24px;
  }
  .bhf-logo--header { max-width: 210px; }
  .bhf-menu { gap: clamp(22px, 1.55vw, 34px); }
  .bhf-menu a { font-size: .94rem; }
  .bhf-cta {
    min-height: 42px;
    padding: .62rem 1rem;
    font-size: .84rem;
  }
}

/* Standard desktop / large laptop: reduce spacing progressively rather than jumping. */
@media (min-width: 1221px) and (max-width: 1499px) {
  .bhf-header__inner {
    min-height: 74px;
    grid-template-columns: minmax(160px, 190px) minmax(0, 1fr);
    gap: clamp(14px, 1.25vw, 20px);
  }
  .bhf-logo--header {
    max-width: clamp(170px, 13.2vw, 190px);
    max-height: 46px;
  }
  .bhf-nav { gap: clamp(8px, .85vw, 14px); }
  .bhf-menu { gap: clamp(10px, 1vw, 18px); }
  .bhf-menu a {
    min-height: 40px;
    font-size: clamp(.78rem, .66vw, .87rem);
    letter-spacing: -.01em;
  }
  .bhf-cta {
    min-height: 38px;
    padding: .52rem .76rem;
    font-size: clamp(.72rem, .61vw, .79rem);
  }
}

/* Smaller laptops: preserve the full menu, but make every header element compact. */
@media (min-width: 981px) and (max-width: 1220px) {
  .bhf-header__inner {
    min-height: 68px;
    grid-template-columns: minmax(130px, 154px) minmax(0, 1fr);
    gap: 8px;
  }
  .bhf-logo--header {
    max-width: 150px;
    max-height: 39px;
  }
  .bhf-nav { gap: 5px; }
  .bhf-menu { gap: clamp(4px, .42vw, 7px); }
  .bhf-menu a {
    min-height: 36px;
    font-size: clamp(.68rem, .61vw, .75rem);
    letter-spacing: -.015em;
  }
  .bhf-cta {
    min-height: 34px;
    padding: .44rem .58rem;
    font-size: clamp(.64rem, .57vw, .70rem);
  }
  .bhf-menu .sub-menu { min-width: 235px; }
}

/* Only use the mobile/toggle navigation below tablet width. */
@media (max-width: 980px) {
  .bhf-header__inner { grid-template-columns: 1fr auto; min-height: 76px; }
  .bhf-logo--header { max-width: 190px; max-height: 48px; }
  .bhf-toggle { display: block; }
  .bhf-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 18px var(--bh-gutter, 24px) 26px;
    background: var(--bh-cream, #F7F2E8);
    border-bottom: 1px solid var(--bh-border, rgba(28,43,74,.16));
    box-shadow: 0 18px 36px rgba(28,43,74,.10);
  }
  .bhf-nav.is-open { display: block; }
  .bhf-menu { display: block; }
  .bhf-menu > li { border-bottom: 1px solid rgba(28,43,74,.09); }
  .bhf-menu a { width: 100%; min-height: 52px; font-size:.92rem; }
  .bhf-menu .sub-menu,
  .bhf-menu > li.mega-menu > .sub-menu {
    position: static;
    width: auto;
    min-width: 0;
    max-height: none;
    overflow: visible;
    padding: 0 0 12px 18px;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
  }
  .bhf-cta { width: 100%; margin: 18px 0 0; font-size:.9rem; white-space:normal; }
  .bhf-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .bhf-footer__column:last-child { grid-column: 2 / 4; }
}

@media (max-width: 760px) {
  .bhf-footer__cta-card { align-items: flex-start; flex-direction: column; }
  .bhf-footer__cta { width: 100%; }
  .bhf-footer__grid { grid-template-columns: 1fr 1fr; }
  .bhf-footer__brand { grid-column: 1 / -1; max-width: 620px; }
  .bhf-footer__column:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .bhf-header__inner { min-height: 72px; }
  .bhf-logo--header { max-width: 176px; max-height: 44px; }
  .bhf-footer { padding-top: 58px; }
  .bhf-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .bhf-footer__brand, .bhf-footer__column:last-child { grid-column: auto; }
  .bhf-footer__bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .bhf-menu .sub-menu, .bhf-cta, .bhf-toggle span, .bhf-footer__cta, .bhf-socials a, .bhf-footer__links a { transition: none !important; }
}


/* =========================================================
   v1.4 — footer centering + safer laptop dropdowns
   ========================================================= */
.bhf-header{z-index:10000;}
.bhf-nav,.bhf-menu,.bhf-menu>li{z-index:10001;}
.bhf-menu .sub-menu{z-index:10050;}
.bhf-menu > li:nth-last-child(-n+3) > .sub-menu{
  left:auto;
  right:0;
}

/* Footer is deliberately centred so it reads as a global footer,
   not as another page-level CTA block. */
.bhf-footer{text-align:center;}
.bhf-footer__cta-card{
  flex-direction:column;
  justify-content:center;
  text-align:center;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.bhf-footer__grid{
  grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(150px,.72fr));
  justify-items:center;
  text-align:center;
}
.bhf-footer__brand,
.bhf-footer__column{width:100%;text-align:center;}
.bhf-footer__description{margin-inline:auto;}
.bhf-footer__contact,
.bhf-socials{justify-content:center;}
.bhf-footer__links{justify-items:center;}
.bhf-footer__links a,
.bhf-footer__placeholder{justify-content:center;text-align:center;}
.bhf-footer__bottom{justify-content:center;flex-wrap:wrap;text-align:center;}

@media (min-width:981px) and (max-width:1366px){
  .bhf-header__inner{
    grid-template-columns:minmax(136px,158px) minmax(0,1fr)!important;
    gap:8px!important;
  }
  .bhf-logo--header{max-width:154px!important;max-height:40px!important;}
  .bhf-nav{gap:6px!important;}
  .bhf-menu{gap:4px!important;}
  .bhf-menu a{
    font-size:14px!important;
    min-height:38px!important;
    padding-inline:3px!important;
  }
  .bhf-cta{
    min-height:36px!important;
    padding:.46rem .62rem!important;
    font-size:.72rem!important;
  }
  .bhf-menu .sub-menu{
    min-width:232px!important;
    max-width:290px!important;
    max-height:min(58vh,430px)!important;
  }
  .bhf-menu .sub-menu a{
    white-space:normal!important;
    line-height:1.3!important;
    padding:8px 10px!important;
  }
}
@media(max-width:1120px){
  .bhf-footer__grid{grid-template-columns:repeat(3,minmax(150px,1fr));}
  .bhf-footer__brand{grid-column:1/-1;max-width:700px;}
}
@media(max-width:760px){
  .bhf-footer__grid{grid-template-columns:1fr;}
  .bhf-footer__column{max-width:420px;}
  .bhf-footer__cta-card{padding:28px 20px;}
}
@media(max-width:760px){
  .bhf-footer__cta-card{align-items:center!important;}
  .bhf-footer__cta{width:auto!important;min-width:min(100%,260px);}
  .bhf-footer__bottom{align-items:center!important;}
}
@media(max-width:520px){
  .bhf-footer__bottom{align-items:center!important;text-align:center!important;}
}


/* =========================================================
   v1.4.2 — refined fluid desktop/laptop header
   Spacious on wide screens, progressively tighter on laptops,
   then switches to the mobile toggle at 980px.
   ========================================================= */
@media (min-width: 1500px) {
  .bhf-header__inner {
    grid-template-columns:minmax(190px,220px) minmax(0,1fr) !important;
    gap:clamp(18px,1.35vw,26px) !important;
  }
  .bhf-logo--header { max-width:210px !important; }
  .bhf-nav { gap:clamp(10px,.8vw,16px) !important; }
  .bhf-menu { gap:clamp(20px,1.35vw,32px) !important; }
  .bhf-menu a { font-size:clamp(.88rem,.72vw,.96rem) !important; }
}

@media (min-width: 1221px) and (max-width: 1499px) {
  .bhf-header__inner {
    grid-template-columns:minmax(158px,188px) minmax(0,1fr) !important;
    gap:clamp(10px,1vw,18px) !important;
  }
  .bhf-logo--header { max-width:clamp(164px,12.2vw,188px) !important; }
  .bhf-nav { gap:clamp(7px,.7vw,12px) !important; }
  .bhf-menu { gap:clamp(8px,.8vw,15px) !important; }
  .bhf-menu a {
    font-size:clamp(.78rem,.73vw,.88rem) !important;
    padding-inline:2px !important;
  }
  .bhf-cta {
    padding:.50rem clamp(.62rem,.65vw,.82rem) !important;
    font-size:clamp(.72rem,.68vw,.80rem) !important;
  }
}

@media (min-width: 981px) and (max-width: 1220px) {
  .bhf-header__inner {
    grid-template-columns:minmax(138px,154px) minmax(0,1fr) !important;
    gap:6px !important;
  }
  .bhf-logo--header { max-width:150px !important; max-height:40px !important; }
  .bhf-nav { gap:4px !important; }
  .bhf-menu { gap:clamp(3px,.42vw,6px) !important; }
  .bhf-menu a {
    font-size:clamp(.68rem,.65vw,.75rem) !important;
    min-height:36px !important;
    padding-inline:2px !important;
  }
  .bhf-cta {
    min-height:34px !important;
    padding:.42rem .54rem !important;
    font-size:clamp(.64rem,.60vw,.70rem) !important;
  }
}
