/* ================================================================
   REDESIGNED NAVIGATION CSS
   Main nav, mobile nav, hamburger menu
================================================================ */

/* ================================================================
   NAV — ghost over hero, paper when scrolled/pinned
================================================================ */
.redesigned-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

.redesigned-nav.pinned {
  background: rgba(250, 248, 242, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--paper-lines);
  padding: 0.85rem 2.5rem;
}

@media (prefers-color-scheme: dark) {
  .redesigned-nav.pinned {
    background: rgba(26, 21, 18, 0.95);
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.35s, opacity 0.35s;
  opacity: 0;
  pointer-events: none;
}

.redesigned-nav.pinned .nav-brand { 
  color: var(--ink); 
  opacity: 1;
  pointer-events: auto;
}

/* For pages that start pinned, always show the brand */
.redesigned-nav.always-visible .nav-brand {
  opacity: 1;
  pointer-events: auto;
  color: var(--ink);
}

.nav-brand img {
  width: 30px; height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-brand-name {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.redesigned-nav.pinned .nav-links a { color: var(--ink-light); }
.redesigned-nav.always-visible .nav-links a { color: var(--ink-light); }
.nav-links a:hover { color: var(--washi-coral) !important; }

.nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
}

.redesigned-nav.pinned .nav-links a.active,
.redesigned-nav.always-visible .nav-links a.active {
  background: var(--paper-warm);
  color: var(--ink) !important;
}

/* ================================================================
   HAMBURGER MENU BUTTON
================================================================ */
.nav-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.75);
  border-radius: 1px;
  transition: background 0.2s;
}

.redesigned-nav.pinned .nav-hamburger span,
.redesigned-nav.always-visible .nav-hamburger span {
  background: var(--ink-light);
}

/* ================================================================
   MOBILE NAV OVERLAY
================================================================ */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 250;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (prefers-color-scheme: dark) {
  .nav-mobile {
    background: rgba(26, 21, 18, 0.98);
  }
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1rem 2rem;
  text-align: center;
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--washi-coral);
}

.nav-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-lines);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--ink);
  line-height: 1;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.nav-close.visible {
  display: flex;
}

.nav-close:hover {
  background: var(--paper);
  transform: scale(1.05);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 580px) {
  .redesigned-nav { padding: 1.1rem 1.5rem; }
  .redesigned-nav.pinned { padding: 0.7rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
