﻿/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  color-scheme: light;

  --white-color:                  #ffffff;
  --primary-color:                #315f7f;
  --secondary-color:              #1688a8;
  --accent-color:                 #8ed9e8;
  --section-bg-color:             #f4fbfd;
  --dark-color:                   #102f49;
  --p-color:                      #496277;
  --soft-shadow-color:            rgba(16, 47, 73, 0.14);

  --body-font-family:             'DM Sans', sans-serif;

  --h1-font-size:                 60px;
  --h2-font-size:                 42px;
  --h3-font-size:                 36px;
  --h4-font-size:                 32px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  18px;
  --menu-font-size:               14px;
  --copyright-text-font-size:     16px;

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-bold:             700;
}

body {
  background: var(--white-color);
  font-family: var(--body-font-family); 
}

main {
  position: relative;
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
}

h1 {
  font-size: var(--h1-font-size);
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
  line-height: inherit;
}

h4 {
  font-size: var(--h4-font-size);
  line-height: inherit;
}

h5 {
  font-size: var(--h5-font-size);
  line-height: normal;
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white-color);
}

.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

.custom-border-radius {
  border-radius: 20px;
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.small-title {
  text-transform: uppercase;
}

.text-warning {
  color: var(--accent-color) !important;
}

.text-danger {
  color: var(--secondary-color) !important;
}

/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 100px;
  color: var(--white-color);
  font-size: var(--copyright-text-font-size);
  font-weight: var(--font-weight-bold);
  padding: 12px 24px;
  box-shadow: 0 12px 28px var(--soft-shadow-color);
}

.custom-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  transform: translateY(-1px);
}

/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.site-masthead {
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 1020;
}

.navbar {
  z-index: 9;
  right: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(142, 217, 232, 0.45);
  box-shadow: 0 16px 40px rgba(16, 47, 73, 0.12) !important;
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}

.navbar-brand {
  align-items: flex-end;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  display: inline-flex;
  gap: 13px;
  line-height: 1.05;
  max-width: min(560px, 72vw);
  min-width: 0;
  white-space: normal;
}

.navbar-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: auto;
  margin-bottom: 0.03em;
  opacity: 0.7;
  width: clamp(64px, 5.8vw, 86px);
}

.navbar-brand-text {
  display: inline-block;
  min-width: 0;
}

.navbar-nav {
  gap: 14px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 25px;
  padding-left: 25px;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 999px;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
  background: rgba(142, 217, 232, 0.18);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus-visible {
  outline: 3px solid rgba(22, 136, 168, 0.82);
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}

.breadcrumb-item.active {
  color: var(--primary-color);
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
  background: linear-gradient(90deg, rgba(16, 47, 73, 0.96), rgba(49, 95, 127, 0.88));
  backdrop-filter: saturate(135%) blur(12px);
  -webkit-backdrop-filter: saturate(135%) blur(12px);
  border-bottom: 2px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(16, 47, 73, 0.2);
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  z-index: 10;
}

.site-header .container {
  padding: 0 18px;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 34px;
}

.topbar-actions,
.topbar-link {
  align-items: center;
  display: flex;
}

.topbar-actions {
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.topbar-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white-color);
  gap: 10px;
  line-height: 1;
  min-height: 34px;
  padding: 6px 13px;
  white-space: nowrap;
}

.topbar-link:hover,
.topbar-link:focus {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white-color);
}

.topbar-email {
  padding-inline: 11px;
}

.topbar-email-text {
  font-size: 0.92em;
}

.site-header-icon {
  color: var(--white-color);
  opacity: 0.95;
}

/*---------------------------------------
  HERO              
-----------------------------------------*/
.hero {
  position: relative;
  height: clamp(390px, 50vh, 505px);
}

.carousel {
  padding-right: 0;
  padding-left: 0;
}

.hero-carousel,
.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-image-wrap::before {
  content: "";
  background: linear-gradient(90deg, rgba(16, 47, 73, 0.76), rgba(16, 47, 73, 0.3) 48%, rgba(16, 47, 73, 0.08) 100%);
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.68;
}

.carousel-caption {
  z-index: 9;
  top: 60%;
  bottom: 0;
  left: 0;
  text-align: left;
  width: min(920px, 72%);
  margin-right: 12px;
  margin-left: 12px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62), 0 1px 3px rgba(0, 0, 0, 0.68);
}

.carousel-caption h1,
.carousel-caption h2 {
  color: var(--white-color);
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.08;
}

.carousel-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin-left: auto;
}

.carousel-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control-next, 
.carousel-control-prev {
  top: auto;
  bottom: 50px;
  opacity: 1;
}

.carousel-control-prev {
  left: auto;
  right: 70px;
}

.carousel-control-next-icon, 
.carousel-control-prev-icon {
  width: 56px;
  height: 56px;
}


/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  background: var(--dark-color);
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-footer .copyright-text {
  color: var(--white-color);
  font-size: var(--copyright-text-font-size);
}

.footer-contact-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  text-align: center;
}

.footer-contact-line a {
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
}

.footer-contact-line a:hover,
.footer-contact-line a:focus {
  color: var(--accent-color);
}

.mobile-call-cta {
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(102, 187, 212, 0.34);
  bottom: 0;
  box-sizing: border-box;
  box-shadow: 0 -10px 26px rgba(16, 47, 73, 0.16);
  color: var(--dark-color);
  display: none;
  font-weight: var(--font-weight-bold);
  gap: 12px;
  justify-content: center;
  left: 0;
  line-height: 1.2;
  min-height: calc(52px + env(safe-area-inset-bottom));
  padding: 6px 22px;
  position: fixed;
  right: 0;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 1040;
}

.mobile-call-cta:hover,
.mobile-call-cta:focus {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 -12px 30px rgba(16, 47, 73, 0.2);
  color: var(--primary-color);
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .site-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar-link {
    font-size: 14px;
    gap: 8px;
    min-height: 32px;
    padding: 6px 10px;
  }

  .navbar-brand {
    font-size: 24px;
    gap: 8px;
    max-width: 360px;
  }

  .navbar-brand-logo {
    width: 64px;
  }

  .navbar-nav {
    gap: 4px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero {
    height: clamp(450px, 52vh, 505px);
  }

  .trust-panel {
    gap: 18px;
    grid-template-columns: minmax(130px, 160px) minmax(0, 1fr) minmax(190px, 220px);
    padding: 16px 18px;
  }

  .trust-bbb-link {
    min-height: 74px;
  }

  .trust-copy h2 {
    font-size: 24px;
  }

  .trust-copy p {
    font-size: 15px;
    line-height: 1.55;
  }

  .trust-points > * {
    font-size: 13px;
    padding: 8px 10px;
  }

  .trust-actions {
    min-width: 190px;
  }

  .carousel-caption {
    top: 54%;
    width: min(860px, 70%);
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 48px;
    line-height: 1.1;
  }

}

@media screen and (max-width: 1199px) {
  .trust-points > :last-child {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .custom-btn {
    font-size: var(--copyright-text-font-size);
    padding: 8px 16px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-nav .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(142, 217, 232, 0.5);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(16, 47, 73, 0.14);
    margin-top: 16px;
    padding: 10px;
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
  }

  .navbar-brand {
    max-width: calc(100% - 70px);
  }

  .site-header .container {
    padding: 0 14px;
  }

  .topbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .topbar-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 0;
    width: 100%;
  }

  .topbar-link {
    justify-content: center;
    min-width: 0;
    padding: 9px 10px;
  }

  .topbar-email-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carousel-caption {
    width: calc(100% - 24px);
    top: 42%;
  }

  .trust-section .container,
  .hero .container.position-relative {
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
  }

  .hero .container.position-relative {
    padding-left: 0;
    padding-right: 0;
  }

  .trust-section {
    padding: 14px 0 0;
  }

  .trust-panel {
    gap: 14px;
    grid-template-columns: minmax(160px, 184px) minmax(0, 1fr);
    padding: 16px 14px;
  }

  .trust-actions {
    flex-direction: row;
    grid-column: 1 / -1;
    min-width: 0;
  }

  .trust-actions > * {
    flex: 1 1 0;
  }

  .trust-copy h2 {
    font-size: 22px;
  }

  .chd-project-showcase {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .chd-project-showcase-intro {
    margin-bottom: 22px;
  }

  .chd-project-card figcaption span {
    font-size: 18px;
  }

  .about-thumb {
    padding: 30px;
  }

  .about-image {
    height: auto;
    margin-bottom: 24px;
  }

  .contact-container-wrap {
    padding: 44px 0 54px;
  }

  .site-footer {
    text-align: center;
  }
}

@media screen and (max-width: 640px) {
  .service-jump-list,
  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .service-card > .service-card-image-link img {
    height: 220px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero {
    height: 560px;
  }

  .carousel-caption {
    top: 55%;
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 38px;
    line-height: 1.1;
  }

  .carousel-control-next,
  .carousel-control-prev {
    bottom: 24px;
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    height: 48px;
    width: 48px;
  }

}

@media screen and (max-width: 767px) {
  .legacy-content-intro h2 {
    font-size: 34px;
    line-height: 1.14;
  }

  .legacy-content-body h2 {
    font-size: 31px;
    line-height: 1.18;
  }

  .legacy-content-body h3 {
    font-size: 27px;
    line-height: 1.22;
  }

  .legacy-content-body .legacy-service-summary {
    font-size: 16px;
    line-height: 1.52;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  .legacy-content-intro h2 {
    font-size: 30px;
    line-height: 1.14;
  }

  .legacy-content-body h2 {
    font-size: 28px;
    line-height: 1.18;
  }

  .legacy-content-body h3 {
    font-size: 24px;
    line-height: 1.22;
  }

  .legacy-content-body .legacy-service-summary {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 22px;
    padding: 12px 14px;
  }

  .legacy-content-body .legacy-image-caption {
    font-size: 14px;
    line-height: 1.42;
    margin: 16px 0 7px;
  }

  h4 {
    font-size: 24px;
  }

  h5 {
    font-size: 20px;
  }

  .contact-icon {
    font-size: 24px;
  }

  .site-header p {
    font-size: 14px;
  }

  .site-header .container {
    padding: 0 14px;
  }

  .topbar-actions {
    grid-template-columns: 44px 1fr 1fr;
  }

  .topbar-email {
    padding-inline: 0;
  }

  .topbar-email-text {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .topbar-link {
    font-size: 13px;
    gap: 6px;
    line-height: 1.15;
    min-height: 38px;
    text-align: center;
    white-space: normal;
  }

  .navbar-brand {
    font-size: 20px;
    gap: 8px;
    max-width: calc(100% - 58px);
  }

  .navbar-brand-logo {
    width: 50px;
  }

  .hero {
    min-height: 460px;
  }

  .carousel-caption {
    top: 50%;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .carousel-control-next, 
  .carousel-control-prev {
    bottom: 20px;
  }

  .carousel-control-next-icon, 
  .carousel-control-prev-icon {
    width: 44px;
    height: 44px;
  }

  .carousel-control-prev {
    right: 60px;
  }

  .trust-section {
    padding: 10px 0 0;
  }

  .trust-panel {
    border-left: 0;
    border-top: 3px solid rgba(22, 136, 168, 0.68);
    gap: 6px 8px;
    grid-template-columns: clamp(126px, 38vw, 150px) minmax(0, 1fr);
    padding: 8px 8px 12px;
  }

  .trust-badge-wrap {
    align-self: center;
  }

  .trust-bbb-link {
    max-width: clamp(132px, 40vw, 156px);
    min-height: 44px;
  }

  .trust-bbb-seal {
    max-width: clamp(128px, 39vw, 152px);
  }

  .trust-copy {
    text-align: left;
  }

  .trust-copy h2 {
    font-size: clamp(16px, 4.6vw, 18px);
    line-height: 1.18;
    margin-bottom: 4px;
  }

  .trust-copy p {
    display: none;
  }

  .trust-points {
    display: none;
  }

  .trust-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
  }

  .trust-call-btn {
    flex: 1 1 150px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.15;
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: normal;
  }

  .trust-review-link,
  .trust-services-link {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(49, 95, 127, 0.18);
    flex: 0 1 108px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.15;
    min-height: 44px;
    padding: 8px 12px;
  }

  .nav-tabs .nav-link {
    margin-right: 0;
    margin-left: 0;
    padding: 15px;
  }

  .contact-info {
    padding: 24px 22px 26px;
  }

  .contact-info h4:first-child {
    font-size: 24px;
    line-height: 1.22;
    margin-bottom: 22px !important;
  }

  .contact-direct-line {
    margin-bottom: 10px !important;
  }

  .contact-direct-line a {
    gap: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .contact-direct-line h4,
  .contact-direct-line h5 {
    line-height: 1.2;
  }

  .contact-direct-line a,
  .contact-info h4 a,
  .contact-info h5 a {
    font-size: clamp(18px, 5.1vw, 22px);
  }

  .contact-info p {
    font-size: 16px;
    line-height: 1.45;
    margin-top: 20px !important;
  }

  .site-footer-wrap {
    flex-direction: column;
  }

  .site-footer {
    padding-bottom: 78px;
    padding-top: 24px;
  }

  .copyright-text {
    padding-bottom: 10px;
  }

  .footer-contact-line {
    align-items: center;
    flex-direction: column;
    font-size: 16px !important;
    gap: 6px;
    line-height: 1.35;
  }

  .footer-contact-line span {
    display: none;
  }

  .mobile-call-cta {
    display: flex;
  }

  .chd-project-showcase {
    padding-top: 38px;
  }

  .chd-project-showcase-intro,
  .chd-project-showcase-track {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chd-project-showcase-track {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .chd-project-card figcaption {
    padding: 16px;
  }
}

@media screen and (max-width: 360px) {
  html,
  body {
    overflow-x: hidden;
  }

  .topbar-actions {
    gap: 5px;
    grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr);
  }

  .topbar-link {
    font-size: 11px;
    padding: 7px 5px;
  }

  .topbar-link:not(.topbar-email) {
    gap: 0;
  }

  .topbar-link:not(.topbar-email) .site-header-icon {
    display: none;
  }

  .navbar-brand {
    font-size: 18px;
    gap: 7px;
  }

  .navbar-brand-logo {
    width: 46px;
  }

  .hero {
    min-height: 480px;
  }

  .trust-panel {
    gap: 6px;
    padding: 8px 8px 10px;
  }

  .trust-copy .small-title {
    font-size: 12px;
  }

  .trust-copy h2 {
    font-size: 15px;
    line-height: 1.15;
  }

  .footer-contact-line a {
    overflow-wrap: anywhere;
  }

  .before-after-divider::before,
  .before-after-divider::after {
    font-size: 18px;
    height: 30px;
    width: 24px;
  }

  .before-after-divider::after {
    left: calc(100% + 4px);
  }

  .before-after-divider::before {
    right: calc(100% + 4px);
  }

  .trust-call-btn,
  .trust-review-link,
  .trust-services-link {
    font-size: 14px;
    min-height: 44px;
  }

  .carousel-caption {
    top: 52%;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 27px;
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    height: 38px;
    width: 38px;
  }

  .carousel-control-prev {
    right: 50px;
  }
}

@media screen and (max-width: 767px) {
  .trust-section {
    left: auto;
    padding: 10px 0 12px;
    position: relative;
    right: auto;
    top: auto;
    z-index: auto;
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-carousel,
  .carousel-inner,
  .carousel-item {
    height: auto;
  }

  .carousel-caption {
    align-items: center;
    background: var(--dark-color);
    bottom: auto;
    box-sizing: border-box;
    left: auto;
    margin: 0;
    max-width: none;
    padding: 18px 14px 20px;
    position: relative;
    right: auto;
    text-shadow: none;
    text-align: center;
    top: auto;
    width: 100%;
  }

  .carousel-caption .small-title,
  .carousel-caption h1,
  .carousel-caption h2 {
    width: 100%;
  }

  .carousel-caption .small-title {
    color: var(--accent-color);
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    color: var(--white-color);
  }

  .carousel-image-wrap {
    bottom: auto;
    height: auto;
    position: relative;
    right: auto;
    top: auto;
  }

  .carousel-image-wrap::before {
    opacity: 0;
  }

  .carousel-image {
    display: block;
    height: auto;
    object-fit: contain;
  }

  .carousel-control-next,
  .carousel-control-prev {
    bottom: 8px;
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    height: 32px;
    width: 32px;
  }

  .carousel-control-prev {
    right: 46px;
  }

}

@media screen and (max-width: 480px) {
  .carousel-caption {
    margin: 0;
    max-width: none;
    padding: 18px 16px 22px;
    width: 100%;
  }
}

@media screen and (min-width: 992px) {
  .trust-license-claim {
    display: inline;
  }
}

/*---------------------------------------
  HERO ABOVE TRUST PANEL
-----------------------------------------*/
body.chd-hero-trust-layout .hero,
body.chd-hero-trust-layout .hero-carousel,
body.chd-hero-trust-layout .hero-carousel .carousel-inner,
body.chd-hero-trust-layout .hero-carousel .carousel-item {
  height: auto;
  min-height: 0;
}

body.chd-hero-trust-layout .hero-carousel .carousel-item {
  position: relative;
}

body.chd-hero-trust-layout .trust-section {
  position: relative;
  z-index: auto;
}

body.chd-hero-trust-layout .hero .container.position-relative {
  bottom: 0;
  left: 0;
  max-width: none;
  padding: 0;
  position: absolute !important;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 3;
}

body.chd-hero-trust-layout .carousel-caption {
  align-items: flex-start;
  background: transparent;
  bottom: 0;
  box-sizing: border-box;
  left: 0;
  margin: 0;
  padding: clamp(10px, 2vw, 28px);
  right: 0;
  text-align: left;
  text-shadow: -1px 2px 5px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 0, 0, 0.28);
  top: auto;
  transform: none;
  width: min(920px, 100%);
}

body.chd-hero-trust-layout .carousel-caption .small-title {
  color: var(--white-color);
  font-size: clamp(9px, 1.2vw, 16px);
}

body.chd-hero-trust-layout .carousel-caption h1,
body.chd-hero-trust-layout .carousel-caption h2 {
  font-size: clamp(21px, 4.2vw, 58px);
  line-height: 1.04;
}

body.chd-hero-trust-layout .carousel-image-wrap {
  bottom: auto;
  height: auto;
  position: relative;
  right: auto;
  top: auto;
}

body.chd-hero-trust-layout .carousel-image-wrap::before {
  background: transparent;
  opacity: 0;
}

body.chd-hero-trust-layout .carousel-image {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

body.chd-hero-trust-layout .carousel-control-next,
body.chd-hero-trust-layout .carousel-control-prev {
  bottom: auto;
  top: clamp(10px, 1.5vw, 22px);
  z-index: 4;
}

body.chd-hero-trust-layout .carousel-control-next {
  left: auto;
  right: clamp(10px, 1.5vw, 22px);
}

body.chd-hero-trust-layout .carousel-control-prev {
  left: auto;
  right: clamp(70px, 6vw, 90px);
}

/* At this width the 1650 by 384 pilot image renders below roughly 175px high. */
@media screen and (max-width: 750px) {
  body.chd-hero-trust-layout .carousel-caption,
  body.chd-hero-trust-layout .carousel-control-next,
  body.chd-hero-trust-layout .carousel-control-prev {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  body.chd-hero-trust-layout .trust-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 0;
  }

  body.chd-hero-trust-layout .trust-call-btn,
  body.chd-hero-trust-layout .trust-services-link {
    box-sizing: border-box;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
}


/*---------------------------------------
  FORCED COLOR GUARDS
-----------------------------------------*/
@media (forced-colors: active) {
  :root {
    color-scheme: light dark;
  }

  body,
  .navbar,
  .site-header,
  .trust-panel,
  .chd-project-showcase,
  .chd-project-card,
  .chd-project-card figcaption,
  .migration-content-section,
  .migration-content-card,
  .migration-sidebar-card,
  .migration-page-cta,
  .services,
  .nav-tabs .nav-link,
  .contact-container-wrap,
  .site-footer,
  .mobile-call-cta {
    background: Canvas !important;
    border-color: CanvasText !important;
    box-shadow: none !important;
    color: CanvasText !important;
  }

  body::before,
  .trust-panel::before,
  .trust-panel::after,
  .chd-project-card::before,
  .chd-project-card::after,
  .migration-content-card::before,
  .migration-content-card::after,
  .migration-sidebar-card::before,
  .migration-sidebar-card::after,
  .migration-page-cta::after {
    display: none !important;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  .navbar-brand,
  .navbar-nav .nav-link,
  .trust-copy h2,
  .trust-copy p,
  .trust-points > *,
  .chd-project-card figcaption span,
  .chd-project-card figcaption small {
    color: CanvasText !important;
  }

  a,
  .text-danger,
  .small-title {
    color: LinkText !important;
  }

  .custom-btn,
  .trust-call-btn,
  .trust-review-link,
  .trust-services-link,
  .about-card-btn {
    background: ButtonFace !important;
    border: 1px solid ButtonText !important;
    color: ButtonText !important;
  }

  .navbar-toggler .navbar-toggler-icon,
  .navbar-toggler .navbar-toggler-icon::before,
  .navbar-toggler .navbar-toggler-icon::after {
    background: ButtonText !important;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent !important;
  }

  .carousel-image-wrap::before {
    background: Canvas !important;
    opacity: 0.5;
  }

  img,
  svg {
    forced-color-adjust: none;
  }
}
