/* ============================================================
   navbar.css
   Announcement bar + sticky navigation + mobile menu
   ============================================================ */

/* ── Announcement Bar ── */
.announce {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  padding: 9px 16px;
  font-weight: 500;
}

/* ── Nav Wrapper ── */
nav {
  background: var(--offwhite);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 12px rgba(28,74,46,0.06);
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ── Desktop Links ── */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--charcoal);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}

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

.nav-links a:hover {
  color: var(--leaf);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ── CTA Button ── */
.nav-cta {
  background: var(--forest);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--leaf); }

/* ── Hamburger (Mobile) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger "X" state */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Slide-Down Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;          /* height of nav */
  left: 0;
  width: 100%;
  background: var(--offwhite);
  border-bottom: 2px solid var(--sand);
  flex-direction: column;
  padding: 24px 6%;
  gap: 20px;
  z-index: 199;
  box-shadow: 0 8px 24px rgba(28,74,46,0.10);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
  transition: color 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
  background: var(--forest);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  margin-top: 6px;
}

.mobile-menu a:hover { color: var(--leaf); }
.mobile-menu a:last-child:hover { background: var(--leaf); color: var(--white); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links,
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}
