@media (min-width: 1200px) and (max-width: 1600px) {
  .case-stack .case-study {
    padding: 40px 0;
  }

  .case-study h3 {
    margin-bottom: 32px;
  }

  .case-study .stat-block .h4-style {
    font-size: 20px;
  }
}

@media (max-width: 1600px) {

  h1,
  .h1-style {
    font-size: 48px;
  }

  p {
    font-size: 18px;
  }

  h3,
  .h3-style {
    font-size: 28px;
  }

  .stat-number {
    font-size: 48px;
  }

  .insight-impact-row ul li {
    font-size: 16px;
  }

  .subtitle {
    font-size: 16px;
  }

  .promise-title {
    font-size: 36px;
  }

  .we-aim-section h2 {
    font-size: 36px;
  }

  .testimonial-slide blockquote {
    font-size: 24px;
  }

  .pill-tag {
    font-size: 16px;
    margin: 0px 10px 10px 0px;
  }

  .case-study .stat-number {
    font-size: 48px;
  }

  .banner-section {
    padding: 190px 0px 130px;
  }
}

@media (max-width: 1200px) {

  h1,
  .h1-style {
    font-size: 48px;
  }

  h2,
  .h2-style {
    font-size: 36px;
  }

  h3,
  .h3-style {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  .stat-number {
    font-size: 48px;
  }

  .why-care-section h2 {
    font-size: 36px;
  }

  .why-care-section p {
    font-size: 16px;
  }

  .care-cards {
    --bs-gutter-x: 30px;
    margin-bottom: 30px;
  }

  .banner-section .cta-wrap {
    margin-top: 43px;
  }

  .bfa-strip {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.35fr) auto;
  }

  .bfa-strip .content h3 {
    font-size: 24px;
  }

  .bfa-strip .content p {
    font-size: 16px;
    line-height: 22px;
  }

  .bfa-strip .content {
    padding: 30px 16px 30px 16px;
    width: calc(100% + 80px);
  }

  .service-grid {
    --bs-gutter-x: 50px;
    --bs-gutter-y: 50px;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  /* .care-cards.row>* {
    flex: 0 0 auto;
    width: 33.3333333%;
    --bs-gutter-y: 25px;
  } */

  .care-cards {
    padding: 0 25px;
  }

  .feature-card {
    padding: 25px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {

  .insight-impact-row ul li {
    break-inside: avoid;
    margin-bottom: 14px;
  }

  .care-cards.row {
    justify-content: center;
  }

}

@media (min-width: 768px) and (max-width: 991px) {
  .care-cards .col:last-child:nth-child(odd) {
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 991px) {

  .pt-130 {
    padding-top: 100px;
  }

  .pb-130 {
    padding-bottom: 100px;
  }

  .pt-100 {
    padding-top: 80px;
  }

  .pb-100 {
    padding-bottom: 80px;
  }

  .pt-80 {
    padding-top: 60px;
  }

  .pb-80 {
    padding-bottom: 60px;
  }

  .logo-desk {
    display: none;
  }

  .logo-mob {
    display: flex;
  }

  .navbar-wrapper.scrolled,
  .navbar-wrapper {
    top: 15px;
  }

  .logo-strip div {
    width: 50%;
  }

  .trusted-strip>div,
  .awards-strip>div {
    flex: 0 0 50%;
    width: 50%;
  }

  .trusted-strip .logo-slider-track>div {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-right: 30px;
    padding-left: 30px;
  }

  .awards-strip .logo-slider-track>div {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-right: 35px;
    padding-left: 35px;
  }

  .trusted-strip,
  .awards-strip {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  .cta-wrap {
    justify-content: center;
  }

  .logo-strip::before,
  .logo-strip::after {
    width: 55px;
  }

  .cta-btn {
    max-width: none;
  }

  .care-cards {
    --bs-gutter-y: 50px;
  }

  .feature-card {
    padding: 32px 40px;
  }

  .feature-icon {
    margin-bottom: 20px;
  }

  .logo-swiper {
    position: relative;
    overflow: hidden;
  }

  .swiper.logo-swiper .swiper-wrapper {
    align-items: center;
  }

  .logo-swiper .swiper-slide img {
    max-width: 90px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* Left fade */
  .logo-swiper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    bottom: 0;
    width: 146px;
    min-height: 106px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(90deg, #212121 0%, rgba(33, 33, 33, 0) 100%);
  }

  /* Right fade */
  .logo-swiper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    bottom: 0;
    width: 146px;
    min-height: 106px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(270deg, #212121 0%, rgba(33, 33, 33, 0) 100%);
  }


  .why-choose-section {
    background: radial-gradient(119.99% 54.27% at 50% 138.63%, #00D5BB 30%, #1D1D1D 88%);
    padding-top: 83px;
  }

  .we-aim-section a.cta-btn {
    margin-top: 45px;
  }

  .promise-section {
    padding: 100px 0 132px;
  }

  .subtitle {
    margin-bottom: 17px;
  }

  .promise-title {
    margin-bottom: 30px;
  }

  .cta-btn,
  .promise-section .cta-btn {
    max-width: fit-content;
  }

  .care-cards {
    margin-top: 93px;
  }

  .why-care-section br,
  .trusted-section br,
  .recognition-section br,
  .impact-section br {
    display: block;
  }

  .why-care-section .row {
    gap: 65px;
  }

  .why-care-section .img-fluid {
    width: 100%;
  }

  .impact-section .container-lg {
    --bs-gutter-x: 90px;
  }

  .impact-section ul li {
    gap: 12px;
  }

  .we-aim-section h2 {
    letter-spacing: -1.08px;
  }

  .service-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 34px;
  }

  .testimonial-slide {
    min-height: 250px;
    padding: 0 10px;
  }

  .testimonial-slide blockquote {
    margin-bottom: 35px;
  }

  .testimonial-prev {
    left: 8px;
  }

  .testimonial-next {
    right: 8px;
  }

  .testimonial-swiper {
    padding-bottom: 80px;
  }

  .testimonial-prev,
  .testimonial-next {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .testimonial-prev {
    left: calc(50% - 70px);
  }

  .testimonial-next {
    right: calc(50% - 70px);
  }

  .testimonial-quote-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 35px;
  }

  .testimonial-quote-icon img {
    width: 18px;
    height: 18px;
  }

  .service-card {
    height: 436px;
  }

  .case-stack .case-study {
    padding: 76px 0px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--grey);
    position: inherit;
  }

  .case-stack .case-study .responsive-background {
    position: inherit;
  }

  .case-stack .case-study .responsive-background::before {
    content: "";
    background: linear-gradient(180deg, #212121 0%, rgba(33, 33, 33, 0) 38%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .case-study::before {
    background:
      linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal) 38%, rgba(29, 29, 29, .99) 38%, rgba(29, 29, 29, 0) 55%);
  }

  /* On mobile the artwork is a second, full-bleed panel below the copy.
     Keeping the picture in flow lets the mobile source retain its complete
     composition instead of being cropped to fill the text area. */
  .case-study .container {
    order: 1;
    width: 100%;
  }

  .case-study .responsive-background {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: auto;
    /* Let the artwork rise behind the final metrics for a blended transition. */
    margin-top: -80px;
    z-index: 0;
  }

  .case-study .responsive-background img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .case-study .stat-block {
    flex: 0 0 100%;
    width: 100%;
    padding-left: 18px;
  }

  .case-study .row.g-4.ms-1.stats-row {
    flex-wrap: wrap;
    gap: 16px;
    width: auto;
  }

  .case-study .stats-row>.stat-block {
    flex: 0 0 100%;
    width: 100%;
  }

  .carebase-franchise .stat-block {
    height: 70px;
  }

  .service-card .service-text {
    padding: 28px 16px;
  }

  .service-card .service-text br {
    display: none;
  }

  .glass-navbar .cta-wrap {
    display: none;
  }

  .navbar-brand {
    margin: 0 auto;
  }

  .banner-section {
    text-align: center;
    padding: 150px 80px 80px;
    background: radial-gradient(165.4% 122.63% at 175.19% -15.55%, #00D5BB 0%, #1D1D1D 100%);
  }

  .banner-section .h3-style {
    margin: 11px auto;
    width: 75%;
    font-size: 24px;
    letter-spacing: -0.48px;
    font-weight: 400;
  }

  .contact-section {
    padding: 300px 0px 65px;
    background: var(--charcoal);
  }

  .contact-form-card {
    padding: 22px;
  }

  .contact-section footer {
    margin-top: 58px;
  }

  footer div.container-lg {
    justify-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
  }

  footer>div.d-flex {
    display: grid !important;
  }

  .contact-section::before {
    background: linear-gradient(180deg, rgba(33, 33, 33, 0.28) 16.9%, rgba(33, 33, 33, 0.28) 38.34%, #00D5BB 102.64%);
  }

  .contact-section .responsive-background img {
    height: 100%;
  }

  .service-grid {
    --bs-gutter-x: 30px;
  }

}

@media (max-width: 576px) {
  .banner-section .container-lg {
    --bs-gutter-x: 36px;
  }

  .bfa-strip {
    display: block;
    position: relative;
    aspect-ratio: 300 / 472;
    min-height: 420px;
    background: var(--turquoise);
  }

  .bfa-strip .content {
    position: relative;
    z-index: 2;
    padding: 30px 16px;
  }

  .bfa-strip .content h3 {
    font-size: 21px;
    letter-spacing: -0.7px;
    margin-bottom: 10px;
  }

  .bfa-strip .content p {
    max-width: 290px;
    font-size: 16px;
    line-height: 1.45;
  }

  .bfa-strip-image {
    position: absolute;
    inset: 0;
    display: block;
  }

  .bfa-strip-image img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 17%, #000 45%, #000 69%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 17%, #000 45%, #000 69%, transparent 96%);
  }

  .bfa-strip-logo {
    position: absolute;
    z-index: 2;
    width: 96px;
    height: auto;
    bottom: 16px;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }

  .banner-section {
    padding: 130px 0px 80px;
  }

  .case-stack .case-study {
    padding: 76px 0 0;
  }

  .cta-btn,
  .promise-section .cta-btn {
    max-width: none;
  }

  .case-study .responsive-background {
    margin-top: -110px;
  }

  .case-study::before {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal) 55%, rgba(29, 29, 29, 0.99) 55%, rgba(29, 29, 29, 0) 75%);
  }

  .testimonial-section {
    background: radial-gradient(92.64% 90.57% at 50.03% 151.39%, #00D5BB 0%, #1D1D1D 100%);
  }

  .trusted-logo-section .container-lg {
    --bs-gutter-x: 0px;
  }
  .care-cards {
    margin-top: 40px;
  }
}

@media (max-width: 420px) {
  .case-study::before {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal) 60%, rgba(29, 29, 29, 0.99) 60%, rgba(29, 29, 29, 0) 75%);
  }
}


@media (min-width: 992px) {

  footer div.container-lg {
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;

  }
}

/* ==========================================================================
   GRAVITY FORMS & SELECT2 RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 767px) {
  .acquisition-wrap {
    padding-bottom: 40px;
  }
  .bfa-strip .content {
    width: 100%;
  }

  .contact-form-card {
    padding: 32px 20px !important;
  }

  .contact-form-card .gform_wrapper .gform_fields {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .contact-form-card .gform_wrapper .gfield,
  .contact-form-card .gform_wrapper .gfield--width-half,
  .contact-form-card .gform_wrapper .gfield.gf_left_half,
  .contact-form-card .gform_wrapper .gfield.gf_right_half {
    grid-column: span 1 !important;
  }

  .contact-form-card .gform_button,
  .contact-form-card .gform_footer input[type="submit"],
  .contact-form-card .gform_footer button[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
    background-position: right 24px center !important;
  }
}