/* ===================================================
   엄기호 캠페인 홈페이지 - 메인 스타일시트
   레이아웃: 양숙희(yangsookhee.kr) 기반
   콘텐츠: 엄기호 캠페인
   =================================================== */

/* ---------- CSS 변수 ---------- */
:root {
  --red:      #C0392B;
  --red-dark: #962d22;
  --red-light:#e74c3c;
  --black:    #111111;
  --gray-900: #222222;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #cccccc;
  --gray-100: #f5f5f3;
  --white:    #ffffff;
  --cream:    #faf9f6;
  --font-serif: 'Noto Serif KR', serif;
  --font-sans:  'Noto Sans KR', sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- 공통 레이아웃 ---------- */
.section-wrap {
  padding: 100px 0;
}
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.section-gray  { background: var(--gray-100); }
.section-red   { background: var(--red); }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
#header.scrolled {
  border-bottom-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.header-kihoe {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}
.header-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.02em;
}
.header-region {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}
.header-nav {
  display: flex;
  gap: 36px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.3s;
}
.header-nav a:hover { color: var(--red); }
.header-nav a:hover::after { width: 100%; }

/* 모바일 햄버거 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  padding: 12px 0;
}
.mobile-nav-link {
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav-link:hover {
  color: var(--red);
  background: var(--gray-100);
}
.mobile-nav.open { display: flex; }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  background: var(--cream);
  padding: 140px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: var(--red);
  pointer-events: none;
}
.hero-circle-1 {
  width: 700px; height: 700px;
  right: -120px; top: 40px;
}
.hero-circle-2 {
  width: 400px; height: 400px;
  right: 200px; top: 300px;
  opacity: 0.04;
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 220px);
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-kihoe-wrap {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-kihoe-num {
  font-family: var(--font-serif);
  font-size: 110px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: 80px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-slogan {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero-slogan em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}
.hero-region-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.region-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.region-btn:hover {
  background: var(--red);
  color: var(--white);
}
.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.hero-meta li {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  padding-left: 12px;
  position: relative;
}
.hero-meta li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* 히어로 사진 영역 */
.hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo-circle {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid rgba(192,57,43,0.1);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-photo-inner {
  position: relative;
  z-index: 1;
  width: 380px; height: 500px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
}
.hero-photo-placeholder {
  text-align: center;
  color: var(--gray-500);
}
.hero-photo-placeholder i {
  font-size: 80px;
  margin-bottom: 16px;
  color: var(--gray-300);
}
.hero-photo-placeholder p {
  font-size: 14px;
  font-weight: 500;
}
/* 실제 후보 사진 */
.candidate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 히어로 통계 바 */
.hero-stats {
  background: var(--black);
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--red-light);
  line-height: 1.1;
}
.stat-up {
  font-size: 64px;
  color: var(--red-light);
  font-weight: 900;
  vertical-align: middle;
  line-height: 1;
  text-shadow: 2px 2px 0px rgba(192,57,43,0.3);
  display: inline-block;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* =============================================
   SECTION LABELS & TITLES
   ============================================= */
.section-eng-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-eng-label.white { color: rgba(255,255,255,0.6); }

.section-title-lg {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.section-title-center {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-title-center.white { color: var(--white); }
.section-header-center {
  text-align: center;
  margin-bottom: 60px;
}
.section-subtitle {
  margin-top: 16px;
  font-size: 16px;
  color: var(--gray-500);
  text-align: center;
}
.section-subtitle.white { color: rgba(255,255,255,0.7); }

/* =============================================
   GREETING
   ============================================= */
.greeting-text {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 20px;
}
.greeting-text strong {
  color: var(--black);
  font-weight: 700;
}
.greeting-sig {
  margin-top: 48px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
}
.sig-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* =============================================
   ACHIEVEMENTS
   ============================================= */
.achievement-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.ach-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px 24px;
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.ach-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.ach-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.ach-icon {
  font-size: 28px;
  color: var(--red);
  margin-bottom: 14px;
}
.ach-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.4;
}
.ach-info p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.ach-amount {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}
.ach-total-box {
  text-align: center;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
  padding: 48px 40px;
}
.ach-total-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.ach-total-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 900;
  color: var(--red-light);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.ach-total-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}

/* =============================================
   PROFILE
   ============================================= */
.profile-sub-txt {
  margin-top: 24px;
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
  font-family: var(--font-serif);
}
.profile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateX(-16px);
  transition: var(--transition);
}
.profile-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.profile-item:last-child { border-bottom: none; }
.profile-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(192,57,43,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 18px;
  margin-top: 2px;
}
.profile-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-desc strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}
.profile-desc span {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* =============================================
   PLEDGE
   ============================================= */
.pledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pledge-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 32px 24px;
  color: var(--white);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.pledge-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.pledge-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}
.pledge-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.pledge-icon {
  font-size: 32px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.pledge-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.pledge-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
/* 5번째 카드 - 마지막 홀수는 전체 너비 */
@media (min-width: 769px) {
  .pledge-grid .pledge-card:last-child:nth-child(odd) {
    grid-column: 2 / 3;
  }
}

/* =============================================
   SUPPORT
   ============================================= */
.support-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.25s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.submit-btn {
  padding: 16px 32px;
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.submit-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.support-messages {
  min-height: 200px;
}
.msg-list-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.msg-list-title span {
  color: var(--red);
}
.msg-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
}
.msg-item {
  background: var(--white);
  border-radius: 4px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--red);
}
.msg-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.msg-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}
.msg-item-region {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
}
.msg-item-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}
.no-msg {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  padding: 40px 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-col {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-box {
  padding: 48px 40px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.contact-detail {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-detail p {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-detail p i { color: var(--red); }
.contact-sub {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--gray-500) !important;
}
.map-placeholder {
  margin-top: 24px;
  height: 120px;
  background: var(--gray-100);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-500);
  border: 1.5px dashed var(--gray-300);
}
.map-placeholder i { font-size: 32px; color: var(--gray-300); }
.map-placeholder span { font-size: 13px; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--black);
  padding: 60px 0 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-kihoe {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-light);
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.footer-notice {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

/* =============================================
   스크롤바 커스텀
   ============================================= */
.msg-list::-webkit-scrollbar { width: 4px; }
.msg-list::-webkit-scrollbar-track { background: var(--gray-100); }
.msg-list::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* =============================================
   FADE-IN 애니메이션 (JS 제어)
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   반응형 (모바일 우선)
   ============================================= */
@media (max-width: 1024px) {
  .section-inner { padding: 0 28px; }
  .hero-inner { padding: 0 28px; gap: 40px; }
  .achievement-cards { grid-template-columns: repeat(2, 1fr); }
  .pledge-grid { grid-template-columns: repeat(2, 1fr); }
  .pledge-grid .pledge-card:nth-child(4),
  .pledge-grid .pledge-card:nth-child(5) { grid-column: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-right: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
  .section-wrap { padding: 70px 0; }
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 20px;
  }
  .hero-photo { display: none; }
  .hero-kihoe-num { font-size: 80px; }
  .hero-name { font-size: 60px; }
  .hero-slogan { font-size: 20px; }
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-title-lg { font-size: 28px; }
  .section-title-center { font-size: 26px; }
  .achievement-cards { grid-template-columns: 1fr; }
  .pledge-grid {
    grid-template-columns: 1fr;
  }
  .pledge-grid .pledge-card:nth-child(4),
  .pledge-grid .pledge-card:nth-child(5) { grid-column: auto; }
  .support-form-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-col { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-num { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 20px; }
  .section-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; min-height: auto; }
  .hero-kihoe-num { font-size: 64px; }
  .hero-name { font-size: 48px; }
  .hero-badge { font-size: 11px; }
  .hero-region-btns { flex-direction: column; }
  .region-btn { text-align: center; }
  .ach-total-num { font-size: 38px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
