:root {
  --brand: #5ebfbc;
  --brand-dark: #236b68;
  --brand-strong: #183b3a;
  --brand-soft: #effafa;
  --aqua: #d7efee;
  --aqua-light: #f7fbfb;
  --ink: #1d3233;
  --muted: #5a7071;
  --line: #dde9e8;
  --surface: #f8fbfb;
  --white: #ffffff;
  --yellow: #ffcc00;
  --yellow-soft: #fff8d6;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: #fbfcfc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

img {
  display: block;
}

a {
  color: var(--brand-dark);
}

a:hover,
a:focus {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.13;
  margin: 0 0 16px;
}

h1 {
  max-width: 760px;
  font-size: 48px;
  letter-spacing: 0;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 20px;
}

p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.contact-strip {
  padding: 7px 0;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.contact-strip a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.site-navbar {
  background: var(--white);
}

.navbar-collapse {
  justify-content: flex-end;
}

.brand-logo {
  width: 210px;
  height: auto;
}

.nav-link {
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--brand-dark);
  background: var(--surface);
  text-decoration: none;
}

.navbar-toggler {
  border-color: var(--line);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 58px;
  background: var(--white);
}

.hero-section::before {
  display: none;
}

.hero-section .container {
  position: relative;
}

.hero-lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 20px;
}

.home-carousel {
  position: relative;
  width: 100%;
  background: var(--surface);
}

.carousel-slides {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
}

.hero-slide.is-active {
  display: flex;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 35%, rgba(255, 255, 255, 0.18) 64%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1140px) / 2));
  padding: 36px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-left: 6px solid var(--yellow);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(30, 76, 74, 0.16);
}

.slider-controls {
  position: absolute;
  bottom: 32px;
  left: max(24px, calc((100vw - 1140px) / 2));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
}

.slider-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
  background: var(--white);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.slider-button:hover,
.slider-button:focus {
  color: var(--brand-strong);
  background: var(--yellow);
  outline: 3px solid var(--aqua);
}

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  background: #cbdedd;
  border: 0;
  border-radius: 999px;
}

.slider-dot.is-active {
  background: var(--yellow);
}

.hero-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn {
  border-radius: 10px;
}

.btn-primary {
  color: var(--brand-strong);
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--brand-strong);
  background: #e6b800;
  border-color: #e6b800;
}

.btn-outline-primary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--brand);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: var(--brand);
}

.care-board {
  display: grid;
  gap: 14px;
}

.care-board > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.care-board span {
  grid-row: span 2;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 12px;
  font-weight: 900;
}

.care-board strong,
.info-tile strong {
  color: var(--ink);
  font-size: 18px;
}

.care-board p,
.info-tile p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 74px 0;
}

.section.tight {
  padding: 46px 0;
}

.section.surface {
  background: var(--surface);
}

.editorial-section {
  background: var(--white);
}

.section-title {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-title.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.lead {
  color: var(--muted);
  font-size: 19px;
}

.editorial-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.editorial-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.info-tile,
.service-card,
.team-card,
.post-card,
.contact-panel,
.notice,
.value-box {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.info-tile,
.service-card,
.contact-panel,
.notice,
.value-box {
  padding: 24px;
}

.info-tile {
  border-left: 4px solid var(--yellow);
}

.service-card {
  border-top: 4px solid var(--brand);
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.service-index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--brand-strong);
  background: var(--yellow);
  border-radius: 12px;
  font-weight: 800;
}

.service-card h3,
.value-box h3 {
  color: var(--brand-dark);
}

.split-section {
  background: var(--white);
}

.cta-section {
  padding: 58px 0;
  background: var(--brand);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--brand-strong);
}

.cta-panel h2 {
  max-width: 780px;
  margin-bottom: 10px;
  color: var(--brand-strong);
}

.cta-panel p {
  max-width: 720px;
  margin-bottom: 0;
}

.cta-panel .eyebrow {
  color: var(--brand-strong);
}

.feature-image,
.post-article img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.feature-image {
  max-height: 500px;
}

.team-card,
.post-card {
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-info {
  padding: 18px;
}

.team-info h3 {
  min-height: 46px;
  margin-bottom: 8px;
  font-size: 18px;
}

.team-info p {
  margin: 0;
  color: var(--muted);
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.post-card-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

.meta {
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  padding: 76px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: 180px;
  height: 90px;
  background: var(--yellow-soft);
  border-radius: 90px 90px 0 0;
  opacity: 0.78;
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.contact-stack {
  display: grid;
  gap: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  color: var(--brand-dark);
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-search {
  position: relative;
  margin-left: 10px;
}

.search-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
}

.search-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(45deg);
  content: "";
}

.search-toggle:hover,
.search-toggle:focus {
  background: var(--surface);
  outline: 3px solid var(--aqua);
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: min(430px, calc(100vw - 32px));
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c7dcdb;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
}

.search-input:focus {
  outline: 3px solid var(--aqua);
  border-color: var(--brand);
}

.search-submit {
  border: 1px solid var(--brand-dark);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--white);
  background: var(--brand-dark);
  font: inherit;
  font-weight: 700;
}

.search-results {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.search-results p {
  margin: 0;
}

.search-results ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results li {
  display: grid;
  gap: 2px;
}

.search-results a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.search-results a:hover,
.search-results a:focus {
  text-decoration: underline;
}

.search-results span {
  color: var(--muted);
}

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.post-article {
  max-width: 840px;
  margin: 0 auto;
}

.post-article img {
  max-height: 460px;
  margin-bottom: 28px;
}

.site-footer {
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  color: var(--ink);
  font-size: 18px;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.footer-logo {
  width: 210px;
  height: auto;
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.insurance {
  max-width: 170px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.copyright {
  padding: 16px 0;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 991px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-section {
    padding: 0 0 54px;
  }

  .carousel-slides,
  .hero-slide {
    min-height: 620px;
  }

  .hero-slide::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.16) 100%);
  }

  .hero-copy {
    width: min(560px, calc(100% - 32px));
    margin-left: 16px;
    padding: 28px;
  }

  .slider-controls {
    bottom: 22px;
    left: 16px;
  }

  .hero-summary {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .navbar-collapse {
    padding-top: 12px;
  }

  .nav-link {
    padding: 10px 12px;
  }

  .nav-search {
    margin-top: 8px;
    margin-left: 0;
  }

  .search-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  .brand-logo,
  .footer-logo {
    width: 184px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .hero-lead,
  .lead,
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .slider-controls {
    bottom: 16px;
    left: 14px;
    justify-content: center;
  }

  .carousel-slides,
  .hero-slide {
    min-height: 640px;
  }

  .hero-copy {
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
    padding: 22px;
    border-radius: 14px;
  }

  .slider-button {
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 58px 0;
  }

  .page-hero::after {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active {
    animation: fadeSlide 280ms ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide.is-active {
    animation: none;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
