/* =========================================================
   THE WINDOW KNIGHT VIDEO CTA
========================================================= */

.wk-video-cta,
.wk-video-cta * {
  box-sizing: border-box;
}

.wk-video-cta {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: clamp(560px, 78vh, 860px);
  overflow: hidden;

  display: grid;
  place-items: center;

  padding:
    clamp(60px, 8vw, 110px)
    clamp(18px, 5vw, 80px);

  background: #001923;
  border-top: 2px solid rgba(0, 200, 255, 0.55);
  border-bottom: 2px solid rgba(0, 200, 255, 0.55);
}

/* Video fills the complete section */
.wk-video-cta__video {
  position: absolute;
  inset: 0;
  z-index: -4;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

/* Main dark brand overlay */
.wk-video-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -3;

  background:
    linear-gradient(
      90deg,
      rgba(0, 16, 24, 0.88) 0%,
      rgba(0, 31, 44, 0.66) 48%,
      rgba(0, 48, 65, 0.82) 100%
    );
}

/* Extra vignette for readable text */
.wk-video-cta__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(0, 200, 255, 0.08) 0%,
      rgba(0, 25, 35, 0.14) 38%,
      rgba(0, 12, 18, 0.58) 100%
    );

  box-shadow:
    inset 0 45px 70px rgba(0, 0, 0, 0.28),
    inset 0 -45px 70px rgba(0, 0, 0, 0.38);
}

/* Content */
.wk-video-cta__content {
  width: min(100%, 1150px);
  margin-inline: auto;
  text-align: center;
  color: white;
}

.wk-video-cta__eyebrow {
  margin: 0 0 clamp(12px, 2vw, 20px);

  color: #00c8ff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 1rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: clamp(3px, 0.5vw, 6px);
  text-transform: uppercase;

  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

.wk-video-cta__title {
  max-width: 1100px;
  margin: 0 auto clamp(28px, 4vw, 44px);

  color: white;
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;

  text-wrap: balance;
  text-shadow:
    0 8px 28px rgba(0, 0, 0, 0.76),
    0 0 25px rgba(0, 35, 50, 0.35);
}

.wk-video-cta__title span {
  display: block;
  color: #e5faff;
}

/* Button */
.wk-video-cta__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: clamp(250px, 28vw, 340px);
  min-height: 62px;

  margin: 0;
  padding: 16px 32px;

  color: white;
  background: rgba(0, 25, 35, 0.9);
  border: 3px solid #00c8ff;
  border-radius: 14px;

  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 1.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;

  cursor: pointer;
  box-shadow:
    0 0 22px rgba(0, 200, 255, 0.35),
    0 14px 35px rgba(0, 0, 0, 0.42);

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.wk-video-cta__button:hover {
  color: #001923;
  background: #00c8ff;
  border-color: #00c8ff;
  transform: translateY(-4px);

  box-shadow:
    0 0 38px rgba(0, 200, 255, 0.7),
    0 18px 40px rgba(0, 0, 0, 0.48);
}

.wk-video-cta__button:active {
  transform: translateY(-1px);
}

.wk-video-cta__button:focus-visible {
  outline: 3px solid white;
  outline-offset: 6px;
}

/* =========================================================
   LARGE DESKTOPS AND ULTRAWIDE MONITORS
========================================================= */

@media (min-width: 1600px) {
  .wk-video-cta {
    min-height: clamp(720px, 75vh, 980px);
  }

  .wk-video-cta__content {
    width: min(100%, 1350px);
  }

  .wk-video-cta__title {
    max-width: 1300px;
    font-size: clamp(8rem, 8vw, 10rem);
  }

  .wk-video-cta__button {
    min-width: 370px;
    min-height: 72px;
    padding: 19px 40px;
    font-size: 1.35rem;
  }
}

/* =========================================================
   STANDARD LAPTOPS
========================================================= */

@media (min-width: 901px) and (max-width: 1366px) {
  .wk-video-cta {
    min-height: clamp(580px, 76vh, 740px);
    padding-block: 65px;
  }

  .wk-video-cta__content {
    max-width: 980px;
  }

  .wk-video-cta__title {
    font-size: clamp(5.5rem, 8vw, 7.5rem);
  }
}

/* =========================================================
   TABLETS
========================================================= */

@media (min-width: 601px) and (max-width: 900px) {
  .wk-video-cta {
    min-height: clamp(580px, 72vh, 720px);
    padding:
      clamp(55px, 8vw, 80px)
      clamp(24px, 6vw, 55px);
  }

  .wk-video-cta__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(0, 18, 26, 0.82),
        rgba(0, 35, 48, 0.68),
        rgba(0, 43, 58, 0.78)
      );
  }

  .wk-video-cta__title {
    font-size: clamp(5rem, 12vw, 7rem);
    line-height: 0.9;
  }

  .wk-video-cta__button {
    min-width: 300px;
  }
}

/* =========================================================
   PHONES
========================================================= */

@media (max-width: 600px) {
  .wk-video-cta {
    min-height: clamp(540px, 78svh, 680px);
    padding:
      clamp(46px, 12vw, 70px)
      18px;
  }

  .wk-video-cta__video {
    object-position: center;
  }

  .wk-video-cta__overlay {
    background: rgba(0, 24, 34, 0.72);
  }

  .wk-video-cta__glow {
    background:
      linear-gradient(
        180deg,
        rgba(0, 15, 22, 0.45),
        rgba(0, 26, 36, 0.58),
        rgba(0, 12, 18, 0.72)
      );
  }

  .wk-video-cta__content {
    width: 100%;
  }

  .wk-video-cta__eyebrow {
    margin-bottom: 14px;
    font-size: 0.72rem;
    letter-spacing: 3px;
  }

  .wk-video-cta__title {
    max-width: 520px;
    margin-bottom: 28px;

    font-size: clamp(3.8rem, 18vw, 5.7rem);
    line-height: 0.91;
    letter-spacing: -0.015em;
  }

  .wk-video-cta__button {
    width: min(100%, 360px);
    min-width: 0;
    min-height: 58px;

    padding: 15px 20px;
    font-size: clamp(0.95rem, 4vw, 1.08rem);
  }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {
  .wk-video-cta {
    min-height: 520px;
    padding-inline: 14px;
  }

  .wk-video-cta__title {
    font-size: clamp(3.25rem, 17vw, 4.2rem);
  }

  .wk-video-cta__button {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 0.92rem;
  }
}

/* =========================================================
   SHORT LANDSCAPE SCREENS
========================================================= */

@media (orientation: landscape) and (max-height: 600px) {
  .wk-video-cta {
    min-height: 100svh;
    padding: 35px 40px;
  }

  .wk-video-cta__content {
    max-width: 920px;
  }

  .wk-video-cta__eyebrow {
    margin-bottom: 8px;
  }

  .wk-video-cta__title {
    margin-bottom: 20px;
    font-size: clamp(3.5rem, 11vh, 6rem);
    line-height: 0.88;
  }

  .wk-video-cta__button {
    min-height: 50px;
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* =========================================================
   ACCESSIBILITY AND FALLBACKS
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wk-video-cta__video {
    display: none;
  }

  .wk-video-cta__button {
    transition: none;
  }

  .wk-video-cta__button:hover,
  .wk-video-cta__button:active {
    transform: none;
  }
}

/* Fallback for browsers without backdrop features */
@supports not (height: 100svh) {
  @media (max-width: 600px) {
    .wk-video-cta {
      min-height: 78vh;
    }
  }

  @media (orientation: landscape) and (max-height: 600px) {
    .wk-video-cta {
      min-height: 100vh;
    }
  }
}
