/* Shared public header — single source of truth. */
:root {
  --home-header-height: 60px;
  --home-primary: #213e4c;
  --home-primary-dark: #182f3a;
  --home-gold: #e6d7bd;
  --home-paper: #fdfcfb;
  --home-curve: #fdfcfb;
}

html {
  scroll-padding-top: 76px;
}

section[id] {
  scroll-margin-top: 76px;
}

/* Header */
.site-header.site-header-current {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  height: var(--home-header-height);
  min-height: var(--home-header-height);
  border: 0;
  background: var(--home-paper);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header-current::after {
  display: none;
}

.site-header-current .nav-row {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--home-header-height);
  min-height: var(--home-header-height);
  margin: 0;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: visible;
}

.site-header-current .logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-primary);
  line-height: 1;
}

.site-header-current .brand-logo {
  display: block;
  width: 130px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header-current .logo-text {
  min-height: 27px;
  margin: 0;
  padding-left: 13px;
  border-left: 1px solid #d4d0ca;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  color: #53646d;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: 0;
  filter: none;
  font-family: "Figtree", sans-serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.desktop-header-nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.desktop-header-nav,
.site-header-current .main-nav,
.header-contact-cta,
.site-header-current .main-nav > .mobile-header-cta {
  font-family: "Figtree", sans-serif;
}

.desktop-header-nav,
.site-header-current .main-nav {
  color: #4b566c;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.desktop-header-nav > a,
.desktop-nav-parent {
  position: relative;
  padding: 10px 15px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: opacity .3s ease;
}

.desktop-nav-parent {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.desktop-header-nav > a:hover,
.desktop-nav-parent:hover {
  color: inherit;
  opacity: .7;
}

.desktop-nav-dropdown {
  position: relative;
  height: var(--home-header-height);
  display: flex;
  align-items: center;
}

.desktop-nav-parent .desktop-nav-arrow {
  width: 12px;
  min-width: 12px;
  max-width: 12px;
  height: auto;
  flex-shrink: 0;
  margin-left: 10px;
  transition: transform .3s ease;
}

.desktop-nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 110;
  width: max-content;
  min-width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 0 0 10px 10px;
  background: var(--home-paper);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .18s ease, visibility .18s ease;
}

.desktop-nav-submenu a {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.site-header-current :is(.desktop-nav-submenu, .mobile-header-dropdown) .header-submenu-link {
  gap: 8px;
  color: #646676;
  background: transparent;
  transition: color .3s ease, transform .55s cubic-bezier(.45, 0, .2, 1);
}

.site-header-current .header-submenu-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header-current :is(.desktop-nav-submenu, .mobile-header-dropdown) .header-submenu-link:hover,
.site-header-current :is(.desktop-nav-submenu, .mobile-header-dropdown) .header-submenu-link:focus-visible {
  color: var(--home-primary);
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .site-header-current :is(.desktop-nav-submenu, .mobile-header-dropdown) .header-submenu-link {
    transition: none;
  }
}

.desktop-nav-dropdown:hover .desktop-nav-submenu,
.desktop-nav-dropdown:focus-within .desktop-nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.desktop-nav-dropdown:hover .desktop-nav-arrow,
.desktop-nav-dropdown:focus-within .desktop-nav-arrow {
  transform: rotate(180deg);
}

.header-contact-cta {
  position: relative;
  top: 0px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 13px 20px;
  border-radius: 50px;
  color: #fff;
  background: var(--home-primary);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  transition: background-color .3s ease;
}

.header-contact-cta,
.site-header-current .main-nav > .mobile-header-cta {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.header-contact-cta svg {
  width: 12px;
  min-width: 12px;
  height: 12px;
  margin-right: 8px;
  color: var(--home-gold);
  fill: none;
  stroke: none;
}

.header-contact-cta .badge-shell {
  fill: currentColor;
}

.header-contact-cta .badge-check {
  fill: none;
  stroke: var(--home-primary);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-contact-cta:hover {
  color: #fff;
  background: var(--home-primary-dark);
  box-shadow: none;
  transform: none;
}

.site-header-current > .nav-row > .menu-toggle,
.site-header-current .main-nav {
  display: none;
}

@media (min-width: 1025px) and (max-width: 1450px) {
  .site-header-current .nav-row {
    gap: 8px;
  }

  .site-header-current .brand-logo {
    width: 116px;
  }

  .site-header-current .logo-text {
    font-size: .8125rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .desktop-header-nav > a,
  .desktop-nav-parent {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .site-header-current .nav-row {
    padding-right: 40px;
    padding-left: 40px;
  }

  .site-header-current .brand-logo {
    width: 100px;
  }

  .site-header-current .logo-text {
    padding-left: 8px;
    font-size: .75rem;
  }

  .desktop-header-nav,
  .header-contact-cta {
    font-size: .875rem;
  }

  .desktop-header-nav > a,
  .desktop-nav-parent {
    padding-right: 8px;
    padding-left: 8px;
  }

  .header-contact-cta {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 1024px) {
  .site-header-current .nav-row {
    padding: 0 20px;
  }

  .site-header-current .brand-logo {
    width: 116px;
    height: 42px;
  }

  .site-header-current .logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header-current .logo-text {
    display: inline-flex;
    min-width: 0;
    max-width: 145px;
    padding-left: 10px;
    font-size: clamp(.75rem, 2.8vw, .875rem);
    line-height: 1.25;
    white-space: normal;
  }

  .desktop-header-nav,
  .header-contact-cta {
    display: none;
  }

  .site-header-current > .nav-row > .menu-toggle {
    flex: 0 0 30px;
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: block;
  }

  .site-header-current > .nav-row > .menu-toggle span {
    position: absolute;
    right: 0;
    height: 3px;
    margin: 0;
    opacity: 1;
    border-radius: 0;
    background: var(--home-primary);
    transition: top .3s ease, bottom .3s ease, width .3s ease, transform .3s ease, background-color .3s ease;
  }

  .site-header-current .menu-toggle .mobile-menu-line-top {
    top: 7px;
    width: 30px;
  }

  .site-header-current .menu-toggle .mobile-menu-line-bottom {
    bottom: 7px;
    width: 20px;
  }

  .site-header-current > .nav-row > .menu-toggle.active span {
    background: #000;
  }

  .site-header-current .menu-toggle.active .mobile-menu-line-top {
    top: 13px;
    transform: rotate(45deg);
  }

  .site-header-current .menu-toggle.active .mobile-menu-line-bottom {
    bottom: 13px;
    width: 30px;
    transform: rotate(-45deg);
  }

  .site-header-current .main-nav {
    position: fixed;
    top: var(--home-header-height);
    left: 0;
    z-index: 120;
    width: 100%;
    margin: 0;
    padding: 10px 20px 20px 10px;
    border: 0;
    border-bottom: 1px solid #dedbd5;
    border-radius: 0;
    background: var(--home-paper);
    box-shadow: 0 20px 30px #0c0d1f20;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: calc(100dvh - var(--home-header-height));
    overflow-y: auto;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
  }

  .site-header-current .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header-current .main-nav a,
  .site-header-current .main-nav > a {
    width: auto;
    min-height: 41px;
    padding: 10px;
    border: 0;
    color: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
  }

  .site-header-current .main-nav a:hover {
    color: var(--home-primary);
    background: #f3f0eb;
  }

  .site-header-current .mobile-header-dropdown summary {
    display: flex;
    align-items: center;
    min-height: 41px;
    padding: 10px;
    list-style: none;
    cursor: pointer;
  }

  .site-header-current .mobile-header-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .site-header-current .mobile-header-dropdown summary::after {
    content: "";
    margin-left: 10px;
    border-top: 5px solid #c3c7cd;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform .2s ease;
  }

  .site-header-current .mobile-header-dropdown[open] summary::after {
    transform: rotate(180deg);
  }

  .site-header-current .mobile-header-dropdown a {
    padding: 8px 20px;
  }

  .site-header-current .main-nav > .mobile-header-cta {
    margin: 10px 0 0 10px;
    padding: 13px 20px;
    border-radius: 50px;
    background: var(--home-primary);
    color: #fff;
  }

  .site-header-current .main-nav > .mobile-header-cta:hover {
    background: var(--home-primary-dark);
    color: #fff;
  }
}


@media (prefers-reduced-motion: reduce) {
  .site-header-current * { transition-duration: .01ms !important; }
}
