/* 홈 진료 범위 — 날씨·소개 다음, BE DEER 앞에서 "무엇을 진료하는지"를 한 번에 보여 준다.
   위 소개와 배경이 같아서 흰 판으로 묶어 구분한다. PC 5칸×2줄, 휴대폰 2칸×5줄. */
.home-scope {
  padding: clamp(0.5rem, 1.5vw, 1.25rem) clamp(1rem, 4vw, 2rem) clamp(3.5rem, 7vw, 5.5rem);
  background: var(--bg-base);
}

.home-scope__panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1rem, 3.5vw, 3rem) clamp(1.8rem, 3.5vw, 2.6rem);
  background: #fff;
  border: 1px solid var(--warm-gray);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(35, 61, 54, 0.06);
  text-align: center;
}

.home-scope__eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal-pattern);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.home-scope__head h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.home-scope__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: clamp(1.6rem, 3vw, 2.3rem) 0 0;
  padding: 0;
  list-style: none;
}

.home-scope__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem 0.75rem 1.1rem;
  color: var(--teal-dark);
  background: var(--bg-base);
  border: 1px solid transparent;
  border-radius: 18px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-scope__grid svg {
  width: 30px;
  height: 30px;
  margin-bottom: 0.35rem;
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-scope__grid strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.home-scope__grid span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: keep-all;
}

/* 중국어 홈: 한 줄 설명 없이 이름만 둔다(중의학을 아는 독자라 설명을 줄인다). */
.home-scope__grid--names a {
  justify-content: center;
  padding: 1.15rem 0.75rem;
}

.home-scope__grid a:hover,
.home-scope__grid a:focus-visible {
  background: #fff;
  border-color: var(--green-deep);
  transform: translateY(-2px);
}

/* Care로 넘어가는 진짜 입구. 사진은 Care의 진찰 장면(02 · ASSESS)을 Care와 같은 3:1 크롭으로 쓴다. */
.home-scope__cta {
  display: block;
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
  overflow: hidden;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 22px;
  text-align: left;
  text-decoration: none;
}

.home-scope__cta-photo {
  margin: 0;
  overflow: hidden;
}

.home-scope__cta-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center 58%;
  transition: transform 0.6s ease;
}

.home-scope__cta-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(1.4rem, 3.5vw, 2.6rem);
}

.home-scope__cta-copy > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-scope__cta-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.home-scope__cta-copy strong {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.home-scope__cta-copy p:not(.home-scope__cta-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: keep-all;
}

.home-scope__cta-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0 1.3rem;
  color: var(--teal-dark);
  background: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-scope__cta:hover .home-scope__cta-photo img,
.home-scope__cta:focus-visible .home-scope__cta-photo img {
  transform: scale(1.04);
}

.home-scope__cta:hover .home-scope__cta-button,
.home-scope__cta:focus-visible .home-scope__cta-button {
  color: #fff;
  background: var(--green-deep);
}

@media (max-width: 900px) {
  .home-scope__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  /* 휴대폰에서는 아이콘 옆에 이름과 설명을 두 줄로 쌓는다. */
  .home-scope__grid a {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.1rem;
    padding: 0.85rem 0.8rem;
    text-align: left;
  }

  .home-scope__grid svg {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .home-scope__grid strong {
    font-size: 0.88rem;
  }

  .home-scope__grid span {
    font-size: 0.72rem;
  }

  /* 휴대폰은 Care와 같이 16:9로 자르고, 글 아래에 버튼을 둔다. */
  .home-scope__cta-photo img {
    aspect-ratio: 16 / 9;
  }

  .home-scope__cta-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scope__grid a {
    transition: none;
  }

  .home-scope__grid a:hover,
  .home-scope__grid a:focus-visible,
  .home-scope__cta:hover .home-scope__cta-photo img,
  .home-scope__cta:focus-visible .home-scope__cta-photo img {
    transform: none;
  }

  .home-scope__cta-photo img,
  .home-scope__cta-button {
    transition: none;
  }
}
