html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-size: 1.18rem;
}

body.rsr-modal-open {
  overflow: hidden;
}

.rsr-main {
  margin-block-start: 0;
}

.rsr-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  margin-block-start: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(64, 165, 173, 0.16);
  box-shadow: 0 14px 34px rgba(6, 22, 22, 0.08);
  backdrop-filter: blur(12px);
}

.rsr-header-inner {
  min-height: 84px;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
}

.rsr-logo img,
.rsr-footer-logo img {
  height: auto;
  display: block;
}

.rsr-primary-nav a {
  position: relative;
  font-size: 1.08rem;
  font-weight: 700;
  color: #173f42;
}

.rsr-primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: #40a5ad;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.rsr-primary-nav a:hover,
.rsr-primary-nav .current-menu-item a {
  color: #1d777d;
}

.rsr-primary-nav a:hover::after,
.rsr-primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.rsr-header-cta .wp-block-button__link {
  white-space: nowrap;
}

.rsr-section {
  margin-block-start: 0;
  padding: clamp(2.4rem, 4vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.rsr-eyebrow {
  margin-bottom: 0.75rem;
  color: #1d777d;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rsr-hero {
  margin-block-start: 0;
}

.rsr-hero .wp-block-cover__image-background {
  transition: opacity 450ms ease;
}

.rsr-hero.is-fading .wp-block-cover__image-background {
  opacity: 0.3;
}

.rsr-hero .wp-block-cover__inner-container {
  position: relative;
  width: min(1400px, calc(100% - 2rem));
}

.rsr-hero h1 {
  color: #ffffff;
  max-width: 760px;
}

.rsr-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
}

.rsr-hero .rsr-eyebrow {
  color: #c3e0e2;
}

.rsr-page-hero .rsr-hero-kicker {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.rsr-hero-grid {
  gap: clamp(2rem, 6vw, 6rem);
}

.rsr-hero-slider-sources {
  display: none !important;
}

.editor-styles-wrapper .rsr-hero-slider-sources {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}

.rsr-hero-slider-controls {
  position: absolute;
  left: 50%;
  bottom: -2.4rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transform: translateX(-50%);
}

.rsr-slider-arrow,
.rsr-slider-dots button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #061616;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.rsr-slider-arrow {
  font-size: 1.5rem;
  font-weight: 800;
}

.rsr-slider-dots {
  display: flex;
  gap: 0.45rem;
}

.rsr-slider-dots button {
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  font-size: 0;
  background: rgba(255, 255, 255, 0.6);
}

.rsr-slider-dots button[aria-current="true"] {
  width: 34px;
  background: #ffffff;
}

.rsr-referral-card,
.rsr-form-card {
  border-radius: 8px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  color: #173f42;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.rsr-referral-card h2 {
  font-size: clamp(1.8rem, 1.25rem + 1vw, 2.55rem);
}

.rsr-referral-card .rsr-eyebrow {
  color: #061616;
  font-size: clamp(1.45rem, 1.1rem + 0.9vw, 2rem);
  font-family: Nunito, Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
}

.rsr-referral-card h2,
.rsr-referral-card p,
.rsr-form-card h2,
.rsr-form-card p {
  color: #173f42;
}

.rsr-outline-light .wp-block-button__link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.rsr-outline-light .wp-block-button__link:hover {
  color: #061616;
  background: #ffffff;
  border-color: #ffffff;
}

.rsr-cta-strip .rsr-outline-light .wp-block-button__link {
  color: #173f42;
  border-color: #40a5ad;
}

.rsr-cta-strip .rsr-outline-light .wp-block-button__link:hover {
  color: #ffffff;
  background: #173f42;
  border-color: #173f42;
}

.rsr-about-story {
  background: linear-gradient(180deg, #f7fbfb 0%, #eef8f8 100%);
}

.rsr-about-story .rsr-lift-panel {
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
}

.rsr-about-story .rsr-story-grid,
.rsr-services .rsr-services-intro,
.rsr-why .rsr-why-grid {
  box-sizing: border-box;
  padding: clamp(1.6rem, 3.6vw, 3rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(64, 165, 173, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 63, 66, 0.1);
}

.rsr-about-story .rsr-story-grid > .wp-block-column,
.rsr-services .rsr-services-intro > .wp-block-column,
.rsr-why .rsr-why-grid > .wp-block-column {
  min-width: 0;
}

.rsr-why .rsr-rounded-image,
.rsr-services .rsr-wide-image,
.rsr-about-story .rsr-rounded-image {
  margin: 0;
}

.rsr-alt-section {
  background: #ffffff;
}

.rsr-lift-panel,
.rsr-section > .wp-block-columns,
.rsr-form-card,
.rsr-map-card,
.rsr-region-card,
.rsr-testimonial-grid blockquote {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.rsr-lift-panel {
  padding: clamp(1rem, 2.6vw, 1.7rem);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(64, 165, 173, 0.14);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 63, 66, 0.1);
}

.rsr-lift-panel:hover,
.rsr-section > .wp-block-columns:hover,
.rsr-form-card:hover,
.rsr-map-card:hover,
.rsr-region-card:hover,
.rsr-testimonial-grid blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 76px rgba(23, 63, 66, 0.16);
}

.rsr-story-grid,
.rsr-services-intro,
.rsr-why-grid,
.rsr-contact-grid {
  gap: clamp(2rem, 5vw, 5rem);
}

.rsr-rounded-image img,
.rsr-wide-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(23, 63, 66, 0.14);
}

.rsr-rounded-image img {
  aspect-ratio: 4 / 5;
}

.rsr-wide-image img {
  aspect-ratio: 16 / 10;
}

.rsr-services {
  background: #ffffff;
}

.rsr-service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.rsr-service-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  color: #173f42;
  text-decoration: none;
  background: #f7fbfb;
  border: 1px solid #d8ecee;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.rsr-service-card:hover,
.rsr-service-card:focus-visible {
  transform: translateY(-4px);
  border-color: #40a5ad;
  box-shadow: 0 20px 42px rgba(23, 63, 66, 0.12);
}

.rsr-service-card span {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  background: #40a5ad;
  border-radius: 999px;
}

.rsr-service-card strong {
  color: #061616;
  font-size: 1.18rem;
  line-height: 1.25;
}

.rsr-service-card em {
  color: #46696d;
  font-style: normal;
  line-height: 1.5;
}

.rsr-why {
  background: linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
}

.rsr-team-section,
.rsr-map-section {
  color: #173f42;
  background: #f7fbfb;
}

.rsr-team-section h2,
.rsr-map-section h2,
.rsr-team-section h3,
.rsr-map-section h3 {
  color: #061616;
}

.rsr-team-section .rsr-narrow,
.rsr-map-section .rsr-narrow {
  color: #46696d;
}

.rsr-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.rsr-feature-card {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #d8ecee;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(23, 63, 66, 0.08);
}

.rsr-feature-card svg {
  width: 36px;
  height: 36px;
  margin-bottom: 0.65rem;
  fill: none;
  stroke: #40a5ad;
  stroke-width: 2;
}

.rsr-feature-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #061616;
}

.rsr-feature-card p {
  margin: 0;
  color: #46696d;
  font-size: 1rem;
  line-height: 1.45;
}

.rsr-narrow {
  max-width: 760px;
  margin-inline: auto;
}

.rsr-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.rsr-team-card {
  padding: 1.2rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d8ecee;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rsr-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.rsr-team-card button {
  position: relative;
  width: 150px;
  height: 150px;
  padding: 0;
  margin: 0 auto 1rem;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  cursor: pointer;
}

.rsr-team-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.rsr-team-card button span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.45rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(6, 22, 22, 0.78);
  transform: translateY(100%);
  transition: transform 180ms ease;
}

.rsr-team-card button:hover span,
.rsr-team-card button:focus-visible span {
  transform: translateY(0);
}

.rsr-team-card h3 {
  margin: 0;
  color: #061616;
  font-size: 1.18rem;
}

.rsr-team-card p {
  margin: 0.25rem 0 0;
  color: #1d777d;
  font-weight: 700;
}

.rsr-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 1.2rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.rsr-map-card,
.rsr-region-card {
  padding: 1.25rem;
  color: #173f42;
  background: #ffffff;
  border-radius: 8px;
}

.rsr-map {
  min-height: 430px;
  display: grid;
  place-items: center;
  color: #173f42;
  background: #d8ecee;
  border-radius: 8px;
  overflow: hidden;
}

.rsr-map-credit {
  margin: 0.75rem 0 0;
  color: #666666;
  font-size: 0.98rem;
}

.rsr-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0;
}

.rsr-chip-grid span {
  padding: 0.65rem 0.8rem;
  color: #173f42;
  font-weight: 800;
  background: #c3e0e2;
  border-radius: 999px;
}

.rsr-dark-callout {
  padding: 1.1rem;
  color: #ffffff;
  background: #061616;
  border-radius: 8px;
}

.rsr-dark-callout p {
  color: rgba(255, 255, 255, 0.82);
}

.rsr-dark-callout a {
  color: #ffffff;
  font-weight: 800;
}

.rsr-testimonials {
  background: #40a5ad;
}

.rsr-testimonials h2,
.rsr-testimonials .rsr-eyebrow {
  color: #ffffff;
}

.rsr-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.rsr-testimonial-grid blockquote {
  margin: 0;
  padding: 1.25rem;
  color: #173f42;
  background: #ffffff;
  border-radius: 8px;
}

.rsr-stars {
  display: flex;
  gap: 0.18rem;
  margin-bottom: 0.8rem;
}

.rsr-stars svg {
  width: 18px;
  height: 18px;
  fill: #40a5ad;
}

.rsr-testimonial-grid cite {
  display: block;
  margin-top: 1rem;
  color: #061616;
  font-style: normal;
  font-weight: 800;
}

.rsr-cta-strip {
  margin-block-start: 0;
  padding: clamp(2.4rem, 4vw, 4rem) clamp(1rem, 4vw, 2rem);
  color: #173f42;
  background: #eef8f8;
}

.rsr-cta-strip h2,
.rsr-cta-strip p {
  color: #173f42;
}

.rsr-page-hero {
  margin-block-start: 0;
}

.rsr-contact-page,
.rsr-referral-page {
  min-height: 70vh;
  background: #f7fbfb;
}

.rsr-form-card {
  box-shadow: 0 24px 64px rgba(23, 63, 66, 0.14);
}

.rsr-form-note {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  color: #315f63;
  background: #eef8f8;
  border-left: 4px solid #40a5ad;
  border-radius: 8px;
}

.rsr-form-note p {
  margin: 0;
}

.rsr-step-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.rsr-footer {
  margin-block-start: 0;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) 1.5rem;
  color: #ffffff;
  background: #40a5ad;
}

.rsr-footer h3,
.rsr-footer p,
.rsr-footer a,
.rsr-footer li {
  color: #ffffff;
}

.rsr-footer-grid {
  gap: 2rem;
}

.rsr-footer-links {
  padding-left: 1rem;
}

.rsr-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rsr-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

.rsr-socials a:hover,
.rsr-socials a:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.rsr-socials svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.rsr-copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.rsr-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rsr-modal.is-open {
  display: flex;
}

.rsr-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.rsr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(82vh, 820px);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: #173f42;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.rsr-team-modal .rsr-modal__dialog {
  width: min(820px, 100%);
}

.rsr-modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  background: #061616;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.rsr-modal__portrait {
  width: 140px;
  height: 140px;
  display: block;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 5px solid #c3e0e2;
  border-radius: 999px;
}

.leaflet-container {
  font-family: Inter, system-ui, sans-serif;
}

.rsr-anchor-wrap {
  scroll-margin-top: 104px;
}

.editor-styles-wrapper .rsr-modal {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  padding: 1rem 0;
}

.editor-styles-wrapper .rsr-modal__overlay {
  display: none;
}

.editor-styles-wrapper .rsr-modal__dialog {
  max-height: none;
  box-shadow: 0 12px 34px rgba(23, 63, 66, 0.12);
}

@media (max-width: 1180px) {
  .rsr-header-inner {
    flex-wrap: wrap !important;
  }

  .rsr-service-list,
  .rsr-testimonial-grid,
  .rsr-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rsr-header-cta {
    display: none;
  }

  .rsr-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    height: 100vh;
    padding: 1.25rem;
    background: #ffffff;
    border-left: 1px solid #d8ecee;
    box-shadow: -24px 0 70px rgba(6, 22, 22, 0.22);
    animation: rsr-slide-panel 220ms ease both;
  }

  .rsr-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: flex-start;
    padding-top: 3.5rem;
  }

  .rsr-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0.35rem;
  }

  .rsr-primary-nav .wp-block-navigation__responsive-container.is-menu-open a {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.1rem;
  }

  .rsr-primary-nav .wp-block-navigation__responsive-container-close {
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #061616;
    border-radius: 999px;
  }

  .rsr-hero {
    min-height: 680px !important;
  }

  .rsr-team-grid,
  .rsr-map-layout {
    grid-template-columns: 1fr;
  }
}

@keyframes rsr-slide-panel {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .rsr-header-inner {
    min-height: 72px;
  }

  .rsr-logo img {
    width: 170px !important;
  }

  .rsr-section {
    padding: 2.4rem 1rem;
  }

  .rsr-hero {
    min-height: 760px !important;
  }

  .rsr-hero h1 {
    font-size: clamp(2.4rem, 14vw, 3.5rem) !important;
  }

  .rsr-hero-slider-controls {
    bottom: -1.7rem;
    gap: 0.55rem;
  }

  .rsr-slider-arrow {
    min-width: 40px;
    min-height: 40px;
  }

  .rsr-referral-card {
    margin-top: 1rem;
  }

  .rsr-service-list,
  .rsr-team-grid,
  .rsr-testimonial-grid,
  .rsr-feature-grid {
    grid-template-columns: 1fr;
  }

  .rsr-service-card {
    min-height: auto;
  }

  .rsr-map {
    min-height: 340px;
  }

  .rsr-modal__dialog {
    max-height: 88vh;
  }
}

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