.header-option-layout { display: none; }

[data-option=photo] .header-option-nav > a[href^="/contact.php"],
html[data-header-preview=photo] header .invista-design-navigation .navbar-nav > #mh5 > div > a.aToHover {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 9px;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 6px;
}

@media (max-width: 960px) {
  html[data-header-preview=photo] header .header-option-mobile-owner a.aToHover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  html[data-header-preview=photo][data-invista-theme=dark] header .invista-design-navigation .navbar-nav > .header-option-mobile-owner {
    background-color: var(--theme-surface);
    box-shadow: inset 0 0 0 1px var(--theme-line);
  }
  html[data-header-preview=photo] header .invista-design-navigation .navbar-nav > li a.aToHover {
    font-weight: 700;
  }
  html[data-header-preview=photo] header .invista-design-navigation .navbar-nav > li a.aToHover:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }
}

@media (min-width: 961px) {
  html[data-invista-design] header.has-header-option > .row { display: none !important; }
  .header-option-layout {
    --ink: #24304a;
    --blue: #344397;
    --line: #dfe4ef;
    --light: #eef2fa;
    display: block;
    background: white;
    color: var(--ink);
    font-size: 15px;
  }
  .header-option-layout a { color: inherit; text-decoration: none; }
  .header-option-layout a, .header-option-layout summary { white-space: nowrap; }
  .header-option-layout :is(a, button, input, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  .header-option-layout a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
  .header-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2vw, 32px);
    width: min(100% - 48px, 1500px);
    min-height: 72px;
    margin-inline: auto;
  }
  .header-option-logo { display: block; width: clamp(132px, 12vw, 188px); flex: none; }
  .header-option-logo img { display: block; width: 100%; height: auto; }
  .header-option-nav, .header-option-actions, .header-option-path-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.8vw, 28px);
  }
  .header-option-actions { gap: 12px; }
  .header-option-language { font-size: 13px; font-weight: 700; }
  .header-option-phone, .header-option-tool { display: inline-flex; align-items: center; gap: 7px; }
  .header-option-phone { font-weight: 700; }
  .header-option-tool .fa-heart { color: #b14630; }
  .header-option-layout .header-option-assignment {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 7px;
    background: var(--blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
  }
  .header-option-layout .header-option-assignment:hover { background: #253473; color: white; text-decoration: none; }
  .header-option-details { position: relative; flex: none; }
  .header-option-details summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding-inline: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    list-style: none;
    cursor: pointer;
  }
  .header-option-details summary::-webkit-details-marker { display: none; }
  .header-option-details[open] summary { background: var(--light); color: var(--ink); }
  html[data-invista-design] header:has(.header-option-details[open]) { z-index: 1041; }
  .header-option-panel {
    position: absolute;
    z-index: 5;
    right: 0;
    top: calc(100% + 5px);
    min-width: 168px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    box-shadow: 0 10px 24px #18234326;
  }
  .header-option-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 5px;
  }
  .header-option-panel a:hover { background: var(--light); text-decoration: none; }
  .header-option-rule { border-top: 1px solid var(--line); }

  [data-option=centered] .header-option-frame .header-option-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 89px;
  }
  [data-option=centered] .header-option-phone { justify-self: start; color: var(--blue); }
  [data-option=centered] .header-option-logo { width: 202px; }
  [data-option=centered] .header-option-actions { justify-self: end; font-size: 14px; }
  [data-option=centered] .header-option-rule .header-option-row {
    position: relative;
    min-height: 62px;
    justify-content: center;
  }
  [data-option=centered] .header-option-nav {
    font-size: 14px;
    letter-spacing: .025em;
    text-transform: uppercase;
  }
  [data-option=centered] .header-option-assignment {
    position: absolute;
    inset-inline-end: 0;
    border: 1px solid var(--blue);
    background: white;
    color: var(--blue);
  }

  [data-option=search] .header-option-nav { gap: 16px; font-weight: 700; }
  [data-option=search] .header-option-row { gap: 18px; }
  [data-option=search] .header-option-details summary { border-color: transparent; }
  .header-option-search {
    display: flex;
    flex: 0 1 285px;
    min-width: 140px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f6fb;
  }
  .header-option-search input {
    width: 100%;
    min-width: 0;
    padding: 0 0 0 12px;
    border: 0;
    background: transparent;
    font: inherit;
  }
  .header-option-search button {
    width: 39px;
    min-height: 39px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #e5ebf8;
    color: var(--blue);
  }
  [data-option=search] .header-option-rule { background: #f6f7fa; }
  [data-option=search] .header-option-rule .header-option-row {
    min-height: 39px;
    justify-content: flex-start;
    font-size: 13px;
  }
  [data-option=search] .header-option-phone { margin-inline-start: auto; }

  [data-option=owners] .header-option-split .header-option-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 10px;
  }
  [data-option=owners] .header-option-actions { gap: 17px; font-size: 13px; }
  .header-option-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 61px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #edf1fa;
  }
  .header-option-path:last-child { background: #f6efe9; }
  .header-option-path-label { font-size: 16px; font-weight: 750; white-space: nowrap; }
  .header-option-path a { font-size: 14px; }
  .header-option-path-links { gap: 12px; }
  .header-option-path .header-option-assignment { background: #93422f; }

  html[data-header-preview=photo][data-invista-design-page=home] .invista-design-hero { margin-top: -106px; }
  html[data-header-preview=photo][data-invista-design-page=home] .invista-design-hero-content { padding-top: max(112px, 8vw); }
  html[data-header-preview=photo][data-invista-design-page=home] .invista-home-video-control { top: 119px; }
  html[data-header-preview=photo] header.has-header-option { background: transparent; border: 0; box-shadow: none; }
  [data-option=photo] {
    padding-block: 8px 24px;
    background: linear-gradient(#151f35e8, #151f35a3 75%, transparent);
    color: #fff;
  }
  [data-option=photo] .header-option-row { min-height: 74px; }
  [data-option=photo] .header-option-logo {
    position: relative;
    padding: 8px 12px;
  }
  @supports (mask-image: url("/classic-assets/683c6a57a6756f14b42ef70384fdc4f9.png")) {
    /* Keep the original colored mark and apply white only to the wordmark below the arc. */
    [data-option=photo] .header-option-logo img {
      clip-path: polygon(0 0, 100% 0, 100% 43.84%, 32.76% 43.84%, 32.76% 100%, 0 100%);
    }
    [data-option=photo] .header-option-logo::after {
      position: absolute;
      inset: 8px 12px;
      clip-path: inset(43.84% 0 0 32.76%);
      mask: url("/classic-assets/683c6a57a6756f14b42ef70384fdc4f9.png") center / 100% 100% no-repeat;
      background: #fff;
      pointer-events: none;
      content: "";
    }
  }
  [data-option=photo] .header-option-nav { gap: 20px; margin-inline: auto; }
  [data-option=photo] .header-option-nav > a,
  [data-option=photo] .header-option-actions > a,
  [data-option=photo] .header-option-actions > .header-option-details > summary { font-weight: 700; }
  [data-option=photo] .header-option-nav > a[href^="/contact.php"]:hover {
    background: #fff2;
    text-decoration: none;
  }
  [data-option=photo] .header-option-row > :is(nav, .header-option-actions) > a:hover { color: #fff; }
  [data-option=photo] .header-option-actions { font-size: 13px; }
  [data-option=photo] .header-option-actions > .header-option-owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 39px;
    padding-inline: 9px;
    border: 1px solid currentColor;
    border-radius: 6px;
  }
  [data-option=photo] .header-option-owner:hover {
    background: #fff2;
    text-decoration: none;
  }
  [data-option=photo] .header-option-phone { font-size: 16px; }
  [data-option=photo] .header-option-actions summary { border-color: #ffffff7a; }

  [data-option=menu] .header-option-row { min-height: 84px; }
  [data-option=menu] .header-option-row > .header-option-actions:first-child { gap: 20px; }
  [data-option=menu] .header-option-details .header-option-panel { inset-inline: 0 auto; }
  [data-option=menu] .header-option-nav { gap: 3px; padding: 4px; border-radius: 8px; background: var(--light); }
  [data-option=menu] .header-option-nav a { padding: 8px 12px; font-weight: 700; }
  [data-option=menu] .header-option-actions { font-size: 13px; }
}

@media (min-width: 1301px) and (max-width: 1499px) {
  [data-option=photo] .header-option-row,
  [data-option=photo] .header-option-nav { gap: 12px; }
}

@media (min-width: 961px) and (max-width: 1300px) {
  .header-option-row { width: calc(100% - 36px); gap: 12px; }
  [data-option=centered] .header-option-rule .header-option-row { justify-content: space-between; }
  [data-option=centered] .header-option-assignment { position: static; }
  [data-option=photo] .header-option-nav { gap: 11px; font-size: 13px; }
  [data-option=photo] .header-option-phone { display: none; }
  [data-option=menu] .header-option-actions .header-option-phone { display: none; }
  [data-option=owners] .header-option-path { padding-inline: 10px; }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .header-option-layout .header-option-nav { gap: 10px; }
  [data-option=menu] .header-option-actions, [data-option=owners] .header-option-actions { gap: 8px; }
  [data-option=search] .header-option-details summary { padding-inline: 4px; }
  [data-option=search] .header-option-row { gap: 10px; }
  [data-option=owners] .header-option-path, [data-option=owners] .header-option-path a { font-size: 13px; }
}

@media (min-width: 961px) {
  [data-option=photo] .header-option-nav {
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
    row-gap: 4px;
  }
}

header:has(.invista-language-picker[open]) { z-index: 1041; }
header .invista-language-picker {
  position: relative;
  flex: none;
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
}
header .invista-language-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 39px;
  padding: 0 8px;
  border: 1px solid #ffffff7a;
  border-radius: 6px;
  color: inherit;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}
header .invista-language-picker summary::-webkit-details-marker { display: none; }
header .invista-language-picker summary::marker { content: ""; }
header .invista-language-picker[open] summary { background: #fffdf8; color: #24354e; }
header .invista-language-picker img {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: fill;
  border-radius: 2px;
  outline: 1px solid #17314d20;
}
header .invista-language-picker .invista-language-arrow {
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 2px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
header .invista-language-picker[open] .invista-language-arrow { transform: translateY(3px) rotate(225deg); }
header .invista-language-picker .invista-language-options {
  position: absolute;
  z-index: 12;
  inset: calc(100% + 6px) 0 auto auto;
  min-width: 154px;
  margin: 0;
  padding: 4px;
  border: 1px solid #d4ddea;
  border-radius: 8px;
  background: #fffdf8;
  color: #24354e;
  box-shadow: 0 8px 20px #152b4224;
  list-style: none;
}
header .invista-language-picker .invista-language-options a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 4px 10px;
  border-radius: 5px;
  color: #24354e;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
header .invista-language-picker .invista-language-options a:is(:hover, [aria-current="true"]) {
  background: #e9f0f8;
  color: #233f64;
}
header .invista-language-picker :is(summary, a):focus-visible { outline: 2px solid #6085b6; outline-offset: -2px; }
@media (max-width: 960px) {
  header .langs:has(.invista-language-picker) {
    display: flex;
    align-items: center;
    overflow: visible;
  }
  header .langs .invista-language-picker summary {
    min-height: 40px;
    padding-inline: 6px;
    border-color: #d5ddea;
    background: #fffdf8;
    color: #24354e;
  }
}

header .langs:has(.invista-language-picker) > [hidden] { display: none !important; }

html[data-invista-theme="dark"] header .invista-language-picker :is(summary, .invista-language-options) {
  border-color: var(--theme-line);
  background: var(--theme-surface);
  color: var(--theme-cream);
}
html[data-invista-theme="dark"] header .langs:has(.invista-language-picker) {
  border-color: var(--theme-line);
}
/* The site-wide Dark header link rules have higher specificity. */
html[data-invista-theme="dark"] header .invista-language-picker .invista-language-options a {
  color: var(--theme-text) !important;
}
html[data-invista-theme="dark"] header .invista-language-picker .invista-language-options a:is(:hover, [aria-current="true"]) {
  background: var(--theme-bronze);
  color: var(--theme-cream) !important;
}
html[data-invista-theme="dark"] header .invista-language-picker :is(summary, a):focus-visible {
  outline-color: var(--theme-gold);
}
