/*
  macros/hero-heading.css
  Styles for the hero_heading macro — base layout, shape divider, and all variants.
*/

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--linen);
  text-shadow: 0 0.04em 0 rgba(0, 0, 0, 0.15);
  position: relative;

  @media screen and (min-width: 601px) {
    min-height: 600px;
    padding: 100px 0;
  }

  @media screen and (min-width: 1024px) {
    padding: 180px 0 150px;
  }

  &::after {
    opacity: 0.5;
    background-color: #000000;
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 300;
  }

  & .hero-heading__inner {
    margin: 0 auto;
    position: relative;
    z-index: 500;

    @media screen and (min-width: 320px) and (max-width: 600px) {
      padding: 0 20px;
    }

    @media screen and (min-width: 601px) and (max-width: 1023px) {
      padding: 0 50px;
    }

    @media screen and (min-width: 1024px) {
      width: 100%;
      max-width: 1080px;
    }
  }

  & .cta-bottom-shape {
    bottom: -1px;
    left: 0;
    line-height: 0;
    overflow: hidden;
    position: absolute;
    transform: scaleX(-1);
    transform-origin: center;
    width: 100%;
    z-index: 400;

    & svg {
      display: block;
      position: relative;
      width: calc(100% + 1.3px);

      & path {
        fill: var(--dirty-linen);
      }
    }
  }

  & h1 {
    margin: 0;
    padding-bottom: 20px;
    font-family: var(--unical);
    font-size: 68px;
    font-weight: 400;
    line-height: 1.25em;

    @media screen and (max-width: 600px) {
      font-size: 42px;
      line-height: 52px;
    }

    & .hero-dnb {
      @media screen and (min-width: 1024px) {
        white-space: nowrap;
      }
    }
  }

  & p {
    font-family: var(--poppins);
    font-size: 30px;
    font-weight: 400;
    line-height: 34.5px;

    @media screen and (max-width: 600px) {
      font-size: 24px;
    }
  }
}


/* ─── Hero variants ──────────────────────────────────────────────────────── */

.hero-heading--village-gardens-sunset {
  background-image: url("/static/images/home/VillageGardensSunset.jpg");
}

.hero-heading--village-gardens-exterior {
  min-height: 300px;
  background-image: url("/static/images/home/VillageGardensSunset.jpg");

  @media screen and (min-width: 601px) {
    min-height: 300px;
  }

  & h1 {
    text-align: center;
  }
}

.hero-heading--schedule {
  background-image: url("/static/images/schedule-of-events/DiningArea.webp");

  @media screen and (min-width: 601px) {
    min-height: 300px;
  }

  & h1 {
    text-align: center;
  }
}
