/*
 * fair-hero.css
 * 한나웨딩 × 삼성스토어 웨딩박람회 히어로 전용 스타일
 * fair.html 전용 — 외부 CSS 충돌 차단용 최상위 특이도
 */

/* ────────────────────────────────────────
   폰트 임포트
──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

/* ────────────────────────────────────────
   히어로 섹션 래퍼
──────────────────────────────────────── */
body.fair-page section#hero.fhero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 72px;
  box-sizing: border-box;
  overflow: hidden;
  background: #0a0514;        /* 이미지 로딩 전 fallback */
}

/* ────────────────────────────────────────
   배경 이미지 레이어
──────────────────────────────────────── */
body.fair-page .fhero-bg {
  position: absolute;
  top: -80px;         /* fixed header 뒤까지 채우기 */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  background-color: #0a0514;
}

/* ────────────────────────────────────────
   오버레이 (어둡게 + 핑크-보라 그라디언트)
──────────────────────────────────────── */
body.fair-page .fhero-overlay {
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 4, 20, 0.40) 0%,
    rgba(30, 8, 35, 0.28) 30%,
    rgba(10, 4, 18, 0.48) 65%,
    rgba(6, 2, 12, 0.72) 100%
  );
}

/* ────────────────────────────────────────
   콘텐츠 래퍼 (z-index 2 — 항상 위에)
──────────────────────────────────────── */
body.fair-page .fhero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  gap: 0;
}

/* ────────────────────────────────────────
   [1] 라이브 뱃지
──────────────────────────────────────── */
body.fair-page .fhero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(249, 168, 212, 0.45);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 18px;
  white-space: nowrap;
}

body.fair-page .fhero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f9a8d4;
  flex-shrink: 0;
  animation: fDotPulse 1.8s ease-in-out infinite;
}

@keyframes fDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.5); }
}

/* ────────────────────────────────────────
   [2] 영문 브랜드명
──────────────────────────────────────── */
body.fair-page .fhero-brand {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(11px, 2.5vw, 14px);
  font-weight: 400;
  color: #f9d8e8;
  letter-spacing: 1.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* ────────────────────────────────────────
   [3] 메인 타이틀
──────────────────────────────────────── */
body.fair-page .fhero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(36px, 8vw, 68px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -1px;
  text-align: center;
  margin: 0 0 22px;
  text-shadow:
    0 2px 16px rgba(0,0,0,0.6),
    0 1px 4px rgba(0,0,0,0.4);
}

body.fair-page .fhero-accent {
  font-style: normal;
  color: #f9a8d4;
}

/* ────────────────────────────────────────
   [4] 구분선
──────────────────────────────────────── */
body.fair-page .fhero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f9a8d4, transparent);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ────────────────────────────────────────
   [5] 서브 문구
──────────────────────────────────────── */
body.fair-page .fhero-sub {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(14px, 3.5vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  text-align: center;
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ────────────────────────────────────────
   [6] 정보 칩 4개 (모바일 2×2 / 데스크탑 4열)
──────────────────────────────────────── */
body.fair-page .fhero-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 28px;
}

body.fair-page .fhero-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 14px 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s;
}

body.fair-page .fhero-chip:hover {
  background: rgba(249, 168, 212, 0.18);
  border-color: rgba(249, 168, 212, 0.45);
}

body.fair-page .fchip-icon {
  font-size: 22px;
  line-height: 1;
}

body.fair-page .fchip-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.fair-page .fchip-val {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* ────────────────────────────────────────
   [7] 핵심 혜택 숫자 3개
──────────────────────────────────────── */
body.fair-page .fhero-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 28px;
  gap: 0;
}

body.fair-page .fhero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

body.fair-page .fstat-num {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}

body.fair-page .fstat-big {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(32px, 7vw, 40px);
  font-weight: 900;
  color: #f9a8d4;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(249, 168, 212, 0.4);
}

body.fair-page .fstat-unit {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(16px, 3.5vw, 20px);
  font-weight: 700;
  color: #f9a8d4;
  line-height: 1;
}

body.fair-page .fstat-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  white-space: nowrap;
}

body.fair-page .fhero-stat-sep {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* ────────────────────────────────────────
   [8] CTA 버튼
──────────────────────────────────────── */
body.fair-page .fhero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 16px;
}

body.fair-page .fhero-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 32px;
  background: linear-gradient(135deg, #f472b6, #ec4899);
  color: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(244, 114, 182, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  min-height: 54px;
}

body.fair-page .fhero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(244, 114, 182, 0.6);
}

body.fair-page .fhero-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 32px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-height: 54px;
}

body.fair-page .fhero-btn-outline:hover {
  background: rgba(249, 168, 212, 0.18);
  border-color: rgba(249, 168, 212, 0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* ────────────────────────────────────────
   [9] 스크롤 유도
──────────────────────────────────────── */
body.fair-page .fhero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
}

body.fair-page .fhero-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.6);
  animation: fScrollLine 1.6s ease-in-out infinite;
}

@keyframes fScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

body.fair-page .fhero-scroll span {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ────────────────────────────────────────
   반응형 — 데스크탑 (640px 이상)
──────────────────────────────────────── */
@media (min-width: 640px) {
  body.fair-page section#hero.fhero {
    padding: 110px 40px 80px;
  }

  body.fair-page .fhero-chips {
    grid-template-columns: repeat(4, 1fr);
    max-width: 680px;
  }

  body.fair-page .fhero-btns {
    flex-direction: row;
    max-width: 480px;
  }

  body.fair-page .fhero-btn-primary,
  body.fair-page .fhero-btn-outline {
    width: auto;
    min-width: 200px;
    flex: 1;
  }
}

/* ────────────────────────────────────────
   반응형 — 초소형 모바일 (360px 이하)
──────────────────────────────────────── */
@media (max-width: 360px) {
  body.fair-page .fhero-title {
    font-size: 30px;
  }

  body.fair-page .fstat-big {
    font-size: 28px;
  }

  body.fair-page .fhero-badge {
    font-size: 11px;
    padding: 7px 14px;
    white-space: normal;
    text-align: center;
  }

  body.fair-page .fhero-btn-primary,
  body.fair-page .fhero-btn-outline {
    font-size: 14px;
    padding: 14px 20px;
  }
}
