/* ─── INTERAMORY SHARED STYLES ─── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DARK NAV (default — tools & texts pages) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10,9,8,0.88); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-weight: 400; letter-spacing: 0.06em; color: #e8ddd0;
  text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: #6a5d52; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #b8a878; }
.nav-item { position: relative; }
.nav-item-btn {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: none; padding: 0; cursor: pointer;
  color: #6a5d52; font-family: 'Jost', sans-serif; font-weight: 300;
  transition: color 0.3s;
}
.nav-item-btn:hover, .nav-item-btn.active { color: #b8a878; }
.nav-dropdown {
  position: absolute; top: calc(100% + 0.9rem); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(18,15,12,0.97); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 160px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
.nav-dropdown.open {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 0.7rem 1.2rem;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: #8a7d6e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { color: #e8ddd0; background: rgba(184,168,120,0.08); }

/* ── LIGHT NAV (homepage only — add class="light" to <nav>) ── */
nav.light {
  padding: 1.2rem 4rem;
  background: rgba(245,240,232,0.92);
  border-bottom: 1px solid #d4c9b8;
}
nav.light .nav-logo { color: #2c2417; }
nav.light .nav-links a { color: #8a7f72; }
nav.light .nav-links a:hover { color: #b8673a; }
nav.light .nav-item-btn { color: #8a7f72; }
nav.light .nav-item-btn:hover, nav.light .nav-item-btn.active { color: #2c2417; }
nav.light .nav-dropdown {
  background: rgba(245,240,232,0.98);
  border: 1px solid #d4c9b8;
}
nav.light .nav-dropdown a { color: #8a7f72; border-bottom: 1px solid #d4c9b8; }
nav.light .nav-dropdown a:hover { color: #2c2417; background: #ede6d6; }

/* ── ROOT OFFSET ── */
#root { padding-top: 52px; min-height: 100vh; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  nav, nav.light { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
}
