/* =====================================================
   한사랑재가복지센터 - 보라색 테마 공통 CSS
   ===================================================== */

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

/* CSS Variables - 보라색 컬러 시스템 */
:root {
  --primary: #6c3fa0;
  --primary-dark: #4a2270;
  --primary-light: #9b6ece;
  --primary-pale: #f3ecfc;
  --secondary: #8b5cf6;
  --accent: #c084fc;
  --text-dark: #1a1a2e;
  --text-body: #374151;
  --text-muted: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #faf7ff;
  --bg-section: #f8f4fe;
  --border: #e9e0f7;
  --shadow-sm: 0 2px 8px rgba(108,63,160,0.12);
  --shadow-md: 0 4px 20px rgba(108,63,160,0.18);
  --shadow-lg: 0 8px 40px rgba(108,63,160,0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =====================================================
   공통 유틸리티
   ===================================================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 50px;
  line-height: 1.6;
}
.section-header { text-align: center; margin-bottom: 50px; }
.badge {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--primary-pale); transform: translateY(-2px); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }

/* =====================================================
   헤더 / 네비게이션
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--primary-pale);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.logo-text { line-height: 1.2; }
.logo-name { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); display: block; }
.logo-sub { font-size: 0.72rem; color: var(--text-muted); display: block; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-body);
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  background: var(--primary-pale);
  color: var(--primary);
}
.nav .btn-nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
}
.nav .btn-nav-cta:hover { background: var(--primary-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: var(--transition); }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 10px 20px 20px;
}
.mobile-nav a {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-body);
  display: block;
}
.mobile-nav a:last-child { border-bottom: none; }

/* =====================================================
   히어로 섹션
   ===================================================== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transition: opacity 0.5s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,34,112,0.92) 0%, rgba(108,63,160,0.78) 60%, rgba(139,92,246,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 20px;
  color: #fff;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.22);
}
.hero-title span { color: var(--accent); }
.hero-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0.93;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  text-align: center;
  min-width: 110px;
}
.hero-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat-label { font-size: 0.78rem; opacity: 0.88; }

/* =====================================================
   카드 그리드
   ===================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card-icon {
  width: 54px; height: 54px;
  background: var(--primary-pale);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--primary);
}
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.card-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* =====================================================
   지원 비율 테이블
   ===================================================== */
.support-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.support-table th { background: var(--primary); color: #fff; padding: 14px 18px; font-weight: 700; font-size: 0.95rem; text-align: center; }
.support-table td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.support-table tr:last-child td { border-bottom: none; }
.support-table tr:nth-child(even) td { background: var(--bg-section); }
.support-highlight { color: var(--primary); font-weight: 800; font-size: 1.05rem; }

/* =====================================================
   플로팅 버튼
   ===================================================== */
.floating-btns {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transition: var(--transition);
  position: relative;
  border: none;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.12) translateY(-3px); }
.float-btn-phone { background: #22c55e; }
.float-btn-kakao { background: #fee500; color: #381e1f !important; }
.float-btn-email { background: var(--primary); }
.float-label {
  position: absolute;
  right: 66px;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.float-btn:hover .float-label { opacity: 1; }

/* =====================================================
   푸터
   ===================================================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 52px 0 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand .logo-name { color: #fff; font-size: 1.15rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.6); }
.footer-desc { font-size: 0.88rem; margin-top: 14px; line-height: 1.7; opacity: 0.78; }
.footer-contact { margin-top: 18px; }
.footer-contact a { color: rgba(255,255,255,0.9); font-weight: 600; display: block; margin-bottom: 6px; font-size: 0.92rem; transition: var(--transition); }
.footer-contact a:hover { color: var(--accent); }
.footer-heading { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; opacity: 0.75; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =====================================================
   반응형
   ===================================================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 14px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
  .hero { min-height: 480px; }
  .hero-title { font-size: 1.65rem; }
  .hero-desc { font-size: 0.97rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 10px; }
  .hero-stat { min-width: unset; padding: 12px 18px; }
  .floating-btns { right: 14px; bottom: 20px; }
  .float-btn { width: 50px; height: 50px; font-size: 1.15rem; }
}
