/* ===== HOMEPAGE HERO – HARD ALIGN TO 1240PX RAIL ===== */

/* Outer wrapper from homepage.php */
.page-template-page-homepage-php .home-hero-override {
  margin: 0;
  padding: 0;
}

/* Section element */
.page-template-page-homepage-php .home-hero {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
  padding: 140px 0 0 0;
}

/* Overlay using --hero-overlay (0–1) */
.page-template-page-homepage-php .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: var(--hero-overlay, 0);
  z-index: 0;
}

/* Inner rail + grid */
.page-template-page-homepage-php .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(480px, 55%) 45%;
  gap: clamp(16px, 3vw, 32px);
  align-items: stretch;

  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px !important;
  padding-right: 40px !important;
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: 0;
}

/* LEFT column */
.page-template-page-homepage-php .home-hero__left {
  grid-column: 1;
  align-self: center;
  justify-self: start;
  text-align: left;
  width: 100%;
  padding-bottom: 60px;
  font-weight: 400;
}

.page-template-page-homepage-php .home-hero__title {
  font-size: clamp(32px, 3.5vw, 52px) !important;
  line-height: 1.2;
  margin: 0 0 32px;
  color: #101820 !important;
}

/* RIGHT column wrapper */
.page-template-page-homepage-php .home-hero__right {
  grid-column: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100%;
}

/* Art tile */
.page-template-page-homepage-php .home-hero__art {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  margin: 0;
  padding: 0;
}

/* Tablet ≤1140px */
@media (max-width: 1140px) {
  .page-template-page-homepage-php .home-hero__inner {
    grid-template-columns: minmax(400px, 60%) 40%;
    gap: clamp(16px, 4vw, 32px);
    max-height: 450px;
    padding-bottom: 0;
  }
}

/* Mobile ≤770px */
@media (max-width: 770px) {
  .page-template-page-homepage-php .home-hero {
    padding-top: 100px;
  }

  .page-template-page-homepage-php .home-hero__inner {
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: start;
    min-height: 360px;

    /* match mobile rail from other sections */
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 0;
    padding-bottom: 32px;
  }

  .page-template-page-homepage-php .home-hero__left {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .page-template-page-homepage-php .home-hero__right {
    grid-column: 1 / -1;
    justify-content: center;
    align-items: flex-end;
    margin: auto;
  }

  .page-template-page-homepage-php .home-hero__art {
    width: min(90%, 500px);
    background-position: center bottom;
  }
}
