/* Services drop-down in the header menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: #fffaf5;
  border: 1px solid #dfc5a5;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(64, 40, 22, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
  z-index: 1100;
}
/* invisible bridge so the menu doesn't close as the mouse moves down */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown-menu li {
  margin: 0;
}
.nav-dropdown-menu a {
  display: block;
  padding: 12px 24px;
  white-space: nowrap;
  text-align: left;
  color: var(--ink, #4a392e);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: #f5e6d3;
  color: var(--gold, #ad7b43);
}

/* Phone menu button and panel (added by js/nav-dropdown.js) */
.menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid #b99571;
    border-radius: 5px;
    background: #faf5ed;
    color: #382b20;
    font: inherit;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-toggle-bars,
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .menu-toggle-bars {
    position: relative;
  }
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .menu-toggle-bars::before {
    top: -5px;
  }
  .menu-toggle-bars::after {
    top: 5px;
  }
  header.menu-open .menu-toggle-bars {
    background: transparent;
  }
  header.menu-open .menu-toggle-bars::before {
    transform: translateY(5px) rotate(45deg);
  }
  header.menu-open .menu-toggle-bars::after {
    transform: translateY(-5px) rotate(-45deg);
  }
  header nav {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
  }
  header nav .btn {
    padding: 11px 12px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  header.menu-open .mobile-menu {
    display: block;
  }
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: #fbf6f0;
    border-top: 1px solid #e3cfb9;
    box-shadow: 0 14px 26px rgba(64, 40, 22, 0.16);
    padding: 8px 0 14px;
    z-index: 1200;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-menu a,
  .mobile-menu-heading {
    display: block;
    padding: 13px 7%;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #382b20;
    text-decoration: none;
  }
  .mobile-menu-heading {
    color: #ad7b43;
    padding-bottom: 4px;
  }
  .mobile-menu ul ul a {
    padding: 10px 7% 10px calc(7% + 16px);
    font-size: 12px;
  }
  .mobile-menu a:active,
  .mobile-menu a:focus-visible {
    background: #f5e6d3;
  }
}
@media (max-width: 420px) {
  .menu-toggle {
    padding: 11px 10px;
  }
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
