/* SEREN MAISON — shared mobile navigation (drops onto any page).
   Injects a top-right burger + full-screen overlay on screens <=768px.
   Self-disables if the page already has a .nav-burger of its own. */

.sm-burger {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(250, 247, 242, 0.92);
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 50%;
  cursor: pointer;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sm-burger span {
  display: block;
  width: 18px;
  height: 1px;
  background: #1C1C1C;
  transition: transform .3s ease, opacity .3s ease;
}
.sm-burger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.sm-burger.open span:nth-child(2) { opacity: 0; }
.sm-burger.open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

.sm-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #FAF7F2;
  z-index: 9997;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 92px 28px 40px;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  overflow-y: auto;
}
.sm-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.sm-nav-eyebrow {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #A07840;
  margin-bottom: 28px;
}
.sm-nav-link {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 5px;
  color: #1C1C1C;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 0;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  transition: color .25s ease;
}
.sm-nav-link:last-of-type { border-bottom: 0; }
.sm-nav-link:hover,
.sm-nav-link:active { color: #A07840; }
.sm-nav-link em {
  display: block;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 2px;
  color: #A07840;
  margin-top: 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-transform: none;
}
.sm-nav-foot {
  margin-top: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(28, 28, 28, 0.5);
  text-align: center;
}

/* Show on mobile only — and only when the page hasn't injected its own .nav-burger */
@media (max-width: 768px) {
  body:not([data-mobile-nav-native]) .sm-burger { display: flex; }
  /* Hide the desktop nav links on mobile so the burger is the only entry */
  body:not([data-mobile-nav-native]) nav ul.nav-links,
  body:not([data-mobile-nav-native]) nav .nav-links,
  body:not([data-mobile-nav-native]) .nav-right > ul {
    display: none !important;
  }
}
