/* css/style.css — feel-Data OnePager custom styles */

/* ========= Custom Properties ========= */
:root {
  --color-primary: #336376;
  --color-secondary: #252436;
  --color-accent: #0089F7;
  --color-light-bg: #f0f7fa;
  --color-white: #ffffff;
}

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

/* ========= Skip-to-content (a11y) ========= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ========= Sticky Nav ========= */
.nav-scrolled {
  background: rgba(37, 36, 54, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ========= Hero Canvas ========= */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ========= Hero text animations ========= */
.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease forwards;
}
.hero-fade:nth-child(1) { animation-delay: 0ms; }
.hero-fade:nth-child(2) { animation-delay: 200ms; }
.hero-fade:nth-child(3) { animation-delay: 400ms; }
.hero-fade:nth-child(4) { animation-delay: 600ms; }

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

/* ========= CTA glow pulse ========= */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(51, 99, 118, 0.4); }
  50%      { box-shadow: 0 0 20px rgba(51, 99, 118, 0.7), 0 0 40px rgba(0, 137, 247, 0.2); }
}

/* ========= Scroll indicator bounce ========= */
.scroll-indicator {
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ========= Scroll-triggered reveal ========= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= Service card hover ========= */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(51, 99, 118, 0.15);
}

/* ========= USP card hover ========= */
.usp-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.usp-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(51, 99, 118, 0.15);
}

/* ========= Partner marquee ========= */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========= FAQ accordion ========= */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer.open {
  max-height: 500px;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.open {
  transform: rotate(180deg);
}

/* ========= Contact form focus ========= */
.form-field {
  border-bottom: 2px solid #e0e0e0;
  transition: border-color 0.3s ease;
}
.form-field:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ========= Cookie Modal ========= */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cookie-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.cookie-overlay.active .cookie-modal {
  transform: translateY(0);
}

/* Toggle switch */
.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ccc;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-track.active {
  background: var(--color-primary);
}
.toggle-track.disabled {
  background: var(--color-primary);
  opacity: 0.6;
  cursor: not-allowed;
}
.toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.toggle-track.active .toggle-knob {
  left: 22px;
}

/* ========= Mobile menu overlay ========= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(37, 36, 54, 0.98);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========= Reduced motion ========= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-fade {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ========= Mobile Sticky CTA ========= */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8999;
  background: rgba(37, 36, 54, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mobile-sticky-cta.visible {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}
