.rainbow_about_page,
.rainbow_services_page,
.rainbow_departments_page,
.rainbow_insurance_page,
.rainbow_facilities_page,
.rainbow_appointment_page {
  --rainbow-hero-clearance-desktop: 200px;
  --rainbow-hero-clearance-tablet: 180px;
  --rainbow-hero-clearance-mobile: 96px;
}

/* The appointment hero starts with a centred eyebrow and oversized heading.
   Give that composition a little more breathing room below the fixed header. */
.rainbow_appointment_page {
  --rainbow-hero-clearance-desktop: 228px;
  --rainbow-hero-clearance-tablet: 204px;
  --rainbow-hero-clearance-mobile: 112px;
}

/* The shared header is fixed and therefore sits outside normal document flow.
   Keep the first hero clear of it while retaining a small visual gap. */
.rainbow_about_page .rainbow_about_intro,
.rainbow_services_page .rainbow_services_hero,
.rainbow_departments_page .rainbow_departments_hero,
.rainbow_insurance_page .rainbow_insurance_hero,
.rainbow_facilities_page .rainbow_facilities_hero,
.rainbow_appointment_page .rainbow_appointment_hero {
  padding-top: var(--rainbow-hero-clearance-desktop) !important;
}

.rainbow_synced_header {
  --rainbow-header-blue: #005eb8;
  --rainbow-header-navy: #003087;
  --accent-color: #005eb8;
  --primary-color: #003087;
  width: 100%;
  padding: 0 15px;
}

.rainbow_synced_header > .container-fluid {
  padding: 0;
  filter: drop-shadow(0 18px 35px rgba(3, 54, 78, 0.1));
}

.rainbow_synced_header .cs_top_header {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(112deg, var(--rainbow-header-navy) 0%, var(--rainbow-header-blue) 52%, #0072ce 100%) !important;
}

.rainbow_synced_header .cs_main_header {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(
    120deg,
    rgba(248, 252, 255, 0.96) 0%,
    rgba(226, 242, 252, 0.92) 52%,
    rgba(239, 245, 255, 0.94) 100%
  ) !important;
  box-shadow:
    0 16px 38px rgba(0, 48, 90, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}

.rainbow_synced_header .cs_main_header_in {
  height: 100px;
  min-height: 100px;
}

.rainbow_synced_header .cs_top_header > .container,
.rainbow_synced_header .cs_main_header > .container {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.rainbow_synced_header .cs_site_brand {
  display: inline-flex;
  width: 238px;
  height: 76px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.rainbow_synced_header.cs_style_1 .cs_site_brand img,
.rainbow_synced_header.cs_style_2 .cs_site_brand img,
.rainbow_synced_header .cs_site_brand img {
  width: 224px !important;
  height: auto !important;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.rainbow_synced_header .cs_nav_list > li > a {
  color: #123f57;
}

.rainbow_synced_header .cs_nav_list > li > a:hover,
.rainbow_synced_header .cs_nav_list > li.active > a {
  color: var(--rainbow-header-blue);
}

.rainbow_synced_header .cs_header_btns_wrapper .cs_btn_style_1.cs_accent_bg {
  border: 1px solid rgba(0, 94, 184, 0.28);
  background: linear-gradient(135deg, var(--rainbow-header-navy), var(--rainbow-header-blue) 58%, #087bd0) !important;
  box-shadow: 0 12px 26px rgba(0, 48, 135, 0.18);
}

.rainbow_synced_header .cs_header_btns_wrapper .cs_btn_style_1.cs_accent_bg:hover {
  background: linear-gradient(135deg, #00256a, #0055a6 58%, #006fbd) !important;
}

.rainbow_synced_header .cs_close_nav {
  border: 0;
}

@media (max-width: 1199px) {
  .rainbow_about_page .rainbow_about_intro,
  .rainbow_services_page .rainbow_services_hero,
  .rainbow_departments_page .rainbow_departments_hero,
  .rainbow_insurance_page .rainbow_insurance_hero,
  .rainbow_facilities_page .rainbow_facilities_hero,
  .rainbow_appointment_page .rainbow_appointment_hero {
    padding-top: var(--rainbow-hero-clearance-tablet) !important;
  }

  .rainbow_synced_header .cs_main_header_in {
    height: 80px !important;
    min-height: 80px;
  }

  .rainbow_synced_header .cs_site_brand {
    width: 170px !important;
    height: 58px !important;
  }

  .rainbow_synced_header.cs_style_1 .cs_site_brand img,
  .rainbow_synced_header.cs_style_2 .cs_site_brand img,
  .rainbow_synced_header .cs_site_brand img {
    width: 160px !important;
    height: auto !important;
    max-height: 48px;
  }

  .rainbow_synced_header .cs_nav_list_wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    padding: 60px 15px 30px;
    background: #ffffff;
    transform: scale(0, 0);
    transform-origin: bottom right;
  }

  .rainbow_synced_header .cs_nav_list_wrapper.active {
    transform: scale(1, 1);
    transform-origin: top left;
  }
}

@media (max-width: 767px) {
  .rainbow_about_page .rainbow_about_intro,
  .rainbow_services_page .rainbow_services_hero,
  .rainbow_departments_page .rainbow_departments_hero,
  .rainbow_insurance_page .rainbow_insurance_hero,
  .rainbow_facilities_page .rainbow_facilities_hero,
  .rainbow_appointment_page .rainbow_appointment_hero {
    padding-top: var(--rainbow-hero-clearance-mobile) !important;
  }

  .rainbow_synced_header {
    padding: 0 10px;
  }

  .rainbow_synced_header .cs_top_header {
    display: none;
  }

  .rainbow_synced_header .cs_main_header {
    border-top: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 12px;
  }

  .rainbow_synced_header .cs_main_header_in {
    height: 60px !important;
    min-height: 60px;
  }

  .rainbow_synced_header .cs_site_brand {
    width: 136px !important;
    height: 54px !important;
  }

  .rainbow_synced_header.cs_style_1 .cs_site_brand img,
  .rainbow_synced_header.cs_style_2 .cs_site_brand img,
  .rainbow_synced_header .cs_site_brand img {
    width: 128px !important;
    height: auto !important;
    max-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rainbow_synced_header *,
  .rainbow_synced_header *::before,
  .rainbow_synced_header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
