/* Homepage-only CMS header; never changes inner-page branding or navigation. */
.vv-site-header--home-cms {
  padding-inline: clamp(12px, var(--vv-home-header-pad, 54px), 120px);
}
.vv-site-header--home-cms .vv-header__inner {
  width: 100%; max-width: none;
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
}
.vv-site-header--home-cms .vv-site-brand {
  flex: 0 0 auto; transform: translate(var(--vv-home-logo-x,0px),var(--vv-home-logo-y,0px));
}
.vv-site-header--home-cms .vv-home-brand {display:inline-flex;align-items:center;text-decoration:none;color:var(--vv-home-logo-color,#f5f1e7)}
.vv-site-header--home-cms .vv-home-brand__image,
.vv-site-header--home-cms .custom-logo {width:auto;max-width:var(--vv-home-logo-width,150px);max-height:110px;height:auto;object-fit:contain}
.vv-site-header--home-cms .vv-home-brand--text {font-family:var(--vv-home-logo-font,Georgia,serif);font-size:var(--vv-home-logo-size,25px);font-weight:500;line-height:1.1;letter-spacing:.08em}
.vv-site-header--home-cms .vv-home-header-nav {
  flex: 0 1 auto; min-width:0; transform:translate(var(--vv-home-menu-x,0px),var(--vv-home-menu-y,0px));
  margin-left:auto; margin-right:0;
}
.vv-site-header--home-cms .vv-home-header-nav .vv-primary-menu {
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px var(--vv-home-menu-gap,30px);
}
.vv-site-header--home-cms .vv-home-header-nav .vv-primary-menu > li > a {
  color:var(--vv-home-menu-color,#f5f1e7);
  font-family:var(--vv-home-menu-font,Arial,sans-serif);
  font-size:var(--vv-home-menu-size,12px);
  font-weight:var(--vv-home-menu-weight,550);
  letter-spacing:var(--vv-home-menu-tracking,1.2px);
  text-transform:var(--vv-home-menu-case,uppercase);
  line-height:1.4;
}
.vv-site-header--home-cms .vv-home-header-nav .vv-primary-menu > li > a:hover,
.vv-site-header--home-cms .vv-home-header-nav .vv-primary-menu > li > a:focus-visible {color:var(--vv-home-menu-hover,#d9b77c)}
.vv-site-header--home-cms[data-home-menu-placement="left"] .vv-home-header-nav {margin-left:0;margin-right:auto}
.vv-site-header--home-cms[data-home-menu-placement="left"] .vv-primary-menu {justify-content:flex-start}
.vv-site-header--home-cms[data-home-menu-placement="center"] .vv-home-header-nav {margin-left:auto;margin-right:auto}
.vv-site-header--home-cms[data-home-menu-placement="center"] .vv-primary-menu {justify-content:center}
.vv-site-header--home-cms[data-home-header-align="center"] .vv-home-header-nav {position:absolute;left:50%;transform:translate(calc(-50% + var(--vv-home-menu-x,0px)),var(--vv-home-menu-y,0px));margin:0}
.vv-site-header--home-cms[data-home-header-align="stacked"] .vv-header__inner {flex-direction:column;justify-content:center;gap:8px}
.vv-site-header--home-cms[data-home-header-align="stacked"] .vv-home-header-nav {margin:0}
@media(max-width:900px){
  .vv-site-header--home-cms .vv-home-header-nav .vv-primary-menu {gap:8px 16px}
  .vv-site-header--home-cms[data-home-header-align="center"] .vv-home-header-nav {position:static;transform:none;margin-left:auto}
}
@media(max-width:767px){
  .vv-site-header--home-cms .vv-header__inner {flex-direction:row;justify-content:space-between}
  .vv-site-header--home-cms .vv-home-header-nav {transform:none;}
  .vv-site-header--home-cms.is-enhanced .vv-home-header-nav .vv-primary-menu {display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px}
  .vv-site-header--home-cms.is-menu-open .vv-home-header-nav .vv-primary-menu > li > a {color:var(--vv-ink,#12251e)}
  .vv-site-header--home-cms .vv-home-brand__image {max-height:66px}
  .vv-site-header--home-cms[data-home-header-align="stacked"] .vv-header__inner {flex-direction:row}
}

.vv-site-header--home-cms .vv-site-brand .custom-logo {max-width:var(--vv-home-logo-width,150px);max-height:110px}

/* Unlike the cinematic default, homepage CMS can expose links in the header. */
@media(min-width:1041px){
  .vv-site-header--home-cms.is-enhanced[data-home-menu-display="inline"] .vv-home-header-nav {display:block}
  .vv-site-header--home-cms.is-enhanced[data-home-menu-display="inline"] .vv-menu-toggle {display:none}
}
@media(max-width:1040px){
  .vv-site-header--home-cms.is-menu-open .vv-home-header-nav .vv-primary-menu {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(5px,1.5vh,18px)}
  .vv-site-header--home-cms.is-menu-open .vv-home-header-nav .vv-primary-menu > li > a {font-size:clamp(1.5rem,5vh,3.5rem);font-family:var(--vv-home-menu-font,Arial,sans-serif);color:var(--vv-home-menu-color,#f5f1e7);letter-spacing:var(--vv-home-menu-tracking,1.2px)}
}

/* Homepage CMS header remains active for any WordPress front-page composition. */
@media (min-width:1041px) {
  .vv-site-header--home-cms.is-enhanced[data-home-menu-display="inline"] .vv-home-header-nav { display:block; }
  .vv-site-header--home-cms.is-enhanced[data-home-menu-display="inline"] .vv-menu-toggle { display:none; }
}

/* 0.26.9: CMS navigation always wins over legacy cinematic hide rules on desktop. */
@media (min-width: 1041px) {
  body .vv-site-header--home-cms[data-home-menu-display="inline"] .vv-home-header-nav,
  body.vv-cinematic-home .vv-site-header--home-cms.is-enhanced[data-home-menu-display="inline"] .vv-home-header-nav {
    display: block;
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    visibility: visible;
    opacity: 1;
    overflow: visible;
  }
  body .vv-site-header--home-cms[data-home-menu-display="inline"] .vv-home-header-nav .vv-primary-menu {
    display: flex;
    flex-direction: row;
    height: auto;
    align-items: center;
  }
  body .vv-site-header--home-cms[data-home-menu-display="inline"] .vv-menu-toggle { display: none; }
}
/* Keep mobile navigation reachable even when legacy hero CSS expects an overlay. */
@media (max-width: 1040px) {
  body .vv-site-header--home-cms.is-menu-open .vv-home-header-nav { display: block; visibility: visible; opacity: 1; }
  body .vv-site-header--home-cms.is-menu-open .vv-home-header-nav .vv-primary-menu { display: flex; }
}

/* 0.27.0: the homepage menu is a first-class inline element, not the old cinematic overlay. */
@media(min-width:1041px){
 body.vv-cinematic-home .vv-site-header--home-cms[data-home-menu-display="inline"] .vv-home-header-nav { display:block; position:relative; opacity:1; visibility:visible; width:auto; height:auto; overflow:visible; }
 body.vv-cinematic-home .vv-site-header--home-cms[data-home-menu-display="inline"] .vv-home-header-nav .vv-primary-menu { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; }
 body.vv-cinematic-home .vv-site-header--home-cms[data-home-menu-display="inline"] .vv-header__actions { display:none; }
}
