/*-- -------------------------- -->
<---            Hero             -->
<--- -------------------------- -*/

/* Centred hero -- big central heading first, with the SEO/location
   copy sitting underneath it as a smaller subheading. The <h1> is the
   subheading text (location-based, for search), the central line
   above it is a styled paragraph, not a heading tag. */
@media only screen and (min-width: 0rem) {
  #hero {
    width: 100%;
    min-height: 100vh;
    padding: calc(4.75rem + 3rem) 1.5rem 4rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
    background-image: url('../images/draft1mobilebackgroundhero.png'), url('../images/GREENWATERCOLOURBACKGROUND4.svg');
    background-size: cover, cover;
    background-position: center, top center;
    background-repeat: no-repeat, no-repeat;
  }
  #hero .cs-container {
    width: 100%;
    max-width: 46rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  #hero .cs-central-heading {
    font-family: var(--headingFont);
    font-weight: 400;
    line-height: 1.25em;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    color: #000;
    margin: 0;
  }
  #hero .cs-subheading {
    font-family: var(--headingFont);
    font-weight: 500;
    line-height: 1.5em;
    font-size: clamp(1.125rem, 2.4vw, 1.375rem);
    color: #000;
    margin: 0;
  }
  #hero .cs-hero-cta {
    margin-top: 0.5rem;
    background-color: #fff;
    color: var(--navy);
  }
  #hero .cs-hero-cta:before {
    background: var(--navy);
  }
  #hero .cs-hero-cta:hover {
    color: #fff;
  }
  #hero .cs-scroll-arrow {
    color: var(--navy);
    display: inline-flex;
    margin-top: 1rem;
    transition: transform 0.3s;
  }
  #hero .cs-scroll-arrow:hover {
    transform: translateY(0.25rem);
  }
}

/* Mobile only - the background artwork is concentrated near the top of
   the frame, so push the text block down to sit clear of it rather than
   vertically centering over it. */
@media only screen and (max-width: 63.9375rem) {
  #hero {
    min-height: 120vh;
    align-items: flex-end;
    padding-bottom: 2.5rem;
  }
  #hero .cs-container {
    margin: 0 auto;
  }
}

/* Desktop - 64rem */
@media only screen and (min-width: 64rem) {
  #hero {
    background-image: url('../images/newherobackground169.png'), url('../images/GREENWATERCOLOURBACKGROUND4.svg');
    background-size: cover, cover;
  }
  #hero .cs-central-heading {
    font-size: clamp(3rem, 4.5vw, 4.25rem);
  }
}
