/* === HEADER & NAVIGATION === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s var(--ease-luxury);
  padding: var(--space-lg) 0;
}

.site-header.scrolled {
  background: rgba(26,26,26,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar__logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s var(--ease-luxury);
}

.site-header.scrolled .navbar__logo img {
  height: 36px;
}

.navbar__menu {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-champagne);
  transition: width 0.3s var(--ease-luxury);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__item--dropdown {
  position: relative;
}

.navbar__item--dropdown > a span {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.3s var(--ease-luxury);
}

.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-onyx);
  border: 1px solid var(--color-border-dark);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-luxury);
}

.navbar__item--dropdown:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__item--dropdown:hover > a span {
  transform: rotate(180deg);
}

.navbar__dropdown li a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--color-text-white-muted);
  font-size: var(--fs-small);
  transition: color 0.2s;
}

.navbar__dropdown li a:hover {
  color: var(--color-champagne);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease-luxury);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(26,26,26,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-lg) var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-luxury);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
}

.mobile-menu__list a {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--color-white);
  display: block;
}

.mobile-menu__dropdown {
  padding-left: var(--space-lg);
  display: none;
  margin-top: var(--space-sm);
  flex-direction: column;
  gap: var(--space-sm);
}

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

.mobile-menu__dropdown a {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  color: var(--color-text-white-muted);
}

.mobile-menu__footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: auto;
}

@media (max-width: 1024px) {
  .navbar__menu, .navbar__cta {
    display: none;
  }
  .navbar__hamburger {
    display: block;
  }
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background-color: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9990;
  box-shadow: var(--card-shadow);
  transition: width 0.3s var(--ease-luxury), border-radius 0.3s var(--ease-luxury);
  overflow: hidden;
  text-decoration: none;
  animation: pulse-whatsapp 2s ease-out 3;
}

.whatsapp-float__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.whatsapp-float__label {
  color: white;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  width: 0;
  transition: all 0.3s var(--ease-luxury);
  padding-left: 0;
}

.whatsapp-float:hover {
  width: 160px;
  border-radius: 28px;
  justify-content: flex-start;
  padding-left: 14px;
}

.whatsapp-float:hover .whatsapp-float__label {
  opacity: 1;
  width: auto;
  padding-left: 12px;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* === SCROLL TO TOP === */
.scroll-top-btn {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--color-onyx);
  color: var(--color-champagne);
  border: 1px solid var(--color-champagne);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9980;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-luxury);
  cursor: pointer;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--color-champagne);
  color: var(--color-onyx);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .whatsapp-float,
  .whatsapp-concierge-container {
    display: none !important; /* Hide duplicate floating WhatsApp on mobile to avoid clutter */
  }
  .scroll-top-btn {
    bottom: 84px;
  }
}

/* Mobile CTA Bar */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--color-onyx);
    z-index: 1100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  }

  .mobile-cta-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
  }

  .mobile-cta-bar__btn:last-child {
    border-right: none;
  }

  .mobile-cta-bar__btn--whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
  }
  
  .mobile-cta-bar__btn--whatsapp:focus,
  .mobile-cta-bar__btn--whatsapp:active {
    background: #1da851;
  }
  
  .mobile-cta-bar__btn--call:focus,
  .mobile-cta-bar__btn--call:active {
    background: #333;
  }
}
