/* =============================================
   횡성전통시장 - style.css
   ============================================= */

:root {
  --ink: #1E1208;
  --brown: #3D2314;
  --ochre: #B8751A;
  --gold: #D4920E;
  --cream: #F7EDD8;
  --parchment: #EFE0C0;
  --red: #8B2020;
  --red-light: #A83030;
  --sage: #5A6B4A;
  --white: #FDFAF4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(30, 18, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 146, 14, 0.3);
}
.nav-logo {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.25rem; font-weight: 800;
  color: var(--gold); letter-spacing: 0.05em; text-decoration: none;
}
.nav-logo span {
  color: var(--cream); opacity: 0.7;
  font-size: 0.75rem; display: block;
  font-weight: 400; letter-spacing: 0.15em;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--cream); opacity: 0.8;
  font-size: 0.85rem; letter-spacing: 0.1em;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--brown);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(184,117,26,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 70%, rgba(139,32,32,0.15) 0%, transparent 50%),
    linear-gradient(160deg, #1E1208 0%, #3D2314 40%, #2A1A0E 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4920E' fill-opacity='1'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
  animation: fadeUp 1s ease both;
}
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(212,146,14,0.5);
  color: var(--gold);
  font-size: 0.75rem; letter-spacing: 0.3em;
  padding: 6px 20px; margin-bottom: 32px;
}
.hero-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800; color: var(--cream);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px;
}
.hero-title .accent { color: var(--gold); }
.hero-sub {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(247,237,216,0.6);
  letter-spacing: 0.2em; margin-bottom: 48px;
}
.hero-market-days {
  display: inline-flex; align-items: center; gap: 24px;
  background: rgba(212,146,14,0.12);
  border: 1px solid rgba(212,146,14,0.3);
  padding: 16px 36px; margin-bottom: 48px;
}
.hero-market-days .label { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.2em; }
.hero-market-days .days {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.5rem; font-weight: 800; color: var(--cream);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: var(--cream);
  padding: 16px 40px;
  font-size: 0.9rem; letter-spacing: 0.15em;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: var(--red-light); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(247,237,216,0.4); font-size: 0.7rem; letter-spacing: 0.2em;
  animation: bounce 2s infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(212,146,14,0.6), transparent);
  animation: scrollDrop 2s infinite;
}

/* ── D-DAY BANNER ── */
.dday-banner {
  background: var(--red);
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap;
  transition: background 0.4s;
}
.dday-banner.today { background: #1a6b2a; }
.dday-item { text-align: center; }
.dday-item .dday-num {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 2.5rem; font-weight: 800; color: var(--cream);
  display: block; line-height: 1;
}
.dday-item .dday-label {
  font-size: 0.7rem; color: rgba(247,237,216,0.7);
  letter-spacing: 0.2em; display: block; margin-top: 4px;
}
.dday-divider { width: 1px; height: 50px; background: rgba(247,237,216,0.2); }
.dday-msg { font-family: 'Noto Serif KR', serif; font-size: 1.1rem; color: var(--cream); letter-spacing: 0.1em; }

/* ── SECTION BASE ── */
section { padding: 100px 48px; }
.section-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.35em;
  color: var(--ochre); text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 40px; position: relative;
}
.section-tag::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 30px; height: 1px; background: var(--ochre);
}
.section-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 20px;
}
.section-desc { font-size: 0.95rem; color: rgba(30,18,8,0.65); line-height: 1.9; max-width: 540px; }

/* ── ABOUT ── */
.about { background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-frame {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--parchment); position: relative; overflow: hidden;
  border: 3px solid var(--ochre);
}
.about-frame-inner {
  position: absolute; inset: 20px;
  border: 1px solid rgba(184,117,26,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.about-icon { font-size: 5rem; line-height: 1; }
.about-frame-text { font-family: 'Nanum Myeongjo', serif; font-size: 1.1rem; color: var(--brown); letter-spacing: 0.1em; text-align: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.stat-box { background: var(--white); padding: 24px; border-left: 3px solid var(--ochre); }
.stat-num { font-family: 'Nanum Myeongjo', serif; font-size: 2rem; font-weight: 800; color: var(--brown); display: block; }
.stat-label { font-size: 0.8rem; color: rgba(30,18,8,0.55); letter-spacing: 0.1em; margin-top: 4px; }

/* ── SPECIALTIES ── */
.specialties { background: var(--ink); }
.specialties .section-title { color: var(--cream); }
.specialties .section-desc { color: rgba(247,237,216,0.55); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px; margin-top: 60px; }
.product-card {
  background: #2A1A0E; padding: 40px 32px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: background 0.3s;
}
.product-card:hover { background: #3D2A18; }
.product-card:hover .product-arrow { transform: translateX(6px); }
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--ochre);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.product-card:hover::before { transform: scaleX(1); }
.product-emoji { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.product-name { font-family: 'Nanum Myeongjo', serif; font-size: 1.4rem; font-weight: 800; color: var(--cream); margin-bottom: 12px; }
.product-desc { font-size: 0.83rem; color: rgba(247,237,216,0.5); line-height: 1.8; }
.product-arrow { position: absolute; bottom: 32px; right: 32px; color: var(--ochre); font-size: 1.2rem; transition: transform 0.3s; }

/* ── CALENDAR ── */
.calendar-section { background: var(--parchment); }
.calendar-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-top: 60px; }

/* 월 이동 컨트롤 */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.cal-nav-btn {
  background: var(--brown); color: var(--cream);
  border: none; cursor: pointer;
  width: 36px; height: 36px;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: var(--ochre); }
.cal-nav-btn:disabled { background: rgba(61,35,20,0.2); cursor: not-allowed; color: rgba(30,18,8,0.3); }
.cal-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.1rem; font-weight: 800; color: var(--brown); letter-spacing: 0.1em;
}

.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.cal-header span { text-align: center; font-size: 0.7rem; color: rgba(30,18,8,0.45); letter-spacing: 0.1em; padding: 8px 0; }
.cal-header span:first-child { color: var(--red); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { text-align: center; padding: 10px 4px; font-size: 0.85rem; color: var(--ink); border-radius: 2px; }
.cal-day.empty { visibility: hidden; }
.cal-day.sunday { color: var(--red); }
.cal-day.market { background: var(--red); color: var(--cream) !important; font-weight: 700; font-family: 'Nanum Myeongjo', serif; }
.cal-day.today-marker { outline: 2px solid var(--ochre); }
.cal-legend { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.cal-legend-dot { width: 28px; height: 28px; background: var(--red); }
.cal-legend-text { font-size: 0.8rem; color: rgba(30,18,8,0.6); }

/* 장날 목록 */
.market-day-list { margin-top: 16px; }
.market-day-list-title { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ochre); margin-bottom: 10px; }
.market-day-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.market-day-chip {
  background: var(--brown); color: var(--cream);
  padding: 6px 14px; font-size: 0.8rem;
  font-family: 'Nanum Myeongjo', serif;
  border-radius: 2px;
}
.market-day-chip.past { background: rgba(61,35,20,0.3); color: rgba(30,18,8,0.4); }
.market-day-chip.today { background: #1a6b2a; }
.market-day-chip.next { background: var(--ochre); }

/* 정보 목록 */
.market-info-list { display: flex; flex-direction: column; gap: 20px; }
.info-row { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid rgba(30,18,8,0.1); }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--brown); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.info-content .info-label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ochre); margin-bottom: 4px; }
.info-content .info-val { font-family: 'Noto Serif KR', serif; font-size: 0.95rem; color: var(--brown); font-weight: 600; line-height: 1.6; }

/* ── ACCESS ── */
.access { background: var(--white); }
.access-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; margin-top: 60px; }
.access-card { background: var(--cream); padding: 36px 28px; border-top: 3px solid var(--brown); }
.access-card h3 { font-family: 'Nanum Myeongjo', serif; font-size: 1.1rem; font-weight: 800; color: var(--brown); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(61,35,20,0.15); }
.access-card p { font-size: 0.85rem; color: rgba(30,18,8,0.7); line-height: 2; }
.access-map { margin-top: 48px; background: var(--parchment); height: 280px; border: 2px solid rgba(61,35,20,0.15); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: rgba(30,18,8,0.4); font-size: 0.85rem; letter-spacing: 0.1em; }
.contact-bar { margin-top: 48px; background: var(--brown); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.contact-bar .ct-label { font-size: 0.7rem; letter-spacing: 0.25em; color: rgba(247,237,216,0.5); margin-bottom: 6px; }
.contact-bar .ct-val { font-family: 'Nanum Myeongjo', serif; font-size: 1.2rem; font-weight: 800; color: var(--gold); }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { font-family: 'Nanum Myeongjo', serif; font-size: 1.4rem; font-weight: 800; color: var(--gold); margin-bottom: 12px; }
.footer-sub { font-size: 0.78rem; color: rgba(247,237,216,0.4); line-height: 1.9; max-width: 320px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: rgba(247,237,216,0.4); text-decoration: none; letter-spacing: 0.1em; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: rgba(247,237,216,0.25); margin-top: 32px; width: 100%; padding-top: 24px; border-top: 1px solid rgba(247,237,216,0.08); }

/* ── DIVIDER ── */
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--ochre), transparent); margin: 0 48px; opacity: 0.3; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { 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(8px); } }
@keyframes scrollDrop { 0% { height: 0; opacity: 0; } 50% { height: 40px; opacity: 1; } 100% { height: 40px; opacity: 0; } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .calendar-layout { grid-template-columns: 1fr; gap: 40px; }
  .access-grid { grid-template-columns: 1fr; }
  footer { padding: 40px 24px; }
  .contact-bar { padding: 24px; }
  .dday-banner { gap: 20px; padding: 20px 24px; }
  .dday-divider { display: none; }
}

/* ── NEWS / 기사 ── */
.news-section { background: var(--white); }
.news-section .section-title { color: var(--ink); }

/* 카테고리 탭 */
.news-category-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 36px 0 48px;
}
.news-cat-tab {
  background: var(--parchment);
  border: 1px solid rgba(61,35,20,0.15);
  color: rgba(30,18,8,0.6);
  padding: 8px 18px; font-size: 0.8rem;
  letter-spacing: 0.08em; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s; border-radius: 2px;
}
.news-cat-tab:hover { background: var(--parchment); color: var(--brown); border-color: var(--ochre); }
.news-cat-tab.active { background: var(--brown); color: var(--cream); border-color: var(--brown); }

/* 기사 그리드 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* 기사 카드 */
.news-card {
  background: var(--white);
  border: 1px solid rgba(61,35,20,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.news-card:hover {
  box-shadow: 0 8px 32px rgba(61,35,20,0.12);
  transform: translateY(-3px);
}
.news-card.expanded {
  grid-column: 1 / -1;
  transform: none;
  box-shadow: 0 4px 24px rgba(61,35,20,0.1);
}

/* 카드 헤더 (컬러 배경) */
.news-card-header {
  padding: 28px 28px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.news-card-emoji {
  font-size: 2rem; line-height: 1; flex-shrink: 0;
}
.news-card-cat {
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  padding: 4px 10px; border-radius: 2px;
}
.news-card-date {
  position: absolute; right: 28px; top: 28px;
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
}

/* 카드 바디 */
.news-card-body { padding: 24px 28px 20px; }
.news-card-title {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--brown); line-height: 1.5;
  margin-bottom: 12px;
}
.news-card-summary {
  font-size: 0.83rem; color: rgba(30,18,8,0.6);
  line-height: 1.85; margin-bottom: 16px;
}

/* 펼쳐진 본문 */
.news-card-full {
  border-top: 1px solid rgba(61,35,20,0.08);
  margin: 16px 0;
  padding-top: 20px;
}
.news-card-full p {
  font-size: 0.9rem; color: rgba(30,18,8,0.75);
  line-height: 2; margin-bottom: 16px;
}
.news-card-full p:last-child { margin-bottom: 0; }

/* 더 읽기 버튼 */
.news-card-btn {
  background: none; border: 1px solid var(--ochre);
  color: var(--ochre); padding: 8px 20px;
  font-size: 0.8rem; letter-spacing: 0.1em;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s; border-radius: 2px;
}
.news-card-btn:hover { background: var(--ochre); color: var(--cream); }

/* 카드 메타 */
.news-card-meta {
  margin-top: 12px; font-size: 0.75rem;
  color: rgba(30,18,8,0.4); letter-spacing: 0.08em;
}

/* ── 공지사항 ── */
.notice-section { background: var(--cream); }
.notice-list { margin-top: 48px; display: flex; flex-direction: column; gap: 2px; }
.notice-item {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--white); padding: 20px 24px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.notice-item:hover { border-left-color: var(--ochre); }
.notice-item.pinned { border-left-color: var(--red); background: #fff9f5; }
.notice-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 80px; }
.notice-type-badge {
  font-size: 0.68rem; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 2px;
}
.notice-type-info   { background: #E8F4FD; color: #1565C0; }
.notice-type-event  { background: #FFF3E0; color: #E65100; }
.notice-type-notice { background: #FFEBEE; color: #C62828; }
.notice-pin { font-size: 0.85rem; }
.notice-body { flex: 1; }
.notice-title { font-family: 'Nanum Myeongjo', serif; font-size: 1rem; font-weight: 800; color: var(--brown); margin-bottom: 6px; }
.notice-content { font-size: 0.83rem; color: rgba(30,18,8,0.65); line-height: 1.7; }
.notice-date { font-size: 0.75rem; color: rgba(30,18,8,0.4); flex-shrink: 0; letter-spacing: 0.05em; }

/* ── 상인 소개 ── */
.merchant-section { background: var(--white); }
.merchant-pub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.merchant-pub-card {
  background: var(--cream); padding: 28px 24px;
  border-top: 3px solid var(--brown);
  transition: transform 0.2s, box-shadow 0.2s;
}
.merchant-pub-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(61,35,20,0.1); }
.mpc-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.mpc-emoji { font-size: 2.2rem; line-height: 1; }
.mpc-name { font-family: 'Nanum Myeongjo', serif; font-size: 1.1rem; font-weight: 800; color: var(--brown); }
.mpc-cat { font-size: 0.75rem; color: var(--ochre); letter-spacing: 0.1em; margin-top: 3px; }
.mpc-desc { font-size: 0.83rem; color: rgba(30,18,8,0.65); line-height: 1.8; margin-bottom: 14px; }
.mpc-items { font-size: 0.78rem; color: rgba(30,18,8,0.55); margin-bottom: 6px; }
.mpc-phone { font-size: 0.78rem; color: var(--brown); font-weight: 500; }

/* ── 예약 섹션 ── */
.reserve-section { background: var(--parchment); }
.reserve-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; margin-top: 48px; align-items: start; }
.reserve-form {
  background: var(--white); padding: 36px;
  border-top: 3px solid var(--brown);
}
.rform-group { margin-bottom: 16px; }
.rform-group label { display: block; font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(30,18,8,0.55); margin-bottom: 6px; }
.rform-group input, .rform-group textarea, .rform-group select {
  width: 100%; padding: 11px 14px; border: 1px solid rgba(61,35,20,0.15);
  font-size: 0.88rem; font-family: 'Noto Sans KR', sans-serif;
  background: var(--white); outline: none;
}
.rform-group input:focus, .rform-group textarea:focus { border-color: var(--ochre); }
.rform-group textarea { resize: vertical; min-height: 90px; }
.rform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reserve-btn {
  width: 100%; padding: 16px; background: var(--brown); color: var(--cream);
  border: none; font-size: 0.9rem; letter-spacing: 0.15em; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; margin-top: 8px;
  transition: background 0.2s;
}
.reserve-btn:hover { background: var(--red); }
.res-success { margin-top: 16px; padding: 16px; background: #e8f5e9; color: #2e7d32; font-size: 0.88rem; line-height: 1.7; border-left: 3px solid #2e7d32; }
.res-error { margin-top: 12px; padding: 12px; background: #ffebee; color: #c62828; font-size: 0.83rem; border-left: 3px solid #c62828; }

.reserve-info { display: flex; flex-direction: column; gap: 16px; }
.rinfo-card { background: var(--white); padding: 20px; display: flex; align-items: flex-start; gap: 16px; border-left: 3px solid var(--ochre); }
.rinfo-icon { font-size: 1.4rem; flex-shrink: 0; }
.rinfo-label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ochre); margin-bottom: 4px; }
.rinfo-val { font-family: 'Noto Serif KR', serif; font-size: 0.92rem; color: var(--brown); font-weight: 600; line-height: 1.6; }
.rinfo-note { font-size: 0.8rem; color: rgba(30,18,8,0.5); line-height: 1.9; padding: 16px; background: rgba(61,35,20,0.05); }

@media (max-width: 768px) {
  .reserve-layout { grid-template-columns: 1fr; gap: 32px; }
  .notice-item { flex-wrap: wrap; }
  .merchant-pub-grid { grid-template-columns: 1fr; }
}

/* ── 자주 묻는 질문 ── */
.faq-section { background: var(--ink); }
.faq-section .section-title { color: var(--cream); }
.faq-section .section-desc  { color: rgba(247,237,216,0.55); }
.faq-list { max-width: 780px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: #2A1A0E; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; text-align: left; gap: 16px;
  font-family: 'Nanum Myeongjo', serif; font-size: 1.05rem; font-weight: 800;
  color: var(--cream); transition: color 0.2s;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow { font-size: 1.3rem; color: var(--ochre); flex-shrink: 0; transition: transform 0.3s; }
.faq-q.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.9rem; color: rgba(247,237,216,0.65);
  line-height: 1.9; padding: 0 28px;
  border-top: 0px solid rgba(212,146,14,.15);
}
.faq-a.open {
  max-height: 300px;
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(212,146,14,.12);
}
.faq-a strong { color: var(--gold); }
@media (max-width: 768px) {
  .faq-list { margin-top: 32px; }
  .faq-q { padding: 18px 20px; font-size: 0.95rem; }
  .faq-a { padding: 0 20px; }
  .faq-a.open { padding: 14px 20px 20px; }
}
/* ── 전화번호 링크 (핑크) ── */
a.tel-link,
a.tel-link:link,
a.tel-link:visited {
  color: #D4527A !important;
  text-decoration: none;
  white-space: nowrap;
}
a.tel-link:hover,
a.tel-link:active {
  color: #E0688A !important;
  text-decoration: underline;
}

.admin-gear {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px;
  background: rgba(30,18,8,0.75);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.3s;
  opacity: 0.5;
}
.admin-gear:hover { background: var(--brown); opacity: 1; transform: rotate(60deg); }

/* ══════════════════════════════════════════
   랜딩 애니메이션
   ══════════════════════════════════════════ */

/* 히어로 파티클 */
.hero-particles { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.particle {
  position:absolute; border-radius:50%;
  background:rgba(212,146,14,0.15);
  animation:particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform:translateY(100vh) scale(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:0.6; }
  100% { transform:translateY(-10vh) scale(1); opacity:0; }
}

/* 히어로 텍스트 등장 */
.hero-badge   { animation:fadeUp 0.8s 0.2s ease both; }
.hero-title   { animation:fadeUp 0.9s 0.4s ease both; }
.hero-sub     { animation:fadeUp 0.8s 0.6s ease both; }
.hero-market-days { animation:fadeUp 0.8s 0.75s ease both; }
.hero-cta     { animation:fadeUp 0.8s 0.9s ease both; }

/* 글로우 버튼 효과 */
.hero-cta {
  position:relative; overflow:hidden;
  box-shadow:0 0 0 0 rgba(139,32,32,0.4);
  animation:fadeUp 0.8s 0.9s ease both, ctaPulse 3s 2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,100% { box-shadow:0 0 0 0 rgba(139,32,32,0.4); }
  50%     { box-shadow:0 0 0 12px rgba(139,32,32,0); }
}
.hero-cta::after {
  content:''; position:absolute; top:50%; left:50%;
  width:0; height:0;
  background:rgba(255,255,255,0.15);
  border-radius:50%;
  transform:translate(-50%,-50%);
  transition:width 0.5s, height 0.5s, opacity 0.5s;
  opacity:0;
}
.hero-cta:active::after { width:300px; height:300px; opacity:0; }

/* 리플 효과 (모든 버튼) */
.ripple-btn { position:relative; overflow:hidden; }
.ripple {
  position:absolute; border-radius:50%;
  background:rgba(255,255,255,0.3);
  transform:scale(0);
  animation:rippleAnim 0.6s linear;
  pointer-events:none;
}
@keyframes rippleAnim { to { transform:scale(4); opacity:0; } }

/* 스크롤 애니메이션 개선 */
.fade-in          { opacity:0; transform:translateY(32px); transition:opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible  { opacity:1; transform:translateY(0); }
.fade-in-left     { opacity:0; transform:translateX(-40px); transition:opacity 0.7s ease, transform 0.7s ease; }
.fade-in-left.visible { opacity:1; transform:translateX(0); }
.fade-in-right    { opacity:0; transform:translateX(40px); transition:opacity 0.7s ease, transform 0.7s ease; }
.fade-in-right.visible{ opacity:1; transform:translateX(0); }
.fade-in-scale    { opacity:0; transform:scale(0.9); transition:opacity 0.6s ease, transform 0.6s ease; }
.fade-in-scale.visible{ opacity:1; transform:scale(1); }

/* 통계 카운터 */
.stat-num { transition:all 0.3s; }

/* 상품 카드 hover 3D */
.product-card {
  transform-style:preserve-3d;
  transition:background 0.3s, transform 0.3s;
}
.product-card:hover { transform:translateY(-4px) rotateX(2deg); }

/* 상인 카드 hover */
.merchant-pub-card { transition:transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s; }
.merchant-pub-card:hover { transform:translateY(-8px) scale(1.02); box-shadow:0 16px 40px rgba(61,35,20,0.15); }

/* 뉴스 카드 hover */
.news-card { transition:box-shadow 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.news-card:hover { box-shadow:0 12px 36px rgba(61,35,20,0.14); transform:translateY(-5px); }

/* D-DAY 배너 숫자 펄스 */
.dday-num { animation:numPulse 2s ease-in-out infinite; }
@keyframes numPulse {
  0%,100% { transform:scale(1); }
  50%     { transform:scale(1.04); }
}

/* 캘린더 장날 반짝임 */
.cal-day.market {
  animation:marketBlink 2s ease-in-out infinite;
  cursor:default;
}
@keyframes marketBlink {
  0%,100% { box-shadow:0 0 0 0 rgba(139,32,32,0.4); }
  50%     { box-shadow:0 0 8px 2px rgba(139,32,32,0.3); }
}

/* 네비 링크 언더라인 슬라이드 */
.nav-links a { position:relative; }
.nav-links a::after {
  content:''; position:absolute; bottom:-2px; left:0; width:0; height:1px;
  background:var(--gold); transition:width 0.3s ease;
}
.nav-links a:hover::after { width:100%; }

/* 섹션 태그 라인 애니메이션 */
.section-tag::before { transition:width 0.4s ease; }
.fade-in.visible .section-tag::before { width:30px; }

/* ══════════════════════════════════════════
   팝업 오버레이
   ══════════════════════════════════════════ */
#sitePopupOverlay {
  position:fixed; inset:0;
  background:rgba(30,18,8,0.75);
  z-index:9000;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity 0.4s ease;
  backdrop-filter:blur(4px);
}
#sitePopupOverlay.open {
  opacity:1; pointer-events:all;
}
#sitePopupBox {
  background:#fff;
  width:480px; max-width:92vw; max-height:90vh;
  overflow-y:auto; position:relative;
  transform:translateY(40px) scale(0.95);
  transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:0 24px 80px rgba(30,18,8,0.4);
}
#sitePopupOverlay.open #sitePopupBox {
  transform:translateY(0) scale(1);
}
.popup-close-x {
  position:absolute; top:12px; right:12px;
  width:32px; height:32px; background:rgba(30,18,8,0.6);
  border:none; color:white; font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; z-index:1; transition:background 0.2s;
}
.popup-close-x:hover { background:var(--red); }
.popup-btn-row {
  display:flex; border-top:1px solid rgba(61,35,20,0.1);
}
.popup-btn {
  flex:1; padding:15px; background:none; border:none;
  font-size:0.83rem; cursor:pointer;
  font-family:'Noto Sans KR',sans-serif; transition:background 0.2s;
}
.popup-btn:first-child { border-right:1px solid rgba(61,35,20,0.1); color:rgba(30,18,8,0.45); }
.popup-btn:first-child:hover { background:#f5f0e8; }
.popup-btn:last-child { background:var(--brown); color:var(--cream); font-weight:700; }
.popup-btn:last-child:hover { background:var(--red); }

/* SVG 장식 애니메이션 */
.popup-svg-deco { position:absolute; top:0; left:0; right:0; pointer-events:none; overflow:hidden; }
.popup-deco-circle {
  animation:decoSpin 8s linear infinite;
  transform-origin:center;
}
@keyframes decoSpin { from{transform:rotate(0deg);}to{transform:rotate(360deg);} }
.popup-deco-float { animation:decoFloat 3s ease-in-out infinite; }
@keyframes decoFloat {
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
