/* Hero */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--color-navy);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Band fills the bottom half of the hero: 350px of the 700px video area,
   the last 40px of which is the lighter blue strip the cards overlap. */
.hero-text-band {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-bottom: 40px solid rgba(112, 146, 180, 0.5);
  background: linear-gradient(90deg, rgba(31, 78, 132, 0.7) 0%, rgba(28, 66, 110, 0.7) 100%);
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-family: var(--font-adelle);
  font-size: 64px;
  font-weight: 700;
  font-style: italic;
  line-height: 78px;
  color: var(--color-offwhite);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #eef2f5;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 50px;
    line-height: 60px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 560px;
  }

  .hero-text-band {
    min-height: 280px;
    border-bottom-width: 30px;
  }

  .hero-content h1 {
    font-size: 40px;
    line-height: 50px;
  }
}

/* Hero feature cards */
.hero-cards-section {
  position: relative;
  z-index: 3;
  margin-top: -90px;
  padding-bottom: 20px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.hero-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  padding: 28px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero-card:nth-child(2) {
  transition-delay: 0.12s;
}

.hero-card:nth-child(3) {
  transition-delay: 0.24s;
}

.hero-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.hero-card h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
}

.hero-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

@media (max-width: 860px) {
  .hero-cards-section {
    margin-top: 24px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }
}

/* About section: the photo spans the whole section and both panels tint it
   with the same navy, just at different strengths (0.9 left, 0.5 right). */
.about-section {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: row;
  background-image: url('/images/iStock-1147479286.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.about-overlay,
.about-media {
  position: relative;
  overflow: hidden;
}

/* The tint is a curtain that slides in over the photo rather than a static
   background, so ::before starts fully off to the side and transparent. */
.about-overlay::before,
.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0f467c;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.about-overlay::before {
  transform: translateX(-100%);
}

.about-media::before {
  transform: translateX(100%);
}

.about-overlay.in-view::before {
  opacity: 0.9;
  transform: translateX(0);
}

.about-media.in-view::before {
  opacity: 0.5;
  transform: translateX(0);
}

.about-overlay {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 0;
}

.about-media {
  width: 60%;
}

.about-logo {
  position: relative;
  z-index: 2;
  width: 200px;
  margin: 0 165px 30px 0;
}

.about-overlay p {
  position: relative;
  z-index: 2;
  font-family: Arial, sans-serif;
  color: #fff;
  font-size: 1rem;
  line-height: 26px;
  width: 66%;
  max-width: 66%;
  padding-right: 50px;
  margin: 0;
}

@media (max-width: 1024px) {
  .about-overlay {
    align-items: flex-start;
    padding-left: 30px;
  }

  .about-logo {
    margin-right: 180px;
  }

  .about-overlay p {
    width: 50%;
    max-width: 50%;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .about-overlay {
    width: 100%;
    padding: 0 12px;
  }

  .about-overlay.in-view::before {
    opacity: 0.8;
  }

  .about-media {
    display: none;
  }

  .about-logo {
    align-self: center;
    width: 150px;
    margin: 0 0 10px;
  }

  .about-overlay p {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

/* Benefits / timeline */
.benefits-section {
  background: var(--color-offwhite);
  padding: 90px 0;
}

.benefits-header {
  max-width: 1000px;
  margin: 0 auto 90px;
  text-align: center;
}

.benefits-header h2 {
  font-family: var(--font-myriad);
  font-size: 68px;
  font-weight: 400;
  line-height: 70px;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.benefits-header p {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: #052c45;
  max-width: 80%;
  margin: 0 auto;
}


@media (max-width: 1024px) {
  .benefits-header h2 {
    font-size: 50px;
    line-height: 60px;
  }
}

@media (max-width: 767px) {
  .benefits-header h2 {
    font-size: 32px;
    line-height: 36px;
  }

  .benefits-header p {
    max-width: 100%;
    font-size: 16px;
  }
}

/* The CTA band is shared by every page, so it lives in site.css. */
