/* -----------------------------------------------
   Floating Asymmetric Header
----------------------------------------------- */

.floating-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 40;
  pointer-events: none;
  transition: all 0.3s ease-out;
}

.floating-header.scrolled {
  top: 12px;
  width: calc(100% - 24px);
  max-width: 1100px;
}

.floating-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  border-radius: 28px;
  border: 1px solid rgba(232, 210, 184, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(253, 248, 242, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(100, 90, 75, 0.12);
  pointer-events: all;
}

.floating-header.scrolled .floating-header__container {
  padding: 12px 28px;
  border-radius: 24px;
  gap: 20px;
}

/* Navigation Groups */
.floating-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.floating-nav--left {
  justify-content: flex-start;
}

.floating-nav--right {
  justify-content: flex-end;
}

.floating-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.floating-nav__item {
  position: relative;
}

.floating-nav__link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding: 4px 8px;
}

.floating-nav__link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 8px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-coral), var(--color-primary));
  transition: width 0.3s ease;
}

.floating-nav__link:hover {
  color: var(--color-text);
}

.floating-nav__link:hover::after {
  width: calc(100% - 16px);
}

.floating-nav__item--cta {
  margin-left: 12px;
}

/* Centered Logo */
.floating-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.98), rgba(245, 235, 225, 0.96));
  border: 1px solid rgba(210, 190, 165, 0.6);
  box-shadow: 0 8px 24px rgba(100, 80, 60, 0.1);
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.floating-logo:hover {
  box-shadow: 0 12px 36px rgba(100, 80, 60, 0.16);
  transform: translateY(-2px);
}

.floating-logo__icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary-strong);
  display: block;
}

.floating-header.scrolled .floating-logo {
  width: 40px;
  height: 40px;
}

.floating-header.scrolled .floating-logo__icon {
  width: 24px;
  height: 24px;
}

/* Floating Badge */
.floating-header__badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(245, 185, 138, 0.1);
  border: 1px solid rgba(229, 185, 138, 0.3);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-strong);
  white-space: nowrap;
  opacity: 0.9;
  pointer-events: none;
}

/* Mobile Toggle */
.floating-header__toggle {
  display: none;
  margin-left: auto;
  margin-right: 0;
}

/* Mobile Navigation */
.floating-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(249, 245, 239, 0.98), rgba(241, 248, 252, 0.98));
  z-index: -1;
  padding-top: 120px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.floating-mobile-nav--open {
  display: flex;
  flex-direction: column;
}

.floating-mobile-nav__list {
  list-style: none;
  padding: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgb(241, 205, 191);
}

.floating-mobile-nav__list a {
  font-size: 16px;
  text-decoration: none;
  color: var(--color-text-soft);
  transition: color 0.3s ease;
  padding: 8px 0;
}

.floating-mobile-nav__list a:hover {
  color: var(--color-text);
}

.floating-mobile-nav__cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(200, 180, 160, 0.3);
}

.floating-mobile-nav__cta a {
  font-size: 14px;
}

/* CTA Button Styling */
.floating-header__cta {
  font-size: 12px !important;
  padding: 8px 20px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .floating-header__container {
    padding: 14px 24px;
    gap: 16px;
  }

  .floating-nav__list {
    gap: clamp(6px, 1.5vw, 20px);
  }

  .floating-nav__link {
    font-size: 12px;
    padding: 3px 6px;
  }

  .floating-logo {
    width: 44px;
    height: 44px;
  }

  .floating-logo__icon {
    width: 26px;
    height: 26px;
  }

  .floating-header__badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .floating-header {
    top: 12px;
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .floating-header__container {
    padding: 12px 16px;
    gap: 12px;
    border-radius: 20px;
  }

  .floating-nav--left,
  .floating-nav--right {
    display: none;
  }

  .floating-header__toggle {
    display: inline-flex;
    flex-direction: column;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(210, 192, 169, 0.7);
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.98), rgba(241, 228, 211, 0.96));
    box-shadow: 0 4px 12px rgba(100, 80, 60, 0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
  }

  .floating-header__toggle:hover {
    box-shadow: 0 6px 16px rgba(100, 80, 60, 0.12);
  }

  .floating-header__toggle:active {
    transform: scale(0.98);
  }

  .header-toggle__bar {
    width: 18px;
    height: 1.5px;
    background: var(--color-text);
  }

  .header-toggle__bar + .header-toggle__bar {
    margin-top: 4px;
  }

  .floating-header--menu-open .header-toggle__bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .floating-header--menu-open .header-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .floating-header--menu-open .header-toggle__bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .floating-logo {
    width: 40px;
    height: 40px;
    order: -1;
  }

  .floating-logo__icon {
    width: 24px;
    height: 24px;
  }

  .floating-header__badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-header {
    top: 8px;
    width: calc(100% - 16px);
  }

  .floating-header__container {
    padding: 10px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .floating-logo {
    width: 36px;
    height: 36px;
  }

  .floating-logo__icon {
    width: 22px;
    height: 22px;
  }

  .floating-header__toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .header-toggle__bar {
    width: 16px;
    height: 1.3px;
  }
}
