/* 담뜰쌀과자 — 전통 프리미엄 톤 */

:root {
  --cream: #f5ede0;
  --cream-light: #faf6ec;
  --rice: #e8d9b8;
  --kraft: #b08968;
  --earth: #6b4423;
  --gold: #c9a227;
  --ink: #3a2c1a;
  --muted: #7a6a55;
  --line: rgba(107, 68, 35, 0.15);
  --red-seal: #a93226;
  --shadow: 0 10px 40px rgba(107, 68, 35, 0.1);

  --f-display: 'Noto Serif KR', 'Gowun Batang', 'Nanum Myeongjo', serif;
  --f-body: 'Noto Sans KR', 'Apple SD Gothic Neo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image: url('assets/pattern_traditional.png');
  background-size: 420px;
  background-repeat: repeat;
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  font-weight: 400;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(245, 237, 224, 0.78);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--earth);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all .25s ease;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--earth);
  color: var(--cream-light);
  border: 1px solid var(--earth);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--earth);
  border: 1px solid var(--earth);
}
.btn-ghost:hover { background: var(--earth); color: var(--cream-light); }
.btn-outline {
  background: transparent;
  color: var(--cream-light);
  border: 1px solid var(--cream-light);
}
.btn-outline:hover { background: var(--cream-light); color: var(--earth); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===== TOPBAR ===== */
.topbar {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(245, 237, 224, 0.82);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 42px; height: 42px;
  background: var(--red-seal);
  color: var(--cream-light);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}
.brand-name { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-kr {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--earth);
  letter-spacing: 0.02em;
}
.brand-en {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.2em;
}
.topnav { display: flex; gap: 30px; }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}
.topnav a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: transparent;
  overflow: hidden;
}
.hero-pattern { display: none; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 28px;
  color: var(--earth);
}
.hero-title em {
  position: relative;
  color: var(--earth);
}
.hero-title em::before {
  content: '';
  position: absolute;
  left: -6px; right: -6px;
  top: 30%;
  bottom: 18%;
  background: rgba(201, 162, 39, 0.18);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 36px;
  line-height: 1.9;
}
.hero-sub strong { color: var(--earth); font-weight: 700; }

.hero-meta {
  display: flex;
  gap: 0;
  align-items: center;
  margin-bottom: 36px;
  padding: 22px 28px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.meta-item { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--earth);
  line-height: 1;
}
.meta-num small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.meta-lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.meta-divider { width: 1px; height: 44px; background: var(--line); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--rice) 0%, var(--kraft) 100%);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stamp {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 96px; height: 96px;
  background: var(--red-seal);
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transform: rotate(-8deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}
.stamp-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ===== SECTION HEAD (shared) ===== */
.section-head { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-eyebrow.light { color: var(--rice); }
.section-title {
  font-size: clamp(32px, 4.2vw, 44px);
  margin: 0 0 16px;
  color: var(--earth);
}
.section-title em { color: var(--gold); }
.section-title.light { color: var(--cream-light); }
.section-title.light em { color: var(--gold); }
.section-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

/* ===== STORY ===== */
.story {
  padding: 100px 0;
  background: rgba(250, 246, 236, 0.75);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(2px);
}
.story-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: center;
}
.suhmuk-icon img {
  width: 100%;
  max-width: 280px;
  display: block;
  opacity: 0.85;
}
.story-text .section-eyebrow { text-align: left; margin-bottom: 14px; }
.story-text .section-title { text-align: left; }
.story-text p {
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  margin: 20px 0;
}
.story-sign {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--earth) !important;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-top: 28px !important;
}

/* ===== PRODUCT ===== */
.product {
  padding: 100px 0;
  background: transparent;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.product-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 40px 32px;
  transition: all .3s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--kraft); }
.product-card.featured {
  background: var(--earth);
  color: var(--cream-light);
  border-color: var(--earth);
}
.product-card.featured h3 { color: var(--cream-light); }
.product-card.featured p { color: rgba(245, 237, 224, 0.85); }
.product-card.featured .product-num { color: var(--gold); border-color: rgba(201, 162, 39, 0.4); }

.product-num {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.product-card h3 { font-size: 22px; margin: 0 0 14px; }
.product-card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.8; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 50px;
  border-radius: 4px;
}
.detail-img {
  aspect-ratio: 1/1;
  background: var(--rice);
  border-radius: 2px;
  overflow: hidden;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-text h3 { font-size: 26px; margin: 0 0 24px; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-lbl {
  min-width: 70px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 13px;
  padding-top: 2px;
}
.spec-val { color: var(--ink); flex: 1; }

/* ===== PROCESS ===== */
.process {
  padding: 100px 0;
  background: var(--earth);
  color: var(--cream-light);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern_traditional.png');
  background-size: 480px;
  opacity: 0.04;
  pointer-events: none;
}
.process .container { position: relative; z-index: 1; }
.process .section-title { color: var(--cream-light); }
.process .section-eyebrow { color: var(--gold); }
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.step {
  text-align: center;
  padding: 20px 16px;
}
.step-num {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}
.step h4 {
  font-size: 18px;
  color: var(--cream-light);
  margin: 0 0 10px;
}
.step p {
  font-size: 14px;
  color: rgba(245, 237, 224, 0.75);
  margin: 0;
  line-height: 1.7;
}
.step-line {
  width: 40px;
  height: 1px;
  background: rgba(201, 162, 39, 0.4);
  align-self: center;
  position: relative;
}
.step-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== ENJOY ===== */
.enjoy {
  padding: 100px 0;
  background: rgba(250, 246, 236, 0.75);
  backdrop-filter: blur(2px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.enjoy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.enjoy-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.enjoy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.enjoy-ico { font-size: 48px; margin-bottom: 20px; }
.enjoy-card h4 { font-size: 22px; margin: 0 0 14px; }
.enjoy-card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.8; }

/* ===== BUY ===== */
.buy {
  padding: 120px 0;
  background: var(--earth);
  color: var(--cream-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.buy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern_traditional.png');
  background-size: 520px;
  opacity: 0.05;
}
.buy-inner { position: relative; z-index: 1; }
.buy-sub { color: rgba(245, 237, 224, 0.8); font-size: 16px; margin: 0 0 40px; }
.buy-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.buy .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--earth);
}
.buy .btn-primary:hover { background: #d4ad30; border-color: #d4ad30; }

/* ===== FOOTER ===== */
.footer {
  padding: 50px 0 40px;
  background: var(--ink);
  color: rgba(245, 237, 224, 0.6);
  text-align: center;
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--cream-light);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.footer-brand span {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-left: 10px;
}
.footer-info { font-size: 14px; margin: 8px 0; color: rgba(245, 237, 224, 0.75); }
.footer-contact { font-size: 14px; margin: 8px 0; }
.footer-copy { font-size: 12px; margin: 20px 0 8px; color: rgba(245, 237, 224, 0.4); }
.footer-credit { font-size: 11px; margin: 0; color: rgba(245, 237, 224, 0.35); letter-spacing: 0.05em; }
.footer-credit a { color: var(--gold); text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ===== MOBILE ===== */
@media (max-width: 960px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 1/1; order: -1; max-width: 420px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .suhmuk-icon { max-width: 200px; margin: 0 auto; }
  .story-text .section-eyebrow,
  .story-text .section-title { text-align: center; }
  .story-sign { border-left: 0; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 20px; }
  .product-grid,
  .enjoy-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; padding: 30px; gap: 30px; }
  .process-steps { grid-template-columns: 1fr; gap: 20px; }
  .step-line { display: none; }
  .step { padding: 20px; border-bottom: 1px dashed rgba(201,162,39,0.25); }
  .step:last-child { border-bottom: 0; }
  .hero-meta { padding: 18px 16px; }
  .meta-num { font-size: 26px; }
  .meta-divider { height: 32px; }
  .hero, .story, .product, .process, .enjoy, .buy { padding: 70px 0; }
}
@media (max-width: 520px) {
  .topbar-inner { gap: 8px; }
  .brand-en { display: none; }
  .hero-title { font-size: 38px; }
  .hero-cta .btn { flex: 1; padding: 14px 18px; font-size: 14px; }
  .product-detail { padding: 24px; }
  .buy-cta { flex-direction: column; align-items: center; }
  .buy-cta .btn { width: 100%; max-width: 320px; }
}
