/* ==========================================================================
   Site header, nav, and mobile menu
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 232, 213, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.lockup {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
}

.nav-links a {
  font-size: 0.83rem;
  white-space: nowrap;
  font-weight: 500;
  color: var(--body);
  position: relative;
  padding: 3px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width .25s ease;
}

.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 18px;
}

.phone {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.nav-right .btn {
  white-space: nowrap;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 21px;
  height: 1.5px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.sticky-bar {
  display: none;
}

@media (max-width: 1080px) {
  .nav-links, .phone { display: none; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #F2E8D5;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(18, 43, 69, 0.12);
  }

  .menu-btn { display: block; }
  .nav { padding: 14px 22px; }

  .sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--white);
    padding: 12px 16px;
    gap: 10px;
    border-top: 1px solid var(--line);
  }

  .sticky-bar .btn { flex: 1; padding: 14px; }
  body { padding-bottom: 78px; }
}
