/*
  Global responsive helpers for Cahaya Putra Narotama website.
  Keep the rules lightweight because Tailwind handles most styling.
*/

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "DM Sans", Arial, sans-serif;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 45;
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mobile-menu-panel.is-open {
  max-height: 24rem;
}

.floating-wa {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .floating-wa {
    width: 5rem;
    height: 5rem;
    font-size: 2.5rem;
  }
}

.no-scroll {
  overflow: hidden;
}
