:root {
  --ivory: #fbf6e8;
  --ivory-2: #fffaf0;
  --brown: #4b3424;
  --brown-2: #7b5a31;
  --pine: #2e5f43;
  --pine-dark: #1f432f;
  --gold: #d2a84a;
  --soft-gold: #f3dfac;
  --text: #2d241c;
  --muted: #6e6256;
  --line: rgba(75, 52, 36, .14);
  --shadow: 0 22px 60px rgba(51, 35, 20, .12);
  --radius: 24px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--ivory-2);
  line-height: 1.68;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,250,240,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display:inline-flex; align-items:center; padding:4px 9px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; color: var(--brown); }
.main-nav a:not(.nav-cta) { padding: 10px 0; position: relative; }
.main-nav a:not(.nav-cta)::after { content:""; position:absolute; left:0; right:100%; bottom:2px; height:2px; background:var(--gold); transition:.2s ease; }
.main-nav a:hover::after { right:0; }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--pine); color: #fff; font-weight: 800;
  box-shadow: 0 10px 28px rgba(46,95,67,.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover, .btn:hover { transform: translateY(-2px); background: var(--pine-dark); box-shadow: 0 14px 34px rgba(46,95,67,.24); }
.btn-outline { background: transparent; color: var(--pine); border: 1px solid rgba(46,95,67,.35); box-shadow: none; }
.btn-outline:hover { color:#fff; border-color:var(--pine-dark); }
.btn-light { background: #fff; color: var(--pine-dark); box-shadow: none; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.text-link { font-weight: 800; color: var(--pine); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--brown); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.hero { padding: 72px 0 56px; background: radial-gradient(circle at 18% 18%, #fff 0, transparent 33%), linear-gradient(135deg, var(--ivory) 0%, #f4ead4 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 54px; }
.eyebrow { margin: 0 0 12px; color: var(--brown-2); font-size: 14px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.22; color: var(--brown); margin: 0; }
h1 { font-size: clamp(42px, 5vw, 70px); letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.035em; }
h3 { font-size: 22px; letter-spacing: -.025em; }
p { margin: 0; }
.lead { margin-top: 24px; font-size: 20px; color: var(--muted); max-width: 650px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { margin: 0; position: relative; }
.hero-visual img, .rounded-img { border-radius: 36px; box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; }
.hero-visual::before { content:""; position:absolute; inset: -18px; border: 1px solid rgba(210,168,74,.55); border-radius: 46px; z-index: -1; }
.trust-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.trust-grid article { padding: 26px 24px; border-right: 1px solid var(--line); }
.trust-grid article:first-child { border-left: 1px solid var(--line); }
.trust-grid strong { display:block; font-size: 18px; color: var(--pine); }
.trust-grid span { display:block; color: var(--muted); font-size: 14px; margin-top: 5px; }
.section { padding: 92px 0; }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading p:not(.eyebrow), .split > p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.section-heading.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; max-width: none; }
.muted { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.category-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: 0 12px 34px rgba(51,35,20,.06); transition:.2s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card img { width:100%; height: 210px; object-fit: cover; }
.category-card span { display:block; color: var(--brown-2); font-size: 14px; font-weight: 900; padding: 20px 22px 4px; }
.category-card strong { display:block; padding: 0 22px 24px; font-size: 20px; color: var(--brown); }
.story-preview { display:grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items:center; }
.story-preview p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-top: 16px; }
.info-card-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card-grid article, .process-step, .contact-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 12px 34px rgba(51,35,20,.06); }
.info-card-grid p, .process-step p, .contact-card p, .privacy-box li { color: var(--muted); margin-top: 12px; }
.notice { border-left: 4px solid var(--gold); background: rgba(210,168,74,.12); padding: 14px 18px; border-radius: 14px; color: var(--brown-2) !important; }
.cta-band { background: linear-gradient(135deg, var(--pine) 0%, #244d36 100%); color:#fff; padding: 58px 0; }
.cta-inner { display:flex; align-items:center; justify-content:space-between; gap: 32px; }
.cta-inner h2, .cta-inner .eyebrow { color:#fff; }
.page-hero { padding: 86px 0; background: linear-gradient(135deg, var(--ivory) 0%, #f7ead0 100%); }
.page-hero-inner { max-width: 860px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 20px; max-width: 760px; }
.products-hero { background-image: linear-gradient(135deg, rgba(251,246,232,.94), rgba(247,234,208,.92)), url('../images/product-pine-nuts.webp'); background-size: cover; background-position: center; }
.contact-hero { background-image: linear-gradient(135deg, rgba(251,246,232,.94), rgba(247,234,208,.92)), url('../images/gift-set.webp'); background-size: cover; background-position: center; }
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.two-col p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 17px; }
.reverse img { order: 0; }
.process-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process-step span { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:var(--pine); color:#fff; font-weight:900; margin-bottom: 18px; }
.anchor-tabs { position: sticky; top: 82px; z-index: 20; display:flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; background: rgba(255,250,240,.92); backdrop-filter: blur(12px); }
.anchor-tabs a { padding: 11px 20px; border:1px solid var(--line); border-radius: 999px; background:#fff; font-weight: 900; color: var(--brown); }
.products-wrap { padding-top: 52px; }
.product-section { scroll-margin-top: 150px; padding-bottom: 72px; }
.product-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: 0 12px 34px rgba(51,35,20,.06); }
.product-card img { width:100%; height: 230px; object-fit: cover; }
.image-button { width:100%; padding:0; border:0; background:transparent; position:relative; cursor: zoom-in; }
.image-button span { position:absolute; right:14px; bottom:14px; padding:8px 12px; border-radius:999px; background:rgba(31,67,47,.88); color:#fff; font-size:13px; font-weight:800; opacity:0; transform:translateY(6px); transition:.2s ease; }
.product-card:hover .image-button span, .image-button:focus span { opacity:1; transform:translateY(0); }
.product-card-body { padding: 24px; }
.product-card-body p:not(.eyebrow) { color: var(--muted); min-height: 60px; margin: 12px 0 18px; }
.product-notice { margin-top: 10px; }
.contact-grid { display:grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: stretch; }
.contact-card.primary { background: linear-gradient(135deg, #fff 0%, #fff8e8 100%); }
.privacy-box { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.privacy-box ul { margin: 20px 0 0; padding-left: 20px; }
.site-footer { background: #251a12; color: rgba(255,255,255,.82); padding: 52px 0 32px; }
.footer-grid { display:grid; grid-template-columns: .8fr 1.2fr; gap: 42px; }
.footer-grid strong { display:block; color:#fff; font-size:24px; margin-bottom:12px; }
.footer-info { display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin:0; }
.footer-info div { display:grid; grid-template-columns: 110px 1fr; gap: 10px; }
.footer-info dt { color: var(--soft-gold); font-weight:800; }
.footer-info dd { margin:0; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap: 20px; border-top:1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px; }
.floating-actions { position: fixed; right: 24px; bottom: 24px; z-index: 40; display:flex; flex-direction:column; gap:10px; }
.floating-actions a { min-width: 150px; padding: 12px 18px; border-radius: 999px; background: var(--pine); color:#fff; font-weight:900; text-align:center; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.floating-actions a + a { background:#fff; color:var(--pine-dark); border:1px solid rgba(46,95,67,.28); }
.modal { position: fixed; inset:0; background: rgba(20,14,8,.78); z-index: 100; display:none; align-items:center; justify-content:center; padding: 28px; }
.modal[aria-hidden="false"] { display:flex; }
.modal img { max-width:min(1100px, 92vw); max-height: 82vh; border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.modal-close { position:absolute; top:24px; right:24px; width:46px; height:46px; border-radius:50%; border:0; background:#fff; color: var(--brown); font-size: 28px; cursor:pointer; }
@media (max-width: 980px) {
  .container { width: min(100% - 32px, var(--max)); }
  .menu-toggle { display:inline-flex; }
  .main-nav { position:absolute; left:16px; right:16px; top:76px; display:none; flex-direction:column; align-items:stretch; gap: 6px; background:#fff; border:1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
  .main-nav.is-open { display:flex; }
  .hero-grid, .story-preview, .two-col, .contact-grid, .footer-grid, .section-heading.split { grid-template-columns: 1fr; }
  .trust-grid, .category-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  h1 { font-size: 40px; }
  .hero, .section, .page-hero { padding: 54px 0; }
  .trust-grid, .category-grid, .process-grid, .info-card-grid, .product-grid, .footer-info { grid-template-columns: 1fr; }
  .category-card img, .product-card img { height: 210px; }
  .anchor-tabs { overflow-x: auto; top: 72px; }
  .anchor-tabs a { white-space: nowrap; }
  .floating-actions { left: 0; right: 0; bottom: 0; flex-direction:row; gap:0; background:#fff; border-top:1px solid var(--line); padding: 10px 12px; }
  .floating-actions a { flex:1; min-width: 0; border-radius: 14px; box-shadow:none; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
}


/* v0.2 pilot adjustment: actual product captures, reduced duplicated CTA, compact footer */
.compact-heading { margin-bottom: 26px; }
.category-card img { object-fit: contain; background: #fffaf3; padding: 12px; }
.product-section .product-heading { display:block; margin-bottom: 18px; }
.product-section .product-heading > p { margin-top: 7px; max-width: 880px; }
.product-section .product-heading .eyebrow { margin-bottom: 8px; }
.product-card .image-button { background:#fffaf3; display:block; }
.product-card .image-button img { object-fit: contain; background:#fffaf3; padding: 16px; }
.product-card-body p:not(.eyebrow) { min-height: 48px; }
.cta-inner .button-row { margin-top: 0; }
.cta-inner .btn { min-width: 168px; }
.site-footer { padding: 34px 0 24px; }
.footer-grid { grid-template-columns: 260px 1fr; gap: 36px; align-items:start; }
.footer-grid strong { font-size: 20px; margin-bottom: 8px; }
.footer-grid p, .footer-info, .footer-bottom { font-size: 12px; line-height: 1.55; }
.footer-info { grid-template-columns: 1fr; gap: 5px; }
.footer-info div { grid-template-columns: 96px 1fr; gap: 10px; }
.footer-bottom { margin-top: 22px; padding-top: 16px; }
@media (min-width: 981px) {
  .footer-info dd { white-space: nowrap; }
}
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-info dd { white-space: normal; }
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
  .brand { padding: 3px 7px; }
  .brand img { height: 40px; }
  .product-card .image-button img { padding: 12px; }
  .cta-inner .btn { min-width: 0; }
}

/* v0.3 adjustment: reduce main CTA copy size for calmer first-page balance */
.cta-copy {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.48;
  font-weight: 900;
  letter-spacing: -.035em;
  max-width: 760px;
}
@media (max-width: 640px) {
  .cta-copy { font-size: 22px; line-height: 1.5; }
}


/* v0.4 adjustment: compact hero trust strip and first-page CTA band */
.trust-grid article { padding: 18px 22px; }
.trust-grid strong { font-size: 17px; }
.trust-grid span { margin-top: 2px; font-size: 13px; }
.cta-band { padding: 34px 0; }
.cta-copy { font-size: clamp(18px, 1.65vw, 24px); line-height: 1.45; font-weight: 850; max-width: 700px; }
@media (max-width: 640px) {
  .trust-grid article { padding: 16px 18px; }
  .cta-band { padding: 32px 0; }
  .cta-copy { font-size: 18px; line-height: 1.5; }
}


/* v0.5 adjustment: seasonal gift menu and configurable hero banners */
.gift-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px !important;
  border: 1px solid rgba(210,168,74,.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8df 0%, var(--soft-gold) 100%);
  color: var(--pine-dark) !important;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(210,168,74,.18);
}
.gift-menu-link::after { display: none !important; }
.gift-menu-link[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-banner-system { padding: 46px 0 36px; }
.hero-banner-stage { position: relative; min-height: 470px; }
.hero-banner-card { display: none; }
.hero-banner-card.is-active { display: block; }
.hero-banner-link {
  position: relative;
  display: block;
  min-height: 470px;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75,52,36,.12);
  background: var(--pine-dark);
  isolation: isolate;
}
.hero-banner-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  background: #1f432f;
}
.hero-banner-visual img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
}
.hero-banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(24,32,23,.82) 0%, rgba(24,32,23,.66) 38%, rgba(24,32,23,.24) 66%, rgba(24,32,23,.08) 100%);
  pointer-events: none;
}
.hero-banner-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 470px;
  width: min(660px, calc(100% - 72px));
  padding: 54px 0 54px 56px;
  overflow: hidden;
}
.hero-banner-copy .eyebrow {
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}
.hero-banner-copy h2 {
  color: #fff;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.14;
  letter-spacing: -.045em;
  max-width: 100%;
  overflow-wrap: break-word;
  text-shadow: 0 4px 22px rgba(0,0,0,.35);
}
.hero-banner-copy .lead {
  margin-top: 18px;
  max-width: 570px;
  color: rgba(255,255,255,.94);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  overflow-wrap: break-word;
  text-shadow: 0 2px 16px rgba(0,0,0,.34);
}
.hero-banner-copy .btn {
  align-self: flex-start;
  margin-top: 28px;
  background: rgba(46,95,67,.96);
  border: 1px solid rgba(255,255,255,.42);
}
.banner-placeholder {
  min-height: 470px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(46,95,67,.24), rgba(210,168,74,.28)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 10px, transparent 10px, transparent 20px);
  color: #fff;
}
.banner-placeholder strong { font-size: 24px; letter-spacing: -.03em; }
.banner-placeholder span { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; }
.hero-banner-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.hero-banner-controls[hidden] { display: none !important; }
.banner-nav,
.banner-dots button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brown);
  cursor: pointer;
  font-weight: 900;
}
.banner-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.banner-dots { display: flex; gap: 8px; }
.banner-dots button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
}
.banner-dots button.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
@media (max-width: 980px) {
  .main-nav .gift-menu-link { width: 100%; }
  .hero-banner-stage,
  .hero-banner-link,
  .hero-banner-copy,
  .hero-banner-visual img,
  .banner-placeholder { min-height: 440px; }
  .hero-banner-copy {
    width: min(610px, calc(100% - 56px));
    padding: 44px 0 44px 40px;
  }
  .hero-banner-shade {
    background: linear-gradient(90deg, rgba(24,32,23,.82) 0%, rgba(24,32,23,.62) 52%, rgba(24,32,23,.18) 100%);
  }
}
@media (max-width: 640px) {
  .hero-banner-system { padding: 30px 0 28px; }
  .hero-banner-stage,
  .hero-banner-link,
  .hero-banner-copy,
  .hero-banner-visual img,
  .banner-placeholder { min-height: 430px; }
  .hero-banner-link { border-radius: 24px; }
  .hero-banner-copy {
    width: 100%;
    padding: 38px 26px;
    justify-content: flex-end;
  }
  .hero-banner-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .hero-banner-copy .lead { font-size: 17px; max-width: 95%; }
  .hero-banner-copy .btn { margin-top: 20px; }
  .hero-banner-shade {
    background: linear-gradient(180deg, rgba(24,32,23,.12) 0%, rgba(24,32,23,.44) 42%, rgba(24,32,23,.88) 100%);
  }
  .hero-banner-visual img { object-position: 62% center; }
  .banner-placeholder strong { font-size: 20px; }
  .banner-placeholder span { font-size: 12px; }
  .hero-banner-controls { margin-top: 14px; }
}

.gift-hero {
  background-image: linear-gradient(135deg, rgba(251,246,232,.94), rgba(247,234,208,.90)), url('../images/products/gift_hwang_100g_3set.jpg');
  background-size: cover;
  background-position: center;
}
.gift-hero-actions { margin-top: 28px; }
.gift-intro .section-heading p { color: var(--muted); }
.gift-card .product-card-body p:not(.eyebrow) { min-height: 66px; }

@media (max-width: 980px) {
  .main-nav .gift-menu-link { width: 100%; }
  .hero-banner-link { grid-template-columns: 1fr; gap: 28px; }
  .hero-banner-stage { min-height: auto; }
  .hero-banner-visual, .hero-banner-visual img, .banner-placeholder { min-height: 280px; }
}
@media (max-width: 640px) {
  .hero-banner-system { padding: 44px 0 34px; }
  .hero-banner-copy .btn { margin-top: 20px; }
  .hero-banner-visual, .hero-banner-visual img, .banner-placeholder { min-height: 230px; }
  .banner-placeholder strong { font-size: 20px; }
  .banner-placeholder span { font-size: 12px; }
  .hero-banner-controls { margin-top: 14px; }
}
