/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,239,233,0.85);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
/* backdrop-filter lives on a pseudo-element rather than .site-header itself,
   because backdrop-filter on an ancestor creates a containing block for
   position:fixed descendants (like the mobile .site-nav panel), which
   collapsed the mobile menu's height to 0 and made it render transparent. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(10px);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.6rem;
}
.brand-mark {
  display: flex; align-items: center; gap: 0.85rem;
  font-family: var(--heading); font-weight: 700; font-size: 1.15rem;
  color: var(--charcoal); text-decoration: none; line-height: 1.2;
}
.brand-mark em { font-style: normal; color: var(--plum); }
.crown-mark { width: 48px; height: 48px; color: var(--gold); flex-shrink: 0; }
/* Header logo — deliberately much larger than the default crown-mark size,
   since a real uploaded logo should read clearly, not sit tiny next to the
   nav text. */
.site-header .crown-mark { width: 108px; height: 108px; }
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.nav-link {
  font-family: var(--heading); font-weight: 500; font-size: 1rem;
  color: var(--ink-dim); text-decoration: none; position: relative; padding-block: 0.25rem;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.25s ease;
}
.nav-link:hover, .nav-link-active { color: var(--charcoal); }
.nav-link:hover::after, .nav-link-active::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--charcoal); display: block; }

@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--off-white);
    flex-direction: column; align-items: flex-start; padding: 2rem var(--gutter);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all 0.25s ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu-toggle { display: flex; }
}

/* Footer */
.site-footer { background: var(--charcoal); color: var(--off-white); padding-top: 3.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo-square {
  width: 160px; height: 160px; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,239,233,0.06); border: 1px solid rgba(240,239,233,0.14);
  border-radius: var(--radius);
}
.footer-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; box-sizing: border-box; }
.footer-logo-square .crown-mark { width: 64px; height: 64px; color: var(--gold); }
.footer-tagline { color: rgba(240,239,233,0.65); max-width: 32ch; font-size: 0.92rem; }
.footer-heading { font-family: var(--heading); font-weight: 700; color: var(--gold); margin-bottom: 0.75rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { color: rgba(240,239,233,0.85); text-decoration: none; line-height: 2; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(240,239,233,0.15); padding-block: 1.25rem; font-size: 0.8rem; color: rgba(240,239,233,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-credit { color: rgba(240,239,233,0.35); }
.staff-dot { color: inherit; text-decoration: none; padding: 0 0.4rem; opacity: 0.8; }
.staff-dot:hover { color: var(--gold); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}