@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes stat-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes slide-banner-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.animate-stat-pulse {
  animation: stat-pulse 2.4s ease-in-out infinite;
}

.animate-banner-up {
  animation: slide-banner-up 0.45s ease-out forwards;
}

.animation-delay-100 {
  animation-delay: 0.1s;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-400 {
  animation-delay: 0.4s;
}

.stat-value {
  display: inline-block;
  min-width: 2ch;
}

.stat-value.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value[data-stat-value] {
  opacity: 1;
  transform: translateY(0);
}

.hero-bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(45, 29, 25, 0.82) 0%,
    rgba(45, 29, 25, 0.55) 45%,
    rgba(180, 35, 24, 0.35) 100%
  );
}

.nav-link-active {
  color: #b42318;
  background-color: rgba(180, 35, 24, 0.07);
  font-weight: 600;
}

.nav-link {
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: #b42318;
}

.burger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-open .burger-line-top {
  transform: translateY(7px) rotate(45deg);
}

.burger-open .burger-line-middle {
  opacity: 0;
}

.burger-open .burger-line-bottom {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-open {
  max-height: 28rem;
  opacity: 1;
}

.mobile-nav-closed {
  max-height: 0;
  opacity: 0;
}

.testimonial-swiper .swiper-button-prev,
.testimonial-swiper .swiper-button-next {
  color: #b42318;
  width: 2.75rem;
  height: 2.75rem;
  background: #ffffff;
  border: 1px solid #ded3cf;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(45, 29, 25, 0.08);
}

.testimonial-swiper .swiper-button-prev::after,
.testimonial-swiper .swiper-button-next::after {
  font-size: 0.85rem;
  font-weight: 700;
}

.testimonial-swiper .swiper-button-disabled {
  opacity: 0.35;
}

.testimonial-swiper {
  padding-bottom: 3.5rem;
}

.testimonial-swiper .swiper-button-prev {
  left: 0;
  top: auto;
  bottom: 0;
}

.testimonial-swiper .swiper-button-next {
  right: 0;
  top: auto;
  bottom: 0;
}

@media (min-width: 640px) {
  .testimonial-swiper .swiper-button-prev {
    left: calc(50% - 4rem);
  }

  .testimonial-swiper .swiper-button-next {
    right: calc(50% - 4rem);
  }
}

.field-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.25);
}

.form-field-error {
  color: #b42318;
  font-size: 0.75rem;
  line-height: 1.25rem;
  margin-top: 0.375rem;
}

.form-toast {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  z-index: 200;
  max-width: 22rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #ded3cf;
  background: #ffffff;
  color: #2d1d19;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgba(45, 29, 25, 0.15);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.faq-trigger {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-item-open .faq-trigger {
  color: #b42318;
}

.faq-item-open .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .animate-fade-in,
  .animate-stat-pulse,
  .animate-banner-up,
  .stat-value[data-stat-value] {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
