/* ==========================================================================
   LIFESAFER PAGE - EQUIPMENT STYLES
   Extends index.css for Lifesafer-specific components
   ========================================================================== */

/* === SCROLL-ANIMATED HERO === */
.hero-scroll-wrapper {
  height: 300vh; /* scroll distance controls animation speed */
  position: relative;
}

.hero-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.main-card--hero {
  position: relative;
  max-width: 1280px;
  width: calc(100% - 2 * var(--space-6));
  margin: 0 auto;
  background: var(--surface-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  min-height: 70vh;
  transition: border-color 0.4s ease;
}

/* Remotion video sits behind everything inside the card */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;
}

/* When scrolling, the hero card border can glow */
.main-card--hero.is-playing {
  border-color: rgba(182, 255, 46, 0.2);
}

/* === VIDEO GRID === */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-grid--2col {
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .video-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === VIDEO CARDS === */
.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal) ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.video-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-ink);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* === FEATURE CARD DEVICE ICON === */
.feature-card__icon--device {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(11, 30, 102, 0.05) 0%, rgba(182, 255, 46, 0.05) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

[data-theme="dark"] .feature-card__icon--device {
  background: linear-gradient(135deg, rgba(15, 20, 36, 0.8) 0%, rgba(11, 30, 102, 0.3) 100%);
}

.feature-card__icon--device img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

/* === ACTIVE NAV LINK === */
.nav__link--active {
  color: var(--accent) !important;
  background: rgba(11, 30, 102, 0.08);
  border-radius: var(--radius-md);
}

[data-theme="dark"] .nav__link--active {
  background: rgba(182, 255, 46, 0.1);
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
  .hero-scroll-wrapper {
    height: auto;
  }

  .hero-scroll-sticky {
    position: relative;
    height: auto;
    min-height: 70vh;
    padding: 28px 0;
  }

  .main-card--hero {
    width: calc(100% - 36px);
    min-height: 58vh;
    border-radius: 18px;
  }

  .video-card {
    padding: 1.15rem;
    border-radius: 14px;
  }
}

/* === PRINT === */
@media print {
  .hero-scroll-wrapper {
    height: auto;
  }

  .hero-scroll-sticky {
    position: relative;
    height: auto;
  }

  .hero-video {
    display: none;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    object-position: center center;
  }
}
