/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0em) {
  #sbs {
    padding: var(--sectionPadding);
  }
  #sbs .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 2.5rem;
  }
  #sbs .cs-left {
    /* 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 .cs-picture {
    border-radius: 1.5em;
    /* clips img tag corners */
    overflow: hidden;
    position: absolute;
    display: block;
  }
  #sbs .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* makes image act like a background image */
    object-fit: cover;
  }
  #sbs .cs-picture1 {
    width: 32.625em;
    height: 36.3125em;
    left: 0;
    top: 0;
  }
  #sbs .cs-picture2 {
    width: 25.875em;
    height: 25em;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 40px;
    /* 6px - 12px */
    border: clamp(0.375em, 1.5vw, 0.75em) solid #ffffff;
    right: 0;
    bottom: 0;
  }
  #sbs .cs-right {
    margin: auto;
    max-width: 33.875rem;
  }
  #sbs .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
  }
  #sbs .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    text-align: left;
    max-width: 50rem;
    margin: 0 auto 1rem;
    color: var(--headerColor);
    position: relative;
  }
  #sbs .cs-text {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: left;
    width: 100%;
    max-width: 46.875rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    color: var(--bodyTextColor);
  }
  #sbs .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #sbs .cs-flex-group {
    /* 16px - 32px */
    padding: clamp(1rem, 3vw, 2rem);
    background-color: #f7f7f7;
    border-radius: 1rem;
    position: relative;
  }
  #sbs .cs-flex-p {
    /* 14px - 16px */
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.5em;
    margin: 0 0 1rem;
    color: #767676;
  }
  #sbs .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 .cs-job {
    font-size: 0.875rem;
    line-height: 1.5em;
    color: #767676;
    display: block;
  }
  #sbs .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 .button-solid {
    margin-top: 2rem;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64em) {
  #sbs .cs-container {
    flex-flow: row;
    justify-content: space-between;
    gap: 3.25rem;
  }
  #sbs .cs-left {
    font-size: min(1.2vw, 1em);
    flex: none;
  }
  #sbs .cs-right {
    margin: 0;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #sbs .cs-left:before,
  body.dark-mode #sbs .cs-left:after {
    background: var(--accent);
  }
  body.dark-mode #sbs .cs-picture2 {
    background-color: var(--dark);
    /* 6px - 12px */
    border: clamp(0.375em, 1.5vw, 0.75em) solid var(--dark);
  }
  body.dark-mode #sbs .cs-topper {
    color: var(--primaryLight);
  }
  body.dark-mode #sbs .cs-title,
  body.dark-mode #sbs .cs-text,
  body.dark-mode #sbs .cs-h3,
  body.dark-mode #sbs .cs-flex-p,
  body.dark-mode #sbs .cs-name {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #sbs .cs-flex-group {
    background-color: var(--accent);
  }
  body.dark-mode #sbs .cs-job {
    color: var(--bodyTextColorWhite);
    opacity: 0.8;
  }
  body.dark-mode #sbs .cs-quote-icon {
    opacity: 0.2;
  }
}

/*-- -------------------------- -->
<---      Other Services        -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0em) {
  #other-services {
    padding: var(--sectionPadding);
  }
  #other-services .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 5vw, 3rem);
  }
  #other-services .cs-content {
    text-align: center;
  }
  #other-services .cs-topper {
    font-size: var(--topperFontSize);
    line-height: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
  }
  #other-services .cs-title {
    font-size: var(--headerFontSize);
    font-weight: 900;
    line-height: 1.2em;
    margin: 0;
    color: var(--headerColor);
  }
  #other-services .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  #other-services .cs-item {
    list-style: none;
    border: 1px solid #e8e8e8;
    border-radius: 0.5rem;
    transition:
      box-shadow 0.3s,
      transform 0.3s;
  }
  #other-services .cs-item:hover {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 4px 24px;
    transform: translateY(-0.4375rem);
  }
  #other-services .cs-link {
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
  }
  #other-services .cs-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2em;
    margin: 0 0 0.75rem;
    color: var(--headerColor);
  }
  #other-services .cs-item-text {
    font-size: 1rem;
    line-height: 1.5em;
    margin: 0 0 1.25rem;
    color: var(--bodyTextColor);
  }
  #other-services .cs-fake-link {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2em;
    margin-top: auto;
    color: var(--primary);
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48em) {
  #other-services .cs-card-group {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #other-services .cs-item {
    background-color: var(--medium);
    border-color: var(--accent);
  }
  body.dark-mode #other-services .cs-item-text {
    color: var(--bodyTextColorWhite);
    opacity: 0.9;
  }
}

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

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbsr-2289 {
    padding: var(--sectionPadding);
    overflow: hidden;
  }
  #sbsr-2289 .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 36.5rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
  }
  #sbsr-2289 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
    position: relative;
    z-index: 10;
  }
  #sbsr-2289 .cs-text {
    margin-bottom: 1rem;
  }
  #sbsr-2289 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #sbsr-2289 .cs-features {
    width: 100%;
    margin: 0 0 2rem;
    /* 24px - 32px */
    padding: clamp(1.5rem, 4vw, 2rem);
    /* faint gold wash instead of the stock pink */
    background-color: rgba(255, 186, 25, 0.08);
    border-left: 0.25rem solid var(--primary);
    border-radius: 0 0.5rem 0.5rem 0;
  }
  #sbsr-2289 .cs-h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5em;
    margin: 0 0 0.75rem;
    color: var(--headerColor);
  }
  #sbsr-2289 .cs-ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #sbsr-2289 .cs-li {
    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;
  }
  #sbsr-2289 .cs-li::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.5rem;
    background-color: var(--primary);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(45deg);
  }
  /* matches the site-wide button: gold, scale + glow on hover, no dark wipe */
  #sbsr-2289 .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 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    color: #1a1a1a;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }
  #sbsr-2289 .cs-button-solid:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px 4px rgba(255, 186, 25, 0.45);
  }
  #sbsr-2289 .cs-button-solid:active {
    transform: scale(1.02);
    box-shadow: 0 0 16px 2px rgba(255, 186, 25, 0.35);
  }
  #sbsr-2289 .cs-image-group {
    width: 100%;
    height: 126vw;
    max-height: 39.125rem;
    display: block;
    order: -1;
    position: relative;
    z-index: 1;
  }
  #sbsr-2289 .cs-picture {
    /* big background image */
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    display: block;
    position: absolute;
    top: 0;
    bottom: 5.9375rem;
    left: 0;
  }
  #sbsr-2289 .cs-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  #sbsr-2289 .cs-box {
    text-align: left;
    width: 91%;
    max-width: 28.125rem;
    /* prevents padding and border from affecting height and width */
    box-sizing: border-box;
    /* 24px - 32px */
    padding: clamp(1.5rem, 3vw, 2rem);
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(16, 33, 60, 0.12);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    column-gap: 1.5rem;
    row-gap: 0.5rem;
    position: absolute;
    right: 50%;
    bottom: 0;
    z-index: 10;
    transform: translate(50%);
  }
  #sbsr-2289 .cs-number {
    /* 31px - 49px */
    font-size: clamp(1.9375rem, 4vw, 3.0625rem);
    font-weight: 900;
    line-height: 1.2em;
    margin: 0;
    color: var(--primary);
    flex-shrink: 0;
  }
  #sbsr-2289 .cs-heading {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2em;
    margin: 0 0 0.5rem;
    color: var(--headerColor);
  }
  #sbsr-2289 .cs-desc {
    font-size: 1rem;
    line-height: 1.5em;
    color: var(--bodyTextColor);
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #sbsr-2289 .cs-box {
    flex-direction: row;
    align-items: center;
  }
}
/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #sbsr-2289 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
  }
  #sbsr-2289 .cs-content {
    padding-right: 3.25rem;
    /* was 6.75rem — reserved room for the floating box, but that box sits in
       the image column, so this only added dead space under the button */
    padding-bottom: 0;
  }
  /* The stock min-height forced this column taller than its content, leaving
     a large gap under the photo whenever the text side was shorter.
     No min-height — that held this column taller than its content and the
     surplus showed as dead space below the section. Stretching to the row
     means the photo matches the text column exactly. */
  #sbsr-2289 .cs-image-group {
    /* the mobile rule sets height:126vw AND max-height:39.125rem — both must
       be cleared here or the column is capped and the surplus row height
       shows as dead space under the section */
    height: auto;
    max-height: none;
    align-self: stretch;
    order: initial;
  }
  /* the photo runs the full column height; the stat card overlaps its lower
     edge rather than sitting in empty space beneath it */
  #sbsr-2289 .cs-picture {
    bottom: 0;
  }
  #sbsr-2289 .cs-box {
    bottom: 1.5rem;
    right: 1.5rem;
    transform: none;
    width: auto;
    max-width: 24rem;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #sbsr-2289 .cs-features {
    background-color: rgba(255, 186, 25, 0.1);
  }
  body.dark-mode #sbsr-2289 .cs-h3,
  body.dark-mode #sbsr-2289 .cs-heading {
    color: #fff;
  }
  body.dark-mode #sbsr-2289 .cs-li,
  body.dark-mode #sbsr-2289 .cs-desc {
    color: var(--bodyTextColorWhite);
  }
  body.dark-mode #sbsr-2289 .cs-box {
    background-color: var(--medium);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/*-- -------------------------- -->
<---           Stats            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #stats-1229 {
    padding: var(--sectionPadding);
    background-color: #f6f8fa;
    position: relative;
    z-index: 1;
  }
  #stats-1229 .cs-container {
    /* changes to 1280px at desktop */
    max-width: 36.5rem;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #stats-1229 .cs-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  #stats-1229 .cs-flex {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }
  #stats-1229 .cs-title {
    max-width: 20ch;
  }
  #stats-1229 .cs-card-group {
    width: 100%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* 16px - 20px */
    gap: clamp(1rem, 2vw, 1.25rem);
  }
  #stats-1229 .cs-item {
    list-style: none;
    width: 100%;
    /* 16px - 40px top & bottom, 16px - 32px left & right */
    padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
    /* prevents padding and border from affecting height and width */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    gap: 0.75rem;
    /* clips cs-icon overflowing */
    overflow: hidden;
    grid-column: span 6;
  }
  /* the source icons are black — recolor to brand gold */
  #stats-1229 .cs-icon {
    /* 32px - 40px */
    width: clamp(2rem, 3vw, 2.5rem);
    height: auto;
    margin: 0;
    flex: none;
    filter: brightness(0) saturate(100%) invert(72%) sepia(63%) saturate(1000%)
      hue-rotate(358deg) brightness(103%) contrast(103%);
  }
  #stats-1229 .cs-h3 {
    /* 16px - 25px */
    font-size: clamp(1rem, 2vw, 1.5625rem);
    line-height: 1.2em;
    font-weight: 900;
    width: 100%;
    margin: 0;
    color: var(--headerColor);
    /* wraps longer words on the smallest screen sizes */
    overflow-wrap: break-word;
  }
  #stats-1229 .cs-stat-group {
    width: 100%;
    margin: auto;
    padding: 0;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(6, 1fr);
  }
  #stats-1229 .cs-stat {
    list-style: none;
    margin: 0;
    /* 16px - 40px */
    padding: clamp(1rem, 3vw, 2.5rem) 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    grid-column: span 2;
  }
  /* divider between stats */
  #stats-1229 .cs-stat:before {
    content: "";
    width: 2px;
    height: 100%;
    background: linear-gradient(
      0deg,
      rgba(72, 72, 72, 0) 0%,
      rgba(72, 72, 72, 0.35) 50%,
      rgba(72, 72, 72, 0) 100%
    );
    position: absolute;
    top: 0;
    right: 0;
  }
  #stats-1229 .cs-stat:nth-of-type(3):before,
  #stats-1229 .cs-stat:nth-of-type(5):before {
    content: none;
  }
  #stats-1229 .cs-stat:nth-of-type(4),
  #stats-1229 .cs-stat:nth-of-type(5) {
    grid-column: span 3;
  }
  #stats-1229 .cs-desc {
    font-size: var(--bodyFontSize);
    line-height: 1.5em;
    text-align: center;
    /* keeps the description from overflowing onto the border: 88px - 176px */
    width: clamp(5.5rem, 20vw, 11rem);
    margin-bottom: 0.5rem;
    color: #858585;
    display: block;
  }
  #stats-1229 .cs-number {
    /* 25px - 49px */
    font-size: clamp(1.5625rem, 3vw, 3.0625rem);
    line-height: 1.2em;
    font-weight: 900;
    margin: 0;
    color: var(--primary);
    display: block;
  }
}
/* Tablet - 650px */
@media only screen and (min-width: 40.625rem) {
  #stats-1229 .cs-container {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #stats-1229 .cs-card-group {
    display: grid;
    /* makes all grid items stretch to equal height */
    align-items: stretch;
    grid-template-columns: repeat(2, 1fr);
  }
  #stats-1229 .cs-item {
    grid-column: span 1;
    flex-direction: row;
    align-items: center;
  }
  #stats-1229 .cs-stat-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* Small Desktop - 1024px */
@media only screen and (min-width: 64rem) {
  #stats-1229 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  #stats-1229 .cs-content {
    flex-direction: row;
    align-items: center;
  }
  #stats-1229 .cs-title,
  #stats-1229 .cs-text {
    max-width: none;
  }
  #stats-1229 .cs-card-group {
    width: 50%;
    /* prevents flexbox from squishing it */
    flex: none;
  }
  #stats-1229 .cs-stat-group {
    max-width: 80rem;
    grid-template-columns: repeat(5, 1fr);
  }
  #stats-1229 .cs-stat,
  #stats-1229 .cs-stat:nth-of-type(4),
  #stats-1229 .cs-stat:nth-of-type(5) {
    grid-column: span 1;
  }
  #stats-1229 .cs-stat:nth-of-type(3):before {
    content: "";
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #stats-1229 {
    background-color: #0b2a3f;
  }
  body.dark-mode #stats-1229 .cs-item {
    background-color: var(--medium);
    border-color: rgba(255, 255, 255, 0.12);
  }
  body.dark-mode #stats-1229 .cs-h3 {
    color: #fff;
  }
  body.dark-mode #stats-1229 .cs-desc {
    color: var(--bodyTextColorWhite);
    opacity: 0.75;
  }
  body.dark-mode #stats-1229 .cs-stat:before {
    background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}
