/* Experience layer for the home page (index.php)
   Goal: improve first impression + readability without rewriting content. */

:root {
  --ove-glow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ove-border: rgba(255, 255, 255, 0.14);
  --ove-border-light: rgba(0, 0, 0, 0.10);
}

/* Cinematic hero */
.hero {
  min-height: 92vh;
  height: auto;
  padding-top: 84px; /* room for fixed header */
  padding-bottom: 56px;
}

.video-container {
  margin-top: 0;
  z-index: 0;
}

.hero .video-container video {
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04);
}

/* Autoplay fallback + reduced motion */
.ove-video-fallback .hero .video-container video {
  opacity: 0;
}

.ove-video-fallback .hero .video-container {
  background: url('../assets/aidant.jpg') center/cover no-repeat;
}

.ove-reduced-motion .hero .video-container video {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-dot { animation: none; }
  .hero-btn, .hero-btn:hover { transform: none; }
}

/* Better focus styles (keyboard accessibility) */
.hero-btn:focus-visible,
.hero-scroll:focus-visible {
  outline: 3px solid rgba(255, 224, 131, 0.9);
  outline-offset: 3px;
}

.hero .overlay {
  pointer-events: none;
  background: radial-gradient(1200px 700px at 50% 40%, rgba(0, 113, 227, 0.22), transparent 60%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.70) 70%, rgba(0, 0, 0, 0.85) 100%);
}

.hero-content {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: center;
  z-index: 3;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.35));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ove-border);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
  font-weight: 600;
}

.hero-content h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  text-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

.hero-subtitle {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  will-change: transform;
}

.hero-btn-primary {
  background: linear-gradient(180deg, #1a86ff 0%, #0071e3 100%);
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 113, 227, 0.35);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--ove-border);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-primary:hover {
  box-shadow: 0 18px 55px rgba(0, 113, 227, 0.42);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-scroll {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-weight: 600;
}

.hero-scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.10);
  animation: ovePulse 1.6s ease-in-out infinite;
}

@keyframes ovePulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.7; }
}

/* Light theme: keep hero readable */
.light-theme .hero .overlay {
  background: radial-gradient(1200px 700px at 50% 40%, rgba(0, 113, 227, 0.18), transparent 62%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0.78) 100%);
}

.light-theme .hero-btn-secondary {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Make sections feel more premium */
.info-banner,
.engagement-section,
.poles-section,
.news-section,
.quick-access,
.testimonials-section,
.contact-section {
  position: relative;
}

.info-banner .container,
.engagement-section .container {
  max-width: 1200px;
}

/* Subtle separators */
.info-banner::before,
.engagement-section::before,
.news-section::before,
.testimonials-section::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(1200px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}

.light-theme .info-banner::before,
.light-theme .engagement-section::before,
.light-theme .news-section::before,
.light-theme .testimonials-section::before {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.10), transparent);
}

@media (max-width: 768px) {
  .hero { padding-top: 76px; }
  .hero-actions { gap: 10px; }
  .hero-btn { width: 100%; max-width: 420px; }
  .hero-logo { width: 44px; height: 44px; }
}
