/* =========================================================
   오름 ABA 아동발달 연구소 — 공통 디자인
   색을 바꾸고 싶으면 아래 :root 안의 값만 고치면 됩니다.
   ========================================================= */
:root {
  --navy: #333F5E;        /* 기본색: 제목, 버튼, 메뉴 */
  --navy-dark: #232C44;
  --ink: #1F2533;         /* 본문 글자 */
  --muted: #5B6478;       /* 보조 글자 */
  --line: #E4E7EE;        /* 구분선 */
  --soft: #F5F7FA;        /* 연한 배경 */
  --white: #FFFFFF;

  /* 로고 네 가지 색: 서비스 구분용 포인트 */
  --teal: #5BC0CC;
  --red: #D5506A;
  --green: #228B45;
  --yellow: #F2C230;

  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- 확인 필요 표시 (실제 내용으로 바꿀 곳) ---------- */
mark.todo {
  background: #FFF4C9;
  color: #6A4D00;
  border-bottom: 2px dashed #E0A800;
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav li { margin: 0; position: relative; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-size: 15px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: var(--soft); }
.site-nav .nav-cta { background: var(--navy); color: #fff; padding: 10px 16px; }
.site-nav .nav-cta:hover { background: var(--navy-dark); color: #fff; }

.has-sub > .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 210px; flex-direction: column;
  box-shadow: 0 10px 30px rgba(31,37,51,.08); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .site-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; border-radius: 10px; border: 0; }
}

/* ---------- 공통 섹션 ---------- */
section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 8px; display: block; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }

.btn { display: inline-block; text-decoration: none; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-ghost { border: 1px solid var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--soft); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 홈 상단 ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 span { display: block; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.hero-facts li { background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); margin: 0; }
.hero-art { align-self: end; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; border-top: 5px solid var(--navy);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .15s ease;
}
a.card:hover { transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: .8em; }
.card .more { margin-top: auto; font-weight: 600; color: var(--navy); font-size: 15px; }
.c-teal { border-top-color: var(--teal); }
.c-red { border-top-color: var(--red); }
.c-green { border-top-color: var(--green); }
.c-yellow { border-top-color: var(--yellow); }
.c-navy { border-top-color: var(--navy); }

/* ---------- 두 칸 배치 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .split-media { order: 0; }
}
.figure { margin: 0; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.illust { background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.illust img, .hero-art img { width: 100%; }

/* ---------- 페이지 상단 ---------- */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .tag { display: inline-block; width: 36px; height: 6px; border-radius: 3px; background: var(--navy); margin-bottom: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* ---------- 정보 표 ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { background: var(--soft); border-radius: 12px; padding: 16px 18px; }
.fact dt { font-size: 14px; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }

.info-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 16px; }
.info-table th, .info-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 34%; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 6px 0; }
  .info-table th { padding-top: 14px; border-bottom: 0; }
}

/* ---------- 단계 ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.steps h3 { font-size: 17px; margin-bottom: .3em; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- 자주 묻는 질문 ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; color: var(--navy); position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--ink); }

/* ---------- 안내 박스 ---------- */
.note { background: var(--soft); border-left: 4px solid var(--navy); padding: 16px 20px; border-radius: 0; margin: 24px 0; font-size: 16px; }

/* ---------- 문의 띠 ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #D6DBE6; }
.cta-band .btn { background: #fff; color: var(--navy); }

/* ---------- 푸터 ---------- */
.site-footer { background: #F2F4F8; padding: 48px 0 32px; margin-top: 64px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--navy); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--navy); font-weight: 700; }
.footer-brand img { width: 34px; }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }

/* ---------- 치료진 ---------- */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; align-items: start; }
.staff { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.staff-lead { grid-column: 1 / -1; border-top: 5px solid var(--navy); }
.staff-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.staff-head h3 { margin: 0; }
.staff h4 { font-size: 14px; color: var(--muted); margin: 14px 0 4px; }
.staff ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.staff li { margin-bottom: .2em; }
.staff details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.staff summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag-teal { background: #DDF2F5; color: #1E6B74; }
.tag-red { background: #F7DCE2; color: #8E2A3E; }
.tag-green { background: #DCEFE2; color: #17602F; }
.staff-mini { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.staff-mini li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.staff-mini a { text-decoration: none; }
.staff-mini span { font-size: 14px; color: var(--muted); }

@media (max-width: 760px) { .staff-grid { grid-template-columns: 1fr; } }

/* PC에서만 줄바꿈: <br class="br-pc"> */
@media (max-width: 860px) { .br-pc { display: none; } }
/* 글이 긴 두 칸 배치: 글 칸을 넓게 */
.split-text { grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.split-text .split-media { position: sticky; top: 96px; margin-top: 64px; }
@media (max-width: 860px) { .split-text .split-media { position: static; margin-top: 0; } }
@media (max-width: 860px) { .split-text { grid-template-columns: 1fr; } }

/* 서비스 페이지 소제목·강조 문장 */
.sub-lead { font-size: 19px; font-weight: 600; color: var(--navy); margin-top: -.2em; }
.pull { border-left: 4px solid var(--teal); padding: 6px 0 6px 16px; color: var(--navy); font-weight: 500; border-radius: 0; }

/* 이용 안내 */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.guide-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.guide-item h3 { font-size: 17px; }
.guide-item p, .guide-item li { font-size: 16px; }
.guide-item p:last-child { margin-bottom: 0; }
.guide-item ul { margin: 0; }
.small { font-size: 14px !important; color: var(--muted); }
@media (max-width: 760px) { .guide-grid { grid-template-columns: 1fr; } }
