/* ============================================================
   RESPONSIVE — Exotic Detail
   ============================================================ */

/* ---- Breakpoints:
   ≤480px  : mobile small
   ≤768px  : mobile / tablet portrait
   ≤1024px : tablet landscape
   >1024px : desktop
   ---- */

/* Disable physical horizontal swiping on mobile to block horizontal scroll without breaking position:sticky/GSAP trigger contexts */
@media (max-width: 1024px) {
  html, body {
    touch-action: pan-y !important;
    position: relative;
    max-width: 100% !important;
  }
  .hero-deco-diamond {
    display: none !important;
  }
}

/* Global section padding on mobile */
@media (max-width: 768px) {
  .section {
    padding: 60px 24px;
  }

  .sec-title {
    font-size: clamp(32px, 8vw, 52px);
    letter-spacing: 2px;
  }

  .sec-sub {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .btn-primary,
  .btn-ghost {
    font-size: 11px;
    padding: 14px 24px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 48px 20px;
  }

  .sec-title {
    font-size: clamp(28px, 7vw, 44px);
    letter-spacing: 1.5px;
  }

  .rule-red {
    margin-bottom: 24px;
  }
}

/* Lightbox mobile */
@media (max-width: 640px) {
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { top: 4px; right: 4px; }

  #lb-img {
    border-radius: 8px;
  }
}

/* iOS Safari overflow fix */
body.ios-safari {
  overflow-x: visible;
  -webkit-overflow-scrolling: touch;
}

/* Touch device adjustments */
@media (hover: none) {
  /* Show gallery overlay permanently on touch */
  .gallery-item-overlay {
    opacity: 1;
  }

  /* Show team overlay on touch */
  .team-card-overlay {
    opacity: 1;
  }

  /* No hover transforms on touch */
  .team-card:hover { transform: none; }
  .img-frame:hover img { transform: none; }
  .service-image:hover img { transform: none; }
  .gallery-item:hover img { transform: none; }
}

/* Print */
@media print {
  #intro-screen,
  #main-nav,
  #custom-cursor,
  #custom-cursor-ring,
  .hero-scroll-indicator { display: none; }

  body { color: #000; background: #fff; }
}
