/* 원성준 영상의학과 동물병원 — 공통 스타일 · 디자인 C "이미징 다크" (2026-10-17 원장님 선택)
   어두운 머리말·제목 띠·꼬리말 + 밝은 본문, 청록 포인트. 휴대폰 먼저. */
:root {
  --ink: #0f1720;
  --muted: #5a6878;
  --line: #e3e8ee;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --dark: #05080c;
  --dark2: #0b1118;
  --on-dark: #e8eef4;
  --on-dark-muted: #9fb0c2;
  --brand: #0b6e7a;     /* 흰 바탕 위 링크·제목 포인트 */
  --accent: #13a4b4;    /* 버튼·강조 */
  --accent-light: #5fd4e0; /* 어두운 바탕 위 포인트 */
  --radius: 14px;
  --max: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 72px; /* 휴대폰 아래 전화 버튼 자리 */
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 머리 */
.site-header { background: var(--dark); }
.site-header .wrap { max-width: 1080px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; }
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.nav a { color: var(--on-dark-muted); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent-light); }
.nav a[href="/vet/"] { color: var(--accent-light); font-weight: 700; }

/* 블로그 띠 — 최신 소식은 블로그 */
.blog-bar { background: var(--dark2); color: var(--on-dark-muted); font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.blog-bar .wrap { max-width: 1080px; padding-top: 7px; padding-bottom: 7px; }
.blog-bar a { color: var(--accent-light); font-weight: 700; }

/* 페이지 제목 띠 */
.page-head { background: linear-gradient(180deg, var(--dark2), #101a24); color: var(--on-dark); padding: 34px 0 30px; }
.page-head h1 { color: #fff; }
.page-head .note, .page-head .byline, .page-head .lead { color: var(--on-dark-muted); }
.page-head a { color: var(--accent-light); }
.page-head .lead { margin-bottom: 0; }
.page-head .source { margin: 16px 0 0; }
.btn-blog { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #03c75a; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn-blog:hover { background: #02b351; }

/* 히어로 (병원 소개) */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: grayscale(1) contrast(1.15); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,12,.55), rgba(5,8,12,.25) 40%, rgba(5,8,12,.96)); }
.hero-in { position: relative; z-index: 2; max-width: 1080px; padding-top: 72px; padding-bottom: 48px; }
.hero .eyebrow { color: var(--accent-light); font-size: 12px; font-weight: 700; letter-spacing: .12em; margin: 0 0 10px; }
.hero h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 14px; color: #fff; }
.hero h1 .hl { color: #7cc8f5; }
.hero .lead { color: var(--on-dark); margin-bottom: 0; }
.hero-links { position: relative; font-size: 14px; color: var(--on-dark-muted); margin: 4px 0 0; }
.hero-links a { color: var(--accent-light); text-decoration: none; }
.hero .btn.alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.facts { position: relative; z-index: 2; max-width: 1080px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; padding-bottom: 26px; }
.facts b { display: block; font-size: 24px; color: var(--accent-light); line-height: 1.3; }
.facts span { font-size: 12px; color: var(--on-dark-muted); }

/* 본문 */
main { padding: 32px 0 56px; }
h1 { font-size: 28px; line-height: 1.32; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.01em; margin: 44px 0 12px; padding-top: 4px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }
.lead { font-size: 18px; color: var(--muted); }
.answer { background: var(--soft); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; }

.cards { display: grid; gap: 12px; margin: 18px 0; }
.card { display: block; background: var(--dark2); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--on-dark); transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card strong { display: block; color: #fff; }
.card span { color: var(--on-dark-muted); font-size: 15px; }
.card span a { color: var(--accent-light); }
div.card:hover { transform: none; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; border: 1.5px solid var(--accent); }
.btn.alt { background: #fff; color: var(--brand); border-color: var(--brand); }

table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--dark2); color: var(--on-dark); border-bottom: 0; }
tbody th { background: var(--soft); }

dl.info { display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; margin: 10px 0 18px; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; }

details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; }
details summary::marker { color: var(--accent); }
details[open] summary { margin-bottom: 6px; }

.case-group h3 { margin-top: 22px; }
.case-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.case-list li { margin: 0; position: relative; }
.case-list a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px; border-radius: var(--radius); background: var(--soft); }
.case-list a:hover { background: #e9eef3; }
.case-list .thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--dark2); display: block; }
.case-list .thumb-none { background: linear-gradient(135deg, var(--dark2), #16303a); }
.case-list time { position: absolute; right: 12px; bottom: 8px; color: var(--muted); font-size: 12px; }
.byline { color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 14px; }

figure { margin: 20px 0; }
figure img { display: block; width: 100%; border-radius: var(--radius); background: #000; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.photos { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.photos figure { margin: 0; }
.table-scroll { overflow-x: auto; }
.price td, .price th { text-align: right; white-space: nowrap; }
.price td:first-child, .price th:first-child { text-align: left; }
.split { display: grid; gap: 16px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* 본문 + 옆 예약 상자 (PC) */
.layout { display: block; }
.side { display: none; }
.side-box { background: var(--dark2); color: var(--on-dark); border-radius: 18px; padding: 20px; }
.side-t { margin: 0 0 12px; font-weight: 800; font-size: 15px; color: #fff; }
.sb { display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; text-decoration: none; margin-bottom: 8px; font-size: 15px; }
.sb-naver { background: #03c75a; color: #fff; }
.sb-kakao { background: #fee500; color: #191919; }
.sb-tel { background: var(--accent); color: #fff; }
.side-info { font-size: 13px; color: var(--on-dark-muted); margin: 12px 0 0; line-height: 1.6; }
.side-info a { color: var(--accent-light); }

.promise { padding-left: 22px; }
.promise li { margin-bottom: 14px; }

.profile { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 20px; }
.profile-quote { font-size: 18px; line-height: 1.6; margin: 0 0 14px; color: var(--ink); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--brand); font-weight: 600; }

.profile-title { color: var(--muted); font-size: 16px; margin: -6px 0 18px; }

/* 꼬리 */
.site-footer { background: var(--dark); font-size: 14px; color: var(--on-dark-muted); }
.site-footer .wrap { max-width: 1080px; padding-top: 32px; padding-bottom: 32px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--on-dark); }
.foot-tag { color: var(--on-dark); font-weight: 700; }
.foot-logo { display: block; height: 30px; width: auto; margin-bottom: 12px; }

/* 예약 */
.nav .nav-book { color: #fff; background: #03c75a; border-radius: 999px; padding: 4px 14px; font-weight: 800; }
.nav .nav-book:hover { background: #02b351; color: #fff; }
.reserve { display: grid; gap: 10px; margin: 14px 0 18px; }
.rv { display: block; border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: #fff; }
.rv b { display: block; font-size: 18px; }
.rv span { font-size: 14px; opacity: .9; }
.rv-naver { background: #03c75a; }
.btn-naver { background: #03c75a; border-color: #03c75a; }
.rv-kakao { background: #fee500; color: #191919; }
.rv-tel { background: var(--dark2); }

/* 휴대폰 아래 예약 버튼 */
.callbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 10; display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(5,8,12,.92); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.callbar a { display: block; padding: 12px 4px; border-radius: 11px; text-align: center; font-weight: 800; font-size: 15px; text-decoration: none; color: #fff; background: var(--accent); }
.callbar .cb-naver { background: #03c75a; }
.callbar .cb-kakao { background: #fee500; color: #191919; }

@media (min-width: 1024px) {
  .layout { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 48px; justify-content: center; }
  .side { display: block; }
  .side-box { position: sticky; top: 24px; }
  .page-head .wrap { max-width: 1120px; }
  .case-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .case-list a { grid-template-columns: 1fr; padding: 0 0 30px; background: transparent; align-items: start; }
  .case-list a:hover { background: transparent; }
  .case-list a:hover .ct { text-decoration: underline; }
  .case-list .thumb { width: 100%; height: 150px; }
  .case-list .ct { padding: 0 2px; line-height: 1.45; }
  .case-list time { left: 2px; right: auto; bottom: 6px; }
}
@media (min-width: 720px) {
  .brand img { height: 44px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .reserve { grid-template-columns: repeat(3, 1fr); }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  h1 { font-size: 34px; }
  .page-head { padding: 48px 0 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-in { padding-top: 120px; padding-bottom: 80px; }
  .hero h1 { font-size: 54px; }
  .facts b { font-size: 32px; }
  .facts span { font-size: 14px; }
}
