/* 광주 청담한의원 — 공통 스타일 */
:root {
  --paper: #f6f5f1;
  --paper-2: #e8eef6;
  --ink: #1e2430;
  --ink-soft: #525b6b;
  --blue: #1f4e8c;
  --blue-dark: #143663;
  --gold: #b08a4a;
  --line: #d8dde6;
  --white: #fffdf9;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  word-break: keep-all;
  padding-bottom: 64px; /* 모바일 하단 고정바 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.serif { font-family: "Nanum Myeongjo", "Batang", "바탕", serif; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-family: serif; font-size: 18px;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-soft); line-height: 1.2; }
.nav ul { display: flex; gap: 22px; list-style: none; }
.nav a { font-size: 15px; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }
.header-tel { font-weight: 700; color: var(--blue); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .header-tel { display: none; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 20px; border-top: 1px solid var(--paper-2); }
}

/* 히어로 */
.hero {
  background-image: linear-gradient(135deg, #1a2c4a, #1f4e8c);
  background-size: cover; background-position: center;
  color: var(--white);
  padding: 96px 0 88px;
}
.hero .eyebrow { color: #e9d7b2; font-size: 15px; letter-spacing: .08em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.3; margin-bottom: 18px; }
.hero p { font-size: 17px; max-width: 620px; opacity: .92; }
.hero .btns { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: #9a7740; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

/* 섹션 */
section { padding: 72px 0; }
section.alt { background: var(--white); }
.sec-head { margin-bottom: 36px; }
.sec-head .eyebrow { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .06em; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.4; margin-top: 6px; }
.sec-head p { color: var(--ink-soft); margin-top: 10px; max-width: 700px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: .2s;
}
section.alt .card { background: var(--paper); }
a.card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(43, 38, 34, .08); }
.card .num { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.card h3 { font-size: 19px; margin: 6px 0 8px; }
.card p, .card li { color: var(--ink-soft); font-size: 15px; }
.card ul { padding-left: 18px; }
.card .more { display: inline-block; margin-top: 12px; color: var(--blue); font-weight: 600; font-size: 14px; }

/* 본문 */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; padding-left: 14px; border-left: 4px solid var(--blue); line-height: 1.4; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; color: var(--blue-dark); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--blue-dark); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; list-style: none; padding: 0 !important; margin-left: 0 !important; }
.tag-list li { background: var(--paper-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; margin: 0; }

.steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 62px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

.photo-slot {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--paper) 12px, var(--paper) 24px);
  border: 1px dashed var(--gold); display: grid; place-items: center;
  color: var(--ink-soft); font-size: 14px; text-align: center; padding: 12px;
}

/* 2단 레이아웃 */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* 숫자 강조 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats div { border-top: 2px solid var(--blue); padding-top: 12px; }
.stats b { display: block; font-size: 28px; color: var(--blue); font-family: serif; }
.stats span { font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; padding: 0 20px;
}
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); }

/* 정보 표 */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.info-table th { width: 32%; background: var(--paper-2); font-weight: 600; }

.notice { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }

/* 상담 CTA */
.cta { background: var(--blue-dark); color: var(--white); text-align: center; }
.cta h2 { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 10px; }
.cta p { opacity: .85; margin-bottom: 24px; }
.cta .tel { font-size: 34px; font-weight: 700; font-family: serif; display: block; margin-bottom: 20px; color: #e9d7b2; }

/* 푸터 */
.site-footer { background: #121c2e; color: #a9b3c4; padding: 44px 0 36px; font-size: 14px; }
.site-footer .f-name { color: var(--white); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .f-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer .f-links a:hover { color: var(--white); }
.site-footer .copy { margin-top: 22px; font-size: 12px; opacity: .7; }

/* 모바일 하단 고정바 */
.quick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.quick-bar a { text-align: center; padding: 10px 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.quick-bar a b { display: block; font-size: 18px; line-height: 1.3; }
.quick-bar a.call { background: var(--blue); color: var(--white); }
@media (min-width: 901px) {
  body { padding-bottom: 0; }
  .quick-bar { left: auto; right: 24px; bottom: 24px; grid-auto-flow: row; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); width: 92px; }
  .quick-bar a { border-bottom: 1px solid var(--paper-2); }
}

/* 브레드크럼 */
.breadcrumb { font-size: 13px; color: #e9d7b2; margin-bottom: 12px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

/* 사진 */
.photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(18, 28, 46, .12); }
.fig { margin: 24px 0; }
.fig figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.fig-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.fig-row .fig { margin: 0; }
@media (max-width: 600px) { .fig-row { grid-template-columns: 1fr; } }

.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px;
  background: linear-gradient(transparent, rgba(18, 28, 46, .8)); color: var(--white); font-size: 14px; font-weight: 600;
}
.equip figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
section.alt .equip figure { background: var(--paper); }
.equip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.equip figcaption { padding: 12px 14px 14px; font-size: 14px; color: var(--ink-soft); }
.equip figcaption b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.split > * { min-width: 0; }
