/* ──────────────────────────────────────────────────────────────
   JKR chrome — Jasmine KaiSa Rose header/nav/footer for pages
   that use the Erlandia design system (mentorship, kingship,
   sovereign-muse). Self-contained: values are hardcoded so this
   file never collides with erlandia-base.css variables.
   Source of truth for the look: css/style.css (header/footer).
   ────────────────────────────────────────────────────────────── */

/* ── Header / nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(253, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-header.scrolled {
  background: rgba(253, 249, 245, 0.96);
  box-shadow: 0 2px 24px rgba(42, 24, 32, 0.08);
  padding: 13px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Marcellus', serif;
  font-size: 1.32rem;
  color: #2a1820;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.site-logo:hover { color: #2a1820; }
.site-logo span { color: #a93e58; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-family: 'Mulish', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #322028;
  text-decoration: none;
  transition: color .3s ease;
}
.site-nav a:hover, .site-nav a.active { color: #a93e58; }
.site-nav .nav-cta {
  border: 1px solid #c2a063;
  padding: 10px 22px;
  border-radius: 3px;
}
.site-nav .nav-cta:hover { background: rgba(194, 160, 99, 0.14); }

/* ── Nav dropdown ── */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a .caret { font-size: 0.6rem; margin-left: 6px; color: #c2a063; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(253, 249, 245, 0.99);
  border: 1px solid rgba(194, 160, 99, 0.25);
  border-radius: 3px;
  box-shadow: 0 14px 40px rgba(42, 24, 32, 0.14);
  padding: 12px 0;
  min-width: 250px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 120;
}
.dropdown::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a { display: block; padding: 11px 22px; font-size: 0.76rem; letter-spacing: 0.14em; }

/* ── Mobile nav ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: #2a1820;
  transition: all .3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(253, 249, 245, 0.99);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 1rem; }
  .nav-item { flex-direction: column; gap: 24px; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    background: none; border: none; box-shadow: none;
    padding: 0; min-width: 0;
    display: flex; flex-direction: column; gap: 24px;
  }
  .dropdown::before { display: none; }
  .dropdown a { padding: 0; font-size: 0.88rem; color: #a93e58; }
}

/* ── Footer ── */
.site-footer {
  background: #120818;
  color: rgba(253, 249, 245, 0.66);
  padding: 70px 0 36px;
  font-size: 0.92rem;
  font-family: 'Mulish', sans-serif;
  text-align: left;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-brand .site-logo { color: #fdf9f5; font-size: 1.4rem; }
.footer-brand p { margin-top: 16px; max-width: 320px; line-height: 1.75; color: rgba(253, 249, 245, 0.66); }
.site-footer h4 {
  color: #d9bc85;
  font-size: 0.8rem;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: rgba(253, 249, 245, 0.66); text-decoration: none; transition: color .3s ease; }
.site-footer a:hover { color: #d9bc85; }
.footer-bottom {
  border-top: 1px solid rgba(217, 188, 133, 0.16);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(253, 249, 245, 0.4);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
