/* ==========================================================================
   ZAZZLE SALON - FLOATING ISLAND CAPSULE NAVBAR COMPONENT STYLESHEET
   - Brand Logo on the Left
   - Floating Dark Capsule Navigation Dock on the Right with Globe Badge
   - Connected Capsule "Book Appointment ↗" Action Button
   ========================================================================== */

.dynamic-navbar {
  width: 100%;
  height: 84px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, backdrop-filter 0.35s ease;
  pointer-events: none;
}

/* Enable pointer events on the container content */
.dynamic-navbar .nav-container {
  pointer-events: auto;
}

/* Auto-hide on deep fast scroll down */
.dynamic-navbar.is-hidden {
  transform: translateY(-100%);
}

/* Subtle elevation when scrolled */
.dynamic-navbar.is-scrolled {
  background-color: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.nav-container {
  width: 100%;
  height: 100%;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
}

/* ==========================================================================
   LEFT: BRAND LOGO
   ========================================================================== */
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand-icon {
  display: none !important;
}

.nav-brand-typo {
  display: block;
  height: clamp(34px, 3.5vw, 42px);
  width: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.brand-link:hover .nav-brand-typo {
  opacity: 0.82;
}

/* ==========================================================================
   FLOATING ISLAND FUSED CAPSULE DOCK (EXACT REFERENCE SHAPE)
   ========================================================================== */
.nav-dock-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0;
  z-index: 5;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}

/* 1. Left Globe Circle Segment */
.nav-globe-pill {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -6px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-sizing: border-box;
}

.globe-circle-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1A1A1A;
  border: 1.5px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.nav-globe-pill:hover .globe-circle-inner {
  transform: scale(1.05);
}

.globe-icon {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
}

/* Earth Icon Interactive Active State */
.nav-globe-pill {
  cursor: pointer;
}

.nav-globe-pill.is-active .globe-circle-inner {
  background-color: #C5A880;
  border-color: #C5A880;
  color: #141414;
}

.nav-globe-pill.is-active .globe-icon {
  stroke: #141414;
}

/* Floating 270-Degree Radial Orbital Menu Around Earth Icon */
.globe-radial-orbit-container {
  position: absolute;
  top: 25px;
  left: -25px;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 99;
}

.globe-radial-orbit-container.is-open {
  pointer-events: auto;
}

.radial-orbit-ring {
  display: none !important;
}

/* Individual Radial Service Pill Node */
.radial-service-pill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  background-color: #141414;
  border: 1px solid rgba(197, 168, 128, 0.45);
  border-radius: 20px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.2);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 101;
}

.globe-radial-orbit-container.is-open .radial-service-pill {
  opacity: 1;
  visibility: visible;
}

.radial-service-pill:hover {
  background-color: #1F1F1F;
  border-color: #C5A880;
  box-shadow: 0 10px 28px rgba(197, 168, 128, 0.25);
}

.radial-service-pill .service-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  color: #C5A880;
}

.radial-service-pill .service-name {
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E2DFD8;
  text-transform: uppercase;
}

.radial-service-pill:hover .service-name {
  color: #FFFFFF;
}

.radial-service-pill .service-arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, color 0.2s ease;
}

.radial-service-pill:hover .service-arrow {
  color: #C5A880;
  transform: translate(2px, -2px);
}

/* 270-Degree Downward Radial Polar Coordinate Offsets for 5 Nodes */

/* Node 1: Far Left */
.radial-node-1 {
  transition-delay: 0.02s;
}
.globe-radial-orbit-container.is-open .radial-node-1 {
  transform: translate(-145px, 42px) scale(1);
  transition-delay: 0.02s;
}

/* Node 2: Bottom-Left */
.radial-node-2 {
  transition-delay: 0.06s;
}
.globe-radial-orbit-container.is-open .radial-node-2 {
  transform: translate(-105px, 105px) scale(1);
  transition-delay: 0.06s;
}

/* Node 3: Straight Down / Bottom */
.radial-node-3 {
  transition-delay: 0.10s;
}
.globe-radial-orbit-container.is-open .radial-node-3 {
  transform: translate(0px, 145px) scale(1);
  transition-delay: 0.10s;
}

/* Node 4: Bottom-Right */
.radial-node-4 {
  transition-delay: 0.14s;
}
.globe-radial-orbit-container.is-open .radial-node-4 {
  transform: translate(105px, 105px) scale(1);
  transition-delay: 0.14s;
}

/* Node 5: Far Right */
.radial-node-5 {
  transition-delay: 0.18s;
}
.globe-radial-orbit-container.is-open .radial-node-5 {
  transform: translate(145px, 42px) scale(1);
  transition-delay: 0.18s;
}

/* 2. Middle Navigation Links Capsule Segment */
.nav-pill-bar {
  background-color: #141414;
  border-radius: 25px;
  height: 50px;
  padding: 0 20px 0 16px;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* Link List */
.nav-pill-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-pill-item {
  display: flex;
  align-items: center;
}

.nav-pill-link {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 7px 15px;
  position: relative;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-pill-link:hover {
  color: #FFFFFF;
}

/* Active Link State with Gold Underline Bar */
.nav-pill-link.active {
  color: #FFFFFF;
  font-weight: 600;
}

.nav-pill-link.active::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 15px;
  right: 15px;
  height: 1.5px;
  background-color: #C8A96E;
  border-radius: 2px;
}

/* Divider Lines Between Links */
.nav-pill-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.22);
  margin: 0 1px;
  flex-shrink: 0;
  list-style: none;
}

/* 3. Right Connected Action Capsule Button Segment */
.nav-pill-cta {
  background-color: #141414;
  color: #C8A96E;
  border-radius: 25px;
  height: 50px;
  padding: 0 26px;
  margin-left: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

.nav-pill-cta .cta-arrow {
  color: #C8A96E;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-pill-cta:hover {
  background-color: #000000;
  color: #E2C78A;
}

.nav-pill-cta:hover .cta-arrow {
  transform: translateX(4px);
  color: #E2C78A;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE
   ========================================================================== */
.nav-hamburger {
  display: none;
  background: #141414;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4.5px;
  z-index: 1001;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.is-active .line-1 {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-active .line-2 {
  opacity: 0;
}

.nav-hamburger.is-active .line-3 {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: #F8F5EF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px 32px;
  box-sizing: border-box;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.drawer-link {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.drawer-link:hover {
  color: #C8A96E;
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-cta-btn {
  display: block;
  text-align: center;
  padding: 13px 20px;
  background-color: #111111;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none;
}

.drawer-meta {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #8C877E;
  text-align: center;
  margin: 0;
}

@media (max-width: 1040px) {
  .nav-dock-wrapper {
    position: static;
    transform: none;
    margin-left: auto;
  }
  .nav-pill-bar {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}
