/* Keep the floating hero controls; switch to a solid header after the hero. */
/* Geometry shares the hero animation frame and easing, including reverse scroll. */
.site-header {
  inset: var(--nav-top, 30px) var(--nav-inset, 30px) auto;
  height: var(--nav-height, 84px);
  display: block;
  background: rgb(255 255 255 / var(--nav-fill, 0));
  border-bottom: 1px solid rgb(25 26 48 / calc(var(--nav-fill, 0) * .14));
  pointer-events: none;
}
.site-header .brand {
  left: var(--logo-left, 50%);
  top: var(--logo-top, -10px);
  width: var(--logo-width, clamp(180px, 19vw, 260px));
  padding: var(--logo-padding, 7px);
  transform: translateX(var(--logo-shift, -50%));
}
.site-header .menu-button {
  position: absolute;
  top: var(--nav-button-top, 0px);
  left: var(--nav-menu-left, 0px);
  opacity: var(--nav-menu-opacity, 1);
}
.header-navigation {
  position: absolute;
  left: 50%; top: 0;
  height: 84px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 40px);
  opacity: var(--nav-links-opacity, 0);
  transform: translate(-50%, var(--nav-links-y, 12px));
}
.header-navigation[inert], .site-header [inert] { visibility: hidden; pointer-events: none; }
.header-navigation a {
  color: var(--navy); text-decoration: none;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  padding-block: 12px; text-underline-offset: 7px;
}
.header-navigation a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.site-header .header-actions {
  position: absolute;
  top: var(--nav-button-top, 0px);
  right: var(--nav-button-right, 0px);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: var(--nav-button-opacity, 1);
  pointer-events: auto;
}

.site-header.is-past-hero .brand {
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.site-header.is-past-hero .header-actions {
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.site-header .book-button {
  border-radius: var(--nav-button-radius, 50px);
  min-height: 44px;
}

.site-header .brochure-button {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(16, 24, 40, 0.18);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 0 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--nav-button-radius, 50px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.site-header .brochure-button:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 77, 38, 0.15);
}

.site-header .brochure-button svg {
  color: inherit;
  transition: transform 0.2s ease;
}

.site-header .brochure-button:hover svg {
  transform: translateY(2px);
}

main section[id] { scroll-margin-top: 104px; }
@media (max-width: 900px) {
  .site-header .header-navigation { display: none; }
  .site-header .brochure-button { display: none; }
  .site-header.is-past-hero .menu-button {
    border-radius: 0; padding: 10px 0 10px 14px;
    background: transparent; color: var(--navy);
    font-size: 14px; min-height: 44px;
  }
  main section[id] { scroll-margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header * { transition: none !important; }
}


/* Nested Dropdown Menu */
.header-navigation {
  gap: clamp(8px, 1.2vw, 18px) !important;
}

.header-navigation > a,
.nav-dropdown-trigger {
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  padding-block: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
  line-height: 1;
  transition: color 0.2s;
}

.header-navigation > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--orange);
  text-decoration: none !important;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 84px;
}

.dropdown-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  stroke: var(--orange);
}

.nav-dropdown-menu {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.16);
  padding: 10px;
  width: 320px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 8px 12px !important;
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--navy) !important;
  transition: all 0.18s ease;
  font-weight: normal !important;
}

.nav-dropdown-item:hover {
  background: #f8fafc;
  color: var(--orange) !important;
  transform: translateX(3px);
}

.dropdown-item-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange);
  background: rgba(234, 77, 38, 0.1);
  padding: 3px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-dropdown-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: inherit;
  line-height: 1.25;
}

.nav-dropdown-item span {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 6px;
}

/* Mobile Dialog Menu Sub-navigation */
.mobile-sub-menu {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 14px 0;
  border-left: 2px solid var(--orange);
}

.mobile-sub-menu a {
  font-size: 14px !important;
  color: #475467 !important;
}
