/* 마음의 길 심리상담센터 — Stitch "Tranquil Path" 디자인 기반 */
:root {
  --bg: #FBF9F4;          /* 웜 오트밀 */
  --bg-tint: #F5F3EE;
  --surface: #FFFFFF;
  --inset: #EFECE4;
  --border: #E5E2D9;
  --border-strong: #C4BDAC;
  --primary: #3D5A4C;     /* 딥 세이지 그린 */
  --primary-hover: #325346;
  --text: #24332C;
  --muted: #4C5650;
  --terracotta: #C87A5B;  /* 장식용 (글자에는 쓰지 않음) */
  --serif: "Noto Serif KR", "AppleMyungjo", serif;
  --sans: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; color: var(--primary); letter-spacing: -0.02em; }
.brand-sub { font-size: .8125rem; color: var(--muted); }
.nav { order: 3; width: 100%; display: flex; justify-content: space-between; }
.nav a { font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 2px; }
.nav a:hover { color: var(--text); }
.header-call { margin-left: auto; font-size: .875rem; font-weight: 600; color: var(--primary); text-decoration: none; letter-spacing: .02em; }
.header-call-label { display: none; }

@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .header-inner { flex-wrap: nowrap; height: 80px; padding-top: 0; padding-bottom: 0; }
  .nav { order: 0; width: auto; gap: 32px; margin-left: auto; }
  .header-call { margin-left: 16px; display: flex; flex-direction: column; text-align: right; line-height: 1.3; }
  .header-call-label { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  border-radius: 4px; text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--inset); border-color: var(--text); }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.5; letter-spacing: -0.02em; margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.85; margin-bottom: 32px; max-width: 38em; }
.hero-facts { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9375rem; color: var(--muted); }
.hero-facts a { color: var(--primary); font-weight: 600; text-decoration: none; }
.hero-facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { padding-top: 0; }
.hero-photo { order: -1; margin: 0 -20px; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: 2.625rem; line-height: 1.45; }
  .hero-photo { order: 0; margin: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; border-radius: 8px; }
}

/* Space */
.space { padding: 0 0 8px; }
.space-grid { display: grid; gap: 12px; }
.space-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
@media (min-width: 700px) { .space-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .space-grid img { border-radius: 8px; } }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--bg-tint); }
.section-white { background: var(--surface); }
.section-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.45; letter-spacing: -0.015em; margin-bottom: 32px; }
@media (min-width: 900px) {
  .section { padding: 104px 0; }
  .section-title { font-size: 2.125rem; margin-bottom: 48px; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(35, 51, 43, .04); }
.num { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--primary); }

/* Areas */
.area-grid { display: grid; }
.area { padding: 20px 0; border-top: 1px solid var(--border-strong); }
.area h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 4px; }
.area p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 700px) { .area-grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } .area { padding: 28px 0; } }

/* Process */
.steps { display: grid; gap: 0; margin-bottom: 40px; }
.step { position: relative; padding: 0 0 32px 52px; }
.step::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 1px; background: #D8D2C5; }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step .num { position: absolute; left: 0; top: 2px; font-size: 1.25rem; }
.step h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 56px; }
  .step { padding: 52px 0 0; }
  .step::before { left: 44px; right: -24px; top: 12px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: none; }
  .step .num { top: 0; font-size: 1.5rem; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { background: var(--inset); color: var(--text); font-size: .8125rem; font-weight: 500; padding: 6px 12px; border-radius: 3px; }
.fees { display: grid; gap: 12px; }
.fee { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 16px; padding: 20px 24px; }
.fee-name { font-weight: 500; }
.fee-price { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; color: var(--primary); }
.fee-time { grid-column: 2; text-align: right; font-size: .8125rem; color: var(--muted); }
@media (min-width: 700px) { .fees { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* Ethics */
.ethics-grid { display: grid; gap: 16px; }
.ethic { background: var(--bg-tint); border-radius: 8px; padding: 28px 24px; display: grid; gap: 16px; align-content: start; }
.ethic strong { font-weight: 600; color: var(--text); }
.ethic p { color: var(--muted); }
.icon { width: 44px; height: 44px; padding: 10px; background: var(--surface); border-radius: 4px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 1px 3px rgba(35, 51, 43, .06); }
@media (min-width: 700px) { .ethics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } .ethic { padding: 36px 32px; } }

/* Team */
.team-grid { display: grid; gap: 20px; }
.person { padding: 28px 24px; }
.person-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.person-head img { width: 104px; height: 104px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.person h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.role { font-size: .875rem; color: var(--muted); }
.person h4 { font-size: .8125rem; font-weight: 600; color: var(--primary); letter-spacing: .02em; margin: 20px 0 8px; }
.person h4:first-of-type { margin-top: 0; }
.person li { position: relative; padding-left: 14px; font-size: .9375rem; line-height: 1.65; color: var(--muted); margin-bottom: 6px; }
.person li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1px; background: var(--terracotta); }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } .person { padding: 32px 28px; } }

/* Contact */
.contact-card { padding: 32px 24px; display: grid; gap: 32px; }
.contact-intro .section-title { margin-bottom: 16px; }
.contact-intro p { color: var(--muted); margin-bottom: 24px; }
.contact-list .row { display: grid; grid-template-columns: 3.5em 1fr; gap: 8px 12px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border); }
.contact-list dt { font-size: .8125rem; color: var(--muted); }
.contact-list dd { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; color: var(--primary); }
.contact-list dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-list .sub { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.row-action { grid-column: 2; justify-self: start; }
@media (min-width: 560px) {
  .contact-list .row { grid-template-columns: 3.5em 1fr auto; }
  .row-action { grid-column: auto; justify-self: end; }
}
.copy, .link {
  display: inline-block; font: inherit; font-size: .8125rem; font-weight: 500;
  color: var(--primary); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 4px; padding: 6px 12px; cursor: pointer; white-space: nowrap; line-height: 1.4;
}
.contact-list .row-action a.link { color: var(--primary); }
.copy:hover, .link:hover { background: var(--inset); text-decoration: none; }
@media (min-width: 900px) {
  .contact-card { grid-template-columns: 5fr 7fr; gap: 56px; padding: 56px; align-items: start; }
}

/* Footer */
.site-footer { padding: 32px 0 40px; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--border); }
.site-footer p + p { margin-top: 4px; }
.site-footer a { color: var(--primary); }

/* Mobile quick contact bar */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--primary); padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a { color: #fff; text-align: center; text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 14px 0; }
.quickbar a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
.quickbar a:focus-visible { outline-color: #fff; outline-offset: -4px; }
body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .quickbar { display: none; } body { padding-bottom: 0; } }
