/* ==========================================================================
   Dream Partners Section — Plain Planning
   Full-viewport video background with centered heading overlay
   ========================================================================== */


/* --------------------------------------------------------------------------
   Section Container
   -------------------------------------------------------------------------- */

.dp {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  /* Prevent any horizontal scroll caused by 100vw */
  margin-left: calc(-50vw + 50%);
}


/* --------------------------------------------------------------------------
   Layer 0: Video Background
   -------------------------------------------------------------------------- */

.dp__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Slight scale to prevent sub-pixel gaps during transform animations */
  transform: scale(1.02);
}


/* --------------------------------------------------------------------------
   Layer 1: Partner Logo — Centered between video and overlay
   -------------------------------------------------------------------------- */

.dp__logo {
  position: absolute;
  top: 42%;
  left: 42%;
  transform: translate(-50%, -50%);
  z-index: 1;
  /* Size constraints — adjust as needed for your logo */
  max-width: 300px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  /* Smooth crossfade transition for logo cycling */
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade-out state for logo transition */
.dp__logo.is-fading {
  opacity: 0;
}


/* --------------------------------------------------------------------------
   Layer 2: Dark Overlay
   Semi-transparent #133b4e at ~45% opacity for readability
   -------------------------------------------------------------------------- */

.dp__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(19, 59, 78, 0.45);
  /* Subtle gradient to deepen the bottom for visual grounding */
  background: linear-gradient(
    180deg,
    rgba(19, 59, 78, 0.40) 0%,
    rgba(19, 59, 78, 0.48) 60%,
    rgba(19, 59, 78, 0.55) 100%
  );
}


/* --------------------------------------------------------------------------
   Layer 3: Content — Centered heading
   -------------------------------------------------------------------------- */

.dp__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  /* Push the heading into the upper third of the viewport */
  padding: 10vh clamp(24px, 5vw, 80px) 0;
  text-align: center;
}


/* --------------------------------------------------------------------------
   Eyebrow — Removed (element no longer in markup)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Main Heading
   Matching hero headline scale for impact
   -------------------------------------------------------------------------- */

.dp__title {
  font-family: var(--font-family);
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin: 0;
}


/* --------------------------------------------------------------------------
   Accent Line — Removed (element no longer in markup)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Scroll-Reveal: Pre-animation States
   Elements start hidden and slide up on scroll
   -------------------------------------------------------------------------- */

.dp [data-animate="dp"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Title: animate in on scroll */
.dp .dp__title[data-animate="dp"] {
  transform: translateY(30px);
  transition-duration: 0.8s;
  transition-delay: 0ms;
}

/* Visible state */
.dp [data-animate="dp"].is-visible {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}


/* ==========================================================================
   Responsive — Mobile (< 640px)
   ========================================================================== */

@media (max-width: 639px) {
  .dp__content {
    padding: 10vh 24px 0;
  }
}


/* ==========================================================================
   Responsive — Tablet (640px - 1023px)
   ========================================================================== */

@media (min-width: 640px) and (max-width: 1023px) {
  .dp__content {
    padding: 10vh 40px 0;
  }
}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* Disable scroll reveal animations — show content immediately */
  .dp [data-animate="dp"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Pause video to reduce motion on screen */
  .dp__video {
    animation: none;
  }

  /* Disable logo crossfade transition */
  .dp__logo {
    transition: none;
  }
}
