@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* Custom component: clouds */
.cloud {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}
.cloud-1 { width: 120px; height: 50px; top: 10%; left: 5%; animation: cloud-float 22s ease-in-out infinite; }
.cloud-2 { width: 90px; height: 40px; top: 25%; right: 15%; animation: cloud-float 18s ease-in-out infinite reverse; animation-delay: -5s; }
.cloud-3 { width: 140px; height: 55px; bottom: 30%; left: 20%; animation: cloud-float 25s ease-in-out infinite; animation-delay: -2s; }
.cloud-4 { width: 70px; height: 35px; top: 15%; right: 40%; animation: cloud-float 20s ease-in-out infinite reverse; }
.cloud-5 { width: 100px; height: 45px; bottom: 20%; right: 10%; animation: cloud-float 24s ease-in-out infinite; animation-delay: -8s; }

@keyframes cloud-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, -12px); }
  50% { transform: translate(-10px, 8px); }
  75% { transform: translate(8px, 5px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

html { scroll-behavior: smooth; }

/* Anchor scroll lands just below sticky nav */
.scroll-mt-nav {
  scroll-margin-top: 5.5rem;
}

/* Contact modal: slide in from right, always on top */
#contact-popup {
  z-index: 99999;
  justify-content: flex-end;
  align-items: stretch;
}
#contact-popup .contact-popup-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  opacity: 0;
}
#contact-popup.is-open .contact-popup-panel {
  transform: translateX(0);
  opacity: 1;
}
#contact-popup.is-open {
  opacity: 1;
}
#contact-popup .contact-popup-backdrop {
  transition: opacity 0.3s ease;
}
#contact-popup:not(.is-open) .contact-popup-backdrop {
  opacity: 0;
}
@media (min-width: 640px) {
  #contact-popup {
    align-items: center;
  }
  #contact-popup .contact-popup-panel {
    width: 96vw;
    max-width: 75rem; /* 1200px - wider modal */
  }
}
@media (max-width: 639px) {
  #contact-popup .contact-popup-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem 1rem 0 0;
    margin-top: auto;
  }
}

/* FAQ accordion: hide default details marker */
#faq details summary::-webkit-details-marker { display: none; }
#faq details summary::marker { content: none; }

/* Services accordion: hide marker, + / × toggle */
.services-accordion details summary::-webkit-details-marker { display: none; }
.services-accordion details summary::marker { content: none; }
.services-accordion details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
}
.services-accordion details summary span {
  flex: 1;
  min-width: 0;
}
.services-accordion details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: #1A3638;
  margin-left: auto;
  flex-shrink: 0;
}
.services-accordion details[open] summary::after {
  content: '×';
}

/* Testimonials infinite slider */
.testimonials-slider {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: testimonials-scroll 40s linear infinite;
}
.testimonials-slider:hover .testimonials-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }
}
@keyframes testimonials-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile: prevent horizontal overflow, tap highlight */
@media (max-width: 767px) {
  body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  }
  img {
    max-width: 100%;
    height: auto;
  }
}
