/* ==========================================
       1. Global Styles & Reset
       ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --hd-banner-height: 340px;
  --hd-banner-m-height: 80px;
  --content-height: 100vh;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  /* background-color: #0b0f19; */
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.d-none {
  display: none;
}

/* ==========================================
       2. Navigation Header
       ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  height: 100%;
}

.logo-text {
  font-family: "Noto Serif KR", serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.5px;
  height: 100%;
  display: flex;
  align-items: center;
}

.logo-text a {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo-text a img {
  height: 50%;
  object-fit: contain;
}

/* 대체 텍스트 로고용 스타일 (이미지 경로 오류 대비) */
.logo-fallback {
  display: flex;
  align-items: center;
  font-weight: 900;
  color: #111;
  font-size: 1.35rem;
}

.stamp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: #c82323;
  color: #fff;
  font-family: "Gowun Batang", serif;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 3px;
  border: 1px solid #900;
  margin-left: 6px;
}

.gnb {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.gnb li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  transition: color 0.25s ease;
}

.gnb li a:hover {
  color: #c82323;
}

/* Mobile Hamburger */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu-btn:hover {
  color: #c82323;
}

/* 모바일 오버레이 배경 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
       3. Main Hero Section
       ========================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  /* 임의 야경 배경 이미지 (사용자 이미지 교체 가능) */
  background: linear-gradient(to bottom, rgba(5, 10, 25, 0.45) 90%, rgba(5, 10, 25, 0.75) 75%, rgba(11, 15, 25, 1) 100%),
    url("img/mpn-bg.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 0;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  margin: auto 0;
  animation: fadeIn 1.2s ease-out;
}

/* 메인 캘리그라피 타이틀 */
.main-title {
  width: 100%;
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.main-title img {
  width: 100%;
}
.main-title .hero-stamp {
  width: 32px;
  height: 32px;
  background-color: #c82323;
  border: 2px solid #ff4d4d;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(200, 35, 35, 0.5);
}

/* 전통 문양 구분선 */
.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 18px 0 24px;
  opacity: 0.85;
}
.title-divider::before,
.title-divider::after {
  content: "";
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2d1a6, transparent);
}
.flower-icon {
  color: #e2d1a6;
  font-size: 1.1rem;
}

/* Date & Location */
.event-date {
  font-family: "Noto Serif KR", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.event-location {
  font-family: "Noto Serif KR", serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: #e2d1a6;
  margin-bottom: 35px;
  letter-spacing: 1px;
}

/* Call To Action Button */
.btn-cta {
  display: inline-block;
  padding: 12px 38px;
  background-color: #ffffff;
  color: #111111;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-cta:hover {
  transform: translateY(-3px);
  background-color: #e2d1a6;
  color: #000;
  box-shadow: 0 10px 25px rgba(226, 209, 166, 0.4);
}

/* ==========================================
       3-000. Banner Section
========================================== */
.hd-banner {
  background-image: url(img/mpn-bg.jpg);
  background-position: center;
  background-size: cover;
  height: var(--hd-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  font-size: 40px;
  font-family: "Gowun Batang", serif;
}

/* ==========================================
       3-1. Main Intro Section
       ========================================== */
.intro {
  position: relative;
  width: 100%;
  /* min-height: calc(100vh - var(--hd-banner-height)); */
  /* 임의 야경 배경 이미지 (사용자 이미지 교체 가능) */
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 0;
  text-align: center;
}

.intro-content {
  max-width: 1360px;
  padding: 0 20px;
  margin: auto 0;
  animation: fadeIn 1.2s ease-out;
  display: flex;
}

/* ==========================================
       3-2. Schedule Section
       ========================================== */
.schedule {
  position: relative;
  width: 100%;
  /* min-height: calc(100vh - var(--hd-banner-height)); */
  /* 임의 야경 배경 이미지 (사용자 이미지 교체 가능) */
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 0;
  text-align: center;
}

.schedule-content {
  max-width: 1360px;
  padding: 0 20px;
  margin: auto 0;
  animation: fadeIn 1.2s ease-out;
  display: flex;
  flex-direction: column;
}

.schedule-content img {
  width: 100%;
  padding-bottom: 48px;
}

.schedule-content .sch-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  text-align: center;
  border-bottom: 3px solid #a72e29;
  margin: 0 auto 36px;
  padding-bottom: 6px;
  color: #000;
}
/* ==========================================
       4. Bottom Highlight Cards Bar (Glassmorphism)
       ========================================== */
.highlight-bar {
  width: 100%;
  background: rgba(15, 20, 32, 0.65);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 60px;
}
.highlight-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.highlight-card {
  padding: 30px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  text-align: left;
}
.highlight-card:last-child {
  border-right: none;
}
.highlight-card:hover {
  background: rgba(255, 255, 255, 0.05);
}
.card-icon {
  font-size: 2.2rem;
  color: #e2d1a6;
  flex-shrink: 0;
}
.card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.card-content p {
  font-size: 0.85rem;
  color: #b0b8c5;
  line-height: 1.4;
}

/* ==========================================
       5. Content Sections (8夜, Schedule, Map)
       ========================================== */
.section {
  padding: 90px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 10px;
}
.section-title p {
  color: #8a99ad;
  font-size: 1rem;
}

/* 8夜 Theme Grid */
.night-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.night-card {
  background: #141b2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.night-card:hover {
  transform: translateY(-6px);
  border-color: #e2d1a6;
}
.night-card .badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(226, 209, 166, 0.15);
  color: #e2d1a6;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.night-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.night-card p {
  color: #9aa8b9;
  font-size: 0.9rem;
}

/* ==========================================
       6. Footer
       ========================================== */
footer {
  background: #060911;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 20px;
  text-align: center;
  color: #6c7a8c;
  font-size: 0.85rem;
}
footer strong {
  color: #a0aec0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
       7. Responsive Layout Adjustments
       ========================================== */
@media (max-width: 1024px) {
  .highlight-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .highlight-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .highlight-card:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  /* GNB Drawer Layout */
  .gnb {
    position: fixed;
    top: 0;
    right: -280px; /* 기본 숨김 위치 */
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    padding: 90px 1.8rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  .gnb.active {
    right: 0; /* 화면 내로 슬라이드 */
  }

  .gnb li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .gnb li a {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  }

  .gnb li a:hover,
  .gnb li a:focus {
    color: #c82323;
    padding-left: 1rem;
    background-color: #faf0f0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .main-title {
    font-size: 2.6rem;
  }
  .event-date {
    font-size: 1.35rem;
  }
  .event-location {
    font-size: 1.1rem;
  }
  .highlight-container {
    grid-template-columns: 1fr;
  }
  .highlight-card {
    border-right: none;
  }

  .hd-banner {
    background-image: url(img/mpn-bg.jpg);
    background-position: center;
    background-size: cover;
    height: var(--hd-banner-m-height);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    font-size: 20px;
    font-family: "Gowun Batang", serif;
  }
}
