/* ============================================
   위니캇정신분석심리상담연구소 (dwwi.net)
   디자인: 딥 네이비 + 웜 골드 + 아이보리
   ============================================ */

:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --soft: #f3eee2;
  --text: #1f2434;
  --muted: #5b6172;
  --line: rgba(28, 36, 56, 0.10);
  --line-strong: rgba(28, 36, 56, 0.18);
  --primary: #1f3057;
  --primary-d: #14223e;
  --accent: #b08847;
  --accent-d: #8c6a32;
  --shadow-sm: 0 2px 10px rgba(28, 36, 56, 0.06);
  --shadow-md: 0 8px 22px rgba(28, 36, 56, 0.10);
  --radius: 10px;
  --tx: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--tx); }
a:hover { color: var(--accent-d); }
h1, h2, h3, h4 {
  font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.4;
}

::selection { background: rgba(176, 136, 71, 0.25); }

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ===================== Header ===================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(31, 48, 87, 0.25);
}
.logo-txt {
  font-family: 'Noto Serif KR', serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.logo-txt small {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 3px;
}
@media (max-width: 1100px) {
  .logo-txt { font-size: 14px; }
  .logo-txt small { font-size: 9.5px; }
}
@media (max-width: 720px) {
  .logo-txt { font-size: 13px; }
  .logo-txt small { display: none; }
}
nav.gnb { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
nav.gnb a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 11px;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
}
@media (max-width: 1280px) {
  nav.gnb a { font-size: 13px; padding: 7px 9px; }
}
nav.gnb a:hover { color: var(--primary); background: var(--soft); }
nav.gnb a.active { color: var(--primary); background: var(--soft); }

.hd-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.hd-cta:hover { background: var(--primary-d) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--text); }

/* ===================== Hero ===================== */
.hero {
  background: linear-gradient(180deg, #f7f3e8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 74px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -180px; top: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(176, 136, 71, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-d);
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 42px;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero h1 .em { color: var(--accent-d); }
.hero p.lead {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 28px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--tx);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-d); color: #fff; }

.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px;
  box-shadow: var(--shadow-md);
}
.hero-card .quote-mark {
  font-family: 'Noto Serif KR', serif;
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: -10px;
}
.hero-card blockquote {
  font-family: 'Noto Serif KR', serif;
  font-size: 18.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
}
.hero-card cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.hero-card cite::before { content: '— '; }

/* ===================== Section base ===================== */
section { padding: 60px 0; }
.sec-head {
  text-align: center;
  margin-bottom: 38px;
}
.sec-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-d);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-title {
  font-size: 28px;
  margin-bottom: 10px;
}
.sec-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto;
}

/* ===================== About ===================== */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text h2 { font-size: 26px; margin-bottom: 14px; }
.about-text p { color: var(--muted); margin-bottom: 12px; }
.about-keys {
  list-style: none;
  margin-top: 20px;
}
.about-keys li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  color: var(--text);
  font-size: 14.5px;
}
.about-keys li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 6px;
}
.about-keys li:last-child { border-bottom: 1px dashed var(--line); }

.profile-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  text-align: center;
}
.profile-card .ph {
  width: 110px; height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8caa8, #b08847);
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.profile-card h3 { font-size: 20px; margin-bottom: 4px; }
.profile-card .role { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.profile-card .meta {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  text-align: left;
  background: var(--surface);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.profile-card .meta strong { color: var(--primary); display: block; margin-bottom: 4px; font-size: 12.5px; letter-spacing: 0.3px; }

/* ===================== Counseling areas ===================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.area-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  text-align: center;
  transition: var(--tx);
}
.area-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.area-icon {
  width: 46px; height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--soft);
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--accent-d);
}
.area-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--primary);
}
.area-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  min-height: 44px;
}

/* ===================== Programs ===================== */
.programs { background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%); }
.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.prog-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--tx);
}
.prog-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.prog-banner {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.prog-body { padding: 22px 22px 24px; }
.prog-tag {
  display: inline-block;
  font-size: 11px;
  background: var(--soft);
  color: var(--accent-d);
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.prog-item h4 { font-size: 17px; margin-bottom: 8px; }
.prog-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 56px;
}
.prog-meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.prog-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ===================== Notice ===================== */
.notice-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.notice-row {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14.5px;
  transition: var(--tx);
}
.notice-row:last-child { border-bottom: none; }
.notice-row:hover { background: var(--soft); }
.notice-tag {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent-d);
}
.notice-tag.t-event { background: rgba(31, 48, 87, 0.08); color: var(--primary); }
.notice-row h5 {
  font-size: 14.5px;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  margin: 0;
}
.notice-row .dt { color: var(--muted); font-size: 13px; text-align: right; }

/* ===================== Quote band ===================== */
.quote-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.quote-band::before, .quote-band::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(176, 136, 71, 0.08);
  pointer-events: none;
}
.quote-band::before { left: -100px; top: -100px; }
.quote-band::after  { right: -100px; bottom: -100px; }
.quote-band .qt {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto 14px;
  position: relative;
}
.quote-band .qc { font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 1px; }

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
}
.contact-block h4 {
  font-size: 17px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.contact-block h4 .ico {
  width: 28px; height: 28px;
  background: var(--soft);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--accent-d);
  font-size: 14px;
}
.contact-list {
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.contact-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .k { color: var(--text); font-weight: 500; min-width: 70px; }
.contact-list .v { text-align: right; flex: 1; }

/* ===================== Footer ===================== */
.site-footer {
  background: #14223e;
  color: rgba(255,255,255,0.75);
  padding: 38px 0 22px;
  font-size: 13.5px;
  margin-top: 20px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 18px;
}
.foot-top h6 {
  font-family: 'Noto Sans KR', sans-serif;
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.foot-top a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; font-size: 13px; }
.foot-top a:hover { color: var(--accent); }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,0.55); }

/* ===================== Sub page ===================== */
.subhero {
  background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%);
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.subhero h1 { font-size: 32px; margin-bottom: 8px; }
.subhero p { color: var(--muted); font-size: 14.5px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.3px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-d); }

article.body p { margin-bottom: 14px; color: var(--text); }
article.body h3 {
  font-size: 20px;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
article.body ul { margin: 8px 0 14px 20px; }
article.body li { margin-bottom: 6px; color: var(--muted); }

/* ===================== Responsive ===================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.gnb { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 10px 22px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  nav.gnb.open { display: flex; }
  nav.gnb a { padding: 12px 14px; }
  .menu-toggle { display: block; }
  .sec-title { font-size: 22px; }
  .hero { padding: 50px 0 44px; }
  .hero h1 { font-size: 26px; }
  .quote-band .qt { font-size: 17px; }
  .notice-row { grid-template-columns: 60px 1fr; }
  .notice-row .dt { display: none; }
}
