/* ============================================
   태양 육곳간 - Main Stylesheet
   ============================================ */
:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #EF5350;
  --gold: #F4A020;
  --dark: #1a1a1a;
  --dark2: #2a2a2a;
  --gray1: #333;
  --gray2: #555;
  --gray3: #888;
  --gray4: #bbb;
  --gray5: #e0e0e0;
  --light: #f8f5f0;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.25);
  --radius: 12px;
  --transition: 0.3s ease;
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', sans-serif;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray1);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scroll Progress Bar ── */
#scrollBar {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--primary);
  z-index: 9999; width: 0; transition: width 0.1s;
}

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: all var(--transition);
  padding: 16px 0;
  /* ★ 항상 상단에 어두운 그라데이션 → 로고/네비 가시성 보장 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
}
.header.scrolled {
  background: rgba(20,10,5,0.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; flex-direction: column; cursor: pointer; }
.logo-text { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.logo-main { color: var(--primary-light); text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
/* ★ 수정: 육곳간을 금색+텍스트 그림자로 변경 → 밝은/어두운 배경 모두 가시성 확보 */
.logo-sub  { color: var(--gold); text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.logo-subtitle { font-size: 0.7rem; color: rgba(255,255,255,0.75); text-shadow: 0 1px 4px rgba(0,0,0,0.6); letter-spacing: 2px; margin-top: 2px; }
.nav-menu { display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); background: rgba(211,47,47,0.45); text-shadow: none; }
/* 햄버거 버튼 – 외곽선 박스로 항상 보이게 */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: rgba(0,0,0,0.55); border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 8px; cursor: pointer; padding: 8px 9px;
  backdrop-filter: blur(4px);
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); transition: all var(--transition); display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Notice Ticker ── */
.notice-ticker {
  background: var(--primary);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-wrap { display: inline-block; animation: ticker 25s linear infinite; }
.ticker-wrap span { margin: 0 60px; font-size: 0.85rem; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── Hero Banner ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.banner-track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.77,0,0.175,1); }
.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.banner-slide.active .bg { transform: scale(1.08); }
.banner-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.banner-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 20px; max-width: 800px;
}
.banner-icon { font-size: 4rem; margin-bottom: 20px; display: block; animation: pulse 2s infinite; }
.banner-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.banner-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.6;
}
.banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition); border: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(211,47,47,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,0.7); text-align: center;
  animation: bounce 2s infinite;
}
.scroll-indicator i { font-size: 1.5rem; }
/* Dots */
.banner-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: all var(--transition);
}
.banner-dot.active { background: var(--white); transform: scale(1.3); }
/* Arrows */
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,0.15);
  border: none; color: var(--white); width: 48px; height: 48px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  transition: all var(--transition); backdrop-filter: blur(4px);
}
.banner-arrow:hover { background: rgba(255,255,255,0.3); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

/* ── Section Commons ── */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; background: rgba(211,47,47,0.12);
  color: var(--primary); border: 1px solid rgba(211,47,47,0.2);
  padding: 4px 16px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900; color: var(--dark);
  margin-bottom: 12px; line-height: 1.3;
}
.section-divider {
  width: 50px; height: 3px; background: var(--primary);
  margin: 16px auto; border-radius: 2px;
}
.section-desc { color: var(--gray2); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-image-wrap { position: relative; }
.about-main-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--dark2), #3d1a00);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 6rem;
}
.about-items { display: flex; flex-direction: column; gap: 24px; }
.about-item { display: flex; gap: 16px; align-items: flex-start; }
.about-item-icon {
  font-size: 2rem; width: 56px; height: 56px;
  background: rgba(211,47,47,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-item-body h3 { font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.about-item-body p { color: var(--gray2); font-size: 0.95rem; line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 48px; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card .title { font-weight: 700; color: var(--dark); font-size: 0.95rem; margin-bottom: 4px; }
.feature-card .desc { font-size: 0.8rem; color: var(--gray3); }

/* ── Menu ── */
.menu-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 2px solid var(--gray5);
  background: var(--white); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); color: var(--gray2);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }
.menu-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition); border: 1px solid var(--gray5);
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.menu-card-img {
  width: 100%; height: 180px; object-fit: cover;
}
.menu-card-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #2a1a10, #8B2500);
  display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.menu-card-body { padding: 20px; }
.menu-category-badge {
  display: inline-block; background: rgba(211,47,47,0.1);
  color: var(--primary); font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px; margin-bottom: 8px;
}
.menu-card-body h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.menu-card-body p { color: var(--gray3); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.5; }
.menu-price { color: var(--primary); font-weight: 700; font-size: 1rem; }

/* ── Notice ── */
.notice-list { max-width: 800px; margin: 0 auto; }
.notice-item {
  border: 1px solid var(--gray5); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: box-shadow var(--transition);
}
.notice-item:hover { box-shadow: var(--shadow); }
.notice-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer; background: var(--white);
  transition: background var(--transition);
}
.notice-header:hover { background: var(--light); }
.notice-badge-imp {
  background: var(--primary); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.notice-title { flex: 1; font-weight: 600; font-size: 0.95rem; }
.notice-date { font-size: 0.82rem; color: var(--gray3); }
.notice-toggle-icon { color: var(--gray3); transition: transform var(--transition); }
.notice-item.open .notice-toggle-icon { transform: rotate(180deg); }
.notice-body {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  background: var(--light); color: var(--gray2); font-size: 0.9rem; line-height: 1.7;
}
.notice-item.open .notice-body { max-height: 500px; padding: 16px 20px; }
.notice-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin-top: 12px; }

/* ── Events ── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
.event-card {
  background: var(--dark2); color: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.event-card:hover { transform: translateY(-6px); }
.event-card-img { width: 100%; height: 200px; object-fit: cover; }
.event-card-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.event-card-body { padding: 24px; }
.event-badge {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; margin-bottom: 10px;
}
.event-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.event-card-body p { font-size: 0.88rem; opacity: 0.8; line-height: 1.6; margin-bottom: 12px; }
.event-period { font-size: 0.8rem; opacity: 0.6; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer; background: var(--dark2);
}
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #3d1a00);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px;
}
.gallery-placeholder span:first-child { font-size: 3rem; }
.gallery-placeholder span:last-child { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.gallery-item:hover .gallery-img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.5); }
.gallery-overlay i { color: var(--white); font-size: 2rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay i { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 9999; display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  cursor: pointer; transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ── Reviews ── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 0; box-shadow: var(--shadow); border: 1px solid var(--gray5);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
/* 썸네일 이미지 */
.review-card-img {
  width: 100%; height: 180px; object-fit: cover;
  display: block; flex-shrink: 0;
}
/* 이미지 없을 때 플레이스홀더 */
.review-card-no-img {
  width: 100%; height: 80px;
  background: linear-gradient(135deg, #fdf2f2 0%, #fff8f0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gray4); flex-shrink: 0;
}
/* 카드 텍스트 영역 */
.review-card-body {
  padding: 18px 20px 20px;
  flex: 1; display: flex; flex-direction: column;
}
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 8px; }
.review-content {
  color: var(--gray2); font-size: 0.88rem; line-height: 1.65;
  margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-author { font-weight: 700; font-size: 0.85rem; color: var(--gray1); }
.review-date { font-size: 0.78rem; color: var(--gray3); margin-top: 3px; }

/* ── 리뷰 모달 공통 ── */
.review-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.review-modal-overlay.open { display: flex; }
.review-modal-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 36px 32px 32px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.review-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--gray5); border: none;
  border-radius: 50%; width: 32px; height: 32px;
  font-size: 1rem; cursor: pointer; color: var(--gray2);
  transition: background 0.2s;
}
.review-modal-close:hover { background: var(--gray4); }
.review-modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: var(--dark); }

/* ── 리뷰 작성 폼 ── */
.review-star-input { display: flex; gap: 6px; margin-bottom: 16px; flex-direction: row-reverse; justify-content: flex-end; }
.review-star-input input { display: none; }
.review-star-input label { font-size: 2rem; color: var(--gray5); cursor: pointer; transition: color var(--transition); }
.review-star-input input:checked ~ label,
.review-star-input label:hover,
.review-star-input label:hover ~ label { color: var(--gold); }
.review-photo-hint { font-size: 0.78rem; color: var(--gray3); font-weight: 400; }
.review-photo-area {
  border: 2px dashed var(--gray5); border-radius: 10px;
  padding: 20px; text-align: center;
  cursor: pointer; transition: border-color 0.2s;
  color: var(--gray3); font-size: 0.9rem;
}
.review-photo-area:hover { border-color: var(--primary); color: var(--primary); }
.review-photo-area.has-photo { border-color: var(--primary); }

/* ── 리뷰 상세 모달 내용 ── */
.review-detail-stars { color: var(--gold); font-size: 1.4rem; margin-bottom: 12px; }
.review-detail-content {
  font-size: 1rem; line-height: 1.8; color: var(--gray2);
  margin-bottom: 16px; white-space: pre-line;
}
.review-detail-img {
  width: 100%; border-radius: 10px; margin-bottom: 14px;
  max-height: 280px; object-fit: cover;
}
.review-detail-meta { font-size: 0.85rem; color: var(--gray3); }

/* ── Location ── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.location-info h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 900; margin-bottom: 24px; }
.info-item { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-icon { width: 40px; height: 40px; background: rgba(211,47,47,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.info-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.info-item span { color: var(--gray2); font-size: 0.9rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 380px; background: #f0ede8; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.map-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--gray3); font-size: 0.9rem; }
.map-placeholder i { font-size: 3rem; color: var(--gray4); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: rgba(211,47,47,0.08); border-radius: var(--radius);
  padding: 20px; border-left: 4px solid var(--primary);
}
.contact-info-card h4 { font-weight: 700; margin-bottom: 6px; }
.contact-info-card p { color: var(--gray2); font-size: 0.9rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--gray1); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray5); border-radius: 8px;
  font-size: 0.95rem; font-family: var(--font-sans);
  transition: border-color var(--transition); outline: none;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 14px; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition); }
.form-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── Popup ── */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
}
.popup-box {
  background: var(--white); border-radius: 16px;
  max-width: 460px; width: 90%; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative; animation: popupIn 0.3s ease;
}
@keyframes popupIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-img { width: 100%; max-height: 240px; object-fit: cover; }
.popup-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5); border: none; color: var(--white);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.popup-close:hover { background: rgba(0,0,0,0.75); }
.popup-body { padding: 24px; }
.popup-body h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; }
.popup-body p { color: var(--gray2); font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; }
.popup-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--light); gap: 12px;
}
.popup-no-show { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--gray3); cursor: pointer; }
.popup-no-show input { cursor: pointer; }

/* ── Footer ── */
.footer {
  background: #0d0d0d; color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 1.5rem; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-top: 12px; }
.footer h4 { color: var(--white); font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 0.88rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.82rem; opacity: 0.6; flex-wrap: wrap; gap: 8px; }

/* ── Back to Top ── */
#backToTop {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--primary); color: var(--white);
  border: none; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; z-index: 500;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(211,47,47,0.5);
  transition: all var(--transition);
}
#backToTop.show { display: flex; }
#backToTop:hover { transform: translateY(-4px); background: var(--primary-dark); }

/* ── Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.hidden-anim { opacity: 0; transform: translateY(30px); }
.visible-anim { opacity: 1; transform: translateY(0); transition: all 0.6s ease; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: var(--white); padding: 12px 28px;
  border-radius: 50px; font-size: 0.9rem; z-index: 9999;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── Form Message ── */
.form-msg { text-align: center; padding: 16px; border-radius: 8px; margin-top: 12px; font-weight: 600; }
.form-msg.success { background: #d1fae5; color: #065f46; }
.form-msg.error { background: #fee2e2; color: #991b1b; }

/* ── 모바일 메뉴 오버레이 (배경 딤) ── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ── Responsive ── */
@media (max-width: 968px) {
  /* ★ 좌측 드로어 방식으로 변경 */
  .nav-menu {
    position: fixed; top: 0; left: -300px; bottom: 0;
    width: 280px;
    background: #1a0a03;
    flex-direction: column;
    padding: 0;
    transition: left 0.3s ease;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .nav-menu.open { left: 0; }

  /* 드로어 헤더 영역 */
  .nav-menu::before {
    content: '메 뉴';
    display: block;
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* ★ 테이블형 목록: 항목마다 경계선, 아이콘 화살표 */
  .nav-menu li { list-style: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    text-shadow: none;
    border-radius: 0;
    background: transparent;
    letter-spacing: 0.5px;
  }
  .nav-menu a::after {
    content: '›';
    font-size: 1.3rem;
    color: var(--primary-light);
    font-weight: 300;
    line-height: 1;
  }
  .nav-menu a:hover, .nav-menu a.active {
    background: rgba(211,47,47,0.2);
    color: #fff;
    padding-left: 26px;
  }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .banner-btns { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
}
