/* =========================
   Base Structure
========================= */

.hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.hero-banner__container {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
  padding: 2rem 1.5rem 3rem;
}

.hero-banner__inner {
  display: flex;
  flex-direction: column;
  row-gap: 0.9rem;
  max-width: 20rem;
}

/* =========================
   Typography
========================= */

.hero-banner__heading,
.hero-banner__copy {
  color: var(--hero-color-style);
}


.hero-banner__heading {
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.hero-banner__copy {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 400;
  max-width: 18rem;
  margin: 0 0 0.9rem;
}

.hero-banner__inner.hero-color--dark {
  --hero-color-style: #fff;
}

.hero-banner__inner.hero-color--light {
  --hero-color-style: #111;
}

/* =========================
   Buttons
========================= */

.hero-banner__buttons {
  display: flex;
}

.hero-banner__buttons .button,
.hero-banner__buttons .button--primary,
.hero-banner__buttons .button--secondary {
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  text-transform: none;
}

.hero-banner__buttons .button--primary {
  background: #fff;
  color: #111;
  border: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-banner__buttons .button--primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* =========================
   Mobile (<=767)
========================= */

@media (max-width: 767px) {

  .hero-banner__container {
    padding: 6rem 1.5rem 2.5rem;
  }

  .hero-banner__inner {
    max-width: 22rem;
  }

  /* CENTER LAYOUT FIX */
  .hero-banner__container.mob--top-center {
    justify-content: center;
    align-items: flex-start;
  }

  .hero-banner__container.mob--top-center .hero-banner__inner {
    text-align: center;
    align-items: center;
  }

  .hero-banner__container.mob--top-center .hero-banner__copy {
    margin-left: auto;
    margin-right: auto;
    max-width: 20rem;
  }

  .hero-banner__container.mob--top-center .hero-banner__buttons {
    justify-content: center;
  }
}

/* =========================
   Tablet (768–1023)
========================= */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-banner,
  .hero-banner.screen-size,
  .template-index .hero-banner.screen-size {
    height: 70vh;
    min-height: 70vh;
    max-height: 70vh;
  }

  .hero-banner__container {
    padding: 5rem 2rem 3rem;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 11;
  }

  .hero-banner__inner {
    max-width: 30rem;
    row-gap: 1rem;
  }

  .hero-banner__heading {
    font-size: clamp(3.25rem, 6vw, 4.5rem);
    line-height: 0.95;
    margin-bottom: 0.75rem;
  }

  .hero-banner__copy {
    font-size: 1.125rem;
    line-height: 1.3;
    max-width: 24rem;
    margin-bottom: 1.25rem;
  }

  .hero-banner__buttons .button,
  .hero-banner__buttons .button--primary,
  .hero-banner__buttons .button--secondary {
    padding: 0.95rem 1.6rem;
  }

  .hero-banner__image img,
  .hero-banner__video video {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center 75%;
  }
}

/* =========================
   Desktop (>=1024)
========================= */

@media (min-width: 1024px) {

  .hero-banner__container {
    padding: 10rem 3rem 4rem;
  }

  .hero-banner__inner {
    max-width: 36rem;
    row-gap: 1.1rem;
  }

  .hero-banner__copy {
    font-size: clamp(1.125rem, 1.4vw, 1.3rem);
    max-width: 30rem;
  }

  .hero-banner__buttons .button {
    padding: 1rem 1.75rem;
  }

  /* FULL positioning system */
  .hero-banner__container.desk--top-left {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-banner__container.desk--top-center {
    justify-content: center;
    align-items: flex-start;
  }

  .hero-banner__container.desk--middle-center {
    justify-content: center;
    align-items: center;
  }

  .hero-banner__container.desk--middle-left {
    justify-content: flex-start;
    align-items: center;
  }

  .hero-banner__container.desk--bottom-left {
    justify-content: flex-start;
    align-items: flex-end;
  }

  .hero-banner__container.desk--bottom-center {
    justify-content: center;
    align-items: flex-end;
  }
}