/* SG Tradesource — site.css
   Original design: rice-paper editorial, ink text, gochugaru red + deep blue accents,
   oversized Hangul watermarks, dojang seal motif. */

:root {
  --paper: #FAF6EE;
  --paper-deep: #F2ECDD;
  --card: #FFFDF8;
  --ink: #1B1512;
  --ink-soft: #4C433A;
  --muted: #8D7F6C;
  --line: #E4DAC6;
  --red: #C8391F;
  --red-deep: #9E2B16;
  --blue: #2E3A8C;
  --gold: #C99A2E;
  --radius: 16px;
  --shadow: 0 18px 40px -22px rgba(27, 21, 18, .28);
  --font-display: "Fraunces", "Noto Serif KR", Georgia, serif;
  --font-body: "Inter", "Noto Sans KR", -apple-system, "Segoe UI", sans-serif;
}

html[lang="ko"] {
  --font-display: "Noto Serif KR", "Fraunces", Georgia, serif;
  --font-body: "Noto Sans KR", "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand img { height: 40px; width: auto; }
nav.links { display: flex; gap: 4px; margin-left: 12px; }
nav.links a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
}
nav.links a:hover { background: var(--paper-deep); color: var(--ink); }
nav.links a.on { background: var(--ink); color: var(--paper); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); padding: 3px; font-size: 13px; font-weight: 700;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 13px; border-radius: 999px; font: inherit; color: var(--muted);
}
.lang-toggle button.on { background: var(--red); color: #fff; }

.menu-btn {
  display: none; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer; font-family: var(--font-body);
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(200,57,31,.7); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-hangul {
  position: absolute; right: -30px; top: -40px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(220px, 34vw, 460px); line-height: 1;
  color: rgba(27, 21, 18, .055); pointer-events: none; user-select: none;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .2em;
  color: var(--red); text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 2px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.08;
  letter-spacing: -0.015em; max-width: 14em; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 38em; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 64px; border-top: 1px solid var(--line);
}
.stat { padding: 22px 18px 6px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 22px; }
.stat b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap;
}
.ticker-in { display: inline-block; padding: 12px 0; animation: tick 36s linear infinite; font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.ticker-in span { margin: 0 26px; }
.ticker-in i { color: var(--red); font-style: normal; margin: 0 4px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding: 88px 0; position: relative; }
.sec-hangul {
  position: absolute; left: -10px; top: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(150px, 22vw, 300px); line-height: 1;
  color: rgba(27, 21, 18, .045); pointer-events: none; user-select: none;
}
.sec-head { margin-bottom: 44px; position: relative; }
.sec-no {
  font-family: var(--font-display); font-size: 15px; color: var(--red);
  font-weight: 700; letter-spacing: .14em; margin-bottom: 10px;
}
.sec-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.sec-head p { color: var(--ink-soft); max-width: 44em; font-size: 17px; }

/* division cards */
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.div-card {
  position: relative; overflow: hidden; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; min-height: 300px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.div-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.div-card .big-hangul {
  position: absolute; right: 6px; bottom: -24px;
  font-family: var(--font-display); font-weight: 700; font-size: 150px; line-height: 1;
  color: rgba(200, 57, 31, .10); pointer-events: none;
}
.div-card .d-no { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--red); margin-bottom: 14px; }
.div-card h3 { font-family: var(--font-display); font-size: 27px; font-weight: 600; margin-bottom: 8px; }
.div-card .d-ko { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.div-card p { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.div-card .go { margin-top: auto; font-weight: 800; font-size: 14.5px; color: var(--red); }
.div-card .go::after { content: " →"; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.step { padding: 30px 26px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .n {
  font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--red);
  line-height: 1; margin-bottom: 14px;
}
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* quality strip */
.quality {
  background: var(--ink); color: var(--paper); border-radius: 22px;
  padding: 56px 52px; position: relative; overflow: hidden;
}
.quality .q-hangul {
  position: absolute; right: 20px; top: -30px;
  font-family: var(--font-display); font-size: 230px; line-height: 1;
  color: rgba(250, 246, 238, .06); pointer-events: none;
}
.quality h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; margin-bottom: 16px; max-width: 20em; }
.quality p { color: #CFC6B4; max-width: 46em; font-size: 17px; }
.q-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.q-val { border-top: 2px solid var(--red); padding-top: 16px; }
.q-val b { display: block; font-size: 17px; margin-bottom: 6px; }
.q-val span { font-size: 14.5px; color: #B9AE99; }

/* CTA banner */
.cta-band {
  display: flex; align-items: center; gap: 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 44px 48px; box-shadow: var(--shadow);
}
.seal-img {
  flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 14px 20px; display: flex; align-items: center;
  transform: rotate(-5deg); box-shadow: var(--shadow);
}
.seal-img img { height: 54px; width: auto; display: block; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; margin-bottom: 8px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 20px; max-width: 34em; }

/* ---------- products ---------- */
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-pills button {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  padding: 10px 20px; border-radius: 999px; transition: all .15s ease;
}
.filter-pills button:hover { border-color: var(--ink); color: var(--ink); }
.filter-pills button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-pills button .ko { font-weight: 600; opacity: .75; margin-left: 6px; font-size: 13.5px; }

.div-label {
  display: flex; align-items: baseline; gap: 14px;
  margin: 54px 0 26px; padding-top: 40px; border-top: 1px solid var(--line);
}
.div-label:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.div-label .n { font-family: var(--font-display); color: var(--red); font-weight: 700; font-size: 16px; letter-spacing: .1em; }
.div-label h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.div-label .ko { color: var(--muted); font-weight: 700; font-size: 18px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.p-card.hidden { display: none; }
.p-media { position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.p-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 26px; transition: opacity .25s ease, transform .25s ease;
}
.p-media img.single { opacity: 0; }
.p-card.show-single .p-media img.single { opacity: 1; }
.p-card.show-single .p-media img.pack { opacity: 0; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-view {
  position: absolute; left: 12px; bottom: 12px; display: flex;
  background: rgba(27,21,18,.82); border-radius: 999px; padding: 3px; gap: 2px;
}
.p-view button {
  border: 0; background: transparent; color: #D8CFBE; font: inherit;
  font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.p-view button.on { background: var(--paper); color: var(--ink); }
.p-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-divtag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.p-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3; }
.p-name-ko { font-size: 15px; color: var(--muted); font-weight: 600; }
.p-specs { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-specs span {
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--paper);
}
.p-note { font-size: 13px; color: var(--muted); margin-top: 26px; max-width: 60em; }

/* ---------- about ---------- */
.about-hero { padding: 84px 0 20px; position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.about-grid h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; line-height: 1.2; margin-bottom: 20px; }
.about-grid p { color: var(--ink-soft); font-size: 17px; margin-bottom: 16px; }
.about-side {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 38px 36px; position: sticky; top: 100px;
}
.about-side .big { font-family: var(--font-display); font-size: 56px; font-weight: 600; color: var(--red); line-height: 1; }
.about-side h4 { font-size: 18px; margin: 14px 0 8px; }
.about-side p { color: #B9AE99; font-size: 15px; }
.about-side .row { border-top: 1px solid rgba(250,246,238,.16); padding-top: 20px; margin-top: 20px; }
.about-side .row:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.timeline { margin-top: 20px; border-left: 2px solid var(--line); padding-left: 0; }
.t-item { position: relative; padding: 0 0 34px 34px; }
.t-item::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.t-item b { font-family: var(--font-display); font-size: 22px; font-weight: 600; display: block; margin-bottom: 4px; }
.t-item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.c-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px;
}
.c-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.c-card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.c-mail {
  display: inline-block; font-weight: 800; font-size: 19px; color: var(--red);
  text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.c-mail:hover { color: var(--red-deep); }
.c-list { list-style: none; margin-top: 22px; }
.c-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.c-list li b { color: var(--ink); display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
form input, form textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 13px 16px; outline: none; transition: border .15s ease, box-shadow .15s ease;
}
form input:focus, form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,57,31,.14); }
form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--paper-deep); }
.foot-in { display: flex; gap: 40px; padding: 52px 0 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand img { height: 36px; margin-bottom: 14px; }
.foot-brand p { font-size: 14px; color: var(--ink-soft); }
.foot-col h5 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 5px 0; }
.foot-col a:hover { color: var(--red); }
.foot-base {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  nav.links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 24px 20px; margin: 0;
  }
  nav.links.open { display: flex; }
  .menu-btn { display: block; }
  .site-head { position: sticky; }
  .head-in { position: relative; }
  .div-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .q-vals { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 18px; }
  .stat:nth-child(odd) { padding-left: 0 !important; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .head-in { gap: 10px; }
  .brand img { height: 32px; }
  .lang-toggle { font-size: 12px; padding: 2px; flex: none; }
  .lang-toggle button { padding: 5px 10px; white-space: nowrap; }
  .menu-btn { color: var(--ink); padding: 7px 10px; }
  .div-grid, .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 52px; }
  section.block { padding: 60px 0; }
  .quality { padding: 38px 28px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}
