/* Praxis Sailer - Custom Styles */

/* Scroll animations - only animate when JS is available */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.js-ready .fade-up-delay-1 { transition-delay: 0.1s; }
.js-ready .fade-up-delay-2 { transition-delay: 0.2s; }
.js-ready .fade-up-delay-3 { transition-delay: 0.3s; }
.js-ready .fade-up-delay-4 { transition-delay: 0.4s; }

/* Hero fade-in on load */
.js-ready .hero-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1s ease-out 0.3s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero heading highlight animation — realistic marker effect */
.hero-highlight {
  position: relative;
  display: inline;
  padding: 0.05em 0.15em;
  margin: -0.05em -0.15em;
}

.hero-highlight span {
  position: relative;
  z-index: 1;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  inset: -2px -8px;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 945 358' preserveAspectRatio='none'%3E%3Cpath fill='%238B8C2A' opacity='0.55' d='M12 196c22-48 89-73 146-89 74-20 150-28 227-32 96-5 193-3 289 3 77 5 154 13 228 32 45 12 93 28 119 62 12 16 17 36 8 54-10 19-33 30-56 37-50 14-103 15-155 14-114-2-228-12-341-25-95-11-190-24-284-39-56-9-113-19-163-42-17-8-35-19-30-36 3-11 16-17 28-20z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  clip-path: inset(0 100% 0 0);
  animation: markerReveal 0.9s ease-out 1.2s forwards;
}

@keyframes markerReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* Nav transition */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Decorative flowing line (inspired by logo) */
.flowing-line {
  position: relative;
}

.flowing-line::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6B9E9F, #8B8C2A);
  margin-top: 1rem;
  border-radius: 2px;
}

.flowing-line-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Teal accent bullets */
.teal-list li {
  position: relative;
  padding-left: 1.5rem;
}

.teal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background-color: #6B9E9F;
  border-radius: 2px;
}

/* Accordion styles */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

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

/* Mobile menu overlay */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js-ready .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js-ready .hero-fade {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .card-hover {
    transition: none;
  }

  .card-hover:hover {
    transform: none;
  }

  .accordion-content {
    transition: none;
  }

  .mobile-menu {
    transition: none;
  }

  .hero-highlight::after {
    clip-path: inset(0 0 0 0);
    animation: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
