/* ============================================================
   style.css — 공통 스타일
   백세인생 방문간호센터
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;800&display=swap');

/* ── 1. CSS Variables ───────────────────────────────────── */
:root {
  --navy:          #1B3A5C;
  --navy-dark:     #0E2238;
  --navy-medium:   #2A5080;
  --navy-light:    #3A6898;
  --blue-gray:     #EBF1F8;
  --blue-gray-mid: #D5E3EF;
  --blue-gray-dark:#B8CFDF;
  --teal:          #2BB8A4;
  --teal-dark:     #1E9A8A;
  --teal-light:    #E3F7F4;
  --yellow:        #F5A623;
  --yellow-dark:   #DC8F1A;
  --yellow-light:  #FEF3DF;
  --stage-1:       #F9C74F;
  --stage-2:       #F4A43A;
  --stage-3:       #E8761F;
  --stage-4:       #D63B2F;
  --white:         #FFFFFF;
  --gray-50:       #F6F8FA;
  --gray-100:      #EEF1F6;
  --gray-200:      #DEE5EF;
  --gray-400:      #99ABC0;
  --gray-600:      #5E7285;
  --text-primary:  #1A2636;
  --text-body:     #3D5166;
  --text-light:    #6B82A0;
  --text-muted:    #95A8BC;
  --border:        #D5E3EF;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --section-py:    96px;
  --container-max: 1400px;
  --container-px:  32px;
  --shadow-xs:     0 1px 4px rgba(27,58,92,.06);
  --shadow-sm:     0 2px 10px rgba(27,58,92,.08);
  --shadow-md:     0 4px 20px rgba(27,58,92,.10);
  --shadow-lg:     0 8px 32px rgba(27,58,92,.14);
  --shadow-teal:   0 4px 16px rgba(43,184,164,.25);
  --shadow-yellow: 0 4px 16px rgba(245,166,35,.30);
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;
  --transition:    0.25s ease;
  --transition-md: 0.35s ease;
  --transition-slow: 0.6s ease;
}

/* ── 2. Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.skip-hero-intro { visibility: hidden; }
body { font-family: var(--font); color: var(--text-body); background: var(--white); line-height: 1.7; word-break: keep-all; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── 3. Container ───────────────────────────────────────── */
/* (실제 폭 계산은 아래 §4-2에서 최종 정의) */

/* ── 4. Header ──────────────────────────────────────────── */
/* position/transition은 여기서, 배경·블러·보더는 §4-2에서 정의(중복 제거) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: transparent; }

.header-inner { display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-image {
  display: block;
  max-height: 96px;
  width: auto;
}
.site-header .logo-image {
  height: 140px;
  width: auto;
  max-height: none;
}
/* 로고 크기는 이제 footer-logo-baekse(§Footer 섹션)에서 직접 지정 */
.logo-cross {
  width: 38px; height: 38px;
  background: var(--navy); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.4rem; font-weight: 300; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 1rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.logo-text span { font-size: .72rem; color: var(--text-light); font-weight: 400; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  display: block; padding: 8px 12px;
  font-size: .875rem; font-weight: 500; color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--navy); background: var(--blue-gray); }
.main-nav li.active > a { color: var(--teal); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 700; color: var(--navy); white-space: nowrap;
}
.header-phone svg { color: var(--teal); flex-shrink: 0; }
.btn-header-consult {
  display: inline-flex; align-items: center;
  padding: 9px 20px; background: var(--yellow); color: var(--navy-dark);
  font-size: .82rem; font-weight: 700; border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-header-consult:hover { background: var(--yellow-dark); transform: translateY(-1px); box-shadow: var(--shadow-yellow); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; gap: 5px; flex-shrink: 0;
  border-radius: var(--radius-sm); transition: background var(--transition);
}
.hamburger:hover { background: var(--blue-gray); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(14,34,56,.5); z-index: 998;
  opacity: 0; transition: opacity var(--transition-md);
}
.mobile-overlay.open { display: block; opacity: 1; }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 0; right: -100%; z-index: 999;
  width: min(320px, 88vw); height: 100vh; height: 100dvh;
  background: var(--white);
  transition: right var(--transition-md) cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 80px 24px 40px;
  display: flex; flex-direction: column;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  display: block; padding: 15px 16px;
  font-size: 1rem; font-weight: 500; color: var(--text-body);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav li.active a { color: var(--navy); background: var(--blue-gray); }
.mobile-nav-contact { margin-top: 24px; padding: 20px; background: var(--blue-gray); border-radius: var(--radius-md); }
.mobile-nav-contact p { font-size: .78rem; color: var(--text-light); margin-bottom: 6px; }
.mobile-phone { display: block; font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.mobile-nav-consult {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; background: var(--yellow); color: var(--navy-dark);
  font-size: .9rem; font-weight: 700; border-radius: var(--radius-md);
  transition: background var(--transition);
}
.mobile-nav-consult:hover { background: var(--yellow-dark); }

/* ── 5. Footer ──────────────────────────────────────────── */
/* 실제 정의는 "Light footer redesign" 섹션(§ 하단) 참고 — 마크업(js/main.js FOOTER_HTML)이
   .footer-logo-item/.footer-logo-cornex/.footer-logo-baekse 구조라 구 버전(logo-cross/logo-text
   기반)은 대응하는 엘리먼트가 없어 전부 죽은 규칙이었음 → 삭제 */

/* ── 6. Page Header Banner ──────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1E4A6E 100%);
  padding: 116px 0 52px; color: var(--white);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,.8); }
.breadcrumb .bc-sep { opacity: .4; }
.breadcrumb .bc-current { color: var(--teal); }
.page-header h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.page-header > .container > p { font-size: .95rem; color: rgba(255,255,255,.68); }

/* ── 7. Section Common ──────────────────────────────────── */
section { padding: var(--section-py) 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; color: var(--text-primary); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 16px; }
.section-header p { font-size: .95rem; color: var(--text-light); max-width: 520px; margin: 0 auto; line-height: 1.8; }
.section-cta { text-align: center; margin-top: 48px; }

/* ── 8. Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 700;
  transition: all var(--transition); cursor: pointer; border: none;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-medium); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-yellow { background: var(--yellow); color: var(--navy-dark); }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-yellow); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .84rem; }
.btn-pill { border-radius: var(--radius-full); }
.btn-full { width: 100%; justify-content: center; }

/* ── 9. Cards ───────────────────────────────────────────── */
.card { background: var(--gray-50); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition-md), box-shadow var(--transition-md); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── 10. Placeholder Images ─────────────────────────────── */
.placeholder-img {
  background: linear-gradient(135deg, var(--blue-gray) 0%, var(--blue-gray-mid) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--text-muted);
}
.placeholder-img svg { opacity: .45; }
.placeholder-img span { font-size: .76rem; font-weight: 500; text-align: center; opacity: .65; line-height: 1.4; }

/* ── 11. Tags / Badges ──────────────────────────────────── */
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-full); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.tag-teal { background: var(--teal-light); color: var(--teal-dark); }
.tag-navy { background: rgba(27,58,92,.08); color: var(--navy); }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }
.tag-yellow { background: var(--yellow-light); color: var(--yellow-dark); }

/* ── 12. Checklist ──────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist-item { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--text-body); line-height: 1.6; }
.check-icon { flex-shrink: 0; width: 22px; height: 22px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.check-icon svg { width: 12px; height: 12px; color: white; }

/* ── 13. Link More ──────────────────────────────────────── */
.link-more { display: inline-flex; align-items: center; gap: 5px; font-size: .875rem; font-weight: 500; color: var(--teal); transition: gap var(--transition), color var(--transition); }
.link-more:hover { color: var(--teal-dark); gap: 8px; }

/* ── 14. Quote Block ────────────────────────────────────── */
.quote-block {
  border-left: 4px solid var(--teal); background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; font-size: .95rem; color: var(--text-body); line-height: 1.8;
}

/* ── 15. Scroll Reveal ──────────────────────────────────── */
.reveal { opacity: 1; transform: none; transition: opacity var(--transition-slow), transform var(--transition-slow); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── 16. Section Backgrounds ────────────────────────────── */
.bg-blue-gray { background: var(--blue-gray); }
.bg-navy { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }

/* ── 17. Fixed CTA ──────────────────────────────────────── */
.fixed-cta { position: fixed; right: 28px; bottom: 36px; display: flex; flex-direction: column; gap: 10px; z-index: 900; }
.fixed-cta-btn {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: var(--radius-full); box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fixed-cta-btn:hover,
.fixed-cta-btn:focus-visible {
  transform: scale(1.08); box-shadow: 0 10px 40px rgba(27,58,92,.2);
}
.fixed-cta-phone { background: var(--navy); color: var(--white); }
.fixed-cta-kakao { background: #FEE500; color: #3A1D1D; }
.fixed-cta-youtube { background: #FF0000; color: #fff; }

@media (max-width: 480px) {
  .fixed-cta { right: 16px; bottom: 80px; }
}

/* ── 18. Notice Bar ─────────────────────────────────────── */
.notice-bar {
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: .82rem; line-height: 1.6; text-align: center;
}
.notice-bar.amber { background: #FFF4E0; border: 1px solid rgba(245,166,35,.3); color: #7A5C1E; }

/* ── 23. Counseling CTA Banner (index) ──────────────────── */
.counseling-cta-banner { padding: 44px 0; }
.counseling-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.counseling-cta-text .section-tag { color: rgba(255,255,255,.45); }
.counseling-cta-text h2 { font-size: 1.75rem; font-weight: 800; color: var(--white); line-height: 1.3; letter-spacing: -.02em; margin-bottom: 12px; margin-top: 8px; }
.counseling-cta-text p { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.7; }
.counseling-cta-btns { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ── 24. Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 72px; --container-px: 24px; }
  .main-nav a { padding: 8px 9px; font-size: .82rem; }
  .header-inner { gap: 18px; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }
  html { font-size: 15px; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { justify-content: space-between; }
  .section-header h2 { font-size: 1.6rem; }
  .page-header { padding: 96px 0 44px; }
  .page-header h1 { font-size: 1.75rem; }
  .counseling-cta-inner { flex-direction: column; gap: 28px; }
  .counseling-cta-btns { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .counseling-cta-btns .btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --container-px: 16px; }
}

/* ============================================================
   Medical White Redesign Overrides
   ============================================================ */
:root {
  --color-navy: #03045E;
  --color-blue: #0077B6;
  --color-cyan: #00B4D8;
  --color-sky: #90E0EF;
  --color-light-sky: #CAF0F8;
  --color-bg: #F5FBFD;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F5FBFD;
  --color-primary: #0077B6;
  --color-primary-light: #90E0EF;
  --color-primary-soft: #CAF0F8;
  --color-primary-dark: #03045E;
  --color-text-main: #111827;
  --color-text-sub: #4B5563;
  --color-text-muted: #6B7280;
  --color-border: #D7E4EA;
  --color-border-soft: #F1F5F9;
  --color-success: #16A34A;
  --color-error: #DC2626;

  --navy: #03045E;
  --navy-dark: #03045E;
  --navy-medium: #0077B6;
  --navy-light: #00B4D8;
  --blue-gray: #F5FBFD;
  --blue-gray-mid: #CAF0F8;
  --blue-gray-dark: #90E0EF;
  --teal: #00B4D8;
  --teal-dark: #0077B6;
  --teal-light: #CAF0F8;
  --yellow: #0077B6;
  --yellow-dark: #03045E;
  --yellow-light: #CAF0F8;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --text-primary: #111827;
  --text-body: #4B5563;
  --text-light: #6B7280;
  --text-muted: #6B7280;
  --border: #D7E4EA;
  --section-py: 96px;
  --container-max: 1400px;
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, .09);
  --shadow-lg: 0 22px 48px rgba(15, 23, 42, .13);
  --shadow-teal: 0 14px 26px rgba(214, 166, 42, .18);
  --shadow-yellow: 0 14px 26px rgba(214, 166, 42, .22);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

body {
  color: var(--color-text-sub);
  background: var(--color-bg);
  letter-spacing: 0;
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3 { color: var(--color-text-main); }
h1 { font-size: 40px; line-height: 1.25; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: 30px; line-height: 1.35; letter-spacing: -.03em; font-weight: 700; }
h3 { font-size: 25px; line-height: 1.4; font-weight: 700; }
.container { width: min(calc(100% - var(--gutter)), var(--container-max)); padding-inline: 0; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 3px; }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.header-inner { height: 92px; }
.logo-image { max-height: 100px; }
.main-nav ul { justify-content: flex-end; gap: 6px; }
.main-nav a {
  color: var(--color-text-main);
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
}
.main-nav a:hover,
.main-nav li.active > a {
  color: var(--color-primary-dark);
  background: transparent;
}
.main-nav a {
  position: relative;
  border-radius: 0;
  transition: color .25s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.main-nav li.active > a {
  font-weight: 700;
}
.main-nav li.active > a::after {
  transform: scaleX(1);
}
.hamburger:hover,
.mobile-nav a:hover,
.mobile-nav li.active a {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.hamburger span { background: var(--color-text-main); }
.mobile-nav-contact {
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}
.mobile-nav-consult {
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
}

section { background: var(--color-surface); }
.bg-blue-gray { background: var(--color-bg); }
.bg-navy,
.bg-navy-dark {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}
.section-tag {
  color: var(--color-primary-dark);
  letter-spacing: .13em;
}
.section-header h2,
.section-head h2,
.guide-section-head h2 {
  color: var(--color-text-main);
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -.035em;
}
.section-header p,
.section-sub {
  color: var(--color-text-muted);
  max-width: 740px;
  font-size: 17px;
  line-height: 1.7;
}

.btn {
  min-height: 54px;
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid transparent;
  font-size: 16px;
}
.btn-primary,
.btn-yellow,
.btn-navy,
.btn-call-now {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-yellow:hover,
.btn-navy:hover,
.btn-call-now:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-yellow);
}
.btn-kakao {
  background: #FEE500;
  border-color: #FEE500;
  color: #3A1D1D;
}
.btn-kakao:hover {
  background: #f4dc00;
  border-color: #f4dc00;
  color: #3A1D1D;
  transform: translateY(-2px);
}
.btn-outline-navy {
  background: #fff;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline-navy:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.btn-outline-white:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page-header {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  color: var(--color-text-main) !important;
  border-bottom: 1px solid var(--color-border);
  padding: 152px 0 68px !important;
  min-height: 360px;
}
.page-header h1 {
  color: var(--color-text-main) !important;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.page-header .section-tag { color: var(--color-primary-dark) !important; }
.page-header-desc,
.page-header > .container > p {
  color: var(--color-text-muted) !important;
}

.link-more { color: var(--color-primary-dark); }
.tag-teal,
.tag-navy,
.tag-yellow {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.counseling-cta-banner {
  background: var(--color-navy);
}

/* .site-footer 및 footer-* 색상은 "Light footer redesign" 섹션에서 최종 정의(중복 삭제) */
.fixed-cta-phone {
  background: var(--color-primary);
  color: #fff;
}
.fixed-cta-phone:hover { background: var(--color-primary-dark); }

@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .header-inner { height: 68px; }
  .logo-image { max-height: 88px; }
  .site-header .logo-image { height: 100px; width: auto; max-height: none; }
  .page-header { padding: 102px 0 42px !important; }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.35rem, 10vw, 2.75rem); }
  h2, .section-header h2, .section-head h2, .guide-section-head h2 { font-size: clamp(1.875rem, 8vw, 2.125rem); }
  h3 { font-size: clamp(1.3125rem, 5.5vw, 1.5rem); }
  .section-header p, .section-sub { font-size: 16px; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - var(--gutter)), var(--container-max)); }
  .section-header h2 { overflow-wrap: anywhere; }
  .btn { white-space: normal; }
}

/* ============================================================
   Footer — 완전 재설계. 3열을 동일 비율로 나눠 균형감을 주고,
   로고는 크롭 없이 높이 기준으로 정렬(예전의 절대좌표 크롭 방식 폐기).
   텍스트 크기는 15px 하나로 통일(작은 글씨 예외 없음).
   ============================================================ */
.site-footer {
  padding: 56px 0 0;
  background: #666a73;
  color: #dbe3e9;
  border-top: 1px solid #d6e8ee;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, .06), inset 0 24px 32px -20px rgba(0, 0, 0, .3);
}

/* 그리드 3등분 대신, 각 블록이 내용 크기만큼만 차지하고 전체 폭에 고르게
   퍼지도록 flex + space-between으로 변경(블록 안에 남는 여백이 생기지 않음) */
.footer-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid #cfe2e8;
}

.footer-brand {
  flex: 1 1 320px;
  max-width: 400px;
}

.footer-col {
  flex: 0 0 auto;
}

.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  margin-bottom: 16px;
}

/* Logo.png(백세인생)는 실제 마크가 이미지 높이의 38%뿐이라(위아래 투명 여백 큼) 확대해서 사용. */
.footer-logo-baekse {
  display: block;
  height: 124.8px;
  width: auto;
  transform: translate(-10px, -4px);
}

.footer-logo-cornex {
  display: block;
  width: auto;
  height: 23px;
  flex: 0 1 auto;
  max-width: 145px;
  object-fit: contain;
}

.footer-desc {
  max-width: 360px;
  margin: -20px 0 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #dbe3e9;
}

.footer-col-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #eef2f5;
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-info .footer-col-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-info .footer-col-list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  background: #dbe3e9;
  color: #4b5563;
}

.footer-info .footer-col-list li span {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #dbe3e9;
}

/* 5개 링크를 위 3 / 아래 2, 두 줄로 배치(센터 정보 열과 시각적 균형을 맞춤) */
.footer-nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  column-gap: 40px;
  row-gap: 14px;
}

.footer-nav-list a {
  display: block;
  width: fit-content;
  font-size: 15px;
  font-weight: 600;
  color: #dbe3e9;
  transition: color .2s ease;
}

.footer-nav-list a:hover {
  color: #087b9f;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
  padding: 16px 0;
}

.footer-bottom p {
  font-size: 15px;
  font-weight: 400;
  color: #dbe3e9;
}

.footer-bottom p.footer-credit {
  font-size: 12px;
  color: #b7c2ca;
}

@media (max-width: 900px) {
  .footer-main {
    gap: 36px 48px;
  }

  .footer-brand {
    flex-basis: 100%;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 40px;
  }

  .footer-main {
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}
