/**
 * MegaArt — Global responsive & touch optimizations
 */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Minimum tap targets (WCAG) */
@media (max-width: 767px) {
  a,
  button,
  [role="button"],
  .ma-btn,
  .services-chapter-btn,
  .magnetic-btn {
    min-height: 44px;
  }

  .magnetic-btn:hover {
    transform: none;
  }

  .magnetic-btn:active {
    transform: scale(0.98);
  }

  h1,
  .text-7xl,
  .text-6xl {
    font-size: clamp(1.75rem, 8vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  h2,
  .text-5xl,
  .text-4xl {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  .max-w-7xl {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  #smooth-wrapper,
  #smooth-content {
    max-width: 100vw;
    overflow-x: clip;
  }

  #contact input,
  #contact textarea,
  #contact button {
    font-size: 16px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .gsap-hero-section {
    min-height: 100dvh;
  }
}
