/* ==========================================================================
   MeetActually — Header (Redo)
   ========================================================================== */

:root {
  --hdr-bg: #152238;
  /* Pastel Navy */
  --hdr-menu-bg: #152238;
  /* Mobile Menu BG */
  --hdr-border: rgba(255, 255, 255, .08);
  --hdr-text: #F8FAFC;
  /* Slate 50 */
  --hdr-text-hover: #E8A89F;
  /* Peach */
  --hdr-cta: #E8A89F;
  /* Peach */
  --hdr-cta-text: #1E293B;
  /* Dark Slate */

  /* Layout */
  --hdr-height-mobile: 80px;
  --hdr-height-desktop: 100px;
}

/* --- Base Header --- */
.mp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  height: var(--hdr-height-mobile);
  display: flex;
  align-items: center;
}

/* Blur Layer (Pseudo) */
.mp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Transparent State (Home Hero) */
.mp-header.is-transparent {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

.mp-header.is-transparent::before {
  opacity: 0;
}

/* Ensure solid background when mobile menu is open, overriding transparency */
.mp-header.is-open {
  background: var(--hdr-bg) !important;
  border-bottom-color: var(--hdr-border) !important;
}

/* Layout Wrapper */
.mp-header .wrap {
  flex-grow: 1 !important;
  width: 100% !important;
  max-width: 80rem;
  /* 1280px */
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100%;
}

/* --- Brand / Logo --- */
.mp-header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Prevent shrinking */
  text-decoration: none;
}

.mp-header .brand-logo {
  display: block;
  height: 48px;
  /* Mobile Size */
  width: auto;
  transition: height 0.3s ease;
}

/* --- Navigation (Hamburger Overlay Style Global) --- */
.mp-header .nav {
  position: fixed;
  top: var(--hdr-height-mobile);
  /* Default to mobile height, overridden by desktop height query */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hdr-menu-bg);
  display: none;
  /* Toggled by JS */
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--hdr-border);
}

.mp-header.is-open .nav {
  display: flex;
}

/* Groups stacked */
.nav-left,
.nav-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.nav-right {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.nav-item {
  width: 100%;
  margin-bottom: 0;
}

.nav-link,
.nav-link--toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--hdr-text);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

/* Specific Login Link Style */
.nav-link--login {
  text-align: left;
  display: block;
  line-height: normal;
}

.submenu {
  display: none;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--hdr-border);
}

.nav-item.is-open .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
}

/* CTA Button */
.btn-cta {
  background: var(--hdr-cta);
  color: var(--hdr-cta-text);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  margin-top: 1rem;
  display: inline-block;
}

.btn-cta:hover {
  transform: scale(1.02);
  opacity: 0.95;
}


/* --- Mobile Toggle (Visible Always) --- */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: #fff;
}

/* --- Mobile Panels (New) --- */
.mobile-panels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.mobile-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hdr-border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}

.mobile-panel-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-panel a {
  display: block;
  padding: 0.75rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-panel a:last-child {
  border-bottom: none;
}

.mobile-panel a:hover {
  color: var(--hdr-cta);
  padding-left: 0.25rem;
  transition: all 0.2s ease;
}


/* --- Desktop Enhancements (Still keep height adjustment) --- */
@media (min-width: 1250px) {
  .mp-header {
    height: var(--hdr-height-desktop);
  }

  .mp-header .nav {
    top: var(--hdr-height-desktop);
    /* Start overlay below desktop header */
    padding: 3rem;
    /* More padding on desktop */
  }

  /* Logo Scales Up */
  .mp-header .brand-logo {
    height: 56px;
  }

  /* Make text slightly larger on desktop drawer */
  .nav-link,
  .nav-link--toggle {
    font-size: 1.3rem;
  }
}