/* 대흥한의원 — 디자인 토큰
   paper  #F2F3EC  녹빛 한지
   ink    #22271F  먹
   deep   #35544A  진청자(브랜드 세이지그린 계열)
   mid    #7A9A8A  청자
   pale   #DCE5DC  연청자
   seal   #B23A2F  낙관 적색(도장·강조 전용) */

:root {
  --paper: #F2F3EC;
  --paper-deep: #E9EBE0;
  --ink: #22271F;
  --ink-soft: #4A5148;
  --deep: #35544A;
  --mid: #7A9A8A;
  --pale: #DCE5DC;
  --seal: #B23A2F;
  --line: rgba(34, 39, 31, 0.16);
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard', 'Pretendard Variable', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ── 헤더 ───────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
}
.seal-mark {
  width: 42px; height: 42px; flex: none;
  background: var(--seal); color: #F7F2E8;
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
  line-height: 1.15; letter-spacing: 0.08em;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(247, 242, 232, 0.5);
}
.brand-text b {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.02em; display: block; line-height: 1.2;
}
.brand-text span { font-size: 0.78rem; color: var(--ink-soft); letter-spacing: 0.14em; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.95rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--deep); border-bottom-color: var(--deep);
}
.nav-tel {
  margin-left: 1rem;
  background: var(--deep); color: #fff !important;
  padding: 0.45rem 1rem !important; border-radius: 999px;
  border-bottom: none !important; font-weight: 600;
  text-decoration: none;
}
.nav-tel:hover { background: var(--ink); }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { margin-left: 0; width: 100%; overflow-x: auto; }
  .site-nav ul { gap: 1rem; padding-bottom: 0.3rem; }
  .site-nav a { white-space: nowrap; font-size: 0.9rem; }
  .nav-tel { margin-left: 0; }
}

/* ── 히어로 ─────────────────────── */
.hero { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--line); }
.hero .eyebrow {
  font-size: 0.85rem; letter-spacing: 0.22em; color: var(--deep);
  font-weight: 600; margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.35; letter-spacing: -0.01em;
  max-width: 21ch;
}
.hero h1 em { font-style: normal; color: var(--deep); }
.hero .sub {
  margin-top: 1.6rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 34rem;
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.7rem; border-radius: 4px; font-size: 1rem;
}
.btn-primary { background: var(--deep); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border: 1.5px solid var(--deep); color: var(--deep); }
.btn-ghost:hover { background: var(--pale); }

/* ── 섹션 공통 ──────────────────── */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2.5rem; }
.section-head .eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; color: var(--seal); font-weight: 700;
  margin-bottom: 0.6rem;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; line-height: 1.4;
}
.section-head p.lede { margin-top: 0.9rem; color: var(--ink-soft); max-width: 40rem; }

.answer-block {
  background: #FBFBF6; border-left: 4px solid var(--deep);
  padding: 1.3rem 1.6rem; margin: 1.5rem 0; max-width: 46rem;
}
.answer-block strong { color: var(--deep); }

/* ── 약장 그리드 (시그니처) ─────── */
.yakjang {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: var(--ink); padding: 10px; border-radius: 8px;
}
@media (max-width: 860px) { .yakjang { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .yakjang { grid-template-columns: repeat(2, 1fr); } }
.drawer {
  background: linear-gradient(175deg, #FBFAF3 0%, #EFEFE4 100%);
  border-radius: 3px;
  padding: 1.5rem 1rem 1.15rem;
  text-align: center; text-decoration: none; color: var(--ink);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.drawer::after {            /* 서랍 고리 */
  content: ""; display: block; width: 26px; height: 13px;
  border: 2.5px solid var(--ink-soft); border-top: none;
  border-radius: 0 0 26px 26px;
  margin: 0.8rem auto 0;
}
.drawer:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(34,39,31,0.28); }
.drawer .d-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.45; display: block;
}
.drawer .d-sub { font-size: 0.78rem; color: var(--ink-soft); display: block; margin-top: 0.35rem; }

/* ── 카드·표 ────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #FBFBF6; border: 1px solid var(--line); border-radius: 8px;
  padding: 1.8rem;
}
.card h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.7rem; }

table.hours { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.hours caption { text-align: left; font-weight: 700; margin-bottom: 0.6rem; font-family: var(--serif); font-size: 1.1rem; }
table.hours th, table.hours td {
  padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); text-align: left;
}
table.hours th { color: var(--ink-soft); font-weight: 600; width: 30%; }
table.hours .closed { color: var(--seal); font-weight: 600; }

/* ── 클리닉 상세 ────────────────── */
.clinic-article {
  border-top: 1px solid var(--line); padding: 2.6rem 0;
  scroll-margin-top: 90px;
}
.clinic-article h2 {
  font-family: var(--serif); font-size: 1.45rem; margin-bottom: 0.9rem;
}
.clinic-article h2::before {
  content: ""; display: inline-block; width: 0.72em; height: 0.72em;
  background: var(--pale); border: 2px solid var(--deep); border-radius: 2px;
  margin-right: 0.55em; vertical-align: baseline; transform: translateY(0.08em);
}
.clinic-article .lead { max-width: 44rem; }
.symptoms { list-style: none; margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.symptoms li {
  background: var(--pale); color: var(--deep); font-size: 0.88rem; font-weight: 600;
  padding: 0.28rem 0.8rem; border-radius: 999px;
}

/* ── 프로세스 ───────────────────── */
.process { list-style: none; counter-reset: step; max-width: 44rem; }
.process li {
  counter-increment: step; position: relative;
  padding: 1.2rem 0 1.2rem 4rem; border-bottom: 1px solid var(--line);
}
.process li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.2rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--deep); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.process li b { font-family: var(--serif); font-size: 1.08rem; display: block; margin-bottom: 0.2rem; }
.process li span { color: var(--ink-soft); font-size: 0.97rem; }

/* ── FAQ ────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.3rem 0; font-weight: 700; font-size: 1.05rem;
  font-family: var(--serif); list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 50%;
  transform: translateY(-50%); color: var(--deep); font-size: 1.4rem; font-family: var(--sans);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 44rem; }

/* ── 약력 ───────────────────────── */
.bio-list { list-style: none; max-width: 40rem; }
.bio-list li { padding: 0.55rem 0 0.55rem 1.2rem; border-left: 2px solid var(--pale); margin-left: 0.2rem; }
.bio-list li b { color: var(--deep); }

/* ── 푸터 ───────────────────────── */
.site-footer {
  background: var(--ink); color: #D8DAD2; margin-top: 4rem;
  padding: 3rem 0 2.2rem; font-size: 0.93rem;
}
.site-footer a { color: #fff; }
.site-footer .foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 860px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--serif); color: #fff; font-size: 1.05rem; margin-bottom: 0.8rem; }
.site-footer .foot-note { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.15); color: #A9ADA2; font-size: 0.83rem; }

/* ── 유틸 ───────────────────────── */
.tel-big {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700;
  color: var(--deep); text-decoration: none; letter-spacing: 0.02em;
}
.muted { color: var(--ink-soft); }
.map-frame { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: 8px; }
