/* ===========================
   index.css - 메인 페이지 전용
   White + Orange Theme
   =========================== */

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ════════════════════════════
   HERO - White/Light Background
   ════════════════════════════ */
.hero {
  position: relative;
  min-height: auto;
  background: var(--off-white);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Hero Slide System ── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(255,114,16,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255,114,16,0.04) 0%, transparent 60%),
    linear-gradient(135deg, #fafaf9 0%, #fff7ed 60%, #fafaf9 100%);
}

/* Subtle grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--off-white) 100%);
}

/* Event photo background slide */
.hero-event-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-slide--event.active .hero-event-bg {
  transform: scale(1);
}
/* PC: 왼쪽 살짝 어둡게(텍스트 가독성) → 오른쪽 밝게(사진 강조) */
.hero-event-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 70%),
    linear-gradient(to bottom, transparent 70%, var(--off-white) 100%);
}

/* 모바일 이벤트 슬라이드 */
@media (max-width: 767px) {
  .hero-event-bg {
    background-position: 85% 15%;
  }
  .hero-event-overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.75) 100%);
  }
  /* 모바일: 히어로 고정 높이 (슬라이드 전환 시 높이 변동 방지) */
  .hero .hero-content {
    min-height: 85vh;
  }
  .hero.hero--event .hero-content {
    justify-content: center;
  }
  .hero.hero--event .hero-top {
    background: rgba(0,0,0,0.65);
    margin: 0 -16px;
    padding: 16px 16px 12px;
    border-radius: 12px;
    position: relative;
    top: 300px;
  }
}

/* 기본 상태에 transition 세팅 (돌아올 때도 부드럽게) */
.hero-title,
.hero-name {
  transition: color 1.2s ease, text-shadow 1.2s ease;
}
.hero-badge {
  transition: all 1.2s ease;
}
.hero-desc {
  transition: color 1.2s ease, text-shadow 1.2s ease;
}
.hero-photo {
  transition: opacity 1.2s ease;
}

/* 이벤트 슬라이드 활성 시 */
.hero.hero--event .hero-title,
.hero.hero--event .hero-name {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero.hero--event .hero-title .accent {
  color: var(--gold);
}
.hero.hero--event .hero-badge {
  background: var(--orange);
  border: none;
  color: #fff;
}
.hero.hero--event .hero-desc {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero.hero--event .hero-photo {
  opacity: 0;
  pointer-events: none;
}

/* Slide indicator dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--orange);
}
.hero.hero--event .hero-dot {
  background: rgba(255,255,255,0.4);
}
.hero.hero--event .hero-dot.active {
  background: var(--gold);
}

/* Mobile: 슬로건 → 사진 → 이름/소개 (세로 배치) */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 12px;
}

.hero-top { width: 100%; }
.hero-bottom { width: 100%; }

.hero-badge {
  display: inline-block;
  background: var(--orange);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0;
  word-break: keep-all;
}
.hero-title .accent {
  color: var(--orange);
  display: block;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
  word-break: keep-all;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  padding: 15px 29px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.btn-outline-white:hover {
  color: var(--orange);
  box-shadow: 0 4px 16px rgba(255,114,16,0.15);
  transform: translateY(-1px);
}

/* Hero Photo */
.hero-photo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: 280px;
  margin: 0 auto;
}
.hero-photo-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.15));
}

/* Scroll indicator */
/* scroll-indicator 제거됨 */

/* ════════════════════════════
   SLOGAN STRIPE
   ════════════════════════════ */
.slogan-stripe {
  background: var(--orange);
  padding: 18px 0;
  overflow: hidden;
}
.slogan-inner {
  display: flex;
  align-items: center;
}
.slogan-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  padding-right: 60px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════
   STATS - Light Background
   ════════════════════════════ */
.stats-section {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.stat-card {
  background: var(--off-white);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.stat-card:hover {
  background: rgba(255,114,16,0.05);
  border-color: rgba(255,114,16,0.3);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { font-size: inherit; }
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

/* ════════════════════════════
   QUICK SECTION
   ════════════════════════════ */
.quick-section {
  padding: 72px 0;
  background: var(--off-white);
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.quick-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.quick-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quick-card:hover::before { transform: scaleX(1); }
.quick-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.quick-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.quick-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  word-break: keep-all;
}
.quick-arrow {
  margin-top: 8px;
  font-size: 18px;
  color: var(--orange);
  font-weight: 700;
}

/* ════════════════════════════
   PROMISE PREVIEW
   ════════════════════════════ */
.promise-preview {
  padding: 80px 0;
  background: var(--white);
}
.promises-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.promise-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.promise-card:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateX(6px);
}
.promise-card:hover h3,
.promise-card:hover p { color: var(--white); }
.promise-card:hover .promise-num { color: rgba(255,255,255,0.5); }
.promise-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-200);
  flex-shrink: 0;
  width: 44px;
  line-height: 1;
}
.promise-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.promise-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.promise-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  transition: color var(--transition);
  word-break: keep-all;
}

.section-cta {
  text-align: center;
}

/* ════════════════════════════
   ACTIVITY PREVIEW
   ════════════════════════════ */
.activity-preview {
  padding: 80px 0;
  background: var(--gray-100);
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.activity-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-200);
  aspect-ratio: 4/3;
}
.activity-img-wrap.img-fallback {
  background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
}
.activity-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.activity-card:hover .activity-img-wrap img {
  transform: scale(1.05);
}
.activity-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 16px 12px;
}
.activity-caption {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
}

/* ════════════════════════════
   KAKAO BANNER - Orange accent
   ════════════════════════════ */
.kakao-banner {
  padding: 48px 0;
  background: var(--orange-50);
  border-top: 1px solid var(--orange-100);
  border-bottom: 1px solid var(--orange-100);
}
.kakao-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.kakao-text h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  word-break: keep-all;
}
.kakao-text p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ════════════════════════════
   TABLET (768px+)
   ════════════════════════════ */
@media (min-width: 768px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    text-align: left;
    gap: 0 40px;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .hero-top { grid-column: 1; grid-row: 1; }
  .hero-photo { grid-column: 2; grid-row: 1 / 3; max-width: 380px; margin: 0; }
  .hero-photo-img { max-height: 520px; height: auto; object-fit: contain; }
  .hero-bottom { grid-column: 1; grid-row: 2; }
  .hero-title { font-size: 48px; margin-bottom: 8px; }
  .hero-name { font-size: 36px; }
  .hero-desc { font-size: 17px; }
  .hero-cta { justify-content: flex-start; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card { padding: 36px 24px; }
  .stat-num { font-size: 48px; }

  .quick-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }

  .promises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promises-grid .promise-card:last-child {
    grid-column: 1 / -1;
  }

  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kakao-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .slogan-text { font-size: 18px; }
}

/* ════════════════════════════
   DESKTOP (1024px+)
   ════════════════════════════ */
@media (min-width: 1024px) {
  .hero-title { font-size: 58px; }
  .hero-photo { max-width: 420px; }
  .hero-photo-img { max-height: 580px; }

  .promises-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .promises-grid .promise-card {
    flex-direction: column;
    text-align: center;
  }
  .promises-grid .promise-card:last-child {
    grid-column: auto;
  }
  .promise-num { width: auto; }

  .quick-section { padding: 96px 0; }
  .promise-preview { padding: 96px 0; }
  .activity-preview { padding: 96px 0; }
