
/* =========================================
   MISSION SECTIONS
========================================= */

.mission__container {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #000;
}

/* Background video and image layers */
.mission__video,
.mission__container > .background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mission__video {
  z-index: -1;
  object-fit: cover;
  object-position: center;
}

.mission__container > .background {
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Background images */
.mission__container > .background.two {
  background-image: url("../media/Image7.jpeg");
}

.mission__container > .background.three {
  background-image: url("../media/photo5.jpeg");
}

.mission__container > .background.four {
  background-image: url("../media/Image6.jpeg");
}

.mission__container > .background.five {
  background-image: url("../media/Truck2.jpeg");
  background-position: 65% center;
}

/* Dark overlay for image sections */
.mission__container > .background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Gradient overlay for the video hero */
.mission__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.38) 55%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

/* =========================================
   CONTENT
========================================= */

.mission__container .bottom__content {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 10%;
  width: min(720px, 84%);
  max-width: 720px;
  color: #fff;

  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(-10%);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

/* Reveal content when section enters the viewport */
.mission__container.on__screen .bottom__content {
  opacity: 1;
  transform: translateY(0);
}

/* Small uppercase label */
.bottom__content__subheader,
.bottom__content__subheader_one {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 4px;
}

/* Main headings */
.bottom__content__header,
.bottom__content__header_one {
  max-width: 700px;
  margin: 0 0 24px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.bottom__content__header span,
.bottom__content__header_one span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
}

/* Description */
.bottom__content__description {
  max-width: 560px;
  margin-bottom: 32px;
  color: rgba(243, 244, 245, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* =========================================
   BUTTON
========================================= */

.mission__container .content__button {
  position: relative;
  z-index: 2;
  display: inline-block;
  max-width: 100%;
  min-height: 52px;
  margin-top: 1rem;
  overflow: hidden;
  border: 2px solid #fff;
}

.mission__container .content__button .text {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 1.2rem 2.5rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mission__container .content__button .hover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.mission__container .content__button:hover .hover {
  transform: scaleY(1);
  transform-origin: bottom center;
}

.mission__container .content__button:hover .text {
  color: #000;
}

/* =========================================
   TABLETS AND MOBILE
========================================= */

@media (max-width: 768px) {
  .mission__container {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Adjust image focal points for mobile cropping */
  .mission__container > .background.two {
    background-position: 58% center;
  }

  .mission__container > .background.three {
    background-position: 60% center;
  }

  .mission__container > .background.four {
    background-position: 55% center;
  }

  .mission__container > .background.five {
    background-position: 65% center;
  }

  .mission__video {
    object-position: center;
  }

  /* Content placement */
  .mission__container .bottom__content {
    left: 6%;
    right: 6%;
    bottom: 8%;
    width: auto;
    max-width: 560px;
  }

  .bottom__content__subheader,
  .bottom__content__subheader_one {
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .bottom__content__header,
  .bottom__content__header_one {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 10vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .bottom__content__description {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.7;
  }

  .mission__container .content__button .text {
    padding: 15px 18px;
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}

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

@media (max-width: 480px) {
  .mission__container .bottom__content {
    left: 22px;
    right: 22px;
    bottom: 6%;
    max-width: none;
  }

  .bottom__content__subheader,
  .bottom__content__subheader_one {
    margin-bottom: 12px;
    font-size: 9px;
    letter-spacing: 1.6px;
  }

  .bottom__content__header,
  .bottom__content__header_one {
    margin-bottom: 16px;
    font-size: clamp(2rem, 9.5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  .bottom__content__description {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.65;
  }

  .mission__container .content__button .text {
    padding: 14px 12px;
    font-size: 9px;
  }
}

/* =========================================
   SHORT MOBILE SCREENS
========================================= */

@media (max-width: 768px) and (max-height: 650px) {
  .mission__container .bottom__content {
    bottom: 4%;
  }

  .bottom__content__subheader,
  .bottom__content__subheader_one {
    margin-bottom: 8px;
  }

  .bottom__content__header,
  .bottom__content__header_one {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .bottom__content__description {
    margin-bottom: 14px;
    line-height: 1.5;
  }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
  .mission__container .bottom__content,
  .mission__container .content__button .text,
  .mission__container .content__button .hover {
    transition: none;
  }
}
