/* ══════════════════════════════════════════════════════════════════
   MIUUM shared site chrome, the floating nav island + footer, ported
   from premiumlane.net's style.css so every page reads as ONE site.
   Every selector is scoped under .mmnav / .mmfoot / .mm-menu so it can
   drop into any page without touching that page's own header/footer
   styles. Vars are self-contained (defined on the components, not :root)
   for the same reason.
   ══════════════════════════════════════════════════════════════════ */
@keyframes mmShimmer { 0%,100% { transform: translateX(-160%); } 50% { transform: translateX(320%); } }

.mmnav, .mm-menu, .mmfoot {
  --mm-dark: #1C1917;
  --mm-dark-deep: #0D0C0B;
  --mm-gold: #9A7B2E;
  --mm-gold-light: #C4A45A;
  --mm-white: #ffffff;
  --mm-easing: cubic-bezier(0.32, 0.72, 0, 1);
  --mm-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Outfit', system-ui, sans-serif;
}

/* ── Floating pill header (identical geometry to premiumlane.net) ── */
.mmnav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 48px);
  max-width: 1180px;
  transition: top 0.4s var(--mm-easing);
}
.mmnav.scrolled { top: 10px; }
.mmnav .mm-island {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  height: 60px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 50px;
  border: 1px solid rgba(196,164,90,0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: height 0.4s var(--mm-easing), box-shadow 0.4s var(--mm-easing);
}
.mmnav.scrolled .mm-island {
  height: 52px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
/* MIUUM text wordmark on the left of the island, placeholder until the
   real logo art lands. */
.mmnav .mm-brand {
  position: absolute;
  left: 26px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.28em;
  color: var(--mm-gold-light);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.mmnav nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.mmnav nav a {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.13em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,0.62);
  transition: color 0.3s var(--mm-easing);
  position: relative;
}
.mmnav nav a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--mm-gold-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--mm-easing);
}
.mmnav nav a:hover::after, .mmnav nav a.active::after { transform: scaleX(1); }
.mmnav nav a:hover, .mmnav nav a.active { color: var(--mm-gold-light); }
/* Right-side group: optional page extras (language picker, sign-in) + CTA. */
.mmnav .mm-right {
  position: absolute;
  right: 8px;
  display: flex; align-items: center; gap: 10px;
}
.mmnav .mm-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mm-gold-light); color: var(--mm-white) !important;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px 10px 22px;
  border-radius: 50px;
  overflow: hidden;
  transition: background 0.3s var(--mm-easing), transform 0.2s var(--mm-easing);
}
.mmnav .mm-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: mmShimmer 3.5s ease-in-out infinite;
}
.mmnav .mm-cta:hover { background: #B8963A; transform: scale(1.03); }
.mmnav .mm-cta .mm-arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: transform 0.3s var(--mm-spring);
}
.mmnav .mm-cta:hover .mm-arrow { transform: translateX(3px); }
/* Light/dark toggle, injected by site-chrome.js into every island. */
.mmnav .mm-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: none; border: 1px solid rgba(196,164,90,0.35);
  color: var(--mm-gold-light); font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0;
  transition: border-color 0.3s var(--mm-easing), transform 0.3s var(--mm-spring);
}
.mmnav .mm-theme:hover { border-color: var(--mm-gold-light); transform: translateY(-1px); }
.mmnav .mm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 901;
  flex-shrink: 0;
}
.mmnav .mm-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s var(--mm-spring), opacity 0.2s ease;
}
.mmnav .mm-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mmnav .mm-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mmnav .mm-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.mm-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 890;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mm-menu.open { opacity: 1; pointer-events: all; }
.mm-menu nav { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mm-menu nav a {
  font-size: 26px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 18px 0;
  width: 250px;
  text-align: center;
  border-bottom: 1px solid rgba(196,164,90,0.1);
  transition: color 0.2s ease, transform 0.2s ease;
}
.mm-menu nav a:hover, .mm-menu nav a.active { color: var(--mm-gold-light); transform: translateX(4px); }
.mm-menu nav a.mm-menu-book {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mm-gold-light);
  color: var(--mm-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 50px;
  border-bottom: none;
  width: auto;
  transform: none;
}
.mm-menu nav a.mm-menu-book:hover { background: #B8963A; color: var(--mm-dark); }
.mm-menu .mm-menu-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

/* ── Footer (identical structure to premiumlane.net's) ── */
.mmfoot {
  background: var(--mm-dark-deep);
  padding: 72px 80px 40px;
  border-top: 1px solid rgba(196,164,90,0.12);
  position: relative;
  margin-top: 0;
}
.mmfoot::before {
  content: '';
  position: absolute; top: 0; left: 80px; right: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,164,90,0.3), transparent);
}
.mmfoot .mm-fgrid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
  align-items: start;
  max-width: 1180px; margin-left: auto; margin-right: auto;
}
.mmfoot .mm-fbrand { display: flex; flex-direction: column; align-items: center; }
/* Footer wordmark, placeholder until the real logo art lands. */
.mmfoot .mm-fbrand .mm-fwm {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--mm-gold-light);
  line-height: 1;
  margin-bottom: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.mmfoot .mm-fbrand p {
  font-size: 13px; line-height: 1.85; color: rgba(255,255,255,0.32);
  font-weight: 300; width: 280px; text-align: center; margin: 0;
}
.mmfoot .mm-fcol h4 {
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mm-gold-light); margin: 0 0 22px; font-weight: 600;
}
.mmfoot .mm-fcol a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.38);
  text-decoration: none; margin-bottom: 12px; font-weight: 300;
  transition: color 0.3s var(--mm-easing), transform 0.3s var(--mm-easing);
}
.mmfoot .mm-fcol a:hover { color: var(--mm-gold-light); transform: translateX(4px); }
.mmfoot .mm-fsocial { display: flex; gap: 10px; margin-top: 6px; }
.mmfoot .mm-ficon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(196,164,90,0.22);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.42); text-decoration: none;
  line-height: 0;
  margin-bottom: 0;
  transition: border-color 0.3s var(--mm-easing), color 0.3s var(--mm-easing), transform 0.3s var(--mm-spring), background 0.3s;
}
.mmfoot .mm-ficon svg { display: block; width: 15px; height: 15px; }
.mmfoot .mm-ficon:hover { border-color: var(--mm-gold-light); color: var(--mm-gold-light); transform: translateY(-3px); background: rgba(196,164,90,0.08); }
.mmfoot .mm-fbottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.mmfoot .mm-fbottom p { font-size: 11px; color: rgba(255,255,255,0.18); letter-spacing: 0.06em; margin: 0; }

/* Pages whose content used to start under their own static header get
   breathing room below the now-floating island. */
.mm-pad-top { padding-top: 108px !important; }

/* Mid width: drop the brand text so the centered nav never collides with the right group (the live site island has no left brand either). */
@media (max-width: 1200px) {
  .mmnav .mm-brand { display: none; }
}

@media (max-width: 1000px) {
  .mmnav { width: calc(100% - 24px); }
  .mmnav .mm-island { padding: 0 8px 0 4px; justify-content: space-between; }
  /* Burger mode: the brand comes back (the pill would read empty without it). */
  .mmnav .mm-brand { display: block; position: static; margin-left: 14px; }
  .mmnav nav { display: none; }
  .mmnav .mm-burger { display: flex; }
  .mmnav .mm-right { position: static; }
  .mmnav .mm-cta .mm-arrow { display: none; }
  .mmnav .mm-brand { font-size: 15px; margin-left: 8px; }
  .mmfoot { padding: 56px 24px 40px; }
  .mmfoot::before { left: 24px; right: 24px; }
  .mmfoot .mm-fgrid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .mmfoot .mm-fgrid > * { min-width: 0; }
  .mmfoot .mm-fbrand { grid-column: 1 / -1; }
  .mmfoot .mm-fbottom { flex-direction: column; gap: 8px; }
  .mm-pad-top { padding-top: 96px !important; }
}
