/* ── Home UX Enhancements — 공감치과 메인 ── */

/* Section rhythm */
.page-home main > section {
  scroll-margin-top: 5rem;
}

.page-home .section--surface-soft {
  background: linear-gradient(180deg, rgba(250, 250, 247, 0) 0%, rgba(13, 75, 58, .025) 48%, rgba(250, 250, 247, 0) 100%);
}

.page-home .section--surface-muted {
  background: #F8FAF9;
}

/* ── Section CTA ── */
.page-home .section-cta {
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.page-home .section-cta__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  background: #FFFFFF;
  border: 1px solid rgba(13, 75, 58, .08);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .section-cta__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .08);
}

.page-home .section-cta__text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.5;
  color: #1A312C;
  word-break: keep-all;
}

.page-home .section-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.page-home .section-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: #0D4B3A;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #0D4B3A;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.page-home .section-cta__btn:hover {
  background: #144D3F;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 75, 58, .18);
}

.page-home .section-cta__btn:focus-visible {
  outline: 2px solid #89D7B7;
  outline-offset: 3px;
}

.page-home .section-cta__btn--outline {
  background: #FFFFFF;
  color: #0D4B3A;
  border-color: rgba(13, 75, 58, .16);
}

.page-home .section-cta__btn--outline:hover {
  background: #F5F9F7;
}

.page-home .section-cta--contact {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.page-home .section-cta--contact .section-cta__card {
  justify-content: center;
}

/* ── Treatment Journey ── */
.page-home .treatment-journey {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.page-home .treatment-journey__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  list-style: none;
  padding: 0;
}

.page-home .treatment-journey__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
}

.page-home .treatment-journey__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 0;
  border-top: 2px dashed rgba(13, 75, 58, .22);
  pointer-events: none;
}

.page-home .treatment-journey__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(13, 75, 58, .12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  color: #0D4B3A;
  font-size: 1.125rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .treatment-journey__step:hover .treatment-journey__icon {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(13, 75, 58, .12);
  border-color: rgba(13, 75, 58, .24);
}

.page-home .treatment-journey__num {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #B8945A;
}

.page-home .treatment-journey__title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1A312C;
  word-break: keep-all;
}

.page-home .treatment-journey__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #69757D;
  word-break: keep-all;
}

@media (max-width: 1023px) {
  .page-home .treatment-journey__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1rem;
  }

  .page-home .treatment-journey__step:nth-child(3)::after,
  .page-home .treatment-journey__step:nth-child(6)::after {
    display: none;
  }

  .page-home .treatment-journey__step:not(:last-child):not(:nth-child(3))::after {
    display: block;
  }
}

@media (max-width: 639px) {
  .page-home .treatment-journey__steps {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 360px;
    margin-inline: auto;
  }

  .page-home .treatment-journey__step {
    padding: 0 0 2rem;
  }

  .page-home .treatment-journey__step:not(:last-child)::after {
    top: auto;
    bottom: 0.75rem;
    left: 50%;
    width: 0;
    height: 1.25rem;
    border-top: none;
    border-left: 2px dashed rgba(13, 75, 58, .22);
    transform: translateX(-50%);
  }
}

/* ── Premium stat cards ── */
.page-home .stats .stat-card {
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAF9 100%);
  border-color: rgba(13, 75, 58, .1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .stats .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 75, 58, .1);
  border-color: rgba(13, 75, 58, .18);
}

.page-home .stats .stat-card__number {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.page-home .stats .stat-card__unit {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  transition: color 0.3s ease;
}

.page-home .stats .stat-card__label {
  font-size: 0.8125rem;
  color: #69757D;
}

.page-home .stats .stat-card:hover .stat-card__number,
.page-home .stats .stat-card:hover .stat-card__unit {
  color: #0D4B3A;
}

/* ── Treatment case cards ── */
.page-home .treatment-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.page-home .treatment-card__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(13, 75, 58, .08);
}

.page-home .treatment-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #EEF3F1;
}

.page-home .treatment-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #E8EEEC, #F4F7F6);
}

.page-home .treatment-card__photo-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0D4B3A;
}

.page-home .treatment-card__photo-badge--after {
  color: #B8945A;
}

.page-home .treatment-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.625rem;
  padding: clamp(1.25rem, 2.5vw, 1.5rem);
}

.page-home .treatment-card__director {
  margin: 0;
  padding: 0.875rem 1rem;
  border-left: 2px solid rgba(184, 148, 90, .5);
  background: rgba(13, 75, 58, .03);
  border-radius: 0 8px 8px 0;
}

.page-home .treatment-card__director-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #B8945A;
}

.page-home .treatment-card__director-text {
  margin: 0;
  min-height: 1.25em;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #69757D;
  font-style: normal;
}

.page-home .treatment-card__director-text:empty::before {
  content: '대표원장 코멘트가 곧 업데이트됩니다.';
  color: rgba(105, 117, 125, .55);
}

/* ── Footer enhancements ── */
.page-home .site-footer.site-footer--journal .site-footer__divider {
  height: 1px;
  margin: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .12);
  border: none;
}

.page-home .site-footer.site-footer--journal .site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.page-home .site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  font-size: 1.125rem;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-home .site-footer__social-link:hover,
.page-home .site-footer__social-link:focus-visible {
  color: #89D7B7;
  background: rgba(137, 215, 183, .12);
  border-color: rgba(137, 215, 183, .35);
  transform: translateY(-2px);
}

.page-home .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.page-home .site-footer__legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  transition: color 0.25s ease;
}

.page-home .site-footer__legal a:hover {
  color: #89D7B7;
}

.page-home .site-footer__business {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #B8C0BA;
  text-align: center;
}

.page-home .site-footer__business p {
  margin: 0;
}

/* ── Scroll progress ── */
.page-home .scroll-progress {
  position: fixed;
  right: 92px;
  top: 50%;
  z-index: 9998;
  width: 3px;
  height: min(40vh, 280px);
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(13, 75, 58, .1);
  overflow: hidden;
  pointer-events: none;
}

.page-home .scroll-progress__fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #89D7B7, #0D4B3A);
  border-radius: 999px;
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

@media (max-width: 1023px) {
  .page-home .scroll-progress {
    display: none;
  }
}

/* ── Micro-interactions ── */
.page-home .stat-card,
.page-home .feature-card,
.page-home .concern-card,
.page-home .treatment-card,
.page-home .philosophy-card,
.page-home .review-card,
.page-home .recommend-card,
.page-home .treatment-journey__step {
  will-change: transform;
}

.page-home .feature-card:hover,
.page-home .philosophy-card:hover,
.page-home .review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 75, 58, .08);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .section-cta__card,
  .page-home .section-cta__btn,
  .page-home .treatment-journey__icon,
  .page-home .stats .stat-card,
  .page-home .site-footer__social-link,
  .page-home .feature-card,
  .page-home .philosophy-card,
  .page-home .review-card {
    transition: none;
  }

  .page-home .section-cta__card:hover,
  .page-home .treatment-journey__step:hover .treatment-journey__icon,
  .page-home .stats .stat-card:hover,
  .page-home .feature-card:hover,
  .page-home .philosophy-card:hover,
  .page-home .review-card:hover {
    transform: none;
  }
}
