/*-- -------------------------- -->
<---          Grants/Rebates          -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #services-285 {
    /* centers the button */
    text-align: left;
    padding: var(--sectionPadding);
  }
  #services-285 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #services-285 .cs-container .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }
  #services-285 .cs-container .cs-content .cs-title {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
  #services-285 .cs-container .cs-content .cs-text {
    font-size: clamp(1.1rem, 2.114943vw, 1.2rem);
    max-width: 50rem;
  }
  #services-285 .cs-container .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    gap: clamp(1rem, 2.819383vw, 3rem);
  }
  #services-285 .cs-container .cs-card-group .cs-item {
    list-style: none;
    width: 100%;
    max-width: 31.25rem;
    /* 32px - 40px top & bottom */
    /* 28px - 40px left & right */
    padding: clamp(1rem, 3vw, 2.5rem) 1.5rem;
    background-color: #f7f7f7;
    border-radius: 1rem;
    border: 1px solid var(--primaryLight);
    box-sizing: border-box;
    -webkit-box-shadow: 0px 0px 21px 0px rgba(189, 189, 189, 0.57);
    -moz-box-shadow: 0px 0px 21px 0px rgba(189, 189, 189, 0.57);
    box-shadow: 0px 0px 21px 0px rgba(189, 189, 189, 0.57);
    transition: background-color 0.3s, transform 0.3s;
  }
  #services-285 .cs-container .cs-card-group .cs-item:hover {
    background-color: var(--primary);
    transform: translateY(-0.4375rem);
  }
  #services-285 .cs-container .cs-card-group .cs-item:hover .cs-h3,
  #services-285 .cs-container .cs-card-group .cs-item:hover .cs-item-text,
  #services-285 .cs-container .cs-card-group .cs-item:hover .cs-item-text strong,
  #services-285 .cs-container .cs-card-group .cs-item:hover .cs-topper {
    color: #fff;
  }
  #services-285 .cs-container .cs-card-group .cs-item:hover .cs-button-solid {
    background-color: var(--primaryDark);
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-topper {
    font-weight: 400;
    width: 100%;
    text-align: left;
    transition: color 0.3s;
    font-size: clamp(0.9rem, 1.544715vw, 1rem);
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-h3 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.2em;
    margin: 0;
    margin-bottom: 0.75rem;
    color: var(--headerColor);
    transition: color 0.3s;
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-item-text {
    font-size: var(--bodyFontSize);
    text-align: left;
    line-height: 1.5em;
    margin-bottom: 1rem;
    color: var(--bodyTextColor);
    transition: color 0.3s;
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-item-text.incomeEligibility {
    margin-bottom: 2rem;
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-item-text strong {
    color: var(--primaryDark);
    transition: color 0.3s;
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-button-solid {
    align-self: flex-start;
    margin-top: auto;
    padding: 1.2rem;
    line-height: 0.4;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #services-285 .cs-container .cs-card-group {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  #services-285 .cs-container .cs-card-group .cs-item .cs-h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  }
}
/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero-1618 {
    padding: var(--sectionPadding);
    /* 200px - 300px - leaving extra space for the navigation */
    padding: clamp(12.5rem, 31.95vw, 17rem) 1rem clamp(3rem, 9.37931vw, 7rem);
    position: relative;
    z-index: 1;
  }
  #hero-1618 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* 60px - 180px */
    gap: clamp(3.75rem, 13vw, 11.25rem);
  }
  #hero-1618 .cs-container .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }
  #hero-1618 .cs-container .cs-content .cs-topper {
    color: var(--primaryLight);
    font-size: clamp(0.9rem, 1.544715vw, 1rem);
  }
  #hero-1618 .cs-container .cs-content .cs-title {
    /* 39px - 61px */
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2em;
    text-align: inherit;
    max-width: 100%;
    margin: 0.5rem 0 1rem 0;
    color: #fff;
    position: relative;
  }
  #hero-1618 .cs-container .cs-content .cs-text {
    /* 16px - 20px */
    font-size: clamp(1.2rem, 2.113821vw, 1.4rem);
    line-height: 1.5em;
    text-align: inherit;
    width: 100%;
    margin: 0 0 2.5rem 0;
    color: #fff;
  }
  #hero-1618 .cs-container .cs-content .cs-button-solid {
    color: #000;
  }
  #hero-1618 .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }
  #hero-1618 .cs-background:before {
    /* Overlay */
    content: "";
    width: 100%;
    height: 100%;
    background: #111926;
    opacity: 0.8;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 1;
    /* prevents the cursor from interacting with it */
    pointer-events: none;
  }
  #hero-1618 .cs-background img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* makes the top of the image start at the top of the parent */
    object-position: top;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #hero-1618 .cs-container {
    align-items: flex-start;
  }
  #hero-1618 .cs-container .cs-content {
    text-align: left;
    margin-left: 0;
    align-items: flex-start;
    max-width: 43.75rem;
  }
  #hero-1618 .cs-container .cs-content .cs-title {
    width: 20ch;
  }
  #hero-1618 .cs-container .cs-content .cs-text {
    max-width: clamp(29rem, 60vw, 38.785rem);
  }
  #hero-1618 .cs-background:before {
    background: linear-gradient(90deg, #111926 21.41%, rgba(17, 25, 38, 0.72) 34.98%, rgba(17, 25, 38, 0) 62.53%);
    opacity: 1;
  }
}
/* Large Desktop Parallax Effect - 100px */
@media only screen and (min-width: 100rem) {
  #hero-1618 .cs-background {
    background: url("../images/insulation-heating-cooling-in-northern-ny.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* creates the parallax effect */
    background-attachment: fixed;
  }
  #hero-1618 .cs-background img {
    display: none;
  }
}
