/**
 * MENU OVERLAY
 * OkaneGroup Theme
 *
 * Extracted from working standalone HTML.
 * All selectors scoped to .menu-overlay to win specificity.
 * All color values hardcoded with !important to override theme globals.
 */

/* ═══ Overlay ═══ */
.menu-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.is-visible {
  pointer-events: all;
  visibility: visible;
}

.menu-overlay.is-open .menu-panel {
  clip-path: inset(0% 0% 0% 0% round 50px);
}


/* ═══ Backdrop ═══ */
.menu-overlay .menu-backdrop {
  position: absolute;
  inset: 0;
  background: #0F0E0C;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.menu-overlay.is-open .menu-backdrop { opacity: 1; }
.menu-overlay.is-open .menu-close { opacity: 1; }


/* ═══ Panel ═══ */
.menu-overlay .menu-panel {
  position: relative;
  width: calc(100vw - clamp(16px, 2vw, 40px));
  height: calc(100vh - clamp(16px, 2vh, 40px));
  max-width: 1800px;
  background: #1c1a17;
  border-radius: 50px;
  display: grid;
  grid-template-columns: 1fr 44%;
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50% round 50px);
  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}


/* ═══ Left column ═══ */
.menu-overlay .menu-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.5vw, 52px) clamp(24px, 3.5vw, 52px);
}


/* ═══ Navigation ═══ */
.menu-overlay .menu-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-overlay .menu-nav li {
  overflow: hidden;
}

.menu-overlay .menu-nav li a {
  display: block;
  font-family: 'Host Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #5e5a52 !important;
  text-decoration: none !important;
  transform: translateY(110%);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1),
              color 0.25s ease;
  will-change: transform;
  cursor: pointer;
}

.menu-overlay .menu-nav li a.nav-visible {
  transform: translateY(0);
}

.menu-overlay .menu-nav li a.is-active,
.menu-overlay .menu-nav li a:hover {
  color: #f0ece4 !important;
}


/* ═══ Social icons ═══ */
.menu-overlay .menu-bottom {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.8vw, 14px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-overlay a.social-icon {
  width: clamp(30px, 2.4vw, 40px);
  height: clamp(30px, 2.4vw, 40px);
  border-radius: 50%;
  border: 1px solid #3a3830 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7060 !important;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  background: none !important;
}

.menu-overlay a.social-icon:hover {
  border-color: #c9b896 !important;
  color: #c9b896 !important;
}

.menu-overlay .social-icon svg {
  width: clamp(12px, 1vw, 16px);
  height: clamp(12px, 1vw, 16px);
}


/* ═══ Right column — images ═══ */
.menu-overlay .menu-right {
  padding: clamp(8px, 0.9vw, 16px);
  display: flex;
}

.menu-overlay .img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 50px;
  overflow: hidden;
  flex: 1;
}

.menu-overlay .menu-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.menu-overlay .menu-img.is-visible {
  opacity: 1;
  transform: scale(1);
}


/* ═══ Close button ═══ */
.menu-overlay .menu-close {
  position: absolute;
  top: calc(clamp(8px, 0.9vw, 16px) + 14px);
  right: calc(clamp(8px, 0.9vw, 16px) + 18px);
  z-index: 10;
  background: rgba(28, 26, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0ece4 !important;
  width: clamp(34px, 2.8vw, 46px);
  height: clamp(34px, 2.8vw, 46px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.menu-overlay .menu-close:hover {
  background: rgba(50, 46, 40, 0.92);
}

.menu-overlay .menu-close svg {
  width: clamp(13px, 1.1vw, 18px);
  height: clamp(13px, 1.1vw, 18px);
}


/* ═══ TABLET (769–1100px) ═══ */
@media (min-width: 769px) and (max-width: 1100px) {
  .menu-overlay .menu-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 380px;
    height: calc(100dvh - 32px);
    max-height: none;
  }

  .menu-overlay .menu-left {
    grid-row: 1;
    padding: clamp(32px, 4vw, 52px) clamp(32px, 4vw, 52px) 24px;
  }

  .menu-overlay .menu-nav li a {
    font-size: clamp(2rem, 5.5vw, 3rem);
  }

  .menu-overlay .menu-right {
    grid-row: 2;
    padding: 0 clamp(8px, 0.9vw, 16px) clamp(8px, 0.9vw, 16px);
  }

  .menu-overlay .menu-close {
    top: 14px;
    right: 14px;
  }
}


/* ═══ MOBILE (≤768px) ═══ */
@media (max-width: 768px) {
  .menu-overlay.is-open .menu-panel {
    clip-path: inset(0% 0% 0% 0% round 15px);
  }

  .menu-overlay .menu-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 200px;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: none;
    border-radius: 15px;
    clip-path: inset(50% 50% 50% 50% round 15px);
  }

  .menu-overlay .menu-left {
    grid-row: 1;
    padding: 28px 28px 20px;
    justify-content: space-between;
  }

  .menu-overlay .menu-nav {
    display: flex;
    flex-direction: column;
    gap: clamp(0px, 0.5vh, 4px);
  }

  .menu-overlay .menu-nav li a {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    line-height: 1.15;
  }

  .menu-overlay .menu-right {
    grid-row: 2;
    padding: 0 12px 12px;
  }

  .menu-overlay .img-wrapper {
    border-radius: 15px;
  }

  .menu-overlay .menu-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}
