/* ============================================================
   MM Exterior Cleaning — Menu button + mobile drawer
   Self-contained; mirrors the menu rules in theme.css so pages
   that don't load theme.css (service pages) get the same menu.
   ============================================================ */

/* Desktop "Menu" button */
.header-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 9px 18px; border-radius: 999px;
  background: rgba(10,37,64,0.92); color: #F7F6F2;
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  min-height: 44px; margin-left: 4px; transition: background 0.15s ease;
}
.header-menu-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 18px; }
.header-menu-bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; }
.header-menu-btn:hover { background: #0a2540; }
@media (max-width: 720px) { .header-menu-btn { display: none; } }
/* On content pages the button sits inside .top-buttons, where `.top-buttons a`
   would flatten it. Restore the home-page navy pill (higher specificity wins). */
.top-buttons-inner > a.header-menu-btn {
  background: rgba(10,37,64,0.92); color: #F7F6F2;
  border: none; border-radius: 999px;
  padding: 9px 18px; margin-left: 8px;
}
.top-buttons-inner > a.header-menu-btn:hover { background: #0a2540; color: #fff; }

/* Hamburger toggles (built by menu.js) */
.mm-menu-toggle { display: none; }
.mm-menu-toggle-float { display: none !important; }

@media (max-width: 720px) {
  .mm-menu-toggle-float {
    display: inline-flex !important;
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px;
    z-index: 51;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(10,37,64,0.95);
    color: #F7F6F2;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body, system-ui), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(10,37,64,0.40);
  }
}

@media (max-width: 720px) {
  .top-buttons-inner > a { display: none !important; }
  .top-buttons-inner {
    justify-content: flex-end !important;
    padding: 6px 0 !important;
    overflow: visible !important;
  }
  .top-buttons { display: block !important; }
  .mm-menu-toggle:not(.mm-menu-toggle-float) {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
    padding: 12px 18px;
    background: rgba(10,37,64,0.92);
    color: #F7F6F2;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body, system-ui), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(10,37,64,0.18);
  }
  .mm-menu-toggle-bars {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 20px;
  }
  .mm-menu-toggle-bars span {
    display: block; height: 2px; width: 100%;
    background: currentColor; border-radius: 2px;
  }
}

/* Backdrop + drawer */
.mm-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,20,36,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 998;
}
.mm-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mm-menu-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(72vw, 280px);
  background: rgba(10,20,36,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 24px rgba(0,0,0,0.35);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.mm-menu-drawer.is-open { transform: translateX(0); }

.mm-menu-drawer-inner {
  padding: 18px 14px 22px;
  display: flex; flex-direction: column;
  height: 100%;
}
.mm-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #F7F6F2;
  font-size: 1.8rem;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 8px;
}
.mm-menu-close:hover { background: rgba(255,255,255,0.08); }

.mm-menu-list {
  display: flex; flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  overflow-y: auto; padding-right: 2px;
}
.mm-menu-list a {
  display: block;
  padding: 12px 14px;
  color: #F7F6F2;
  text-decoration: none;
  font-family: var(--font-body, system-ui), sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mm-menu-list a:hover,
.mm-menu-list a:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.10);
}
.mm-menu-list a.is-cta {
  background: var(--sun, #F5C518);
  color: var(--sun-ink, #2A1A00);
  margin-top: 6px;
  text-align: center;
}
.mm-menu-list a.is-cta:hover { background: #FFD23A; }

/* Flat white icons to the right of each drawer option (match home page). */
.mm-menu-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mm-menu-list > a.is-cta { justify-content: center; }
.mm-menu-ico {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: #F7F6F2;
  display: inline-flex;
}
.mm-menu-ico svg { width: 100%; height: 100%; display: block; }

html.mm-menu-open { overflow: hidden; }

.mm-menu-socials {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; flex-direction: column; gap: 2px;
}
.mm-menu-socials a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  color: #F7F6F2;
  text-decoration: none;
  font-family: var(--font-body, system-ui), sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
}
.mm-menu-socials a:hover,
.mm-menu-socials a:focus-visible {
  background: rgba(255,255,255,0.08);
}
.mm-menu-social-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.mm-menu-social-wa { background: #25D366; }
.mm-menu-social-fb { background: #1877F2; }
.mm-menu-social-google {
  background:
    conic-gradient(from -45deg,
      #EA4335 0 25%, #FBBC05 25% 50%, #34A853 50% 75%, #4285F4 75% 100%);
}
