/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #f05a1a;
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* Header scroll state */
.header-scrolled {
  background-color: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* Navigation link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #f05a1a;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* Service cards */
.service-card {
  transition: background-color 0.5s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease, background-color 0.5s ease;
}

/* Process steps */
.process-step {
  transition: border-color 0.5s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease, border-color 0.5s ease;
}

/* FAQ */
.faq-btn {
  cursor: pointer;
}
.faq-icon {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.faq-btn:hover .faq-icon {
  border-color: #f05a1a;
  background-color: #fff5f0;
}
.faq-btn:hover .faq-plus {
  color: #f05a1a;
}
.faq-item.active .faq-plus {
  transform: rotate(45deg);
}
.faq-item.active .faq-icon {
  border-color: #f05a1a;
  background-color: #f05a1a;
}
.faq-item.active .faq-plus {
  color: #fff;
}

/* FAQ content animation */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-content {
  max-height: 200px;
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle hover for testimonial cards */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Form inputs */
input:focus, select:focus, textarea:focus {
  border-color: #ffaa75 !important;
  box-shadow: 0 0 0 3px rgba(255, 170, 117, 0.15);
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Image hover zoom */
img {
  transition: transform 0.6s ease;
}
