:root {
  --global-header-height: 112px;
  --global-header-ivory: #f4efe7;
  --global-header-gold: #c9a46f;
  --global-header-gold-light: #ebcf9f;
  --global-header-black: #080706;
}

body.nav-open {
  overflow: hidden;
}

.global-header-root .site-header {
  position: absolute;
  z-index: 320;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 58px);
  width: 100%;
  min-height: var(--global-header-height);
  padding: 10px clamp(28px, 3.1vw, 62px);
  border-bottom: 1px solid rgba(235, 207, 159, 0.18);
  background: rgba(8, 7, 6, 0.42);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18);
  transition: min-height 220ms ease, background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.global-header-root .site-header.is-scrolled {
  position: fixed;
  min-height: 88px;
  border-color: rgba(201, 164, 111, 0.2);
  background: rgba(8, 7, 6, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.global-header-root .brand {
  display: inline-flex;
  align-items: center;
  width: 160px;
}

.global-header-root .brand img {
  width: 100%;
  height: auto;
}

.global-header-root .primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.9vw, 34px);
}

.global-header-root .nav-item {
  position: relative;
  padding: 12px 0;
  border: 0;
  color: rgba(244, 239, 231, 0.86);
  background: transparent;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.global-header-root a.nav-item,
.global-header-root .nav-dropdown-toggle {
  cursor: pointer;
}

.global-header-root .nav-item::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--global-header-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 180ms ease, transform 180ms ease;
}

.global-header-root a.nav-item:hover,
.global-header-root a.nav-item:focus-visible,
.global-header-root .nav-item.is-active {
  color: var(--global-header-gold-light);
}

.global-header-root a.nav-item:hover::after,
.global-header-root a.nav-item:focus-visible::after,
.global-header-root .nav-item.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.global-header-root .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.global-header-root .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.global-header-root .nav-dropdown-toggle svg {
  width: 13px;
  height: 13px;
  transition: transform 180ms ease;
}

.global-header-root .nav-dropdown.is-open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.global-header-root .nav-dropdown-menu {
  position: absolute;
  z-index: 340;
  top: calc(100% + 12px);
  left: 50%;
  width: max-content;
  min-width: 220px;
  max-height: calc(100vh - var(--global-header-height) - 24px);
  padding: 10px;
  border: 1px solid rgba(201, 164, 111, 0.34);
  background: rgba(8, 7, 6, 0.97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
  overflow-y: auto;
}

.global-header-root .nav-dropdown:hover .nav-dropdown-menu,
.global-header-root .nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.global-header-root .nav-dropdown-menu a {
  display: block;
  padding: 13px 15px;
  color: rgba(244, 239, 231, 0.82);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.global-header-root .nav-dropdown-menu a:hover,
.global-header-root .nav-dropdown-menu a:focus-visible,
.global-header-root .nav-dropdown-menu a[aria-current="page"] {
  color: var(--global-header-gold-light);
  background: rgba(201, 164, 111, 0.1);
}

.global-header-root .nav-dropdown-subgroup {
  border-bottom: 1px solid rgba(201, 164, 111, 0.14);
}

.global-header-root .nav-dropdown-subtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 13px 15px;
  border: 0;
  color: rgba(244, 239, 231, 0.82);
  background: transparent;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.global-header-root .nav-dropdown-subtoggle:hover,
.global-header-root .nav-dropdown-subtoggle:focus-visible,
.global-header-root .nav-dropdown-subtoggle.is-active {
  color: var(--global-header-gold-light);
  background: rgba(201, 164, 111, 0.1);
}

.global-header-root .nav-dropdown-subtoggle svg {
  width: 13px;
  height: 13px;
  transition: transform 180ms ease;
}

.global-header-root .nav-dropdown-submenu {
  max-height: 0;
  margin-inline: 8px;
  overflow: hidden;
  border-left: 1px solid rgba(201, 164, 111, 0.24);
  opacity: 0;
  transition: max-height 230ms ease, opacity 180ms ease, margin 230ms ease;
}

.global-header-root .nav-dropdown-subgroup.is-open .nav-dropdown-submenu {
  max-height: 330px;
  margin-block: 4px 8px;
  opacity: 1;
}

.global-header-root .nav-dropdown-subgroup.is-open .nav-dropdown-subtoggle svg {
  transform: rotate(180deg);
}

.global-header-root .nav-dropdown-submenu a {
  padding-block: 10px;
  padding-left: 18px;
  font-size: 9px;
}

.global-header-root .header-actions,
.global-header-root .social-links,
.global-header-root .login-link {
  display: flex;
  align-items: center;
}

.global-header-root .header-actions {
  justify-content: flex-end;
  gap: 18px;
}

.global-header-root .social-links {
  gap: 7px;
}

.global-header-root .social-links a,
.global-header-root .mobile-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(235, 207, 159, 0.86);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.global-header-root .social-links a:hover,
.global-header-root .social-links a:focus-visible,
.global-header-root .mobile-socials a:hover,
.global-header-root .mobile-socials a:focus-visible {
  color: var(--global-header-ivory);
  transform: translateY(-2px);
}

.global-header-root .login-link {
  gap: 8px;
  min-height: 38px;
  padding-left: 18px;
  border-left: 1px solid rgba(201, 164, 111, 0.32);
  color: var(--global-header-gold-light);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}

.global-header-root .login-link svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.5;
}

.global-header-root .login-link > span {
  display: inline;
}

.global-header-root .menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 11px 8px;
  border: 0;
  color: var(--global-header-gold-light);
  background: transparent;
  cursor: pointer;
}

.global-header-root .menu-toggle span {
  display: block;
  width: 33px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

body.nav-open .global-header-root .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .global-header-root .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .global-header-root .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.global-header-root .mobile-nav {
  display: none;
}

@media (max-width: 1399px) {
  .global-header-root .site-header {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 24px;
    padding-inline: 32px;
  }

  .global-header-root .brand {
    width: 150px;
  }

  .global-header-root .primary-nav {
    gap: 18px;
  }

  .global-header-root .social-links {
    display: none;
  }
}

@media (max-width: 1099px) {
  :root {
    --global-header-height: 96px;
  }

  .global-header-root .site-header,
  .global-header-root .site-header.is-scrolled {
    position: fixed;
    grid-template-columns: 1fr auto;
    min-height: var(--global-header-height);
    padding: 12px clamp(20px, 5.8vw, 44px);
    background: rgba(8, 7, 6, 0.88);
  }

  .global-header-root .brand {
    width: clamp(132px, 26vw, 154px);
  }

  .global-header-root .primary-nav,
  .global-header-root .login-link,
  .global-header-root .social-links {
    display: none;
  }

  .global-header-root .menu-toggle {
    display: block;
  }

  .global-header-root .mobile-nav {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 320px;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--global-header-height) + 46px) clamp(30px, 8vw, 72px) max(30px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background:
      radial-gradient(circle at 82% 18%, rgba(201, 164, 111, 0.12), transparent 30%),
      radial-gradient(circle at 12% 84%, rgba(201, 164, 111, 0.08), transparent 34%),
      rgba(7, 6, 5, 0.985);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 230ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 230ms;
  }

  body.nav-open .global-header-root .mobile-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-header-root .mobile-nav::before {
    display: block;
    width: 64px;
    height: 1px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--global-header-gold), transparent);
    content: "";
  }

  .global-header-root .mobile-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid rgba(201, 164, 111, 0.14);
    color: rgba(244, 239, 231, 0.72);
    background: transparent;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(25px, 6vw, 31px);
    line-height: 1.05;
    text-align: left;
    text-decoration: none;
    cursor: default;
    user-select: none;
    opacity: 0;
    translate: 26px 0;
    transition: color 180ms ease, opacity 430ms ease, translate 560ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--menu-order, 0) * 42ms);
  }

  .global-header-root a.mobile-nav-item,
  .global-header-root .mobile-subnav-toggle {
    cursor: pointer;
  }

  body.nav-open .global-header-root .mobile-nav-item {
    opacity: 1;
    translate: 0 0;
  }

  .global-header-root a.mobile-nav-item:hover,
  .global-header-root a.mobile-nav-item:focus-visible,
  .global-header-root .mobile-nav-item.is-active {
    color: var(--global-header-gold-light);
  }

  .global-header-root .mobile-nav-group {
    width: 100%;
  }

  .global-header-root .mobile-subnav-toggle {
    justify-content: space-between;
  }

  .global-header-root .mobile-subnav-toggle svg {
    width: 19px;
    height: 19px;
    color: var(--global-header-gold);
    transition: transform 200ms ease;
  }

  .global-header-root .mobile-nav-group.is-open .mobile-subnav-toggle svg {
    transform: rotate(180deg);
  }

  .global-header-root .mobile-subnav {
    max-height: 0;
    padding-left: 20px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 240ms ease, opacity 180ms ease, padding 240ms ease;
  }

  .global-header-root .mobile-nav-group.is-open .mobile-subnav {
    max-height: 580px;
    padding-top: 13px;
    padding-bottom: 8px;
    opacity: 1;
  }

  .global-header-root .mobile-subnav a {
    display: flex;
    align-items: center;
    min-height: 34px;
    color: var(--global-header-gold-light);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .global-header-root .mobile-subnav-group {
    width: 100%;
  }

  .global-header-root .mobile-secondary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 0;
    border: 0;
    color: var(--global-header-gold-light);
    background: transparent;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
  }

  .global-header-root .mobile-secondary-toggle svg {
    width: 15px;
    height: 15px;
    margin-right: 4px;
    color: var(--global-header-gold);
    transition: transform 180ms ease;
  }

  .global-header-root .mobile-subnav-group.is-open .mobile-secondary-toggle svg {
    transform: rotate(180deg);
  }

  .global-header-root .mobile-secondary-subnav {
    max-height: 0;
    padding-left: 14px;
    overflow: hidden;
    border-left: 1px solid rgba(201, 164, 111, 0.24);
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease, margin 220ms ease;
  }

  .global-header-root .mobile-subnav-group.is-open .mobile-secondary-subnav {
    max-height: 280px;
    margin-block: 4px 8px;
    opacity: 1;
  }

  .global-header-root .mobile-secondary-subnav a {
    min-height: 32px;
    font-size: 10px;
  }

  .global-header-root .mobile-socials {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
  }

  .global-header-root .mobile-socials a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 164, 111, 0.35);
    border-radius: 50%;
    opacity: 0;
    scale: 0.72;
    transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease, opacity 360ms ease, scale 480ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--menu-order, 9) * 38ms);
  }

  body.nav-open .global-header-root .mobile-socials a {
    opacity: 1;
    scale: 1;
  }

  .global-header-root .mobile-socials a:hover,
  .global-header-root .mobile-socials a:focus-visible {
    border-color: var(--global-header-gold-light);
    background: rgba(201, 164, 111, 0.1);
  }
}

@media (max-width: 520px) {
  :root {
    --global-header-height: 88px;
  }

  .global-header-root .site-header,
  .global-header-root .site-header.is-scrolled {
    padding: 10px 20px;
  }

  .global-header-root .brand {
    width: 126px;
  }

  .global-header-root .mobile-nav {
    padding: calc(var(--global-header-height) + 42px) 28px max(26px, env(safe-area-inset-bottom));
  }

  .global-header-root .mobile-nav-item {
    padding: 12px 0;
    font-size: 24px;
  }

  .global-header-root .mobile-socials {
    padding-top: 24px;
  }
}

@media (max-height: 680px) and (max-width: 1099px) {
  .global-header-root .mobile-nav {
    padding-top: calc(var(--global-header-height) + 24px);
  }

  .global-header-root .mobile-nav::before {
    margin-bottom: 8px;
  }

  .global-header-root .mobile-nav-item {
    padding-block: 9px;
    font-size: 22px;
  }

  .global-header-root .mobile-socials {
    margin-top: 18px;
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-header-root *,
  .global-header-root *::before,
  .global-header-root *::after {
    transition-duration: 0.01ms !important;
  }

  .global-header-root .mobile-nav-item,
  .global-header-root .mobile-socials a {
    opacity: 1 !important;
    scale: 1 !important;
    translate: 0 0 !important;
  }
}
