/* ============================================
   Jonas Kaatz — Minimal CSS
   Only: animations, pseudo-elements, JS states
   Everything else lives in head.php @layer components
   ============================================ */

/* ---- Gold pulse animation ---- */
@keyframes goldPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.05); }
}

/* ---- Hero background grid + glow ---- */
.hero {
  background:
    linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100px 100px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: goldPulse 6s ease-in-out infinite;
}

/* ---- Page hero grid ---- */
.page-hero {
  background:
    linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100px 100px;
}

/* ---- CTA banner glow ---- */
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---- Service card top border on hover ---- */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: #FFD700;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover::before { transform: scaleX(1); }

/* ---- Button arrow ---- */
.btn-arrow::after {
  content: '\2192';
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- Nav link underline ---- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #FFD700;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ---- Hamburger spans ---- */
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Mobile menu (JS-toggled) ---- */
.mobile-menu { display: none; opacity: 0; transition: opacity 0.3s; }
.mobile-menu.open { display: flex; opacity: 1; }

/* ---- Nav scrolled (JS-toggled) ---- */
.nav.scrolled {
  background: rgba(8, 40, 50, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ---- Scroll reveal (JS-toggled) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Testimonial JS states ---- */
.testimonial-text    { transition: opacity 0.3s ease; }
.testimonial-author  { transition: opacity 0.3s ease; }
.testimonial-logo-wrap { transition: opacity 0.3s ease; }
.testimonial-text.fading,
.testimonial-author.fading,
.testimonial-logo-wrap.fading { opacity: 0; }

.testimonial-dot {
  width: 8px; height: 6px;
  border-radius: 3px;
  background: rgba(4,22,28,0.2);
  border: none; padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.testimonial-dot.active { width: 20px; background: #031115; }

/* ---- Facts heading gold accent ---- */
.facts-heading span { color: #FFD700; }

/* ---- Arrow divider ---- */
.arrow-divider { display: flex; justify-content: center; margin: 2rem 0; opacity: 0.4; }

/* ---- Responsive fallbacks ---- */
@media (max-width: 640px) {
  .step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .step-card { flex-direction: column; gap: 1rem; padding: 1.5rem; }
  .testimonial-logo-wrap { min-width: unset; }
  .testimonial-logo-wrap img { width: 140px; }
}
