/* 다온 한의원 — 공용 스타일 */
:root {
  --bg: #f7f5ee;
  --paper: #fffdf8;
  --soft: #eef1e6;
  --sage: #7a8f6a;
  --sage-deep: #55684a;
  --sage-pale: #dfe6d3;
  --ink: #2b2f27;
  --muted: #6c7265;
  --line: #dcdfd0;
  --dark: #23281f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: "Noto Sans KR", sans-serif; line-height: 1.75; padding-bottom: 64px; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Noto Serif KR", serif; }

/* 샘플 배너 */
.sample { background: var(--dark); color: #bfc7b5; text-align: center; font-size: 12px; padding: 7px 16px; line-height: 1.6; }
.sample b { color: #fff; font-weight: 500; }
.sample a { color: #fff; text-decoration: underline; }

/* 헤더 */
header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 16px; }
.logo { display: flex; flex-direction: column; line-height: 1.25; }
.logo strong { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--sage-deep); }
.logo span { font-size: 9.5px; letter-spacing: .26em; color: var(--muted); }
.gnb { display: flex; align-items: center; gap: 2px; }
.gnb a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 6px; white-space: nowrap; transition: color .2s, background .2s; }
.gnb a:hover { color: var(--ink); background: var(--soft); }
.gnb a[aria-current="page"] { color: var(--sage-deep); font-weight: 700; background: var(--sage-pale); }
.gnb a.cta { background: var(--sage-deep); color: #fff; margin-left: 8px; padding: 8px 16px; font-weight: 500; }
.gnb a.cta:hover, .gnb a.cta[aria-current="page"] { background: var(--dark); color: #fff; }

/* 버튼 */
.btn { display: inline-block; padding: 14px 26px; font-size: 15px; border-radius: 6px; text-align: center; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.btn.sage { background: var(--sage-deep); color: #fff; }
.btn.sage:hover { background: var(--dark); }
.btn.ghost { border-color: var(--sage-deep); color: var(--sage-deep); background: transparent; }
.btn.ghost:hover { background: var(--sage-deep); color: #fff; }
.btn.light { background: #fff; color: var(--sage-deep); }
.btn.light:hover { background: var(--sage-pale); }
.btn.line-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn.line-light:hover { background: rgba(255,255,255,.12); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 섹션 공통 */
section { padding: 84px 0; }
section.tint { background: var(--soft); }
.head { margin-bottom: 40px; }
.head.center { text-align: center; }
.eyebrow { display: block; color: var(--sage); font-size: 12px; letter-spacing: .28em; margin-bottom: 8px; font-weight: 500; }
.head h2 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: clamp(24px, 3.8vw, 32px); line-height: 1.45; }
.head p { color: var(--muted); font-weight: 300; margin-top: 12px; }
.note { color: var(--muted); font-size: 13px; font-weight: 300; margin-top: 18px; }

/* 서브페이지 상단 */
.page-top { padding: 64px 0 48px; background: var(--sage-pale); border-bottom: 1px solid var(--line); }
.page-top .wrap { max-width: 760px; text-align: center; }
.page-top h1 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: clamp(28px, 5vw, 38px); margin-bottom: 10px; }
.page-top p { color: var(--muted); font-weight: 300; }

/* 홈 히어로 */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35,40,31,.82) 0%, rgba(35,40,31,.5) 55%, rgba(35,40,31,.18) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .eyebrow { color: #c9d6b8; }
.hero h1 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: clamp(30px, 5.2vw, 50px); line-height: 1.4; margin: 6px 0 20px; }
.hero p { font-weight: 300; color: #e8ede0; margin-bottom: 32px; max-width: 470px; }

/* 오늘 진료 안내 띠 */
.today { background: var(--sage-deep); color: #fff; }
.today .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.today .cell { padding: 20px 22px; border-left: 1px solid rgba(255,255,255,.2); }
.today .cell:first-child { border-left: 0; padding-left: 0; }
.today small { display: block; font-size: 12px; letter-spacing: .12em; color: #cfdac0; }
.today strong { font-size: 17px; font-weight: 500; }

/* 소개 */
.intro { text-align: center; max-width: 660px; margin: 0 auto; }
.intro h2 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: clamp(23px, 3.6vw, 30px); line-height: 1.55; margin-bottom: 18px; }
.intro p { color: var(--muted); font-weight: 300; font-size: 16px; }
.intro .sign { margin-top: 18px; font-family: "Noto Serif KR", serif; color: var(--sage-deep); font-weight: 400; }

/* 진료 과목 카드 */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.area { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; transition: border-color .2s, transform .2s; }
.area:hover { border-color: var(--sage); transform: translateY(-2px); }
.area .mark { display: inline-block; width: 36px; height: 36px; border-radius: 50%; background: var(--sage-pale); color: var(--sage-deep); font-family: "Noto Serif KR", serif; font-weight: 700; text-align: center; line-height: 36px; margin-bottom: 14px; }
.area h3 { font-size: 17px; margin-bottom: 6px; }
.area p { color: var(--muted); font-size: 14px; font-weight: 300; }

/* 사진 + 글 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev .pic { order: 2; }
.split .pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.split h2 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: clamp(23px, 3.4vw, 29px); line-height: 1.5; margin-bottom: 14px; }
.split p { color: var(--muted); font-weight: 300; }
.points { margin-top: 20px; display: grid; gap: 10px; }
.points li { padding-left: 24px; position: relative; font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

/* 진료 순서 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 22px; color: var(--sage); margin-bottom: 6px; }
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 14px; font-weight: 300; }

/* CTA */
.cta-box { background: var(--sage-deep); color: #fff; text-align: center; }
.cta-box h2 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: clamp(24px, 3.8vw, 31px); margin-bottom: 10px; }
.cta-box p { color: #dbe4cf; font-weight: 300; margin-bottom: 28px; }
.cta-box .btns { justify-content: center; }

/* 진료 과목 상세 */
.care-list { display: grid; gap: 20px; }
.care { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 30px 30px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; }
.care h3 { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: 20px; line-height: 1.4; }
.care h3 small { display: block; font-family: "Noto Sans KR", sans-serif; font-weight: 400; font-size: 12px; letter-spacing: .12em; color: var(--sage); margin-bottom: 4px; }
.care p { color: var(--muted); font-weight: 300; margin-bottom: 10px; }
.care ul { display: flex; flex-wrap: wrap; gap: 6px; }
.care li { font-size: 13px; background: var(--soft); color: var(--sage-deep); padding: 3px 12px; border-radius: 999px; }
.notice-box { margin-top: 28px; padding: 18px 22px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 300; border-left: 4px solid var(--sage); }

/* 의료진 */
.doctors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 30px 28px; }
.doc .initial { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-pale); color: var(--sage-deep); font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.doc h3 { font-family: "Noto Serif KR", serif; font-size: 20px; }
.doc h3 small { font-family: "Noto Sans KR", sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.doc .role { color: var(--sage-deep); font-size: 14px; margin: 2px 0 14px; }
.doc ul { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 300; }
.doc li { padding-left: 14px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.philosophy > div { padding: 24px 22px; border-top: 3px solid var(--sage); background: var(--paper); border-radius: 0 0 10px 10px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.philosophy h3 { font-size: 17px; margin-bottom: 6px; }
.philosophy p { color: var(--muted); font-size: 14px; font-weight: 300; }

/* 진료시간표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table.hours { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
table.hours th, table.hours td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
table.hours thead th { background: var(--sage-deep); color: #fff; font-weight: 500; }
table.hours tbody th { text-align: left; background: var(--soft); font-weight: 500; white-space: nowrap; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: 0; }
table.hours td.off { color: #a3a89a; background: #f3f2ec; }
table.hours td.night { color: var(--sage-deep); font-weight: 700; }

/* 정보 카드 */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px; }
.info-card h3 { font-size: 17px; margin-bottom: 10px; font-family: "Noto Serif KR", serif; }
.info-card dl { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; font-size: 14.5px; }
.info-card dt { color: var(--sage-deep); font-weight: 500; }
.info-card dd { color: var(--muted); font-weight: 300; }
.info-card ul { display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); font-weight: 300; }
.info-card li { padding-left: 16px; position: relative; }
.info-card li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.map-box { margin-top: 22px; background: var(--sage-pale); border-radius: 12px; min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--sage-deep); font-size: 14px; padding: 24px; border: 1px dashed var(--sage); }
.map-box b { display: block; font-size: 16px; margin-bottom: 4px; }

/* 예약 폼 */
.reserve-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 32px 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field label em { color: #b0533f; font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,143,106,.2); }
.field textarea { min-height: 120px; resize: vertical; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 300; margin: 4px 0 22px; cursor: pointer; }
.agree input { margin-top: 5px; accent-color: var(--sage-deep); }
.form .btn { width: 100%; }
.success { display: none; margin-top: 18px; padding: 16px 18px; background: var(--sage-pale); border-left: 4px solid var(--sage-deep); border-radius: 6px; font-size: 14px; color: var(--muted); }
.success.show { display: block; }
.success strong { display: block; color: var(--sage-deep); margin-bottom: 2px; }
.side { display: grid; gap: 20px; }
.side > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px; }
.side h3 { font-family: "Noto Serif KR", serif; font-size: 17px; margin-bottom: 8px; }
.side p { color: var(--muted); font-size: 14px; font-weight: 300; margin-bottom: 14px; }
.side .btn { display: block; margin-bottom: 8px; padding: 12px; font-size: 14px; }
.btn.naver { background: #03c75a; color: #fff; }
.btn.kakao { background: #fee500; color: #3a1d1d; }
.rules { display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 300; }
.rules b { color: var(--ink); font-weight: 500; margin-right: 6px; }

/* 푸터 */
footer { background: var(--dark); color: #aab2a0; padding: 48px 0 36px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px 40px; }
footer .logo strong { color: #fff; }
footer .logo span { color: #8c9680; }
footer p { margin-top: 8px; font-weight: 300; }
footer dl { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; }
footer dt { color: #8c9680; }
footer dd a { text-decoration: underline; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 0; font-size: 12px; color: #838b78; line-height: 1.8; }

/* 하단 고정 바 */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(35,40,31,.08); }
.bar a { text-align: center; padding: 17px 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.bar a:last-child { background: var(--sage-deep); color: #fff; }

/* 반응형 */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .areas, .philosophy { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .pic { order: 0; }
  .reserve-grid { grid-template-columns: 1fr; }
  .doctors, .info-grid { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; gap: 12px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header .wrap { flex-direction: column; align-items: flex-start; padding-top: 10px; padding-bottom: 8px; gap: 4px; min-height: 0; }
  .gnb { width: 100%; overflow-x: auto; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gnb::-webkit-scrollbar { display: none; }
  .gnb a { padding: 7px 9px; font-size: 13.5px; }
  .gnb a.cta { margin-left: auto; }
  .hero { min-height: 520px; }
  .hero::after { background: linear-gradient(180deg, rgba(35,40,31,.55) 0%, rgba(35,40,31,.82) 100%); }
  .today .wrap { grid-template-columns: 1fr; }
  .today .cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 14px 0; }
  .today .cell:first-child { border-top: 0; }
  .areas, .philosophy, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 24px 20px; }
  .care { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
