/* ==========================================================
   워싱턴치과교정과 치과의원 — GEO 최적화 정적 사이트 공통 스타일
   ========================================================== */
:root {
  --navy: #1f3a5f;
  --navy-dark: #16293f;
  --teal: #2a8c82;
  --teal-light: #e8f4f2;
  --ink: #24303c;
  --gray: #5b6774;
  --line: #e3e8ee;
  --bg-soft: #f6f8fa;
  --white: #ffffff;
  --max: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  word-break: keep-all;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / GNB ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand strong { color: var(--navy); font-size: 17px; letter-spacing: -0.3px; }
.gnb { display: flex; align-items: center; gap: 4px; list-style: none; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block; padding: 20px 14px; color: var(--ink);
  font-weight: 600; font-size: 15px;
}
.gnb > li > a:hover { color: var(--teal); text-decoration: none; }
.gnb .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20,40,60,.12);
  min-width: 200px; padding: 8px 0; list-style: none;
}
.gnb li:hover .dropdown { display: block; }
.gnb .dropdown a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14px; }
.gnb .dropdown a:hover { background: var(--teal-light); text-decoration: none; }
.gnb-cta {
  background: var(--navy); color: #fff !important; border-radius: 24px;
  padding: 9px 18px !important; margin-left: 8px; font-size: 14px !important;
}
.gnb-cta:hover { background: var(--navy-dark); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(22,41,63,.72), rgba(22,41,63,.72)), url("../images/hero-clinic.jpg") center/cover no-repeat;
  color: #fff; text-align: center; padding: 74px 20px 66px;
}
.hero.sub { padding: 52px 20px 46px; }
.hero h1 { font-size: 34px; line-height: 1.35; letter-spacing: -0.5px; margin-bottom: 14px; }
.hero p.lead { font-size: 18px; opacity: .95; max-width: 720px; margin: 0 auto; }
.hero .hero-ctas { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 28px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #237267; }
.btn-outline { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- 핵심 요약 박스 ---------- */
.summary-box {
  max-width: 860px; margin: -34px auto 0; position: relative; z-index: 5;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20,40,60,.10);
  padding: 26px 30px;
}
.summary-box h2 { font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.summary-box ul { list-style: none; }
.summary-box li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; display: flex; gap: 10px; }
.summary-box li:last-child { border-bottom: 0; }
.summary-box li b { color: var(--navy); min-width: 86px; flex-shrink: 0; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .eyebrow { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.sec-head h2 { font-size: 28px; color: var(--navy); letter-spacing: -0.5px; margin-top: 6px; }
.sec-head p { color: var(--gray); margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }
h3 { color: var(--navy); font-size: 20px; margin: 28px 0 10px; }
p + p { margin-top: 12px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 8px 22px rgba(20,40,60,.10); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { font-size: 14.5px; color: var(--gray); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
table.info {
  width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white);
}
table.info th, table.info td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
table.info th { background: var(--teal-light); color: var(--navy); white-space: nowrap; }
table.info caption { caption-side: top; text-align: left; font-weight: 700; color: var(--navy); padding-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: var(--white); }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 40px;
}
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 14px; font-size: 20px; color: var(--teal); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 18px 16px; color: var(--ink); font-size: 15px; }
.faq-item .src { display: block; margin-top: 6px; font-size: 13px; color: var(--gray); }

/* ---------- 진료시간 / 위치 ---------- */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.notice-strip {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  padding: 14px 18px; border-radius: 6px; font-size: 14.5px; margin-top: 18px;
}
.map-embed { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 16px; }

/* ---------- 스텝(치료 과정) ---------- */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 0 14px 56px;
  border-bottom: 1px dashed var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps li b { color: var(--navy); }

/* ---------- 의료진 ---------- */
.doctor-flex { display: flex; gap: 36px; align-items: flex-start; }
.doctor-flex .photo { flex: 0 0 320px; border-radius: 14px; overflow: hidden; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.badge {
  background: var(--teal-light); color: var(--navy); font-size: 13px; font-weight: 700;
  border-radius: 16px; padding: 5px 13px;
}
ul.creds { list-style: none; margin-top: 10px; }
ul.creds li { padding: 6px 0 6px 22px; position: relative; font-size: 15px; }
ul.creds li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c7d2dd; padding: 44px 0 90px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer a { color: #9fd8d0; }
.site-footer .fineprint { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #8fa0b0; }

/* ---------- Floating CTA (mobile) ---------- */
.floating-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--white); border-top: 1px solid var(--line);
  grid-template-columns: 1fr 1fr 1fr;
}
.floating-cta a {
  padding: 13px 4px; text-align: center; font-size: 13.5px; font-weight: 700;
  color: var(--navy); text-decoration: none !important; border-right: 1px solid var(--line);
}
.floating-cta a:last-child { border-right: 0; }
.floating-cta a.call { background: var(--navy); color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--gray); padding: 14px 0 0; }
.breadcrumb a { color: var(--gray); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Updated date ---------- */
.updated { font-size: 13px; color: var(--gray); text-align: right; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gnb { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); padding: 8px 0; gap: 0; }
  .gnb.open { display: flex; }
  .gnb > li > a { padding: 13px 22px; }
  .gnb .dropdown { display: block; position: static; border: 0; box-shadow: none; padding-left: 14px; }
  .gnb-cta { margin: 8px 22px; text-align: center; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 25px; }
  .hero p.lead { font-size: 16px; }
  .hours-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .doctor-flex { flex-direction: column; }
  .doctor-flex .photo { flex: none; }
  .floating-cta { display: grid; }
  body { padding-bottom: 0; }
}
