/* ─────────────────────────────────────────
   Full-Screen Mobile Menu — North Indian Tulsi Puja
   Native-app feel with puja-themed icons
   ───────────────────────────────────────── */

/* Prevent body scroll when menu is open */
body.mm-locked {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ── Overlay backdrop ── */
.mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mm-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Animated background pattern ── */
.mm-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 143, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(230, 81, 0, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(92, 20, 0, 0.40) 0%, transparent 70%),
    linear-gradient(160deg, #1a0700 0%, #2d0d02 40%, #1a0700 100%);
  z-index: -1;
}

/* ── Inner container ── */
.mm-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 20px 32px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}
.mm-overlay.active .mm-container {
  transform: translateY(0);
  opacity: 1;
}

/* ── Header bar ── */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  flex-shrink: 0;
}

.mm-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mm-header-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.mm-header-logo span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.85;
}

/* ── Close button ── */
.mm-close {
  all: unset;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  text-decoration: none !important;
  position: relative !important;
}
.mm-close:hover,
.mm-close:active,
.mm-close:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: #e65100 !important;
  transform: rotate(90deg) !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
}
.mm-close svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

/* ── Greeting ── */
.mm-greeting {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 8px 0 16px;
}

/* ── Menu grid ── */
.mm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 0 24px;
  flex: 1;
}

/* ── Menu card ── */
.mm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px 18px;
  border-radius: 18px;
  background: rgba(255, 248, 240, 0.95);
  border: 1.5px solid rgba(230, 81, 0, 0.15);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: scale(0.85);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.mm-overlay.active .mm-card {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays — 10 cards max */
.mm-card:nth-child(1) {
  transition-delay: 0.04s;
}
.mm-card:nth-child(2) {
  transition-delay: 0.08s;
}
.mm-card:nth-child(3) {
  transition-delay: 0.12s;
}
.mm-card:nth-child(4) {
  transition-delay: 0.16s;
}
.mm-card:nth-child(5) {
  transition-delay: 0.20s;
}
.mm-card:nth-child(6) {
  transition-delay: 0.24s;
}
.mm-card:nth-child(7) {
  transition-delay: 0.28s;
}
.mm-card:nth-child(8) {
  transition-delay: 0.32s;
}
.mm-card:nth-child(9) {
  transition-delay: 0.36s;
}
.mm-card:nth-child(10) {
  transition-delay: 0.40s;
}

/* Card accent top bar */
.mm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #e65100, #ff8f00);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mm-card:active::before,
.mm-card:hover::before {
  opacity: 1;
}

/* Card active/hover state */
.mm-card:active,
.mm-card:hover {
  background: linear-gradient(145deg, #fff3e0, #ffe0b2);
  border-color: #e65100;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(230, 81, 0, 0.3);
}

/* Card icon wrapper */
.mm-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.mm-card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mm-card:active .mm-card-icon,
.mm-card:hover .mm-card-icon {
  transform: scale(1.15);
}

/* Icon color variants per card type */
.mm-card[data-type="home"] .mm-card-icon {
  background: #fce4ec;
  color: #c62828;
}
.mm-card[data-type="about"] .mm-card-icon {
  background: #e8f5e9;
  color: #2e7d32;
}
.mm-card[data-type="gallery"] .mm-card-icon {
  background: #e3f2fd;
  color: #1565c0;
}
.mm-card[data-type="services"] .mm-card-icon {
  background: #fff3e0;
  color: #e65100;
}
.mm-card[data-type="grihapravesh"] .mm-card-icon {
  background: #f3e5f5;
  color: #7b1fa2;
}
.mm-card[data-type="satyanarayan"] .mm-card-icon {
  background: #fff8e1;
  color: #f9a825;
}
.mm-card[data-type="ganesh"] .mm-card-icon {
  background: #fce4ec;
  color: #ad1457;
}
.mm-card[data-type="rudrabhishek"] .mm-card-icon {
  background: #eceff1;
  color: #37474f;
}
.mm-card[data-type="marriage"] .mm-card-icon {
  background: #fce4ec;
  color: #c62828;
}
.mm-card[data-type="shradh"] .mm-card-icon {
  background: #ede7f6;
  color: #4527a0;
}
.mm-card[data-type="contact"] .mm-card-icon {
  background: #e0f7fa;
  color: #00838f;
}

/* Card label */
.mm-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #5d2e0c;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.2px;
}
.mm-card-sublabel {
  font-size: 10px;
  font-weight: 500;
  color: #8d6e63;
  text-align: center;
  line-height: 1.2;
  margin-top: -4px;
}

/* ── Full-width service sub-items ── */
.mm-divider {
  grid-column: 1 / -1;
  text-align: center;
  padding: 8px 0 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* ── Bottom CTA bar ── */
.mm-cta {
  display: flex;
  gap: 10px;
  padding: 0 0 8px;
  flex-shrink: 0;
}
.mm-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.mm-cta-call {
  background: linear-gradient(135deg, #ff6d00, #e65100);
}
.mm-cta-wa {
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
}
.mm-cta a:active {
  transform: scale(0.96);
}
.mm-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Footer note ── */
.mm-footer-note {
  text-align: center;
  padding: 16px 0 4px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ── Hide the OLD jKit slide-out menu on mobile/tablet only ── */
@media (max-width: 1024px) {
  .jkit-menu-wrapper,
  .jkit-overlay,
  .jkit-nav-identity-panel,
  .jkit-close-menu {
    display: none !important;
  }
}

/* ── Desktop: hide the new mobile overlay ── */
@media (min-width: 1025px) {
  .mm-overlay {
    display: none !important;
  }
}

/* ── Responsive tweaks ── */
@media (max-height: 700px) {
  .mm-card {
    padding: 14px 8px 12px;
    gap: 5px;
    border-radius: 14px;
  }
  .mm-card-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .mm-card-icon svg {
    width: 22px;
    height: 22px;
  }
  .mm-card-label {
    font-size: 11px;
  }
  .mm-grid {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .mm-container {
    padding: 0 12px 24px;
  }
  .mm-grid {
    gap: 8px;
  }
  .mm-card {
    padding: 16px 8px 14px;
    border-radius: 14px;
  }
  .mm-card-label {
    font-size: 11px;
  }
  .mm-card-icon {
    width: 40px;
    height: 40px;
  }
}
