/* Progressive-enhancement layer for the static Ecoastix build.
   Uses the site's existing palette; does not alter the original look. */
html { scroll-behavior: smooth; }

/* Call modal: hidden until shown by app.js */
#callModal { display: none !important; }
#callModal.show { display: flex !important; }

/* Mobile menu panel */
.site-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(84vw, 320px);
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 84px 20px 28px;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
}
.site-mobile-menu:not([hidden]) { transform: translateX(0); }
.site-mobile-menu[hidden] { display: flex !important; } /* keep for slide transition */
.site-mobile-menu button,
.site-mobile-menu a {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  padding: 13px 10px;
  border: 0;
  background: transparent;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  display: block;
}
.site-mobile-menu button:hover,
.site-mobile-menu a:hover { color: #0284c7; }
.site-mobile-menu .mm-call {
  margin-top: 16px;
  text-align: center;
  background: linear-gradient(90deg,#0284c7,#0ea5e9);
  color: #fff;
  border-radius: 10px;
  border-bottom: 0;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(2,132,199,.35);
}
/* dim backdrop behind mobile menu */
#menuBackdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 55;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#menuBackdrop.show { opacity: 1; pointer-events: auto; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-mobile-menu { transition: none; }
}
