/*-- --------------------------    -->
<---    residential - Side By Side -->
<--- -------------------------- -   */

@media only screen and (min-width: 0rem) {
  div:target {
    scroll-margin-top: 9.75rem;
  }

  #category-helper {
    position: relative;
    padding: var(--sectionPadding);
    text-align: center;
    background-color: var(--grey);
  }

  #category-helper:after {
    display: block;
    position: absolute;
    content: "";
    background-color: var(--grey);
    width: 100%;
    height: 8rem;
    bottom: 100%;
    left: 0;
    z-index: -1;
  }

  #category-helper .cs-container {
    position: relative;
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 44rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: var(--content-gap);
  }

  #category-helper .cs-title {
    margin-bottom: 0;
  }

  #category-helper .splash-sm,
  #category-helper .splash-lg {
    display: none;
  }

  #category-helper .cs-text {
    width: 100%;
    margin-bottom: 0;
    max-width: calc(580 / 16 * 1rem);
  }
}

@media only screen and (min-width: 64rem) {
  #category-helper .cs-container {
    max-width: 80rem;
  }

  #category-helper .cs-title {
    max-width: calc(752 / 16 * 1rem);
  }

  #category-helper .cs-text {
    max-width: calc(675 / 16 * 1rem);
  }
  #category-helper .splash-sm {
    display: block;
    top: -4rem;
    right: 4rem;
    position: absolute;
  }

  #category-helper .splash-lg {
    display: block;
    position: absolute;
    left: 0;
    bottom: -2rem;
    z-index: 1;
  }
}

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbs-2295 {
    padding: var(--sectionPadding);
    overflow: hidden;
    position: relative;
    flex-wrap: wrap;
    z-index: 1;
  }
  #sbs-2295 .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 44rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: var(--content-gap);
  }
  #sbs-2295 .cs-image-group {
    /* scales the whole section down and ties the font size to the vw and stops at 75% of the vale of 1em, changes at desktop */
    font-size: min(1.98vw, 0.826rem);
    /* everything inside this box is in ems so we can scale it all down proportionally with a font size */
    width: 44.125em;
    height: 34.75em;
    order: -1;
    position: relative;
    z-index: 1;
    /* prevents flexbox from squishing it */
    flex: none;
  }

  #sbs-2295 .cs-picture {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: block;
    border-radius: 1.25rem;
  }

  #sbs-2295 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    border-radius: 1.25rem;
  }

  #sbs-2295 .cs-picture-wrapper1 {
    width: 21.8125em;
    height: 28.5625em;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 1.25rem;
  }
  #sbs-2295 .cs-picture-wrapper2 {
    width: 21.8125em;
    height: 28.625em;
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
  }
  #sbs-2295 .cs-tag {
    /* 14px - 24px */
    font-size: var(--bodyFontSize);
    font-weight: 700;
    line-height: 1.2em;
    text-align: center;
    color: var(--headerColor);
  }
  #sbs-2295 .cs-arrow {
    width: 9.25em;
    height: 3.375em;
    position: absolute;
    top: 16.125em;
    left: 15.9375em;
    transform: rotate(30deg);
  }
  #sbs-2295 .cs-content {
    /* set text align to center if content needs to be centrally aligned */
    text-align: left;
    width: 100%;
    max-width: 36.625rem;
    display: flex;
    flex-direction: column;
    /* aligns content to the left, set to center to centrally align */
    align-items: flex-start;
  }

  #sbs-2295 .cs-content-breakdown {
    margin: auto;
    width: 100%;
    max-width: calc(1280 / 16 * 1rem);
    text-align: center;
  }
  /* 
  #services-1188 .cs-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  } */

  #sbs-2295 .cs-card-group {
    /* changes to 1280px at desktop */
    max-width: 56.25rem;
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    justify-content: center;
    gap: 1rem;
  }
  #sbs-2295 .cs-card-item {
    list-style: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: clamp(2.5rem, 3vw, 3rem) clamp(2rem, 3vw, 2.25rem);
    border-radius: 1.25rem;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  #sbs-2295 .cs-card-picture {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    /* prevents border from affecting height and width */
    background-color: #f7f7f7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* prevents flexbox from squishing it */
    flex: none;
  }
  #sbs-2295 .cs-card-icon {
    width: 1.875rem;
    height: auto;
    display: block;
  }
  #sbs-2295 .cs-h4 {
    font-size: var(--h4);
    line-height: 1.5em;
    margin: 0;
    margin-bottom: 0.5rem;
    color: var(--headerColor);
    text-align: center;
  }

  #sbs-2295 .cs-button-solid {
    margin: var(--content-gap) auto 0 auto;
  }

  #sbs-2295 .cs-card-item .cs-text {
    text-align: center;
    line-height: 1.33em;
  }

  #sbs-2295 .cs-title {
    max-width: 30ch;
  }

  #sbs-2295 .cs-text {
    margin-bottom: 0rem;
  }

  #sbs-2295 .cs-h3 {
    font-size: var(--h3);
    line-height: 1.2em;
    font-weight: 700;
    text-align: center;
    color: var(--headerColor);
    margin: clamp(3rem, 6vw, 4rem) 0;
  }

  #sbs-2295 .cs-ul {
    margin: 0.75rem 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  #sbs-2295 .cs-li {
    width: 45%;
    font-size: 1rem;
    line-height: 1.5em;
    list-style: none;
    /* 20px - 24px */
    padding-left: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--bodyTextColor);
    position: relative;
  }
  #sbs-2295 .cs-li .cs-text {
    margin-bottom: 0;
  }

  #sbs-2295 .cs-li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 1rem;
    background-color: var(--secondary);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(45deg);
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #sbs-2295 .cs-card-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  #sbs-2295 .cs-item {
    margin: 0;
  }

  #sbs-2295 .cs-container {
    max-width: calc(586 / 16 * 1rem);
  }

  #sbs-2295 .cs-image-group {
    order: initial;
  }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #sbs-2295 .cs-container {
    flex-direction: row;
    align-items: stretch;
  }

  #sbs-2295 .cs-container {
    max-width: 80rem;
  }

  #sbs-2295 .cs-image-group {
    font-size: min(1.03vw, 1rem);
  }

  #sbs-2295 .cs-picture-wrapper1 {
    height: auto;
    bottom: 7.5625em;
  }

  #sbs-2295 .cs-picture-wrapper2 {
    height: auto;
    top: 6.5em;
  }

  #sbs-2295 .cs-card-group {
    grid-template-columns: repeat(3, 1fr);
    max-width: 80rem;
  }

  #sbs-2295 .cs-item {
    max-width: none;
    padding: 2rem 1.5rem;
  }
}

/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #RTsbs-415,
  #RTsbsr-415 {
    padding: var(--sectionPadding);
    /* clips svg as the screen grows so it doesn't overflow */
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #RTsbs-415 .cs-container,
  #RTsbsr-415 .cs-container {
    width: 100%;
    /* changes to 1280 at tablet */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 108px */
    gap: clamp(3rem, 7.1vw, 6.75rem);
  }
  #RTsbs-415 .cs-content,
  #RTsbsr-415 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 33.875rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #RTsbs-415 .cs-text,
  #RTsbsr-415 .cs-text {
    margin-bottom: 1rem;
  }
  #RTsbs-415 .cs-text:last-of-type,
  #RTsbsr-415 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }

  #RTsbs-415 .cs-image-group,
  #RTsbsr-415 .cs-image-group {
    font-size: min(2.5vw, 1em);
    width: 36.1875em;
    height: 33.875em;
    /* sends it to the top of the flexbox */
    order: -1;
    position: relative;
  }

  #RTsbs-415 .cs-picture,
  #RTsbsr-415 .cs-picture {
    border-radius: 1.25em;
    /* clips the img tag corners */
    overflow: hidden;
    position: absolute;
    display: block;
  }

  #RTsbs-415 .cs-picture img,
  #RTsbsr-415 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s;
  }
  #RTsbs-415 .cs-picture1,
  #RTsbsr-415 .cs-picture1 {
    width: 12.75em;
    height: 19.625em;
    top: 0;
    left: 0;
  }
  #RTsbs-415 .cs-picture2,
  #RTsbsr-415 .cs-picture2 {
    width: 21.75em;
    height: 19.625em;
    top: 0;
    right: 0;
  }
  #RTsbs-415 .cs-picture3,
  #RTsbsr-415 .cs-picture3 {
    width: 36.1875em;
    height: 12.625em;
    bottom: 0;
    left: 0;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #RTsbs-415 .cs-container,
  #RTsbsr-415 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  #RTsbs-415 .cs-content,
  #RTsbsr-415 .cs-content {
    width: 48%;
  }

  #RTsbs-415 .cs-image-group,
  #RTsbsr-415 .cs-image-group {
    font-size: min(1.15vw, 1em);
    flex: none;
  }
}

/*-- -------------------------- -->
<---    Side By Side Reverse    -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #RTsbsr-415 {
    background-color: var(--grey);
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #RTsbsr-415 .cs-container {
    justify-content: flex-end;
  }
  #RTsbsr-415 .cs-content {
    /* sends it to the left */
    order: -1;
  }
}

/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbs-2218 {
    padding: var(--sectionPadding);
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #sbs-2218 .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 36.5rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbs-2218 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 36.625rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }
  #sbs-2218 .cs-text {
    margin-bottom: 1.5rem;
  }
  #sbs-2218 .cs-list {
    margin: 0 0 2rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 24px - 32px */
    gap: clamp(1.5rem, 3vw, 2rem);
  }
  #sbs-2218 .cs-li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
  }
  #sbs-2218 .cs-icon-wrapper {
    /* 60px - 80px */
    width: clamp(3.75rem, 7vw, 5rem);
    height: clamp(3.75rem, 7vw, 5rem);
    border: 1px solid var(--secondary);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  #sbs-2218 .cs-icon {
    width: 2rem;
    height: auto;
    display: block;
  }
  #sbs-2218 .cs-h3 {
    /* 20px - 25px */
    font-size: var(--h4);
    font-weight: 700;
    line-height: 1.2em;
    text-align: left;
    margin: 0 0 0.75rem 0;
    color: var(--headerColor);
  }
  #sbs-2218 .cs-li-text {
    /* 16px - 18px */
    font-size: clamp(1rem, 0.8438rem + 0.5vw, 1.125rem);
    line-height: 1.5em;
    text-align: left;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #sbs-2218 .cs-image-group {
    /* scales the whole group based on the view width size and stop when that vales equals .74em, resets at desktop */
    font-size: min(2.32vw, 0.74em);
    width: 39.375em;
    height: 40.9375em;
    display: block;
    position: relative;
    z-index: 1;
  }

  #sbs-2218 .cs-picture {
    position: absolute;
  }
  #sbs-2218 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #sbs-2218 .cs-picture1 {
    width: 19.0625em;
    height: auto;
    top: 0;
    bottom: 17.5625em;
    left: 0;
    overflow: hidden;
    border-radius: 1.25rem;
  }
  #sbs-2218 .cs-picture2 {
    width: 25.8125em;
    height: auto;
    top: 16.9375em;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 1.25rem;
  }
  #sbs-2218 .cs-picture3 {
    width: 13.625em;
    height: 9.6875em;
    top: 5.25em;
    right: 4.6875em;
    overflow: hidden;
    border-radius: 1.25rem;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #sbs-2218 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
  #sbs-2218 .cs-content {
    width: 47%;
    align-self: center;
  }
  #sbs-2218 .cs-li {
    align-items: center;
  }
  #sbs-2218 .cs-image-group {
    font-size: min(1.2vw, 1em);
    height: auto;
    flex: none;
  }
}

/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbs-311 {
    padding: var(--sectionPadding);
    background-color: var(--grey);
  }
  #sbs-311 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbs-311 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 33.875rem;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #sbs-311 .cs-text {
    margin-bottom: 1rem;
  }
  #sbs-311 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }

  #sbs-311 .cs-name {
    font-size: 1rem;
    line-height: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 0 0.25rem;
    color: var(--headerColor);
    display: block;
  }
  #sbs-311 .cs-job {
    font-size: 0.875rem;
    line-height: 1.5em;
    color: #767676;
    display: block;
  }
  #sbs-311 .cs-quote-icon {
    /* 60px - 136px */
    width: clamp(3.75rem, 10vw, 8.5rem);
    height: auto;
    position: absolute;
    bottom: 0rem;
    /* 16px - 32px */
    right: clamp(1rem, 4vw, 2rem);
  }
  #sbs-311 .cs-image-group {
    /* scaling the font size with the view width */
    font-size: min(2.31vw, 0.7em);
    /* using ems so we can use font size to scale the whole section */
    width: 39.4375em;
    height: 39.75em;
    position: relative;
  }
  #sbs-311 .cs-picture {
    border-radius: 1.5em;
    /* clips img tag corners */
    overflow: hidden;
    position: absolute;
    display: block;
  }
  #sbs-311 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* makes image act like a background image */
    object-fit: cover;
  }
  #sbs-311 .cs-picture1 {
    width: 32.625em;
    height: 36.3125em;
    left: 6rem;
    top: 0;
  }
  #sbs-311 .cs-picture2 {
    width: 25.875em;
    height: 25em;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 40px;
    left: 0;
    bottom: 0;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #sbs-311 .cs-container {
    flex-flow: row-reverse;
    justify-content: space-between;
    gap: 3.25rem;
  }
  #sbs-311 .cs-image-group {
    font-size: min(1.2vw, 1em);
    flex: none;
  }
  #sbs-311 .cs-content {
    margin: 0;
  }
}

/*-- -------------------------- -->
<---            CTA             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cta-51 {
    padding: var(--sectionPadding);
    position: relative;
    padding-bottom: clamp(6.75rem, 7.82vw, 9.25rem);
  }

  #cta-51::after {
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    content: url("/assets/cta-wave.svg");
    display: block;
    width: 100%;
  }

  #cta-51 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: var(--content-gap);
  }

  #cta-51 .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;
  }
  #cta-51 .cs-topper {
    color: var(--secondary);
  }

  #cta-51 .cs-button-solid {
    margin: 1.25em 0;
  }

  #cta-51 .cs-title {
    max-width: calc(820 / 16 * 1rem);
  }

  #cta-51 .cs-title,
  #cta-51 .cs-text {
    color: var(--bodyTextColorWhite);
  }
  #cta-51 .cs-text {
    /* Override.  cs-topper cs-title and first cs-text should be removed and put into your global css sheet so it can control every instance of them on your site and is consistent. This selector is a section specific override that stays inside this stitch */
    margin-bottom: 1rem;
    opacity: 0.8;
  }
  #cta-51 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #cta-51 .cs-picture {
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta-51 .cs-picture:before {
    /* black color overlay */
    content: "";
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: 0.75;
    top: 0;
    left: 0;
    z-index: 1;
  }
  #cta-51 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
