/* custom.css — 운정 아이파크 포레스트 랜딩페이지 */

:root {
  --primary:   #1B4332;
  --secondary: #C9A84C;
  --bg:        #FAF8F3;
  --text:      #1a1a2e;
  --white:     #ffffff;
}

/* ── 폰트 ──────────────────────────────── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── 고정 헤더 ────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

#site-header.header-transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 100%);
  backdrop-filter: none;
  box-shadow: none;
}

#site-header.header-solid {
  background: rgba(27,67,50,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.header-logo-img {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .header-logo-img { width: 200px; }
  .header-phone { font-size: 12.5px; padding: 6px 10px; gap: 4px; }
  .header-phone svg { width: 12px; height: 12px; }
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border: 1.5px solid var(--secondary);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.header-phone:hover {
  background: var(--secondary);
  color: #fff;
}
.header-phone svg { flex-shrink: 0; }

/* 히어로 섹션 상단 패딩 (헤더 높이만큼) */
#hero { padding-top: 0; }

/* ── 공통 섹션 ────────────────────────── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
}

.section-title.light { color: var(--white); }

.gold-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  margin: 12px 0 20px;
}

/* ── CTA 버튼 ─────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: #b8942f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: transparent;
}
.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ── 히어로 ───────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27,67,50,0.82) 0%,
    rgba(27,67,50,0.55) 60%,
    rgba(0,0,0,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero-title em {
  font-style: normal;
  color: var(--secondary);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.7;
  word-break: keep-all;
}

.hero-urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 100px;
  padding: 8px 18px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}

.hero-urgency::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ── 스크롤 인디케이터 ──────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce-down 1.6s ease-in-out infinite;
}

/* ── 섹션 커브 구분선 ───────────────────── */
.curve-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}
.curve-top svg { display: block; }

.curve-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  overflow: hidden;
}
.curve-bottom svg { display: block; }

/* ── 통계 박스 ────────────────────────── */
.stat-box {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(27,67,50,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27,67,50,0.14);
}
.stat-number {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-left: 4px;
}
.stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  word-break: keep-all;
}

/* ── 교통 카드 ────────────────────────── */
.transport-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px 16px;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 12px rgba(27,67,50,0.07);
  transition: transform 0.2s;
}
.transport-card:hover { transform: translateX(4px); }

/* ── 프리미엄 카드 ────────────────────── */
.premium-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(27,67,50,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,67,50,0.15);
}
.premium-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.premium-card-body {
  padding: 16px;
}
.premium-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}
.premium-card-desc {
  font-size: 12px;
  color: #888;
}

/* ── 교육 배지 ────────────────────────── */
.edu-badge {
  display: inline-block;
  background: rgba(27,67,50,0.07);
  color: var(--primary);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px;
  transition: background 0.2s, color 0.2s;
}
.edu-badge:hover {
  background: var(--primary);
  color: var(--white);
}

.culture-badge {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: #8a6a10;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 4px;
}

/* ── 평형 탭 ──────────────────────────── */
.floor-tab {
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid #ddd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  background: var(--white);
  color: #666;
}
.floor-tab.active,
.floor-tab:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* ── 폼 ───────────────────────────────── */
.form-field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--text);
}
.form-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.12);
}
.form-field.error { border-color: #e53e3e; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: var(--secondary); }

input[type="date"].form-field {
  max-width: 100%;
  box-sizing: border-box;
}
input[type="date"].form-field::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}

/* ── 플로팅 CTA ─────────────────────────*/
#floating-cta {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.float-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
  animation: float-up 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.float-phone:hover { transform: scale(1.05); }
.float-phone svg { flex-shrink: 0; }

.float-reserve {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(27,67,50,0.3);
  cursor: pointer;
  border: none;
}

/* ── 자연 섹션 ────────────────────────── */
#nature {
  position: relative;
  background: var(--primary);
  overflow: hidden;
}
.nature-bg-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.nature-stat {
  text-align: center;
  padding: 20px;
}
.nature-stat .num {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}
.nature-stat .unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.nature-stat .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}

/* ── 긴급성 배너 ─────────────────────── */
.urgency-banner {
  background: linear-gradient(90deg, var(--primary), #2d6a4f);
  color: var(--white);
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.urgency-banner span {
  color: var(--secondary);
}

/* ── 개인정보 동의 ────────────────────── */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.consent-check input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--primary);
}
.consent-link { color: var(--primary); text-decoration: underline; cursor: pointer; }

/* ── Swiper 커스텀 ────────────────────── */
.swiper-pagination-bullet-active { background: var(--secondary) !important; }
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 18px !important; color: var(--primary) !important; }

/* ── 푸터 ─────────────────────────────── */
footer {
  background: #0f2419;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  line-height: 1.9;
  padding: 40px 24px 80px;
}
footer p { margin: 0; word-break: keep-all; }

/* ── 애니메이션 ───────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 640px) {
  .float-phone .phone-label { display: none; }
  .hero-content { padding: 0 20px; }
  #floating-cta { bottom: 16px; right: 12px; }
}
