/* ==========================================================================
   Company Video — Edge Pharma
   A single centered trust-building section: label, heading, description,
   and a large video thumbnail that opens the shared modal (structural
   shell + play-button chrome live in css/components/modal.css). Built for
   the homepage; reused as-is on the About page.
   ========================================================================== */

.video-section {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding-block: var(--space-12); /* 80px mobile base */
}

.video-section__container {
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-section__label {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.video-section__divider {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: var(--space-3);
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.video-section__heading {
  max-width: 760px;
  margin-top: var(--space-4);
  font-family: var(--font-family-heading);
  font-weight: var(--fw-regular);
  line-height: 1.2;
  background: var(--gradient-h2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem); /* 28px → 42px */
}

.video-section__description {
  max-width: 720px;
  margin-top: var(--space-5);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem); /* 16px → 18px */
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

/* ---------------------------------------------------------------------
   Video thumbnail
   --------------------------------------------------------------------- */

.video-section__frame {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin-top: var(--space-9);
}

.video-section__glow {
  position: absolute;
  z-index: 0;
  inset: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(15, 94, 168, 0.16), rgba(15, 94, 168, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.video-section__thumbnail {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sharp);
  overflow: hidden;
}

.video-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-section__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(9, 20, 32, 0.25);
}

/* ---------------------------------------------------------------------
   Scroll animation — fade up, staggered 80ms per element
   --------------------------------------------------------------------- */

.video-section__label,
.video-section__divider,
.video-section__heading,
.video-section__description,
.video-section__frame {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-default), transform 600ms var(--ease-default);
}

.video-section.is-visible .video-section__label,
.video-section.is-visible .video-section__divider { transition-delay: 0ms; }
.video-section.is-visible .video-section__heading { transition-delay: 80ms; }
.video-section.is-visible .video-section__description { transition-delay: 160ms; }
.video-section.is-visible .video-section__frame { transition-delay: 240ms; }

.video-section.is-visible .video-section__label,
.video-section.is-visible .video-section__divider,
.video-section.is-visible .video-section__heading,
.video-section.is-visible .video-section__description,
.video-section.is-visible .video-section__frame {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .video-section__label,
  .video-section__divider,
  .video-section__heading,
  .video-section__description,
  .video-section__frame {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------
   Desktop (≥992px) — full section padding
   --------------------------------------------------------------------- */

@media (min-width: 992px) {
  .video-section {
    padding-block: var(--space-14); /* 120px */
  }
}
