/* ==========================================================================
   모닥스낵 가맹 랜딩 — 밤 캠핑장(다크) × 낮 캠핑(크림) 교차 구성
   ========================================================================== */
@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --night: #171009;
  --night2: #221709;
  --night3: #2c1d0e;
  --ember: #f08a24;
  --ember-soft: #f6a94f;
  --flame: #e85d26;
  --brand-red: #8c2318;
  --cream: #f4ebdd;
  --cream2: #ede0cb;
  --smoke: #c9bca9;
  --smoke-dim: #9a8b74;
  --ink: #2a1f14;
  --ink-soft: #5c4c39;
  --display: 'GmarketSans', 'Pretendard Variable', Pretendard, sans-serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--night);
  color: var(--cream);
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--flame); color: #fff; }

.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
section { position: relative; }

/* ---------- 공통 타이포 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.14em; color: var(--ember);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--ember); }
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  line-height: 1.32; margin: 18px 0 14px; letter-spacing: -0.01em;
}
.section-sub { font-size: clamp(1rem, 2vw, 1.13rem); color: var(--smoke); max-width: 640px; }
.light .section-sub { color: var(--ink-soft); }

/* ---------- 리빌 (JS 미동작 시에도 안전) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* ---------- 헤더 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 18px 0; transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(23, 16, 9, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(240, 138, 36, .18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  display: inline-flex; align-items: center; gap: 8px; color: var(--cream);
}
.logo svg { width: 22px; height: 22px; }
.logo .en { font-size: .62rem; letter-spacing: .28em; color: var(--ember); display: block; line-height: 1; margin-top: 3px; }
.header-cta {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  background: var(--flame); color: #fff; padding: 12px 22px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 6px 18px rgba(232, 93, 38, .35);
}
.header-cta:hover { transform: translateY(-2px); background: var(--ember); box-shadow: 0 10px 26px rgba(240, 138, 36, .45); }

/* ---------- 히어로 ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('../assets/hero-campfire.webp') center right / cover no-repeat var(--night);
  will-change: transform; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23,16,9,.96) 0%, rgba(23,16,9,.82) 34%, rgba(23,16,9,.35) 62%, rgba(23,16,9,.15) 100%),
    linear-gradient(0deg, var(--night) 0%, transparent 26%),
    linear-gradient(180deg, rgba(23,16,9,.55) 0%, transparent 22%);
}
#embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: clamp(.82rem, 1.6vw, .95rem);
  letter-spacing: .18em; color: var(--ember-soft);
  border: 1px solid rgba(240,138,36,.4); border-radius: 999px;
  padding: 9px 18px; background: rgba(23,16,9,.45);
}
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 6.4vw, 4.1rem);
  line-height: 1.28; letter-spacing: -0.015em;
  margin: 26px 0 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.hero-title .accent { color: var(--ember); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--smoke);
  max-width: 560px; margin-bottom: 38px;
}
.hero-sub strong { color: var(--cream); font-weight: 700; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: 17px 34px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer; border: 0;
}
.btn-fire {
  background: linear-gradient(135deg, var(--flame), var(--ember));
  color: #fff; box-shadow: 0 10px 30px rgba(232,93,38,.4);
}
.btn-fire:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 40px rgba(240,138,36,.5); }
.btn-ghost {
  background: rgba(244,235,221,.08); color: var(--cream);
  border: 1px solid rgba(244,235,221,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(244,235,221,.16); transform: translateY(-3px); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: var(--smoke-dim); font-size: .78rem; letter-spacing: .22em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--ember), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- 입점처 마퀴 ---------- */
.trust { background: var(--night2); padding: 64px 0 70px; border-top: 1px solid rgba(240,138,36,.14); overflow: hidden; }
.trust-head { text-align: center; margin-bottom: 36px; padding: 0 24px; }
.trust-head .section-title { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin-top: 14px; }
.marquee { display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 0; animation: marquee 26s linear infinite; }
.reduced .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-100%); } }
.venue {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.8rem);
  color: var(--cream); padding: 0 34px; white-space: nowrap;
}
.venue .spark { color: var(--ember); font-size: .9em; }
.trust-note { text-align: center; color: var(--smoke-dim); font-size: .92rem; margin-top: 34px; padding: 0 24px; }
.trust-note strong { color: var(--ember-soft); }

/* ---------- 매출 Proof ---------- */
.proof { background: radial-gradient(1200px 600px at 50% -10%, var(--night3), var(--night) 70%); padding: 110px 0 96px; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin: 52px 0 30px; }
.proof-card {
  background: linear-gradient(160deg, rgba(240,138,36,.10), rgba(240,138,36,.02) 55%), var(--night2);
  border: 1px solid rgba(240,138,36,.22);
  border-radius: 22px; padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.proof-card:hover { transform: translateY(-6px); border-color: rgba(240,138,36,.5); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.proof-card::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(240,138,36,.22), transparent 65%);
}
.proof-store { font-family: var(--display); font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.proof-store .tag {
  font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--ember);
  border: 1px solid rgba(240,138,36,.45); padding: 4px 10px; border-radius: 999px;
}
.proof-range { margin-top: 24px; }
.proof-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem); letter-spacing: .01em;
  color: var(--ember-soft); line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.proof-num .won { font-size: .62em; color: var(--smoke); margin-left: 2px; }
.proof-tilde { color: var(--smoke-dim); font-family: var(--display); font-weight: 500; margin: 2px 0; }
.proof-label { color: var(--smoke); font-size: .9rem; margin-top: 16px; letter-spacing: .04em; }
.proof-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.badge {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  background: rgba(140,35,24,.35); border: 1px solid rgba(232,93,38,.5);
  color: var(--cream); border-radius: 999px; padding: 11px 22px;
}
.badge em { font-style: normal; color: var(--ember); }
.proof-legal { color: var(--smoke-dim); font-size: .8rem; text-align: center; margin-top: 34px; line-height: 1.7; }

/* ---------- 크림(낮) 공통 ---------- */
.light { background: var(--cream); color: var(--ink); }
.light .eyebrow { color: var(--brand-red); }
.light .eyebrow::before { background: var(--brand-red); }

/* ---------- 브랜드/메뉴 ---------- */
.brand { padding: 110px 0; }
.brand-row {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
  margin-top: 64px;
}
.brand-row + .brand-row { margin-top: 90px; }
.brand-row.flip .brand-media { order: 2; }
.brand-media { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(42,31,20,.22); position: relative; }
.brand-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.brand-media:hover img { transform: scale(1.045); }
.brand-media .chip {
  position: absolute; left: 18px; top: 18px;
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  background: rgba(23,16,9,.78); color: var(--ember-soft);
  padding: 9px 16px; border-radius: 999px; letter-spacing: .08em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.brand-copy h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; margin: 16px 0 14px; }
.brand-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 480px; }
.brand-copy .menu-price {
  margin-top: 22px; display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--display); border-bottom: 2px solid var(--brand-red); padding-bottom: 6px;
}
.brand-copy .menu-price b { font-weight: 700; font-size: 1.15rem; color: var(--brand-red); }
.brand-copy .menu-price span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Why 4카드 ---------- */
.why { padding: 0 0 110px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; }
.why-card {
  background: #fff; border: 1px solid rgba(42,31,20,.08); border-radius: 20px;
  padding: 34px 26px; transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(42,31,20,.14); }
.why-card .icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,93,38,.14), rgba(240,138,36,.1));
  display: grid; place-items: center; margin-bottom: 20px; color: var(--flame);
}
.why-card .icon svg { width: 28px; height: 28px; }
.why-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: 10px; line-height: 1.4; }
.why-card p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- 리뷰 ---------- */
.reviews { background: var(--night); padding: 110px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.review-card {
  background: var(--night2); border: 1px solid rgba(244,235,221,.09);
  border-radius: 20px; padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s ease, border-color .3s ease;
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(240,138,36,.4); }
.review-card:nth-child(4), .review-card:nth-child(5) { display: flex; }
.stars { color: var(--ember); letter-spacing: 3px; font-size: .95rem; }
.review-card blockquote { color: var(--cream); font-size: .98rem; line-height: 1.7; flex: 1; }
.review-card cite { color: var(--smoke-dim); font-style: normal; font-size: .85rem; }
.reviews-note { text-align: center; color: var(--smoke-dim); font-size: .85rem; margin-top: 30px; }

/* ---------- 메뉴판 ---------- */
.menu { padding: 110px 0; background: var(--cream2); }
.menu-figure { margin-top: 50px; border-radius: 20px; overflow: hidden; box-shadow: 0 26px 60px rgba(42,31,20,.2); }
.menu-caption { text-align: center; color: var(--ink-soft); font-size: .88rem; margin-top: 18px; }

/* ---------- 절차 ---------- */
.process { padding: 110px 0; background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 56px; counter-reset: step; }
.step {
  background: #fff; border-radius: 18px; padding: 28px 20px;
  border: 1px solid rgba(42,31,20,.08); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--flame);
  display: block; margin-bottom: 12px;
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid var(--flame); border-right: 2px solid var(--flame);
  transform: translateY(-50%) rotate(45deg); z-index: 1;
}

/* ---------- 가맹문의 ---------- */
.contact {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23,16,9,.88) 100%),
    url('../assets/food-night-table.webp') center / cover no-repeat var(--night);
  padding: 110px 0;
}
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-copy .section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.contact-points { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--smoke); font-size: .98rem; }
.contact-points li::before { content: '🔥'; font-size: .9rem; line-height: 1.7; }
.contact-form {
  background: rgba(34,23,9,.82); border: 1px solid rgba(240,138,36,.25);
  border-radius: 24px; padding: 40px 36px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; color: var(--smoke); margin-bottom: 8px; font-weight: 600; }
.field label .req { color: var(--ember); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(23,16,9,.65); color: var(--cream);
  border: 1px solid rgba(244,235,221,.18); border-radius: 12px;
  padding: 14px 16px; font-family: var(--body); font-size: 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(240,138,36,.18);
}
.field input::placeholder, .field textarea::placeholder { color: var(--smoke-dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--smoke); margin: 4px 0 22px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--flame); flex-shrink: 0; }
.consent button {
  background: none; border: none; color: var(--ember); cursor: pointer;
  font-size: .85rem; text-decoration: underline; padding: 0; font-family: var(--body);
}
.consent-detail {
  display: none; background: rgba(23,16,9,.7); border: 1px solid rgba(244,235,221,.14);
  border-radius: 12px; padding: 16px 18px; font-size: .82rem; color: var(--smoke);
  margin-bottom: 20px; line-height: 1.7;
}
.consent-detail.open { display: block; }
.consent-detail strong { color: var(--cream); }
.btn-submit { width: 100%; justify-content: center; font-size: 1.08rem; padding: 18px; }
.btn-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.form-msg { margin-top: 16px; font-size: .92rem; display: none; padding: 14px 16px; border-radius: 12px; line-height: 1.6; }
.form-msg.ok { display: block; background: rgba(60,130,70,.18); border: 1px solid rgba(110,190,120,.4); color: #b9e6bf; }
.form-msg.err { display: block; background: rgba(190,60,50,.16); border: 1px solid rgba(230,110,100,.4); color: #f2c1ba; }

/* ---------- 푸터 ---------- */
.site-footer { background: #100b06; padding: 56px 0 40px; color: var(--smoke-dim); font-size: .85rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 30px; }
.footer-brand .logo { font-size: 1.2rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--smoke); transition: color .25s; }
.footer-links a:hover { color: var(--ember); }
.footer-links a.privacy { font-weight: 700; }
.biz-info { line-height: 1.9; border-top: 1px solid rgba(244,235,221,.08); padding-top: 26px; }
.made-by { margin-top: 18px; }
.made-by a { color: var(--smoke); border-bottom: 1px solid rgba(201,188,169,.4); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.made-by a:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- 법적 페이지 ---------- */
.legal-page { background: var(--cream); color: var(--ink); min-height: 100vh; padding: 140px 0 80px; }
.legal-page h1 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; margin-bottom: 10px; }
.legal-page .updated { color: var(--ink-soft); font-size: .88rem; margin-bottom: 40px; }
.legal-page h2 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 12px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .9rem; }
.legal-page th, .legal-page td { border: 1px solid rgba(42,31,20,.15); padding: 10px 14px; text-align: left; }
.legal-page th { background: var(--cream2); font-weight: 700; }
.back-home { display: inline-block; margin-bottom: 30px; color: var(--brand-red); font-weight: 700; font-size: .92rem; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .proof-grid, .contact-wrap, .brand-row { grid-template-columns: 1fr; }
  .brand-row { gap: 34px; }
  .brand-row.flip .brand-media { order: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .review-card:nth-child(5) { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .hero { padding: 110px 0 80px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .why-grid, .reviews-grid, .form-row, .steps { grid-template-columns: 1fr; }
  .review-card:nth-child(4), .review-card:nth-child(5) { display: none; }
  .contact-form { padding: 30px 22px; }
  .footer-top { flex-direction: column; }
}

/* ---------- 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
