/* Shared header and mobile navigation styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 248, 244, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-logo {
  position: relative;
  width: 220px;
  height: 80px;
}

.logo-img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.foot-logo .logo-img {
  position: static;
  height: 72px;
  transform: none;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links li {
  position: relative;
}

.nav-links .nav-item a {
  display: block;
  padding: 10px 6px;
  position: relative;
}

.nav-links .nav-item > a::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links .nav-item > a:hover::after,
.nav-links .nav-item > a.active::after,
.nav-links .nav-item > a.active-page::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links .nav-has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 20px;
  background: transparent;
}

.nav-links .dropdown {
  display: block;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(28, 24, 18, 0.08), 0 2px 8px rgba(28, 24, 18, 0.04);
  min-width: 200px;
  z-index: 400;
  list-style: none;
  margin: 0;
  padding: 8px;
  opacity: 0;
  transform-origin: top center;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-links .dropdown li {
  padding: 0;
  list-style: none;
}

.nav-links .dropdown li a {
  display: block;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .dropdown li a:hover {
  background: var(--gold-pale, rgba(176, 141, 87, 0.08));
  color: var(--gold);
}

.nav-links .nav-has-dropdown:hover .dropdown,
.nav-links .nav-has-dropdown:focus-within .dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-links .dropdown {
  transition-delay: 0.08s;
}

.nav-links a:hover {
  color: var(--gold);
  transition: color 0.3s ease;
}

.nav-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: default;
  display: block;
  padding: 10px 6px;
}

.nav-links a.active,
.nav-links a.active-page {
  color: var(--gold);
}

.nav-book {
  display: inline-block;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 11px 28px;
  background: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-book:hover {
  background: var(--gold-light);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 500;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 450;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 100px 48px 40px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: none;
  width: 100%;
  text-align: center;
  transition: color 0.3s;
  position: relative;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--border-soft);
}

.mobile-menu a:last-of-type::after {
  display: none;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu .mob-service {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-muted);
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.mobile-menu .mob-service::after {
  width: 24px;
}

.mobile-menu .mob-service:hover {
  color: var(--gold);
}

.mobile-menu .mob-service.mob-active,
.mobile-menu a.mob-active {
  color: var(--gold);
}

.mobile-menu .mob-book {
  margin-top: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 14px 48px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border: none;
}

.mobile-menu .mob-book::after {
  display: none;
}

@media (max-width: 900px) {
  nav {
    padding: 18px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-book {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo {
    width: 124px;
    height: 56px;
  }

  .logo-img {
    height: 88%;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  nav {
    padding: 16px 20px;
  }

  .nav-logo {
    width: 110px;
    height: 50px;
  }

  .logo-img {
    height: 86%;
  }

  .foot-logo .logo-img {
    height: 48px;
  }
}