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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Service card stagger animation */
.service-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }
.service-card:nth-child(6) { transition-delay: 400ms; }

/* Process step animation */
.process-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.revealed {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(1) { transition-delay: 0ms; }
.process-step:nth-child(2) { transition-delay: 120ms; }
.process-step:nth-child(3) { transition-delay: 240ms; }
.process-step:nth-child(4) { transition-delay: 360ms; }

/* FAQ content transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content.open {
  max-height: 200px;
}

/* Navbar scroll state */
#nav.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Mobile menu animation */
#mobileMenu {
  transition: max-height 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

#mobileMenu.open {
  max-height: 400px;
}

.menu-line {
  display: block;
}

.menu-line.open-1 {
  transform: translateY(3px) rotate(45deg);
}

.menu-line.open-2 {
  opacity: 0;
}

.menu-line.open-3 {
  transform: translateY(-3px) rotate(-45deg);
  width: 1.25rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .service-card, .process-step {
    opacity: 1;
    transform: none;
  }
}

/* Selection color */
::selection {
  background: rgba(224, 96, 80, 0.15);
  color: #1A1D20;
}
</style>
