/*-- -------------------------- -->
<---            Hero            -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #centred-hero {
    padding: var(--sectionPadding);
    background-color: var(--bodyTextColorWhite);
    padding-top: 225px;
    position: relative;
    z-index: 1;
  }
  #centred-hero .cs-container {
    width: 100%;
    max-width: 44rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  #centred-hero .cs-content {
    text-align: center;
    width: 100%;
    max-width: 32.625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #centred-hero .cs-title {
    /* 31px - 61px */
    font-size: clamp(2.4375rem, 5vw, 3.8125rem);
  }
  #centred-hero .cs-text {
    margin-bottom: 1.25rem;
  }
  #centred-hero .cs-button-solid {
    font-size: 1rem;
    font-weight: 700;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-align: center;
    text-decoration: none;
    min-width: 9.375rem;
    margin: 0;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    padding: 0 clamp(2rem, 4vw, 3rem);
    background-color: var(--primary);
    overflow: hidden;
    color: #fff;
    border: none;
    display: inline-block;
    position: relative;
    z-index: 1;
  }
  #centred-hero .cs-button-solid:before {
    content: "";
    width: 0%;
    height: 100%;
    background: #000;
    opacity: 1;
    border-radius: 0.25rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #centred-hero .cs-button-solid:hover:before {
    width: 100%;
  }
  #centred-hero .cs-reviews {
    text-align: center;
    margin-top: clamp(2.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  #centred-hero .cs-reviews-flex {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  #centred-hero .cs-reviews-img {
    width: 3rem;
    height: auto;
    margin: 0 -1rem 0 0;
    border: 1px solid #fff;
    border-radius: 50%;
  }
  #centred-hero .cs-reviews-number {
    font-size: 1rem;
    font-weight: 700;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #centred-hero .cs-flex {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  #centred-hero .cs-rating {
    font-size: clamp(1.25rem, 2.5vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.2em;
    margin: 0;
    color: var(--headerColor);
  }
  #centred-hero .cs-rating-icon {
    width: 1rem;
    height: auto;
    margin: 0 0.25rem;
  }
  #centred-hero .cs-reviews-text {
    font-size: clamp(0.875rem, 1.75vw, 1rem);
    line-height: 1.5em;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #centred-hero .cs-image-group {
    font-size: min(2.3vw, 1rem);
    width: 39.375em;
    height: 43.125em;
    position: relative;
    z-index: 1;
  }
  #centred-hero .cs-picture {
    width: 19.0625em;
    height: 37.5em;
    margin: 0;
    overflow: hidden;
    border-radius: 37.5em;
    display: block;
    position: absolute;
    top: 0.75em;
    left: 0;
    z-index: 1;
  }
  #centred-hero .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #centred-hero .cs-icon {
    width: 12.6875em;
    height: auto;
    position: absolute;
    top: 0;
    left: 13.125em;
  }
  #centred-hero .cs-right {
    bottom: 0;
    top: auto;
    left: auto;
    right: 0;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #centred-hero .cs-content .cs-title {
    font-size: 49px;
  }
  #centred-hero .cs-reviews {
    text-align: left;
    flex-direction: row;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #centred-hero .cs-container {
    max-width: 80rem;
    flex-direction: row;
    align-items: stretch;
  }
  #centred-hero .cs-content {
    text-align: left;
    /* 48px - 80px */
    padding: clamp(3rem, 6vw, 5rem) 0;
    align-items: flex-start;
    align-self: center;
  }
  #centred-hero .cs-image-group {
    font-size: min(1.12vw, 1rem);
    height: auto;
    min-height: 43.125em;
    flex: none;
  }
  #centred-hero .cs-left {
    height: auto;
    top: 0.75em;
    bottom: 4.875em;
  }
  #centred-hero .cs-right {
    height: auto;
    top: 5.625em;
    bottom: 0em;
  }
}
/*-- -------------------------- -->
<---          Services          -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #four-card {
    padding: var(--sectionPadding);
    /* removing the side paddings to allow the cards to fit the whole page width */
    padding-right: 0;
    padding-left: 0;
    position: relative;
  }
  #four-card .cs-container {
    width: 100%;
    max-width: 156.25rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #four-card .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 80rem;
    box-sizing: border-box;
    /* 16px - 40px */
    padding: 0 clamp(1rem, 3.8vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
    /* 16px - 32px */
    gap: clamp(1rem, 4vw, 2rem);
  }
  #four-card .cs-title {
    max-width: 100%;
    margin: 0;
  }
  #four-card .cs-text {
    max-width: 39.5rem;
  }
  #four-card .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
  }
  #four-card .cs-item {
    width: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
  }
  #four-card .cs-picture {
    width: 100%;
    max-height: 21.25rem;
    display: block;
    overflow: hidden;
  }
  #four-card .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  #four-card .cs-details {
    margin: 0 auto;
    /* 68px - 144px top & bottom, 24px - 32px sides*/
    padding: clamp(4.25rem, 10vw, 9rem) clamp(1.5rem, 2vw, 2rem);
    /* prevents padding from affecting height and width */
    box-sizing: border-box;
  }
  #four-card .cs-tag {
    /* 13px - 16px */
    font-size: clamp(0.8125rem, 2vw, 1rem);
    font-weight: 700;
    line-height: 1.2em;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
    color: #1a1a1a;
    display: block;
  }
  #four-card .cs-h3 {
    /* 25px - 31px */
    font-size: clamp(1.5625rem, 3vw, 1.9375rem);
    font-weight: 700;
    line-height: 1.2em;
    margin: 0 0 1rem;
    color: var(--bodyTextColor);
  }
  #four-card .cs-item-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5em;
    margin: 0;
    color: var(--bodyTextColor);
  }
  #four-card .cs-strong {
    color: var(--bodyTextColor);
    position: relative;
    top: 12px;
    font-weight: bold;
  }
  #four-card .cs-link {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2em;
    text-decoration: none;
    width: 100%;
    margin: 1.5rem 0 0;
    color: var(--primary);
    display: flex;
    gap: 0.25rem;
  }
  #four-card .cs-link:hover img {
    transform: translateX(0.25rem);
  }
  #four-card .cs-link img {
    transition: transform 0.3s;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 37.5rem) {
  #four-card .cs-content {
    flex-direction: row;
    align-items: flex-end;
  }
  #four-card .cs-item {
    flex-direction: row;
    align-items: center;
  }
  #four-card .cs-item:nth-of-type(1) .cs-details,
  #four-card .cs-item:nth-of-type(3) .cs-details {
    order: 1;
  }
  #four-card .cs-item:nth-of-type(1) .cs-picture,
  #four-card .cs-item:nth-of-type(3) .cs-picture {
    order: 2;
  }
  #four-card .cs-details {
    width: 50%;
  }
  #four-card .cs-picture {
    width: 50%;
  }
  #four-card .cs-picture {
    height: 100%;
    max-height: none;
  }
}
/* Large Desktop - 1300px */
@media only screen and (min-width: 64rem) {
  #four-card .cs-card-group {
    grid-template-columns: repeat(2, 1fr);
  }
  #four-card .cs-item:nth-of-type(1) .cs-details,
  #four-card .cs-item:nth-of-type(2) .cs-details {
    order: 1;
  }
  #four-card .cs-item:nth-of-type(1) .cs-picture,
  #four-card .cs-item:nth-of-type(2) .cs-picture {
    order: 2;
  }
  #four-card .cs-item:nth-of-type(3) .cs-details {
    order: 2;
  }
  #four-card .cs-item:nth-of-type(3) .cs-picture {
    order: 1;
  }
}
/*-- -------------------------- -->
<---         Services           -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #why-choose-us {
    padding: var(--sectionPadding);
    background-color: #f9f9f9;
  }
  #why-choose-us .cs-container {
    width: 100%;
    /* changes to 1280px at Tablet */
    max-width: 49rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #why-choose-us .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;
  }
  #why-choose-us .cs-title {
    /* max width of 22 characters, includes spaces between words */
    max-width: 39ch;
  }
  #why-choose-us .cs-text {
    max-width: 66.5rem;
  }
  #why-choose-us .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }
  #why-choose-us .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }
  #why-choose-us .cs-button-solid:hover:before {
    width: 100%;
  }
  #why-choose-us .cs-card-group {
    width: 100%;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  #why-choose-us .cs-item {
    text-align: center;
    list-style: none;
    width: 100%;
    max-width: 31.25rem;
    border-radius: 1rem;
    background-color: #fff;
    overflow: hidden;
    grid-column: span 3;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s, transform 0.3s;
  }
  #why-choose-us .cs-item:hover {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transform: translateY(-0.4375rem);
  }
  #why-choose-us .cs-item:hover .cs-picture img {
    opacity: 0.3;
    transform: scale(1.1);
  }
  #why-choose-us .cs-item:hover .cs-h3 {
    color: var(--primary);
  }
  #why-choose-us .cs-item:before {
    /* border, done in pseudo so it can sit under the picture */
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    border: 1px solid #e8e8e8;
    /* prevents border from affecting height and width */
    box-sizing: border-box;
    background: transparent;
    opacity: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #why-choose-us .cs-link {
    text-decoration: none;
    padding: 0 0 1.25rem 0;
    display: block;
  }
  #why-choose-us .cs-picture {
    width: 100%;
    height: 12.5rem;
    margin-bottom: 1.25rem;
    background-color: var(--primaryLight);
    /* clips the img tag corners */
    overflow: hidden;
    display: block;
    position: relative;
    z-index: 10;
  }
  #why-choose-us .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s, opacity 0.3s;
  }
  #why-choose-us .cs-h3 {
    font-size: 1.25rem;
    text-align: inherit;
    line-height: 1.2em;
    font-weight: 700;
    color: var(--headerColor);
    margin: 0 0 0.75rem 0;
    /* 16px - 24px */
    padding: 0 clamp(1rem, 2vw, 1.5rem);
    transition: color 0.3s;
  }
  #why-choose-us .cs-item-text {
    /* 14px - 16px  */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-align: inherit;
    line-height: 1.5em;
    color: var(--bodyTextColor);
    margin: 0;
    padding: 0 1.25rem;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #why-choose-us .cs-container {
    max-width: 80rem;
  }
  #why-choose-us .cs-item {
    grid-column: span 1;
    max-width: 28.875rem;
  }
}
