/* ============================================================
   LYME TREATMENT GERMANY — Scroll-Stopping Animations
   Layered on top of design-system.css
   ============================================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-copper));
  z-index: 9999;
  width: 0%;
  transition: width 50ms linear;
}

/* --- Header Enhancements --- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.reveal-child {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-child.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cinematic Hero --- */
.hero--cinematic {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero--cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(26, 107, 90, 0.4), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(184, 115, 51, 0.15), transparent),
    radial-gradient(ellipse 120% 100% at 50% 0%, rgba(15, 74, 62, 0.8), transparent);
  z-index: 1;
  animation: heroShift 20s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero--cinematic .hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero--cinematic .hero__title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: var(--space-5);
}

.hero--cinematic .hero__title .accent {
  background: linear-gradient(135deg, #E8F4F0 0%, #B87333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero--cinematic .hero__subtitle {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: var(--space-7);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-copper);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Hero scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.5);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Enhanced Trust Bar --- */
.trust-bar--enhanced {
  background: var(--color-white);
  padding: 0;
  margin-top: -48px;
  position: relative;
  z-index: 10;
}

.trust-bar--enhanced .trust-bar__inner {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: var(--space-6) var(--space-7);
  max-width: var(--max-width-page);
  margin: 0 auto;
}

.trust-bar--enhanced .trust-bar__number {
  font-size: 40px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-bar--enhanced .trust-bar__label {
  font-size: 14px;
  color: var(--color-slate);
  margin-top: 4px;
}

/* --- Section Divider — Organic Wave --- */
.wave-divider {
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

.wave-divider--flip {
  transform: rotate(180deg);
}

/* --- Enhanced Cards --- */
.card--tilt {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card--tilt:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card--hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card--hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* Card with top image area */
.card__visual {
  height: 200px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5);
  overflow: hidden;
  position: relative;
}

.card__visual-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card--hover-lift:hover .card__visual-bg {
  transform: scale(1.05);
}

/* Card icon circle */
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
}

/* --- Magnetic Button Enhancement --- */
.btn--magnetic {
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--glow {
  position: relative;
  overflow: hidden;
}

.btn--glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--glow:hover::after {
  opacity: 1;
}

.btn--lg-hero {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(26, 107, 90, 0.3);
}

.btn--lg-hero:hover {
  box-shadow: 0 8px 30px rgba(26, 107, 90, 0.4);
  transform: translateY(-2px);
}

/* White hero button */
.btn--white-hero {
  background: var(--color-white);
  color: var(--color-primary-dark);
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn--white-hero:hover {
  background: var(--color-primary-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Ghost hero button */
.btn--ghost-hero {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 18px 36px;
  font-size: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn--ghost-hero:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Big Number Feature --- */
.big-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.big-number__value {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.big-number__label {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-slate);
  margin-top: var(--space-2);
}

/* --- Testimonial Carousel --- */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* --- Process Timeline --- */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
}

.timeline__step {
  position: relative;
  padding-bottom: var(--space-7);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -48px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  z-index: 1;
}

.timeline__step:first-child .timeline__dot {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section with decorative blobs --- */
.section--decorated {
  position: relative;
  overflow: hidden;
}

.section__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  pointer-events: none;
}

.section__blob--teal {
  background: var(--color-primary);
  width: 400px;
  height: 400px;
}

.section__blob--copper {
  background: var(--color-copper);
  width: 300px;
  height: 300px;
}

/* --- Full CTA section with gradient --- */
.cta-cinematic {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #1a7b68 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-11) 0;
  text-align: center;
}

.cta-cinematic::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 115, 51, 0.15), transparent 70%);
}

.cta-cinematic::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 244, 240, 0.08), transparent 70%);
}

.cta-cinematic h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: #fff;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-cinematic p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto var(--space-7);
  position: relative;
  z-index: 1;
}

.cta-cinematic .btn-group {
  position: relative;
  z-index: 1;
}

/* --- Enhanced FAQ with smooth height --- */
.faq__answer {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 0 0;
}

.faq__item.active .faq__answer {
  padding-bottom: var(--space-5);
}

.faq__question {
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--color-primary);
}

/* --- Image with reveal mask --- */
.image-reveal {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-reveal img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-reveal:hover img {
  transform: scale(1.04);
}

/* --- Mobile menu fullscreen overlay --- */
.nav__list--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: rgba(15, 74, 62, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px var(--space-6) var(--space-6);
  gap: var(--space-4);
  animation: menuFade 0.3s ease;
}

.nav__list--open .nav__link {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  border: none;
  padding: var(--space-3) 0;
}

.nav__list--open .nav__dropdown-menu {
  display: block;
  position: static;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 0 var(--space-4);
}

.nav__list--open .nav__dropdown-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

@keyframes menuFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hamburger to X */
.nav__toggle--active .nav__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle--active .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle--active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--scale, .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__particle { animation: none; }
  .hero__scroll-hint { animation: none; }
  .hero__badge::before { animation: none; }
  @keyframes heroShift { 0%, 100% { opacity: 1; } }
  .testimonial-slide { transition: opacity 0.3s ease; transform: none; }
}
