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

/* ---------- Burger button ---------- */
.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); }

@media (max-width: 768px) {
  .sm-burger { display: flex; }
}

/* ---------- Drawer (refined editorial) ---------- */
.sm-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #FAF7F2;
  z-index: 9997;
  flex-direction: column;
  padding: 54px 30px 30px;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sm-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.sm-nav::before {
  content: "S";
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(340px, 110vw, 500px);
  font-weight: 300;
  color: rgba(201, 169, 110, .07);
  line-height: .82;
  letter-spacing: -12px;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.sm-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}
.sm-nav-s {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  color: #C9A96E;
  line-height: 1;
}
.sm-nav-close {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #1C1C1C;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  opacity: .78;
}

.sm-nav-brand {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}
.sm-nav-brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 8px;
  color: #1C1C1C;
  text-transform: uppercase;
}
.sm-nav-brand-mark em {
  font-style: italic;
  color: #C9A96E;
  font-weight: 300;
}
.sm-nav-brand-rule {
  width: 32px;
  height: 1px;
  background: #C9A96E;
  margin: 12px auto 0;
  opacity: .7;
}

.sm-nav-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}
.sm-nav-list a {
  text-decoration: none;
  color: #1C1C1C;
  display: block;
  padding: 0;
  border: none;
  text-align: left;
}
.sm-nav-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  color: #1C1C1C;
  letter-spacing: .3px;
}
.sm-nav-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 11px;
  color: #C9A96E;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

.sm-nav-tick {
  width: 18px;
  height: 1px;
  background: rgba(201, 169, 110, .4);
  margin: 6px 0 2px;
}

.sm-nav-account {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.sm-nav-account a.sm-nav-account-primary {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: #1C1C1C;
  text-decoration: none;
  line-height: 1;
  letter-spacing: .3px;
}
.sm-nav-account a.sm-nav-account-secondary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 9px;
  color: #1C1C1C;
  opacity: .7;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 4px;
  line-height: 1;
}

.sm-nav-foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.sm-nav-foot-rule {
  width: 18px;
  height: 1px;
  background: rgba(201, 169, 110, .4);
  margin-bottom: 14px;
}
.sm-nav-foot a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: #1C1C1C;
  text-decoration: none;
  letter-spacing: .5px;
  opacity: .78;
}
.sm-nav-foot-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  color: #1C1C1C;
  opacity: .5;
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes smNavFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sm-nav.open .sm-nav-head,
.sm-nav.open .sm-nav-brand,
.sm-nav.open .sm-nav-list > *,
.sm-nav.open .sm-nav-foot {
  animation: smNavFadeIn .5s ease both;
}
.sm-nav.open .sm-nav-brand { animation-delay: .06s; }
.sm-nav.open .sm-nav-list > *:nth-child(1) { animation-delay: .12s; }
.sm-nav.open .sm-nav-list > *:nth-child(2) { animation-delay: .18s; }
.sm-nav.open .sm-nav-list > *:nth-child(3) { animation-delay: .24s; }
.sm-nav.open .sm-nav-list > *:nth-child(4) { animation-delay: .30s; }
.sm-nav.open .sm-nav-list > *:nth-child(5) { animation-delay: .36s; }
.sm-nav.open .sm-nav-foot { animation-delay: .44s; }
