/* Custom Styles & Layout Safety Fallbacks for S&S Clean Services Ltd PHP Website */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Ensure font consistency across form controls and buttons */
input, textarea, select, button {
  font-family: inherit;
}

/* Ensure containers have reliable constraints and breathing room */
.max-w-7xl {
  max-width: 80rem;
}

.max-w-6xl {
  max-width: 80rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-2xl {
  max-width: 42rem;
}

/* WhatsApp Floating Button Ripple & Pulse */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-pulse {
  animation: whatsappPulse 2.2s infinite;
}

/* Aspect ratio support */
.aspect-4\/3 {
  aspect-ratio: 4 / 3;
}

.aspect-16\/9 {
  aspect-ratio: 16 / 9;
}

.aspect-16\/10 {
  aspect-ratio: 16 / 10;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Modal and Transformation Animations */
.modal-fade-in {
  animation: modalFadeIn 0.2s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Image zoom transition */
.gallery-photo-item img {
  transition: transform 0.4s ease;
}

.gallery-photo-item:hover img {
  transform: scale(1.06);
}
