/* Fullscreen menu — composites.archi–style typography overlay */
:root {
  --arch-menu-bg: #0a0a0a;
  --arch-menu-bg-wave: #121212;
  --arch-menu-grey: #8a8a8a;
  --arch-menu-white: #f5f5f5;
  --arch-menu-close-bg: #e8e8e8;
  --arch-menu-accent: #946854;
  --arch-menu-line-alt: #ab7860;
}

body.ms-has-fullscreen-menu .header-navigation .theme-nav-menu.menu-on {
  transform: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.ms-menu-open .header-area {
  z-index: 1 !important;
}

body.ms-menu-open .header-area .navbar-toggler span {
  background: var(--arch-menu-white) !important;
}

.ms-site-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  visibility: hidden;
  pointer-events: none;
}

.ms-site-menu .ms-menu-wave {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.ms-site-menu .ms-menu-content {
  opacity: 0;
}

.ms-site-menu.is-active {
  z-index: 2147483000;
}

.ms-menu-wave {
  position: absolute;
  inset: 0;
  will-change: clip-path;
}

.ms-menu-wave--back {
  z-index: 1;
  background: #050505;
}

.ms-menu-wave--front {
  z-index: 2;
  background: var(--arch-menu-bg);
}

.ms-menu-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  opacity: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ms-menu-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.ms-menu-open {
  overflow: hidden;
}

/* ---- Overlay ---- */
.arch-menu-overlay {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  background: transparent;
  color: var(--arch-menu-white);
  overflow: visible;
  isolation: isolate;
}

/* Fixed to viewport; sibling of scroll layer — does not move with menu text */
.ms-site-menu .arch-menu-photo {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/images/menu-bg.png") center center / cover no-repeat;
  transform: scale(1.06);
}

.arch-menu-shapes {
  display: none;
}

.arch-menu-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 6;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #a5745d;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.arch-menu-close:hover,
.arch-menu-close:focus-visible {
  color: #ffffff;
  background: var(--arch-menu-accent);
  opacity: 0.92;
  transform: scale(1.03);
}

.arch-menu-inner {
  position: relative;
  z-index: 3;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 12vh, 7rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 6vh, 3rem);
  box-sizing: border-box;
}

.arch-menu-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.arch-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: min(100%, 72rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.08em;
}

.arch-menu-item {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.arch-menu-link {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: 0;
  text-align: left;
  text-decoration: none;
  color: var(--arch-menu-white);
  transition: color 0.25s ease, margin-left 0.35s ease;
}

.arch-menu-item:nth-child(odd) .arch-menu-link:hover .arch-menu-line,
.arch-menu-item:nth-child(odd) .arch-menu-link:focus-visible .arch-menu-line {
  color: var(--arch-menu-accent);
}

.arch-menu-item:nth-child(even) .arch-menu-line {
  color: var(--arch-menu-line-alt);
}

.arch-menu-item:nth-child(even) .arch-menu-link:hover .arch-menu-line,
.arch-menu-item:nth-child(even) .arch-menu-link:focus-visible .arch-menu-line {
  color: var(--arch-menu-white);
}

.arch-menu-line {
  display: inline-block;
  width: auto;
  max-width: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.35rem, 9.5vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--arch-menu-white);
  white-space: nowrap;
  text-align: left;
  transition: color 0.25s ease;
}

.arch-menu-meta {
  margin-top: clamp(2rem, 6vh, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  padding-top: 1.5rem;
}

.arch-menu-meta-link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--arch-menu-grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.arch-menu-meta-link:hover,
.arch-menu-meta-link:focus-visible {
  color: var(--arch-menu-accent);
}

.arch-menu-socials {
  position: fixed;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.arch-menu-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.arch-menu-socials a:hover,
.arch-menu-socials a:focus-visible {
  color: #ffffff;
  background-color: var(--arch-menu-accent);
  border-color: var(--arch-menu-accent);
}

.arch-menu-socials a:hover i,
.arch-menu-socials a:focus-visible i {
  color: #ffffff;
}

@media (max-width: 767px) {
  .arch-menu-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .arch-menu-inner {
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .arch-menu-nav {
    justify-content: flex-start;
  }

  .arch-menu-item:first-child {
    margin-top: 120px;
  }

  .arch-menu-line {
    white-space: normal;
    font-size: clamp(1.65rem, 10vw, 2.75rem);
    line-height: 1.15;
  }

  .arch-menu-meta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2rem;
    padding-top: 0;
  }

  .arch-menu-meta-link {
    font-size: 16px;
    text-align: center;
  }

  .arch-menu-socials {
    position: static;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .arch-menu-socials a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-menu-wave {
    transition: none;
  }
}
