html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 14px;
  background: #f5f5f7;
  color: #111111;
}

* {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(0, 102, 204, 0.2);
  color: #111111;
}

/* --- PHP form parity helpers (match Svelte focus ring) --- */
.php-field {
  border-color: #d9d9d9 !important;
  background: #ffffff !important;
  color: #111111 !important;
}

.php-field::placeholder {
  color: #6e6e73 !important;
  opacity: 1;
}

.php-field:focus {
  outline: none !important;
  border-color: #0066cc !important;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2) !important;
}

#mobile-nav-toggle:checked ~ .mobile-menu {
  display: block;
}

.marquee-track {
  animation: marquee-scroll 28s linear infinite;
}

/* Reveal animations (match landing/src/app.css) */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.reveal-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-visible {
  animation: fade-in-up 600ms ease-out forwards;
}

/* Fly-in (match Svelte fly y=30) */
@keyframes php-fly-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.php-fly {
  opacity: 0;
  transform: translateY(30px);
  animation: php-fly-in 800ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--php-fly-delay, 0ms);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --- Hero video layer --- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-fallback {
  background-image: url('/images/slider_03.jpg');
  background-size: cover;
  background-position: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-hidden {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }
}
