/* ═══════════════════════════════════════════
   Sticky Header (Top Nav)
════════════════════════════════════════════ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
/* Default (on sections): solid cream background */
.topnav {
  background: rgba(251, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(46,26,20,0.06);
}
/* Transparent on home page hero */
.topnav.topnav--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.topnav.topnav--scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

/* ── Brand / Wordmark ── */
.topnav-brand {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-wordmark {
  font-family: var(--font-subhead);
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--ink);
  transition: color 0.3s;
}
.topnav-tagline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-xlight);
  transition: color 0.3s;
}
/* Light text on transparent/scrolled header */
.topnav--transparent .topnav-wordmark,
.topnav--scrolled .topnav-wordmark {
  color: var(--cream);
}
.topnav--transparent .topnav-tagline,
.topnav--scrolled .topnav-tagline {
  color: rgba(245, 241, 232, 0.5);
}

/* ── Nav Links (desktop) ── */
.topnav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topnav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  text-decoration: none;
}
.topnav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.topnav-link:hover { color: var(--ink); }
.topnav-link:hover::after { transform: scaleX(1); }
.topnav-link.active { color: var(--gold-mid); }
.topnav-link.active::after { transform: scaleX(1); }

/* Light text on transparent/scrolled header */
.topnav--transparent .topnav-link,
.topnav--scrolled .topnav-link {
  color: rgba(245, 241, 232, 0.7);
}
.topnav--transparent .topnav-link:hover,
.topnav--scrolled .topnav-link:hover {
  color: var(--cream);
}
.topnav--transparent .topnav-link.active,
.topnav--scrolled .topnav-link.active {
  color: var(--gold-light);
}

/* Dropdown arrow indicator */
.topnav-link--has-menu::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -0.5px;
  float: right;
  margin-top: 6px;
}

/* ── Dropdown Menus ── */
.topnav-dropdown {
  position: relative;
}
.topnav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 10px 40px rgba(46,26,20,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 110;
}
.topnav-dropdown:hover .topnav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.topnav-menu-item {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-mid);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.topnav-menu-item:hover {
  background: var(--cream);
  color: var(--maroon);
}
.topnav-menu-item.active {
  color: var(--gold-mid);
  font-weight: 500;
}

/* ── Nav link subtitle (visible on hover) ── */
.topnav-link-sub {
  display: block;
  font-family: var(--font-subhead);
  font-style: italic;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-light, #6B6B6B);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.25s ease;
  line-height: 1.3;
  margin-top: 0;
}
.topnav-dropdown:hover .topnav-link-sub {
  opacity: 1;
  max-height: 1.2em;
  margin-top: 2px;
}
.topnav--transparent .topnav-link-sub,
.topnav--scrolled .topnav-link-sub {
  color: rgba(245, 241, 232, 0.5);
}

/* ── Right side: Sign In + Hamburger ── */
.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topnav-signin {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: none;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  padding: 7px 20px;
  cursor: pointer;
  transition: all 0.25s;
}
.topnav-signin:hover {
  background: rgba(196, 146, 42, 0.1);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
/* Signed-in user button */
.topnav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--cream-dark);
  border-radius: 20px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.topnav-user:hover { border-color: var(--gold); }
.topnav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.topnav-user-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-mid);
}
/* ── Profile dropdown ──────────────────── */
.topnav-user-wrap {
  position: relative;
}
.topnav-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg, #FAF7F2);
  border: 1px solid var(--cream-dark, #E8E0D4);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(44,24,16,0.12);
  padding: 6px 0;
  z-index: 1100;
}
.topnav-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink, #2C1810);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  min-height: 44px;
  box-sizing: border-box;
}
.topnav-dropdown-item:hover {
  background: rgba(114,47,55,0.06);
}
.topnav-dropdown-divider {
  height: 1px;
  background: var(--cream-dark, #E8E0D4);
  margin: 4px 0;
}
.topnav-dropdown-signout {
  color: var(--maroon, #722F37);
}

.topnav--transparent .topnav-user,
.topnav--scrolled .topnav-user {
  border-color: rgba(245,241,232,0.3);
}
.topnav--transparent .topnav-user-name,
.topnav--scrolled .topnav-user-name {
  color: rgba(245,241,232,0.8);
}
.topnav--transparent .topnav-signin,
.topnav--scrolled .topnav-signin {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ── Hamburger (mobile only) ── */
.topnav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.topnav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.topnav--transparent .topnav-hamburger span,
.topnav--scrolled .topnav-hamburger span {
  background: var(--cream);
}

/* ── Mobile Slide-Out Nav ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--dark-bg);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.mobile-nav-close:hover { color: var(--cream); }
.mobile-nav-links {
  padding: 16px 0;
  flex: 1;
}
.mobile-nav-group {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 20px 24px 8px;
}
.mobile-nav-group:first-child { padding-top: 8px; }
.mobile-nav-link {
  display: block;
  padding: 11px 24px 11px 32px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-link:hover {
  color: var(--cream);
  background: rgba(255,255,255,0.05);
}
.mobile-nav-link.active {
  color: var(--gold-light);
  border-left: 2px solid var(--gold);
  padding-left: 30px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: none;
  padding: 10px 32px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-xlight);
  background: var(--cream-mid);
  border-bottom: 1px solid var(--cream-dark);
}
.breadcrumb.visible { display: block; }
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; }
.breadcrumb-nav script { display: none; }
.breadcrumb .breadcrumb-link,
.breadcrumb a {
  color: var(--ink-light, #5C4A3A);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.breadcrumb .breadcrumb-link:hover,
.breadcrumb a:hover { color: var(--maroon); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .breadcrumb-sep {
  margin: 0 8px;
  color: var(--cream-dark);
}
.breadcrumb .breadcrumb-current {
  color: var(--ink, #2C1810);
  font-weight: 500;
}
/* Mobile: collapse to arrow + parent + current */
@media (max-width: 480px) {
  .breadcrumb-nav > .breadcrumb-link:first-of-type,
  .breadcrumb-nav > .breadcrumb-sep:first-of-type { display: none; }
  .breadcrumb-nav > .breadcrumb-link:nth-of-type(2)::before { content: '\2190 '; }
}

/* ═══════════════════════════════════════════
