.home-care {
  padding: 64px 24px;
  background: #f8f8f6;
}

/* Share the gap with adjacent sections instead of doubling their padding. */
.services:has(+ .home-care),
.services-list:has(+ .home-care) { padding-bottom: 64px; }
.services-list:has(+ .home-care) .service-detail:last-child { margin-bottom: 0; }
.home-care + .getting-started,
.home-care + .faq { padding-top: 64px; }

.home-care-inner { max-width: 1000px; margin: 0 auto; }

.home-care-band {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 24px;
  background: #1f2d37;
}

.home-care-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 22%;
}

.home-care-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #1f2d37 0%, #1f2d37 38%, rgba(31,45,55,.9) 46%, rgba(31,45,55,.55) 56%, rgba(31,45,55,.12) 72%, rgba(31,45,55,0) 86%),
    linear-gradient(0deg, rgba(31,45,55,.55) 0%, rgba(31,45,55,0) 40%);
}

.home-care-copy {
  box-sizing: content-box;
  position: relative;
  max-width: 520px;
  padding: 64px 56px 120px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-care .home-care-eyebrow {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-care h2 {
  margin: 0;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.home-care .home-care-intro {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.6;
}

.home-care-diagnoses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-care-diagnoses li {
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  .home-care-diagnoses li {
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
  }
  .home-care-diagnoses li:hover {
    background: rgba(255,255,255,.17);
    border-color: rgba(255,255,255,.8);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-care-diagnoses li { transition: none; }
  .home-care-diagnoses li:hover { transform: none; }
}

.home-care-topics {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title call" "list list";
  margin: -72px 40px 0;
  padding: 30px 36px 32px;
  border: 1px solid #e6e2da;
  border-radius: 20px;
  background: #fff;
}

.home-care-topics h3 {
  grid-area: title;
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e2da;
  color: #1c2e3d;
  font-family: "Newsreader", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.home-care-call {
  grid-area: call;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin: 0;
  padding: 0 0 22px 24px;
  border-bottom: 1px solid #e6e2da;
  color: #55606a;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.home-care-call a {
  color: #275878;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-care-call a:focus-visible { outline: 2px solid #275878; outline-offset: 4px; }

.home-care-topic-columns {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.home-care-topic-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-care-topic-column + .home-care-topic-column { border-left: 1px solid #e6e2da; padding-left: 20px; }
.home-care-topic-column li { display: flex; align-items: center; gap: 10px; color: #3b4852; font-size: 15px; line-height: 1.4; }
.home-care-topic-column span { white-space: nowrap; }
.home-care-topic-column svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #275878; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Keep the full topic names readable at tablet widths. */
@media (min-width: 761px) and (max-width: 1047px) {
  .home-care-topics { margin-right: 24px; margin-left: 24px; padding-right: 24px; padding-left: 24px; }
}

@media (min-width: 761px) and (max-width: 989px) {
  .home-care-topic-columns { grid-template-columns: 1fr; gap: 14px; }
  .home-care-topic-column + .home-care-topic-column { border-left: 0; padding-left: 0; }
}

@media (max-width: 760px) {
  .home-care { padding: 40px 0; }
  .services:has(+ .home-care),
  .services-list:has(+ .home-care) { padding-bottom: 40px; }
  .home-care + .getting-started,
  .home-care + .faq { padding-top: 40px; }
  .home-care-band { min-height: 0; border-radius: 0; }
  .home-care-photo { position: static; display: block; width: 100%; height: 300px; object-position: 60% 18%; }
  .home-care-overlay { background: linear-gradient(0deg, #1f2d37 0%, #1f2d37 calc(100% - 300px), rgba(31,45,55,.6) calc(100% - 220px), rgba(31,45,55,0) calc(100% - 130px)); }
  .home-care-copy { box-sizing: border-box; max-width: none; margin-top: -36px; padding: 0 20px 100px; gap: 16px; }
  .home-care h2 { font-size: 36px; text-wrap: balance; }
  .home-care-diagnoses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-care-diagnoses li { padding: 11px 12px; text-align: center; }
  .home-care-diagnoses li:last-child { grid-column: 1 / -1; }
  .home-care-topics { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "list" "call"; margin: -64px 16px 0; padding: 26px 20px 22px; }
  .home-care-topics h3 { font-size: 24px; }
  .home-care-topic-columns { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-care-topic-column + .home-care-topic-column { border-left: 0; padding-left: 0; }
  .home-care-topic-column span { white-space: normal; }
  .home-care-call { flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; padding: 20px 0 0; border-top: 1px solid #e6e2da; border-bottom: 0; }
  .home-care-call a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 1px solid #275878; border-radius: 999px; font-size: 15px; text-decoration: none; }
}
