/**
 * Header & Navigation Component Stylesheet - Rebecca Field
 * Full Width Header with Centered Logo and Split Navigation (Left/Right)
 */

.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 147, 171, 0.18);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(250, 248, 242, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 1rem var(--space-md);
  }
}

/* Split Navigation Layout for Desktop */
.nav-left,
.nav-right {
  display: none;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

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

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

.nav-right .btn-primary,
.nav-right .gold-shimmer-btn {
  padding: 0.55rem 1.35rem;
  font-size: 0.8rem;
  line-height: 1.2;
  align-self: center;
}

@media (min-width: 992px) {
  .nav-left,
  .nav-right {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-slate-dark);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-slate-dark);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Centered Logo Branding */
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  text-decoration: none;
}

@media (min-width: 768px) {
  .header-logo {
    padding: 0 1rem;
  }
}

.logo-text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-slate-dark);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-subtext {
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 1.8vw, 0.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-slate-mid);
  margin-top: 0.3rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 7px;
  z-index: 1010;
  box-sizing: border-box;
  touch-action: manipulation;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-slate-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Navigation Overlay Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background-color: var(--color-cream-bg);
  z-index: 1050;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 4rem 1.5rem 2.5rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.mobile-drawer.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Close Button ("X") */
.mobile-drawer-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(70, 96, 122, 0.08);
  border: 1px solid rgba(123, 147, 171, 0.3);
  color: var(--color-slate-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1060;
  touch-action: manipulation;
}

.mobile-drawer-close:hover {
  background: rgba(70, 96, 122, 0.18);
  transform: scale(1.05);
}

/* Mobile Brand Header */
.mobile-brand-header {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.mobile-nav-links .nav-link {
  font-size: 1.2rem;
  padding: 0.65rem 1.5rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.mobile-nav-links .btn,
.mobile-nav-links .gold-shimmer-btn {
  width: 100%;
  min-height: 48px;
}
