/* ==========================================================================
   Swayamvara Matrimony — Shared Pre-Login Navbar Stylesheet (navbar_home.css)
   Consumes canonical theme tokens from static/css/homecss/theme.css.
   Strictly scoped under .site-header so layout/responsive rules never affect
   Bootstrap, popups, or surrounding page layouts.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-dark);
  width: 100%;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: box-shadow 0.3s var(--ease-out-expo), background-color 0.3s ease;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header img {
  display: block;
}

.site-header button {
  font-family: inherit;
}

.site-header :where(a, button):focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 3px;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-header);
}

.site-header .lp-container {
  width: 100%;
  max-width: calc(var(--container-max) + clamp(32px, 8vw, 160px));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 80px);
}

.site-header .header-inner {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .brand-logo {
  position: relative;
  width: clamp(185px, 16.35vw, 314px);
  aspect-ratio: 314 / 68;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.site-header .brand-logo-img {
  position: absolute;
  width: 105.52%;
  height: 341.84%;
  left: -4.7%;
  top: -120.92%;
  max-width: none;
  pointer-events: none;
}

.site-header .main-nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 2.2vw, 36px);
  margin-left: auto;
  margin-right: clamp(24px, 5vw, 110px);
}

.site-header .lp-nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color 0.2s ease;
}

.site-header .lp-nav-link:hover {
  color: var(--color-hero-accent);
}

.site-header .lp-nav-link--active {
  color: var(--color-nav-active);
}

.site-header .nav-underline {
  width: 67px;
  height: 2px;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
}

.site-header .btn-outline-dark,
.site-header .btn-primary-green {
  transition:
    transform 260ms var(--ease-out-expo),
    box-shadow 260ms var(--ease-out-expo),
    background-color 220ms ease,
    border-color 220ms ease,
    filter 220ms ease,
    color 220ms ease;
}

.site-header .btn-outline-dark {
  width: 94px;
  height: 48px;
  border: 2px solid var(--color-border-dark);
  background: transparent;
  color: var(--color-white);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.site-header .btn-outline-dark:hover {
  border-color: var(--color-hero-accent);
  background: rgba(255, 255, 255, 0.06);
}

.site-header .btn-primary-green {
  width: 150px;
  height: 44px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.site-header .btn-primary-green:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.site-header .btn-outline-dark:active,
.site-header .btn-primary-green:active {
  transform: translate3d(0, 0, 0) scale(0.97);
}

.site-header .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid var(--color-border-toggle);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.site-header .mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}

.site-header .mobile-drawer {
  background: var(--color-bg-drawer);
  border-top: 1px solid var(--color-border-drawer);
  padding: 20px clamp(16px, 4vw, 32px) 24px;
  animation: drawer-reveal 260ms var(--ease-out-expo) both;
}

.site-header .mobile-drawer[hidden] {
  display: none !important;
}

@keyframes drawer-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.site-header .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.site-header .mobile-nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 0;
}

.site-header .mobile-nav-link:hover {
  color: var(--color-hero-accent);
}

.site-header .mobile-nav-link--active {
  color: var(--color-hero-accent);
  font-weight: 500;
}

.site-header .mobile-drawer-actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 960px) {
  .site-header .header-inner {
    height: 76px;
  }

  .site-header .main-nav,
  .site-header .header-actions {
    display: none;
  }

  .site-header .mobile-menu-toggle {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .mobile-drawer {
    animation: none;
  }

  .site-header *,
  .site-header *::before,
  .site-header *::after {
    transition-duration: 0.01ms !important;
  }
}
