/* ============================================================
   보라매 청년마음건강클리닉 — 공통 스타일시트
   색상이나 글꼴을 바꾸고 싶으면 아래 :root 변수만 수정하면
   사이트 전체에 반영됩니다.
   ============================================================ */

:root {
  --purple: #6C4FD8;          /* 메인 보라색 */
  --purple-deep: #4A38A8;     /* 진한 보라색 (호버, 강조) */
  --purple-soft: #EFEAFB;     /* 연한 보라 배경 */
  --lavender: #F7F5FD;        /* 아주 연한 보라 배경 */
  --mint: #3BB8A5;            /* 보조 색상 (민트) */
  --mint-soft: #E4F6F3;
  --coral: #F08A6C;           /* 포인트 색상 (코랄) */
  --coral-soft: #FDEEE9;
  --ink: #26223A;             /* 본문 글자색 */
  --ink-light: #6B677E;       /* 옅은 글자색 */
  --bg: #FCFBF9;              /* 페이지 배경 (따뜻한 흰색) */
  --white: #FFFFFF;
  --line: #E9E6F2;            /* 구분선 */
  --radius: 16px;
  --shadow: 0 6px 24px rgba(76, 56, 168, 0.08);
  --shadow-hover: 0 10px 32px rgba(76, 56, 168, 0.16);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 / 네비게이션 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 30px; width: auto; flex-shrink: 0; }
.logo-text { line-height: 1.25; padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 560px) {
  .logo-img { height: 24px; }
  .logo-text { display: none; }
}
.logo-text strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.logo-text span { display: block; font-size: 11px; color: var(--ink-light); letter-spacing: 0.04em; }

.gnb { display: flex; align-items: center; gap: 4px; }
.gnb > li { position: relative; list-style: none; }
.gnb > li > a {
  display: block; padding: 10px 12px; font-size: 14.5px; font-weight: 600;
  color: var(--ink); border-radius: 10px; transition: all .15s; white-space: nowrap;
}
.gnb > li > a:hover, .gnb > li.active > a { color: var(--purple); background: var(--purple-soft); }

.gnb .dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-hover); padding: 8px;
  opacity: 0; visibility: hidden; transition: all .18s;
  list-style: none;
}
.gnb > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a {
  display: block; padding: 9px 14px; font-size: 14px; border-radius: 9px; color: var(--ink);
}
.dropdown li a:hover { background: var(--purple-soft); color: var(--purple); }

.nav-cta {
  margin-left: 10px; padding: 10px 18px !important;
  background: var(--purple); color: #fff !important; border-radius: 999px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--purple-deep) !important; }

/* 모바일 메뉴 버튼 */
.menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-btn span {
  display: block; width: 24px; height: 2.5px; background: var(--ink);
  margin: 5px 0; border-radius: 2px; transition: all .2s;
}

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .gnb {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); gap: 0;
  }
  .gnb.open { display: flex; }
  .gnb .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0 0 6px 16px; min-width: 0;
  }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 700px 460px at 88% -10%, rgba(59,184,165,.16), transparent 60%),
    radial-gradient(ellipse 800px 520px at 8% 110%, rgba(240,138,108,.12), transparent 60%),
    linear-gradient(160deg, #F4F0FC 0%, #FBFAFE 55%, #F0F8F6 100%);
  padding: 88px 0 96px;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; text-align: center; }
.hero .eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--purple);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1.3; }
.hero h1 .accent { color: var(--purple); }
.hero p.lead {
  max-width: 620px; margin: 20px auto 0; font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-light);
}
.hero-actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 700; transition: all .15s; cursor: pointer; border: none;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-ghost { background: #fff; color: var(--purple); border: 1.5px solid var(--purple); }
.btn-ghost:hover { background: var(--purple-soft); transform: translateY(-2px); }
.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { filter: brightness(.93); transform: translateY(-2px); }

/* ---------- 섹션 공통 ---------- */
section.block { padding: 76px 0; }
section.block.tint { background: var(--lavender); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--mint); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.section-head p { color: var(--ink-light); margin-top: 10px; }

/* ---------- 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: all .18s;
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--purple); }
.card .icon {
  width: 48px; height: 48px; border-radius: 13px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
  background: var(--purple-soft); color: var(--purple-deep);
}
.card .icon.mint { background: var(--mint-soft); color: var(--mint); }
.card .icon.coral { background: var(--coral-soft); color: var(--coral); }
.card .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-light); }
.card .more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--purple); }

/* ---------- 치료진 카드 ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, 250px);
  justify-content: start; gap: 24px; margin: 28px 0;
}
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-align: center;
}
.team-photo {
  aspect-ratio: 3 / 3.6; background: linear-gradient(160deg, var(--purple-soft), var(--mint-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-light); font-size: 14px;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 18px 16px 22px; }
.team-info .role { font-size: 13px; font-weight: 700; color: var(--purple); letter-spacing: .06em; }
.team-info h3 { font-size: 19px; font-weight: 800; margin: 4px 0 6px; }
.team-info p { font-size: 13.5px; color: var(--ink-light); }

/* ---------- 서브페이지 상단 ---------- */
.page-head {
  background: linear-gradient(150deg, #F4F0FC 0%, #FBFAFE 60%, #F0F8F6 100%);
  padding: 56px 0 48px; border-bottom: 1px solid var(--line);
}
.page-head .crumb { font-size: 13px; color: var(--ink-light); margin-bottom: 12px; }
.page-head .crumb a:hover { color: var(--purple); }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.page-head p.sub { color: var(--ink-light); margin-top: 10px; max-width: 640px; }

.content { padding: 56px 0 80px; }
.content h2 { font-size: 23px; font-weight: 800; margin: 44px 0 16px; padding-left: 14px; border-left: 4px solid var(--purple); }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--purple-deep); }
.content p { margin-bottom: 14px; }
.content ul, .content ol { margin: 0 0 16px 4px; }
.content li { margin-bottom: 8px; }
.content .narrow { max-width: 820px; }

/* 정보 박스 */
.note {
  background: var(--purple-soft); border-radius: var(--radius);
  padding: 20px 24px; margin: 20px 0; font-size: 15px;
}
.note.mint { background: var(--mint-soft); }
.note.coral { background: var(--coral-soft); }
.note strong { color: var(--purple-deep); }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table.info {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  font-size: 15px; min-width: 520px;
}
table.info th, table.info td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.info thead th { background: var(--purple); color: #fff; font-weight: 700; }
table.info tbody tr:last-child td { border-bottom: none; }
table.info tbody tr:hover { background: var(--lavender); }
table.info td.ok { color: var(--purple); font-weight: 700; }
table.info.center th, table.info.center td { text-align: center; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); }

/* ---------- 절차 스텝 ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; margin: 24px 0; }
.step {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-light); }

/* ---------- FAQ 아코디언 ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 700; font-family: inherit;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .q-mark { color: var(--purple); font-weight: 800; margin-right: 6px; }
.faq-q .arrow { transition: transform .2s; color: var(--ink-light); flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-light); font-size: 15px; }
.faq-item.open .faq-a { display: block; }

/* ---------- 자가검진 ---------- */
.test-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.test-tab {
  padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  color: var(--ink-light); transition: all .15s;
}
.test-tab.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.quiz { max-width: 820px; margin: 0 auto; }
.quiz-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 14px;
}
.quiz-item .q-text { font-weight: 600; margin-bottom: 14px; }
.quiz-item .q-text .num { color: var(--purple); font-weight: 800; margin-right: 8px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-options label {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 14px; cursor: pointer; transition: all .12s; user-select: none;
}
.quiz-options label:hover { border-color: var(--purple); color: var(--purple); }
.quiz-options input { display: none; }
.quiz-options input:checked + span { }
.quiz-options label.checked { background: var(--purple); border-color: var(--purple); color: #fff; }

.quiz-result {
  display: none; margin-top: 28px; padding: 28px; border-radius: var(--radius);
  background: var(--purple-soft); text-align: center;
}
.quiz-result.show { display: block; }
.quiz-result .score { font-size: 40px; font-weight: 800; color: var(--purple-deep); }
.quiz-result .verdict { font-size: 18px; font-weight: 700; margin: 8px 0 12px; }
.quiz-result p { font-size: 14px; color: var(--ink-light); }

/* ---------- 연락 배너 ---------- */
.contact-banner {
  background: linear-gradient(120deg, var(--purple) 0%, var(--purple-deep) 100%);
  border-radius: 20px; color: #fff; padding: 44px 40px; text-align: center;
}
.contact-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.contact-banner p { opacity: .85; margin-bottom: 20px; }
.contact-banner .phone { font-size: 32px; font-weight: 800; letter-spacing: .02em; }
.contact-banner .btn { background: #fff; color: var(--purple-deep); margin: 18px 6px 0; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: #2B2640; color: #B9B4CE; padding: 44px 0 36px; margin-top: 0;
  font-size: 13.5px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-top strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 12.5px; }

/* ---------- 유틸 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }

.map-frame {
  width: 100%; height: 420px; border: none; border-radius: var(--radius);
  box-shadow: var(--shadow); display: block;
}

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(18px); transition: all .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
