/*-- -------------------------- -->
<---            Hero            -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero {
    position: relative;
  }
  #hero .cs-container {
    width: 100%;
    max-width: 80em;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #hero .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    max-width: 32.625rem;
    /* added section padding to cs-content so cs-background can be full width, removed at desktop */
    /* 200px - 300px top */
    padding: clamp(12.5rem, 20.82vw, 18.75rem) 1rem 0;
    padding-bottom: 0;
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
  }
  #hero .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: inherit;
    letter-spacing: .1em;
    font-weight: 700;
    /* 8px - 16px */
    margin: 0 0 clamp(0.5rem, 1.5vw, 1rem);
    color: var(--primary);
    display: block;
  }
  #hero .cs-title {
    /* 39px - 61px */
    font-size: clamp(2.1375rem, 6.4vw, 3.8125rem);
    font-weight: 900;
    line-height: 1.2em;
    text-align: inherit;
    /* 17 characters including spaces */
    max-width: 17ch;
    margin: 0 0 1rem 0;
    color: var(--headerColor);
    position: relative;
  }
  #hero .cs-color {
    color: var(--primary);
  }
  #hero .cs-text {
    /* 16px - 20px */
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5em;
    text-align: inherit;
    width: 95%;
    max-width: 40.625rem;
    /* 32px - 40px */
    margin: 0 0 clamp(2rem, 5vw, 2.5rem) 0;
    color: var(--bodyTextColor);
  }
  #hero .cs-button-solid {
    min-width: 15.625rem;
  }
  #hero .cs-background {
    width: 100%;
    height: 106vw;
    max-height: 31.25rem;
    display: block;
    position: relative;
  }
  #hero .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #hero {
    margin-top: 9.375rem;
    /* 120px - 250px top */
    /* 60px - 200px  bottom */
    padding: clamp(7.5rem, 15.82vw, 12.5rem) 1rem clamp(3.75rem, 15.82vw, 12.5rem);
  }
  #hero .cs-container {
    flex-direction: row;
    justify-content: flex-start;
  }
  #hero .cs-content {
    text-align: left;
    /* removed padding and put it on the section */
    width: 45%;
    padding: 0;
    align-items: flex-start;
  }
  #hero .cs-background {
    width: 50%;
    height: auto;
    max-height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #hero .cs-topper,
  body.dark-mode #hero .cs-color {
    color: var(--primaryLight);
  }
  body.dark-mode #hero .cs-title,
  body.dark-mode #hero .cs-text {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #hero .cs-text {
    opacity: .8;
  }
}
/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #services .cs-card-group {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  #services .cs-item {
    list-style: none;
    /* 40px - 64px */
    padding: clamp(2.5rem, 6.3vw, 4rem);
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
    background-color: #EFF1F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: filter .3s;
  }
  #services .cs-item:hover {
    filter: brightness(70%);
  }
  #services .cs-item:nth-of-type(even) {
    background-color: var(--primary);
  }
  #services .cs-item:nth-of-type(even) .cs-link,
  #services .cs-item:nth-of-type(even) .cs-h2 {
    color: #F7F7F7;
  }
  #services .cs-item:nth-of-type(even) .cs-waves {
    display: none;
  }
  #services .cs-picture {
    width: 6.25rem;
    height: 6.25rem;
    margin: 0 0 1.25rem 0;
    background-color: #FDFAF8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #services .cs-icon {
    width: 3.25rem;
    height: auto;
    display: block;
  }
  #services .cs-h2 {
    font-size: 1.5625rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2em;
    /* 20px - 32px */
    margin: 0 0 clamp(1.25rem, 3vw, 2rem);
    color: var(--headerColor);
    display: block;
  }
  #services .cs-link {
    font-size: 1rem;
    line-height: 1.2em;
    font-weight: 700;
    text-decoration: none;
    margin: 0;
    color: #364740;
    display: inline-block;
    position: relative;
  }
  #services .cs-link:before {
    /* underline */
    content: '';
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 1;
    position: absolute;
    display: block;
    bottom: -1px;
    left: 0;
  }
  #services .cs-waves {
    width: 100%;
    height: 100%;
    opacity: .5;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    /* prevents the mouse from interacting with it */
    pointer-events: none;
    /* makes it act like a background images */
    object-fit: cover;
    z-index: -1;
  }
}
/* Tablet - 650px */
@media only screen and (min-width: 40.625rem) {
  #services .cs-card-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #services .cs-item {
    width: 50%;
  }
  #services .cs-item:nth-of-type(3) {
    order: 4;
  }
}
/* Small Desktop - 1200px */
@media only screen and (min-width: 75rem) {
  #services .cs-item {
    width: 25%;
  }
  #services .cs-item:nth-of-type(3) {
    order: initial;
  }
}
