/* ---------- header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: 0.35s;
  background: transparent;
}
body.admin-bar header {
  top: 32px;
}
header.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .3s linear;
  padding: 10px 20px;
}
#hdr.solid .nav {
  height: 74px;
  padding: 0 20px;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: #fff;
  transition: 0.35s;
  white-space: nowrap;
}
header.solid .brand {
  color: var(--navy);
}
.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.menu li {
  list-style: none;
}
.menu a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: 0.2s;
  white-space: nowrap;
}
.menu li.bold a {
  font-weight: 900;
}
header.solid .menu a {
  color: var(--muted);
}
.menu a:hover,
.menu a.active {
  color: #fff;
}
header.solid .menu a:hover,
header.solid .menu a.active {
  color: var(--navy);
}

/* ---------- mobile nav (hamburger drawer) ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s;
}
header.solid .nav-toggle span {
  background: var(--navy);
}
header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Novak Platinum 1 logo — sole header brand ----------
   The combined Novak Platinum 1 mark is the only header logo (the separate
   Novak Insurance logo was dropped per client). Filled monogram box, so swap
   the real white/dark asset per header state (white over the hero image,
   dark once the header goes solid on scroll). */
.brand-p1 {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand-p1 img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-p1 .p1-dark {
  display: none;
}
header.solid .brand-p1 .p1-white {
  display: none;
}
header.solid .brand-p1 .p1-dark {
  display: block;
}





/* desktop: widen the header row + open spacing so the Novak+P1 logos and menu aren't cramped */
@media (min-width: 1120px) {
  header .wrap.nav {
    max-width: 1340px;
  }
  .nav .brand-group {
    margin-right: 40px;
  }
  .nav .menu {
    gap: 32px;
  }

  #hdr .brand-stacked img {
    height: 90px;
    transition: all .3s linear;
  }
  #hdr.solid .brand-stacked img {
    height: 52px;
    transition: all .3s linear;
  }
  
}


@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(11, 36, 68, 0.14);
  }
  header.nav-open .menu {
    display: flex;
  }
  .menu a {
    color: var(--navy);
    padding: 15px 28px;
    letter-spacing: 0.1em;
    display: block;
  }
  .menu-btn a {
    text-align: center;
  }


}

@media (max-width: 520px) {
  .brand-p1 img {
    height: 26px;
  }

}
