/* ==========================================================
   워싱턴치과교정과 치과의원 — 라이트 블루 테마 (블루버전 시안 기반)
   ========================================================== */
:root {
  --bg: #f7fafd;
  --bg-soft: #eef4fb;
  --surface: #ffffff;
  --surface-hover: #eaf2fc;
  --gold-light: #1558a8;  /* 딥 블루 — 제목·링크·하이라이트 */
  --gold: #1a6ecc;        /* 프라이머리 블루 — 아이브로우·라벨 */
  --gold-dark: #0d4a8a;   /* 다크 블루 */
  --cream: #0f2846;       /* 본문 네이비 텍스트 */
  --muted: #4a5f7a;
  --dim: #7488a0;
  --line: rgba(26, 110, 204, 0.14);
  --line-strong: rgba(26, 110, 204, 0.5);
  --max: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--cream);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

@keyframes heroFade { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Header / GNB ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 110, 204, 0.18);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand img { display: none; }
.brand strong { color: var(--cream); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand .brand-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--gold); }
.gnb { display: flex; align-items: center; gap: 6px; list-style: none; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block; padding: 26px 14px; color: var(--cream);
  font-weight: 500; font-size: 15px;
}
.gnb > li > a:hover { color: var(--gold-light); text-decoration: none; }
.gnb .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 40, 70, 0.12);
  min-width: 210px; padding: 8px 0; list-style: none;
}
.gnb li:hover .dropdown { display: block; }
.gnb .dropdown a { display: block; padding: 10px 20px; color: var(--cream); font-size: 14px; }
.gnb .dropdown a:hover { background: rgba(26, 110, 204, 0.08); color: var(--gold-light); text-decoration: none; }
.gnb-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #f7fafd !important; border-radius: 999px;
  padding: 11px 22px !important; margin-left: 10px;
  font-size: 15px !important; font-weight: 700 !important;
}
.gnb-cta:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--gold-light); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(247,250,253,0.97) 28%, rgba(247,250,253,0.6) 62%, rgba(247,250,253,0.15)),
    url("../images/hero-main.jpg") center/cover no-repeat;
  color: var(--cream); text-align: left; padding: 110px 24px 96px;
}
.hero.sub { padding: 78px 24px 64px; }
.hero .hero-inner, .hero > h1, .hero > p, .hero > .hero-ctas { max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero .eyebrow-hero {
  max-width: var(--max); margin: 0 auto 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; color: var(--gold);
}
.hero h1 {
  font-size: 48px; line-height: 1.28; letter-spacing: -0.02em;
  font-weight: 700; margin-bottom: 26px; color: var(--cream);
  animation: heroFade 0.9s ease both;
}
.hero.sub h1 { font-size: 38px; }
.hero h1 .gold { color: var(--gold-light); }
.hero p.lead {
  font-size: 18px; line-height: 1.75; color: var(--muted);
  max-width: 640px; margin-left: 0; margin-bottom: 38px;
}
.hero .hero-ctas { margin-top: 0; display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.hero .eyebrow-hero + h1 { margin-top: 0; }

/* hero 내부 좌측 정렬을 위해 컨테이너 폭 통일 */
.hero > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero p.lead { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none !important;
  transition: all 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #f7fafd !important;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--gold-light) !important; font-weight: 600; }
.btn-outline:hover { border-color: var(--gold-light); background: rgba(26, 110, 204, 0.08); }
.btn-navy { border: 1px solid var(--line-strong); color: var(--gold-light) !important; background: transparent; font-weight: 600; }
.btn-navy:hover { border-color: var(--gold-light); background: rgba(26, 110, 204, 0.08); }

/* ---------- 핵심 요약 (인포 스트립/카드) ---------- */
.summary-box {
  max-width: var(--max); margin: 0 auto; position: relative; z-index: 5;
  background: var(--surface);
  border: 1px solid rgba(26, 110, 204, 0.18); border-radius: 18px;
  padding: 34px 38px;
  box-shadow: 0 6px 24px rgba(15, 40, 70, 0.06);
}
.summary-box h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 18px; text-transform: uppercase; }
.summary-box ul { list-style: none; }
.summary-box li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 16px; color: var(--muted); }
.summary-box li:last-child { border-bottom: 0; }
.summary-box li b { color: var(--gold-light); min-width: 92px; flex-shrink: 0; font-weight: 600; }
.summary-box li span { color: var(--cream); }

/* index 전용 4~6칸 인포 스트립 */
.info-strip {
  border-top: 1px solid rgba(26, 110, 204, 0.18);
  border-bottom: 1px solid rgba(26, 110, 204, 0.18);
  background: var(--bg-soft);
}
.info-strip .strip-grid {
  max-width: var(--max); margin: 0 auto; padding: 36px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.info-strip .cell { display: flex; flex-direction: column; gap: 8px; }
.info-strip .cell .label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--gold); }
.info-strip .cell .value { font-size: 15px; line-height: 1.6; color: var(--cream); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid rgba(26,110,204,0.12); border-bottom: 1px solid rgba(26,110,204,0.12); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .eyebrow { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.24em; }
.sec-head h2 { font-size: 36px; color: var(--cream); letter-spacing: -0.02em; margin-top: 12px; font-weight: 700; }
.sec-head p { color: var(--muted); margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; font-size: 16px; }
h3 { color: var(--gold-light); font-size: 22px; margin: 40px 0 14px; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--muted); }
p b, li b { color: var(--cream); }
p + p { margin-top: 12px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px 32px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 40, 70, 0.04);
}
.card:hover { border-color: rgba(26, 110, 204, 0.55); background: var(--surface-hover); box-shadow: 0 8px 24px rgba(15, 40, 70, 0.08); }
.card .card-num { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--gold-dark); margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; font-size: 21px; color: var(--cream); }
.card p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.card .more { display: inline-block; margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 14px; color: var(--gold-light); }

a.card { text-decoration: none !important; }
a.card:hover h3 { color: var(--gold-light); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
table.info {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--surface); border-radius: 14px; overflow: hidden;
}
table.info th, table.info td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
table.info th { background: rgba(26, 110, 204, 0.08); color: var(--gold-light); white-space: nowrap; font-weight: 600; }
table.info td { color: var(--muted); }
table.info td b { color: var(--cream); }
table.info caption { caption-side: top; text-align: left; font-weight: 700; color: var(--gold-light); padding-bottom: 12px; font-size: 17px; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px;
  background: var(--surface); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; color: var(--cream);
  list-style: none; position: relative; padding-right: 54px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(26, 110, 204, 0.05); }
.faq-item summary::after { content: "+"; position: absolute; right: 26px; top: 20px; font-size: 22px; color: var(--gold); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.faq-item .answer b { color: var(--cream); }
.faq-item .src { display: block; margin-top: 8px; font-size: 13px; color: var(--dim); }

/* ---------- 진료시간 / 위치 ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.notice-strip {
  background: rgba(26, 110, 204, 0.07); border-left: 3px solid var(--gold);
  padding: 18px 22px; border-radius: 8px; font-size: 14.5px; margin-top: 22px;
  color: var(--muted);
}
.notice-strip b { color: var(--gold-light); }
.map-embed { border: 1px solid rgba(26, 110, 204, 0.25); border-radius: 18px; overflow: hidden; margin-top: 16px; }

/* ---------- 스텝(치료 과정) ---------- */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 18px 0 18px 64px;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold-light); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.steps li b { color: var(--cream); }

/* ---------- WHY 리스트 (넘버 서클) ---------- */
.why-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 34px; }
.why-item { display: flex; gap: 20px; }
.why-item .num {
  flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold-light);
  font-size: 16px; font-weight: 700; background: var(--surface);
}
.why-item h3 { margin: 0 0 8px; font-size: 20px; color: var(--cream); }
.why-item p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.why-photo { position: relative; }
.why-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 18px; }
.why-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  border: 1px solid rgba(26, 110, 204, 0.3); pointer-events: none;
}

/* ---------- CTA 밴드 (블루 그라데이션 + 화이트 버튼) ---------- */
.cta-band {
  padding: 90px 24px;
  background: linear-gradient(135deg, #1a6ecc, #0d4a8a);
  border-top: 1px solid rgba(26, 110, 204, 0.2);
  border-bottom: 1px solid rgba(26, 110, 204, 0.2);
  text-align: center;
}
.cta-band h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: #cfe0f5; margin-bottom: 34px; }
.cta-band .hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #ffffff; color: #0d4a8a !important; }
.cta-band .btn-primary:hover { background: #eaf2fc; }
.cta-band .btn-outline { border: 1px solid rgba(255, 255, 255, 0.7); color: #ffffff !important; }
.cta-band .btn-outline:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.12); }

/* ---------- 의료진 ---------- */
.doctor-flex { display: flex; gap: 56px; align-items: flex-start; }
.doctor-flex .photo {
  flex: 0 0 380px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(26, 110, 204, 0.25);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.badge {
  background: rgba(26, 110, 204, 0.1); color: var(--gold-light); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px;
}
ul.creds { list-style: none; margin-top: 10px; }
ul.creds li {
  padding: 13px 0 13px 24px; position: relative; font-size: 15.5px; color: var(--cream);
  border-bottom: 1px solid var(--line);
}
ul.creds li::before {
  content: ""; position: absolute; left: 4px; top: 24px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid rgba(26,110,204,0.12); color: var(--dim); padding: 64px 0 96px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer h4 { color: var(--gold); font-size: 14px; letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 700; }
.site-footer p { color: var(--dim); line-height: 1.9; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .fineprint {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}

/* ---------- Floating CTA (mobile) ---------- */
.floating-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(26, 110, 204, 0.25);
  grid-template-columns: 1fr 1fr 1fr;
}
.floating-cta a {
  padding: 14px 4px; text-align: center; font-size: 13.5px; font-weight: 600;
  color: var(--cream); text-decoration: none !important; border-right: 1px solid var(--line);
}
.floating-cta a:last-child { border-right: 0; }
.floating-cta a.call {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff; font-weight: 700;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--dim); padding: 18px 0 0; }
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Updated date ---------- */
.updated { font-size: 13px; color: var(--dim); text-align: right; margin: 0 0 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gnb { display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); flex-direction: column; align-items: stretch;
    border-bottom: 1px solid rgba(26,110,204,0.2); padding: 8px 0 14px; gap: 0; }
  .gnb.open { display: flex; }
  .gnb > li > a { padding: 14px 24px; }
  .gnb .dropdown { display: block; position: static; border: 0; box-shadow: none; background: transparent; padding-left: 16px; }
  .menu-toggle { display: block; }
  .hero { padding: 72px 24px 60px; }
  .hero h1 { font-size: 30px; }
  .hero.sub h1 { font-size: 26px; }
  .hero p.lead { font-size: 16px; }
  section { padding: 64px 0; }
  .sec-head h2 { font-size: 27px; }
  .hours-grid, .site-footer .cols, .why-flex { grid-template-columns: 1fr; }
  .why-flex { gap: 36px; }
  .doctor-flex { flex-direction: column; }
  .doctor-flex .photo { flex: none; }
  .floating-cta { display: grid; }
  .summary-box { padding: 26px 22px; }
  .cta-band h2 { font-size: 25px; }
}

/* ── 사진 갤러리 (원장님 제공 실사) ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.photo-grid figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card, #fff); border: 1px solid rgba(26,110,204,0.12); }
.photo-grid img { width: 100%; height: 230px; object-fit: cover; display: block; }
.photo-grid figcaption { padding: 10px 14px 12px; font-size: 13.5px; color: var(--dim); }
.photo-wide { margin: 26px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(26,110,204,0.12); }
.photo-wide img { width: 100%; display: block; }
.photo-wide figcaption { padding: 10px 14px 12px; font-size: 13.5px; color: var(--dim); background: var(--card, #fff); }
