/*
Theme Name: 해독한의원 v2
Author: 전주해독한의원
Version: 2.0.0
*/

/* ================================================
   CSS 변수
   ================================================ */
:root {
  /* 그린 계열 */
  --g900: #0d2b1d;
  --g800: #1b4332;
  --g700: #2d6a4f;
  --g600: #40916c;
  --g400: #74c69d;
  --g100: #d8f3dc;
  --g50:  #f0faf4;

  /* 골드 계열 */
  --au700: #8a6830;
  --au500: #b7935a;
  --au300: #d4a96a;
  --au100: #f5e6c8;

  /* 배경 */
  --bg:      #ffffff;
  --bg-soft: #f6f9f7;
  --bg-warm: #faf8f4;

  /* 텍스트 */
  --tx:     #1a1a1a;
  --tx-mid: #4a4a4a;
  --tx-sft: #7a7a7a;

  /* 선 */
  --bd: #e0e8e3;

  /* 그림자 */
  --sh-xs: 0 1px 4px rgba(27,67,50,0.06);
  --sh-sm: 0 2px 12px rgba(27,67,50,0.08);
  --sh-md: 0 6px 28px rgba(27,67,50,0.13);
  --sh-lg: 0 16px 56px rgba(27,67,50,0.18);

  /* 반경 */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   리셋 & 기본
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--tx);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ================================================
   레이아웃 유틸
   ================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section      { padding: 96px 0; }
.section-bg   { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }

.section-head { text-align: center; margin-bottom: 64px; }
.kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g600);
  background: var(--g50);
  border: 1px solid var(--g100);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 900;
  color: var(--g800);
  margin-bottom: 16px;
  word-break: keep-all;
  line-height: 1.25;
}
.section-head h2 em { font-style: normal; color: var(--au500); }
.section-head p {
  font-size: 0.96rem;
  color: var(--tx-sft);
  max-width: 540px;
  margin: 0 auto;
  word-break: keep-all;
  line-height: 1.85;
}
.section-more { text-align: center; margin-top: 52px; }

/* ================================================
   버튼
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  transition: all var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}
.btn-accent {
  background: var(--au500);
  color: #fff;
  border-color: var(--au500);
}
.btn-accent:hover {
  background: var(--au700);
  border-color: var(--au700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183,147,90,0.38);
}
.btn-outline {
  background: transparent;
  color: var(--g700);
  border-color: var(--g700);
}
.btn-outline:hover {
  background: var(--g800);
  color: #fff;
  border-color: var(--g800);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.38);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.65);
}

/* ================================================
   GNB
   ================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--bd);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--ease);
}
#site-header.scrolled { box-shadow: var(--sh-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* 로고 */
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(140deg, var(--g800), var(--g600));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(27,67,50,0.28);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ko {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--g800);
}
.logo-en {
  font-size: 0.58rem;
  color: var(--au500);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 1px;
}

/* 네비 */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tx-mid);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: all var(--ease);
}
.main-nav a:hover { color: var(--g800); background: var(--g50); }
.nav-cta {
  background: var(--g800) !important;
  color: #fff !important;
  padding: 8px 22px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--g700) !important; color: #fff !important; }

#nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tx);
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--ease);
}

/* ================================================
   히어로
   ================================================ */
#hero {
  position: relative;
  min-height: calc(100vh - 72px);
  background: linear-gradient(150deg, var(--g900) 0%, var(--g800) 55%, var(--g700) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-deco-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-deco-ring-1 {
  width: 640px;
  height: 640px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  border: 80px solid rgba(255,255,255,0.035);
  background: rgba(255,255,255,0.015);
}
.hero-deco-ring-2 {
  width: 400px;
  height: 400px;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 64px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--au300);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212,169,106,0.3);
  animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(212,169,106,0.3); }
  50%       { box-shadow: 0 0 0 7px rgba(212,169,106,0.1); }
}

#hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 24px;
  word-break: keep-all;
}
#hero h1 em {
  font-style: normal;
  color: var(--au300);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 44px;
  word-break: keep-all;
  max-width: 500px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.32);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  transform-origin: top;
  animation: scrollAnim 1.9s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ================================================
   Stats Bar
   ================================================ */
.stats-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--bd);
}
.stats-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 52px;
  text-align: center;
  gap: 6px;
}
.stat-item strong {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--g800);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-item strong span {
  font-size: 1rem;
  font-weight: 700;
}
.stat-item > span {
  font-size: 0.75rem;
  color: var(--tx-sft);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  background: var(--bd);
  margin: 16px 0;
  flex-shrink: 0;
}

/* ================================================
   의원 소개 (About)
   ================================================ */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-frame { position: relative; }
.about-img-placeholder {
  background: linear-gradient(135deg, var(--g50) 0%, var(--au100) 100%);
  border: 2px solid var(--bd);
  border-radius: var(--r-xl);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--tx-sft);
  font-size: 0.85rem;
}
.clinic-icon { font-size: 3.2rem; }
.about-badge-float {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--g800);
  color: rgba(255,255,255,0.75);
  padding: 16px 22px;
  border-radius: var(--r);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  box-shadow: var(--sh-lg);
}
.about-badge-float strong {
  color: var(--au300);
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 2px;
}

/* About 텍스트 */
.about-text .kicker { display: block; }
.about-text h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  color: var(--g800);
  margin: 16px 0 20px;
  line-height: 1.25;
  word-break: keep-all;
}
.about-text h2 em { font-style: normal; color: var(--au500); }
.about-lead {
  font-size: 1rem;
  color: var(--tx-mid);
  line-height: 1.9;
  margin-bottom: 36px;
  word-break: keep-all;
  border-left: 3px solid var(--g600);
  padding-left: 18px;
}
.about-features { display: flex; flex-direction: column; gap: 20px; }
.about-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feat-icon {
  width: 44px;
  height: 44px;
  background: var(--g50);
  border: 1px solid var(--g100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.about-feat strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--g800);
  margin-bottom: 4px;
}
.about-feat span {
  font-size: 0.83rem;
  color: var(--tx-sft);
  line-height: 1.75;
  word-break: keep-all;
}

/* ================================================
   왜 전주해독인가 (Why)
   ================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 36px 28px 32px;
  transition: all var(--ease);
}
.why-card:hover {
  border-color: var(--g600);
  box-shadow: var(--sh-md);
  transform: translateY(-5px);
}
.why-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--g100);
  line-height: 1;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--g800);
  margin-bottom: 12px;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--tx-sft);
  line-height: 1.82;
  word-break: keep-all;
}

/* ================================================
   진료 과목 카드
   ================================================ */
.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.care-card {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--ease);
}
.care-card:hover {
  border-color: var(--g600);
  box-shadow: var(--sh-md);
  transform: translateY(-5px);
}
.care-icon-wrap {
  background: linear-gradient(140deg, var(--g50), var(--bg-warm));
  padding: 28px;
  border-bottom: 1px solid var(--bd);
}
.care-icon {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: var(--sh-xs);
}
.care-body {
  padding: 24px 26px 0;
  flex: 1;
}
.care-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--g800);
  margin-bottom: 10px;
}
.care-body p {
  font-size: 0.85rem;
  color: var(--tx-sft);
  line-height: 1.82;
  word-break: keep-all;
  margin-bottom: 16px;
}
.care-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.care-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--g700);
  background: var(--g50);
  border: 1px solid var(--g100);
  padding: 4px 10px;
  border-radius: 100px;
}
.care-footer { padding: 16px 26px 22px; }
.care-more {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--g700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--ease), color var(--ease);
}
.care-card:hover .care-more { gap: 10px; color: var(--g800); }

/* ================================================
   진료 과정
   ================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 29px;
  left: calc(50% / 4);
  right: calc(50% / 4);
  height: 2px;
  background: linear-gradient(to right, var(--g100), var(--g600), var(--g100));
  z-index: 0;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 60px;
  height: 60px;
  background: linear-gradient(140deg, var(--g800), var(--g600));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(27,67,50,0.28);
  letter-spacing: 0.04em;
}
.process-step h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--g800);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.82rem;
  color: var(--tx-sft);
  line-height: 1.75;
  word-break: keep-all;
}

/* ================================================
   진료시간 & 오시는 길
   ================================================ */
.info-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.info-box {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.info-box-head {
  background: linear-gradient(135deg, var(--g800), var(--g700));
  color: #fff;
  padding: 20px 28px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--bd); }
.info-table tr:last-child { border-bottom: none; }
.info-table th, .info-table td { padding: 14px 28px; font-size: 0.88rem; text-align: left; }
.info-table th { color: var(--tx-sft); font-weight: 600; width: 36%; }
.info-table td { font-weight: 700; color: var(--g800); }
.info-table .closed { color: #c0392b; font-weight: 700; }
.badge-night, .badge-sat {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  margin-left: 8px;
}
.badge-night { background: #fff8e1; color: #7a5c00; }
.badge-sat   { background: #e8f5e9; color: #2e7d32; }

.map-embed {
  background: var(--bg-soft);
  border: 1.5px solid var(--bd);
  border-radius: var(--r-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--tx-sft);
  font-size: 0.88rem;
  padding: 40px;
  margin-bottom: 20px;
}
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--tx-mid);
  line-height: 1.6;
}
.contact-row strong { color: var(--g800); font-weight: 700; }

/* ================================================
   건강 정보 (Blog)
   ================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--ease);
  cursor: pointer;
}
.post-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  border-color: var(--g400);
}
.post-thumb {
  height: 160px;
  background: linear-gradient(140deg, var(--g50), var(--au100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  border-bottom: 1px solid var(--bd);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px 22px; }
.post-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--g600);
  background: var(--g50);
  border: 1px solid var(--g100);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px;
}
.post-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--tx);
  line-height: 1.55;
  margin-bottom: 10px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-date { font-size: 0.75rem; color: var(--tx-sft); }

/* ================================================
   CTA 배너
   ================================================ */
.cta-banner {
  position: relative;
  background: linear-gradient(150deg, var(--g900) 0%, var(--g800) 60%, var(--g700) 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-deco::before {
  content: '';
  position: absolute;
  inset: 100px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}
.cta-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cta-banner h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  margin-bottom: 44px;
  line-height: 1.25;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ================================================
   푸터
   ================================================ */
#site-footer {
  background: #0e0e0e;
  color: rgba(255,255,255,0.42);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo-ko {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.footer-logo-en {
  display: block;
  font-size: 0.58rem;
  color: var(--au300);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-info { font-size: 0.78rem; line-height: 2.3; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer-col li { font-size: 0.8rem; margin-bottom: 10px; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ================================================
   반응형
   ================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .about-wrap { gap: 52px; }
}
@media (max-width: 900px) {
  .care-grid   { grid-template-columns: 1fr 1fr; }
  .post-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-wrap  { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .stats-grid  { flex-wrap: wrap; }
  .stat-item   { padding: 20px 28px; }
  .stat-divider { margin: 0; height: 1px; width: 80px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  #nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--bd);
    box-shadow: var(--sh-md);
    z-index: 199;
    padding: 8px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; border-radius: 0; }
  .main-nav a:hover { background: var(--bg-soft); }
  .nav-cta { margin-left: 0; border-radius: 0 !important; }
  .care-grid, .post-grid { grid-template-columns: 1fr; }
  .info-wrap  { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { flex-direction: column; }
  .footer-grid { gap: 24px; }
}

/* ================================================
   페이지네이션 (블로그/아카이브용)
   ================================================ */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid var(--bd);
  color: var(--tx-mid);
  transition: all var(--ease);
}
.nav-links a:hover { background: var(--g800); color: #fff; border-color: var(--g800); }
.nav-links .current { background: var(--g800); color: #fff; border-color: var(--g800); }
