/* =========================
   HEADER / NAV
========================= */
/* .header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
}

.nav-links a:hover {
    color: var(--primary);
} */

/* =========================
   FLOATING NAVIGATION
========================= */
/* .floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 2000;
}

Links
.floating-nav .nav-link {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.floating-nav .nav-link:hover {
  background: var(--bg-light);
}

CTA Button
.floating-nav .nav-cta {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  margin-left: 6px;
  transition: background 0.25s ease;
}

.floating-nav .nav-cta:hover {
  background: var(--primary-dark);
}

Hide on small screens if needed
@media (max-width: 768px) {
  .floating-nav {
    padding: 6px;
  }

  .floating-nav .nav-link {
    display: none;
  }

  .floating-nav .nav-cta {
    padding: 10px 20px;
  }
} */

/* =========================
   FLOATING FULL HEADER
========================= */
.floating-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  opacity: 0;
  z-index: 3000;
  width: 100%;
  pointer-events: none;
  /* important */
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-loaded .floating-header {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.floating-header-inner {
  pointer-events: auto;
  max-width: 1200px;
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  position: relative;

  background: rgb(255, 255, 255);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* Brand */
.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.brand span {
  color: var(--primary);
  font-weight: 400;
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: var(--bg-light);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.floating-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.floating-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* CTA */
.nav-cta {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  margin-left: auto;
  transition: background 0.25s ease;
}

.nav-cta--mobile {
  display: none;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

@media (min-width: 1025px) {
  .nav-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Mobile */
@media (max-width: 1024px) {
  .floating-header {
    top: 12px;
    padding: 0 1rem;
  }

  .floating-header-inner {
    padding: 10px 14px;
    border-radius: 1.25rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease;
  }

  .nav-menu a {
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
  }

  .nav-menu a:hover {
    background: var(--bg-light);
  }

  .nav-menu .nav-cta--mobile {
    display: inline-flex;
    margin: 0.4rem 0 0;
    text-align: center;
  }

  .floating-header-inner > .nav-cta {
    display: none;
  }

  .floating-header.nav-open .nav-menu {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
