/* ─── Header ──────────────────────────────────────────────────────────────── */
.mp-header {
  width: calc(100% - 48px);
  left: 24px;
  background-color: #fafaf8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border-radius: 16px;
  padding: 15px 40px;
  position: fixed;
  top: 24px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-header.at-top {
  background-color: transparent;
  box-shadow: none;
}

.mp-header.header-hidden {
  transform: translateY(calc(-100% - 40px));
}

.mp-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  position: relative;
  z-index: 1002;
}

/* ─── Logo ────────────────────────────────────────────────────────────────── */
.mp-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #c9b59b;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
  opacity: 0;
  animation: slideInLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.mp-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: 'Libre Baskerville', serif;
  opacity: 0;
  animation: slideInRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

.mp-nav a {
  font-size: 16px;
  color: #111111;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.mp-nav a:not(.mp-btn):hover {
  opacity: 0.6;
}

/* ─── CTA Button ──────────────────────────────────────────────────────────── */
.mp-btn {
  padding: 10px 22px;
  background: #efe3cf;
  color: #111111 !important;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.mp-btn:hover {
  background: #e6d6be;
}

/* ─── Hamburger ───────────────────────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  z-index: 1003;
  opacity: 0;
  animation: slideInRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

.line {
  width: 100%;
  height: 2px;
  background-color: #111;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.hamburger-btn.is-active .line:nth-child(1) { transform: translateY(8px)  rotate(45deg);  }
.hamburger-btn.is-active .line:nth-child(2) { opacity: 0; transform: scaleX(0);           }
.hamburger-btn.is-active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Mobile Menu Overlay ─────────────────────────────────────────────────── */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fafaf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-link {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  color: #111;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu-overlay.is-open .mobile-link:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.is-open .mobile-link:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.is-open .mobile-link:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.is-open .mobile-link:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.is-open .mobile-link:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ─── Newsletter Modal ────────────────────────────────────────────────────── */
.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.newsletter-modal.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-box {
  background: #fafaf8;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  font-family: 'Libre Baskerville', serif;
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.newsletter-modal.active .newsletter-box {
  transform: scale(1);
  opacity: 1;
}

.newsletter-box h3     { margin-bottom: 20px; }
.newsletter-box input  { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #ddd; }
.newsletter-box button { background: #efe3cf; border: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.close-newsletter      { position: absolute; right: 15px; top: 10px; font-size: 22px; cursor: pointer; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mp-header {
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 0;
    padding: 15px 20px;
  }
  .mp-nav          { display: none; }
  .hamburger-btn   { display: flex; }
  .mp-header.header-hidden { transform: translateY(-100%); }
}

/* ─── Elementor Editor Compat ─────────────────────────────────────────────── */
body.elementor-editor-active .mp-header {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  left: auto !important;
  transform: none !important;
  border-radius: 0 !important;
}
