/* ==========================================================================
   Components — 레퍼런스 톤 (딥그린 버튼 / 골드 서브 / 흰 카드 14px)
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: 0 var(--sp-7, 28px);
  border-radius: var(--r-md);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-align: center;
  transition: background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 주 CTA — 딥그린 (동춘당 "진료 예약") */
.btn--primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 4px 14px rgba(62, 92, 58, 0.22);
}
.btn--primary:hover {
  background: var(--green-700);
}

/* 보조 CTA — 골드/브라운 (동춘당 "문진표") */
.btn--gold {
  background: var(--gold-600);
  color: #fff;
}
.btn--gold:hover {
  background: var(--gold-700);
}

/* 외곽선 — 흰 배경 위 */
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-900);
  background: var(--surface-0);
}
.btn--ghost:hover {
  border-color: var(--green-600);
  color: var(--green-700);
}

/* 어두운 배경 위 */
.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 42px;
  padding: 0 var(--sp-5);
  font-size: 0.88rem;
}

/* 카카오 */
.btn--kakao {
  background: #fee500;
  color: #191600;
}
.btn--kakao:hover {
  background: #ffe94d;
}

/* ---------- Eyebrow — 레퍼런스는 알약형 배지 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--green-050);
  color: var(--gold-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
}

.eyebrow--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
}
.eyebrow--light::before {
  background: var(--gold-400);
}

/* 영문 라벨형 (섹션 상단 소제목) */
.kicker {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}

.kicker--light {
  color: var(--gold-400);
}

/* ---------- Section heading ---------- */
.section-head {
  max-width: 46ch;
  margin-bottom: clamp(var(--sp-8), 3.6vw, var(--sp-12));
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  line-height: 1.88;
  color: var(--ink-600);
}

.section--green .section-head__lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.badge--gold {
  background: var(--gold-100);
  color: var(--gold-700);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-600);
}

/* ---------- 숫자 지표 카드 (동춘당 15년차/6,100건 패턴) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.stat {
  padding: var(--sp-6) var(--sp-4);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* 마지막 카드는 딥그린 반전 (동춘당 "함소아 부원장 출신") */
.stat--feature {
  background: var(--green-600);
  border-color: var(--green-600);
}
.stat--feature .stat__value,
.stat--feature .stat__label {
  color: #fff;
}
.stat--feature .stat__label {
  color: rgba(255, 255, 255, 0.78);
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto var(--sp-3);
  color: var(--gold-600);
}
.stat--feature .stat__icon {
  color: rgba(255, 255, 255, 0.9);
}
.stat__icon svg {
  width: 22px;
  height: 22px;
}

.stat__value {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.stat__value small {
  font-size: 0.56em;
  font-weight: 700;
  margin-left: 2px;
}

.stat__label {
  margin-top: 5px;
  font-size: var(--fs-sm);
  color: var(--ink-600);
  line-height: 1.6;
}

.stat__note {
  display: inline-block;
  margin-top: var(--sp-2);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--green-050);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-700);
}

@media (min-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- 원장 인사말 인용 (레퍼런스 공통 핵심 패턴) ---------- */
.greeting {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

.greeting__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gold-050);
  box-shadow: var(--shadow-md);
}

.greeting__photo img {
  width: 100%;
}

/* 제공된 캡처의 사진 영역만 표시. 원본 파일은 그대로 보관한다. */
.greeting__photo--seated { position: relative; aspect-ratio: 455 / 586; }
.greeting__photo--seated img {
  position: absolute;
  width: 121.3187%;
  max-width: none;
  height: auto;
  left: -3.0769%;
  top: -.5119%;
}

.greeting__quote {
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.035em;
  color: var(--green-900);
  margin-bottom: var(--sp-5);
}

.greeting__body {
  display: grid;
  gap: var(--sp-4);
  color: var(--ink-600);
  line-height: 1.9;
  font-size: 0.99rem;
}

.greeting__body strong {
  color: var(--ink-800);
  font-weight: 700;
}

.greeting__sign {
  margin-top: var(--sp-5);
  text-align: right;
  font-size: 0.95rem;
  color: var(--ink-600);
}

.greeting__sign b {
  font-size: 1.1rem;
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.greeting__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

@media (min-width: 860px) {
  .greeting {
    grid-template-columns: 0.82fr 1.18fr;
    gap: var(--sp-12);
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

a.card:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__num {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-600);
}

.card__title {
  margin-top: var(--sp-2);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.card__desc {
  margin-top: var(--sp-3);
  color: var(--ink-600);
  font-size: 0.94rem;
  line-height: 1.8;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-5);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-600);
  transition: gap var(--dur-fast) var(--ease);
}

a.card:hover .card__more {
  gap: 11px;
}

/* ---------- 약속/강점 카드 (동춘당 "동춘당의 약속") ---------- */
.promise {
  padding: var(--sp-6);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* 세 가지 원칙 카드의 번호(01·02·03) */
.promise__no {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}

.promise__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--green-050);
  color: var(--green-600);
  margin-bottom: var(--sp-4);
}
.promise__icon svg {
  width: 23px;
  height: 23px;
}

.promise__title {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.promise__desc {
  margin-top: var(--sp-2);
  font-size: 0.93rem;
  color: var(--ink-600);
  line-height: 1.82;
}

/* ---------- Symptom checklist ---------- */
.check-list {
  display: grid;
  gap: var(--sp-3);
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-700);
  line-height: 1.78;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--green-100);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6em;
  width: 6px;
  height: 3px;
  transform: translateY(-70%) rotate(-45deg);
  border-left: 1.6px solid var(--green-600);
  border-bottom: 1.6px solid var(--green-600);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: var(--sp-4);
}

.step {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.section--green .step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: var(--sp-4);
}

.section--green .step__num {
  background: var(--gold-500);
  color: #fff;
}

.step__title {
  font-size: 1.05rem;
  letter-spacing: -0.028em;
}

.step__desc {
  margin-top: var(--sp-2);
  font-size: 0.92rem;
  color: var(--ink-600);
  line-height: 1.82;
}

.section--green .step__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 약력 리스트 ---------- */
.spec-list {
  border-top: 1px solid var(--line);
}

.spec-list li {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: var(--sp-4);
  align-items: baseline;
  font-size: 0.96rem;
  color: var(--ink-800);
}

.spec-list li strong {
  flex-shrink: 0;
  min-width: 3.6em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-600);
}

/* ---------- Hours table ---------- */
.hours-table {
  border-top: 2px solid var(--green-900);
  font-size: 0.96rem;
  background: var(--surface-0);
  border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden;
}

.hours-table th,
.hours-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}

.hours-table th {
  width: 36%;
  font-weight: 600;
  color: var(--ink-600);
  background: var(--bg-soft);
}

.hours-table td {
  font-weight: 700;
  color: var(--green-900);
}

.hours-table tr.is-highlight td {
  color: var(--point);
}

.hours-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-600);
  line-height: 1.85;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--surface-0);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "Q";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-600);
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: var(--sp-1);
}

.faq summary span {
  flex: 1;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--ink-400);
  border-bottom: 1.8px solid var(--ink-400);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq__body {
  padding: 0 var(--sp-5) var(--sp-5) calc(var(--sp-5) + 30px);
  color: var(--ink-600);
  line-height: 1.9;
  font-size: 0.95rem;
  max-width: none;
  /* div 이므로 base.css 의 한글 줄바꿈 규칙이 적용되지 않습니다.
     어절 중간에서 끊기지 않도록 여기에서 지정합니다. */
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* ---------- Review card ---------- */
.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.review__category {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold-050);
  color: var(--green-600);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.review-count {
  margin: var(--sp-4) 0 var(--sp-6);
  color: var(--ink-500);
  font-size: var(--fs-sm);
}

.review__quote {
  color: var(--ink-700);
  line-height: 1.9;
  font-size: 0.96rem;
}

.review__meta {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.review__meta strong {
  display: block;
  color: var(--ink-800);
  font-weight: 700;
  margin-bottom: 3px;
}

.review__source {
  font-size: 0.75rem;
  color: var(--ink-500);
  line-height: 1.7;
}

/* ---------- Notice ---------- */
.notice {
  padding: var(--sp-5) var(--sp-6);
  background: var(--gold-050);
  border: 1px solid var(--gold-100);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.88;
  color: var(--ink-600);
}

/* 안내 박스 안 문단은 간격을 좁혀 한 덩어리로 읽히게 합니다. */
.notice p + p {
  margin-top: 4px;
}
.notice p {
  line-height: 1.7;
}

.notice strong {
  color: var(--gold-700);
}

.notice--green {
  background: var(--green-050);
  border-color: var(--green-100);
}
.notice--green strong {
  color: var(--green-700);
}

/* ---------- Figure ---------- */
.figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-tint);
  box-shadow: var(--shadow-sm);
}

.figure img {
  width: 100%;
  object-fit: cover;
}

.figure figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-600);
  background: var(--surface-0);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

.naver-map{width:100%;height:340px;border:1px solid var(--border);border-radius:var(--radius-lg,14px);overflow:hidden;background:#eef1ea}
.naver-map__fallback{margin:0;font-size:var(--fs-sm,13px);color:#7b8576;word-break:keep-all;overflow-wrap:anywhere}
.figure + .naver-map,.figure ~ .naver-map__fallback{margin-top:var(--sp-4)}
@media (max-width:640px){.naver-map{height:260px}}
