.home-hero,
.home-hero * {
  box-sizing: border-box;
}

body.page-template-home-php {
  background-color: #f8fafc;
}

.home-hero {
  --hero-radius-bottom: 300px;
  --hero-curve-border-width: 30px;
  --hero-video-width: 2000px;
  background-color: #f8fafc;
  position: relative;
  min-height: 900px;
  z-index: 0;
  isolation: isolate;
  border-radius: 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom);
  overflow: hidden;
  clip-path: inset(0 round 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom));
  contain: paint;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border-bottom: var(--hero-curve-border-width) solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.home-hero__video-wrap {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -8px;
  width: max(var(--hero-video-width), 100vw);
  height: 1125px;
  margin-left: calc(max(var(--hero-video-width), 100vw) / -2);
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  clip-path: inset(0 round 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom));
}

.home-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  clip-path: inset(0 round 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom));
}

.home-hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 8, 61, 0.55);
  opacity: 0.9;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(0 round 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom));
}

.home-hero__container {
  position: relative;
  z-index: 3;
  width: min(1290px, calc(100% - 40px));
  min-height: 900px;
  margin-inline: auto;
}

.home-hero__content {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 118px;
  width: min(740px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px;
  border: 1px solid #5fa8d3;
  border-radius: 60px;
  background: rgba(21, 50, 75, 0.7);
  color: #dde5ec;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.012em;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.home-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5fa8d3;
}

.home-hero__title {
  margin: 0;
  width: min(740px, 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(58px, 7.5vw, 108px);
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 16px 32px;
  border-radius: 10px;
  background: #2f80b7;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-accent, 'Plus Jakarta Sans', sans-serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease;
}

.home-hero__button:hover,
.home-hero__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(6, 24, 43, 0.35);
}

.home-hero__button-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  color: #fff;
}

.home-hero__cards {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 6px;
}

/* Keep following sections above hero painting context. */
.home-hero + * {
  position: relative;
  z-index: 1;
  background-color: #f2f4f7;
}

.home-hero__card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  backdrop-filter: blur(4px);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero__card:hover,
.home-hero__card:focus-within {
  transform: translateY(-4px);
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 30px rgba(6, 24, 43, 0.28);
}

.home-hero__card-icon {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero__card:hover .home-hero__card-icon,
.home-hero__card:focus-within .home-hero__card-icon {
  transform: translateY(-1px) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__button,
  .home-hero__card,
  .home-hero__card-icon {
    transition: none;
  }

  .home-hero__button:hover,
  .home-hero__button:focus-visible,
  .home-hero__card:hover,
  .home-hero__card:focus-within,
  .home-hero__card:hover .home-hero__card-icon,
  .home-hero__card:focus-within .home-hero__card-icon {
    transform: none;
  }
}

.home-hero__card-text {
  width: 94px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
}

.home-hero__card-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  color: #fff;
}

@media (max-width: 1200px) {
  .home-hero {
    --hero-radius-bottom: 180px;
    --hero-video-width: 1700px;
    min-height: 820px;
  }

  .home-hero__container {
    min-height: 820px;
  }

  .home-hero__video-wrap {
    height: 820px;
  }

  .home-hero__content {
    top: 126px;
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .home-hero {
    --hero-radius-bottom: 110px;
    --hero-curve-border-width: 20px;
    --hero-video-width: 1400px;
    min-height: 720px;
  }

  .home-hero__container {
    min-height: 720px;
  }

  .home-hero__video-wrap {
    height: 720px;
    top: 0;
  }

  .home-hero__content {
    top: 98px;
    width: min(620px, 100%);
    gap: 18px;
  }

  .home-hero__button {
    font-size: 18px;
    padding: 14px 24px;
  }

  .home-hero__cards {
    gap: 16px;
  }

  .home-hero__card {
    padding: 18px;
    border-width: 4px;
  }

  .home-hero__card-text {
    width: 84px;
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .home-hero {
    --hero-radius-bottom: 72px;
    --hero-curve-border-width: 14px;
    --hero-video-width: 1150px;
    min-height: 620px;
  }

  .home-hero__container {
    width: min(100% - 28px, 1290px);
    min-height: 620px;
  }

  .home-hero__video-wrap {
    height: 620px;
  }

  .home-hero__content {
    top: 82px;
    width: min(560px, 100%);
    gap: 14px;
  }

  .home-hero__title {
    font-size: clamp(48px, 13vw, 72px);
  }

  .home-hero__button {
    font-size: 16px;
    padding: 12px 18px;
  }

  .home-hero__cards {
    gap: 10px;
    margin-top: 2px;
  }

  .home-hero__card {
    padding: 14px 12px;
    border-width: 4px;
    gap: 10px;
  }

  .home-hero__card-text {
    width: 72px;
    font-size: 12px;
    line-height: 1.35;
  }
}
