/* HS Technologies — contained editorial landscape hero. */
:root {
  --hero-card-paper: #faf3eb;
  --hero-card-line: rgba(159, 125, 97, 0.22);
  --hero-card-shadow: rgba(55, 38, 27, 0.09);
}

/* Align the hero to the same 1540px design rail as the floating header and
   footer. The approved landscape fills one unified card instead of ending as
   a full-bleed strip. */
.hero {
  position: relative !important;
  width: min(calc(100% - 28px), 1540px) !important;
  max-width: none !important;
  min-height: clamp(540px, 38vw, 620px) !important;
  margin: clamp(16px, 1.8vw, 26px) auto clamp(34px, 3.5vw, 54px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 1px solid var(--hero-card-line) !important;
  border-radius: clamp(20px, 1.65vw, 26px) !important;
  background: var(--hero-card-paper) !important;
  box-shadow: 0 26px 66px var(--hero-card-shadow), 0 4px 15px rgba(55, 38, 27, 0.035) !important;
}

.hero-background {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.hero-background img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: saturate(0.95) contrast(0.99) !important;
}

/* Quiet copy field on the left plus a bottom dissolve so the landscape feels
   embedded in the paper rather than clipped at a hard image edge. */
.hero::before {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  content: "" !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg,
      rgba(250, 243, 235, 0.99) 0%,
      rgba(250, 243, 235, 0.97) 22%,
      rgba(250, 243, 235, 0.78) 38%,
      rgba(250, 243, 235, 0.24) 53%,
      rgba(250, 243, 235, 0) 66%),
    linear-gradient(180deg,
      rgba(250, 243, 235, 0) 72%,
      rgba(250, 243, 235, 0.18) 84%,
      rgba(250, 243, 235, 0.88) 100%) !important;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: clamp(48px, 5vw, 84px);
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 243, 235, 0), rgba(250, 243, 235, 0.72));
}

.hero-layout {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(540px, 38vw, 620px) !important;
  margin: 0 !important;
  padding: clamp(54px, 5vw, 78px) clamp(44px, 5.2vw, 82px) clamp(66px, 5.4vw, 86px) !important;
  grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr) !important;
  align-items: center !important;
  gap: clamp(34px, 4.2vw, 68px) !important;
}

.hero-copy-block {
  max-width: 610px !important;
  padding: 0 !important;
}

.hero-visual-spacer {
  display: block !important;
  min-width: 0 !important;
  min-height: 1px !important;
}

.hero-title {
  max-width: 610px !important;
  font-size: clamp(63px, 5vw, 82px) !important;
}

.hero-copy {
  max-width: 545px !important;
  margin-top: 26px !important;
}

.hero-actions {
  margin-top: 31px !important;
}

@media (max-width: 1180px) {
  .hero {
    min-height: 530px !important;
  }

  .hero-layout {
    min-height: 530px !important;
    padding: 50px 48px 70px !important;
    grid-template-columns: minmax(350px, 0.92fr) minmax(0, 1.08fr) !important;
    gap: 30px !important;
  }

  .hero-background img {
    object-position: 58% center !important;
  }

  .hero-title {
    font-size: clamp(58px, 6.1vw, 72px) !important;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .hero {
    width: min(calc(100% - 32px), 1540px) !important;
    min-height: 560px !important;
  }

  .hero-layout {
    min-height: 560px !important;
    padding: 48px 38px 72px !important;
    grid-template-columns: minmax(330px, 1fr) minmax(0, 0.78fr) !important;
    gap: 20px !important;
  }

  .hero-background img {
    object-position: 63% center !important;
  }

  .hero::before {
    background:
      linear-gradient(90deg,
        rgba(250, 243, 235, 0.99) 0%,
        rgba(250, 243, 235, 0.96) 31%,
        rgba(250, 243, 235, 0.70) 49%,
        rgba(250, 243, 235, 0.12) 68%),
      linear-gradient(180deg, rgba(250, 243, 235, 0) 72%, rgba(250, 243, 235, 0.88) 100%) !important;
  }

  .hero-title {
    font-size: clamp(53px, 7vw, 64px) !important;
  }
}

@media (max-width: 760px) {
  .hero {
    width: calc(100% - 24px) !important;
    min-height: 690px !important;
    margin: 12px auto 30px !important;
    padding: 0 !important;
    border-radius: 19px !important;
  }

  .hero-background {
    inset: auto 0 0 !important;
    height: 47% !important;
  }

  .hero-background img {
    object-fit: cover !important;
    object-position: 72% center !important;
    filter: saturate(0.93) contrast(0.99) !important;
  }

  .hero::before {
    background:
      linear-gradient(180deg,
        rgba(250, 243, 235, 1) 0%,
        rgba(250, 243, 235, 1) 46%,
        rgba(250, 243, 235, 0.96) 53%,
        rgba(250, 243, 235, 0.64) 61%,
        rgba(250, 243, 235, 0.08) 73%,
        rgba(250, 243, 235, 0) 86%,
        rgba(250, 243, 235, 0.42) 100%) !important;
  }

  .hero::after {
    height: 38px !important;
    background: linear-gradient(180deg, rgba(250, 243, 235, 0), rgba(250, 243, 235, 0.64));
  }

  .hero-layout {
    display: block !important;
    min-height: 690px !important;
    padding: 44px 26px 325px !important;
  }

  .hero-copy-block {
    max-width: 600px !important;
  }

  .hero-title {
    max-width: 600px !important;
    font-size: clamp(48px, 10vw, 64px) !important;
  }

  .hero-copy {
    max-width: 525px !important;
    margin-top: 22px !important;
  }

  .hero-actions {
    margin-top: 27px !important;
  }

  .hero-visual-spacer {
    display: none !important;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 660px !important;
  }

  .hero-background {
    height: 43% !important;
  }

  .hero-layout {
    min-height: 660px !important;
    padding: 40px 21px 285px !important;
  }

  .hero-title {
    font-size: clamp(44px, 12vw, 56px) !important;
  }

  .hero-actions {
    width: 100% !important;
  }
}

@media (max-width: 390px) {
  .hero {
    width: calc(100% - 20px) !important;
    min-height: 650px !important;
  }

  .hero-layout {
    min-height: 650px !important;
    padding: 36px 18px 272px !important;
  }

  .hero-background {
    height: 42% !important;
  }

  .hero-title {
    font-size: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background img {
    transform: none !important;
  }
}
