/* ============================================================
   Josu Salt Co. — josu.co
   Design system derived from the 8oz retail bag:
   monochrome ocean blues + salt white, Korean cloud motif,
   stamp-style use icons, hangul 조수 as texture.
   ============================================================ */

:root {
  --navy-deep: #0a2342;   /* bag bottom */
  --navy: #142e53;        /* bag primary */
  --sea: #2b6a8f;         /* bag mid gradient */
  --sea-bright: #337295;
  --sea-light: #7fa6bd;
  --sky: #c9d6e0;         /* bag top band */
  --mist: #eef3f6;
  --foam: #f7fafc;
  --salt: #ffffff;
  --ink: #12233a;
  --ink-soft: #40536b;
  --line: rgba(20, 46, 83, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --max-w: 1160px;
  --radius: 10px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--foam);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
p { margin-bottom: 1em; color: var(--ink-soft); }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.hangul { font-family: 'Noto Sans KR', sans-serif; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 16px;
}
.on-dark .eyebrow, .dark .eyebrow { color: var(--sea-light); }

/* ---------- Nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.topnav .brand { display: flex; align-items: center; gap: 12px; }
.topnav .brand img { height: 44px; width: 44px; }
.topnav .brand span {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--navy); letter-spacing: 0.02em;
}
.topnav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.topnav ul a { color: var(--navy); font-size: 0.95rem; font-weight: 500; }
.topnav ul a:hover { color: var(--sea); text-decoration: none; }
.topnav ul a.btn-primary { color: var(--salt); }
.topnav ul a.btn-primary:hover { color: var(--salt); background: var(--sea); }
.topnav ul a.active { color: var(--sea); }
@media (max-width: 760px) {
  .topnav ul { gap: 14px; }
  .topnav ul li.hide-mobile { display: none; }
  .topnav .brand span { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.98rem;
  transition: all 0.18s ease;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--navy); color: var(--salt); }
.btn-primary:hover { background: var(--sea); color: var(--salt); text-decoration: none; transform: translateY(-1px); }
.btn-on-dark { background: var(--salt); color: var(--navy); }
.btn-on-dark:hover { background: var(--sky); color: var(--navy-deep); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--salt); text-decoration: none; }
.btn-outline-light { background: transparent; color: var(--salt); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: var(--salt); color: var(--navy); text-decoration: none; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Hero (ocean gradient like the bag) ---------- */
.hero {
  background: linear-gradient(178deg, var(--sky) 0%, var(--sea) 46%, var(--navy) 78%, var(--navy-deep) 100%);
  color: var(--salt);
  position: relative;
  overflow: hidden;
  padding: 84px 0 100px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; gap: 44px; } }
.hero h1 { color: var(--salt); margin-bottom: 20px; }
.hero .lede { font-size: 1.12rem; color: rgba(255,255,255,0.88); margin-bottom: 30px; max-width: 540px; }
.hero .lede strong { color: var(--salt); }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .eyebrow { color: var(--sky); }
.hero-hangul {
  position: absolute; right: -1%; bottom: -6%;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 900; font-size: clamp(9rem, 24vw, 20rem); line-height: 0.9;
  color: rgba(255, 255, 255, 0.055);
  user-select: none; pointer-events: none; z-index: 1;
}
.hero-product {
  background: var(--salt);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 48px 90px -42px rgba(4, 16, 33, 0.65);
}
.hero-product img { margin: 0 auto; max-height: 430px; object-fit: contain; }
.hero-note {
  margin-top: 14px; text-align: center; font-size: 0.86rem; color: var(--ink-soft);
}
.rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--line-light);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.88rem; color: var(--salt);
}

/* Korean cloud motif */
.clouds { position: absolute; top: 34px; right: 4%; opacity: 0.5; z-index: 1; }

/* ---------- Stat band ---------- */
.stats-band { background: var(--navy-deep); color: var(--salt); padding: 54px 0; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 840px) { .stats-band .container { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1.05;
  color: var(--salt);
}
.stat .num small { font-size: 1.3rem; }
.stat .desc { font-size: 0.92rem; color: var(--sea-light); margin-top: 6px; }

/* ---------- Generic split section ---------- */
.split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .split .container { grid-template-columns: 1fr; gap: 36px; } }
.split img { border-radius: var(--radius); }

/* ---------- Use it for everything (stamp chips from the bag) ---------- */
.uses { background: var(--mist); }
.uses h2, .uses .section-intro { text-align: center; }
.uses .section-intro { max-width: 620px; margin: 0 auto 56px; }
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 920px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .use-grid { grid-template-columns: 1fr; } }
.use-card {
  background: var(--salt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.use-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(10, 35, 66, 0.35); }
.stamp {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stamp svg { width: 28px; height: 28px; stroke: var(--salt); fill: none; stroke-width: 1.6; }
.use-card .use-label {
  font-family: 'Poppins', sans-serif; font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sea); font-weight: 600; margin-bottom: 6px;
}
.use-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Dark story band ---------- */
.dark { background: var(--navy); color: var(--salt); }
.dark h2, .dark h3 { color: var(--salt); }
.dark p { color: rgba(255,255,255,0.85); }
.dark a { color: var(--sky); }

/* ---------- Photo strip ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }
.photo-strip img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- Reviews ---------- */
.reviews { background: var(--foam); }
.reviews h2, .reviews .sub { text-align: center; }
.reviews .sub { max-width: 560px; margin: 0 auto 52px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; } }
.review {
  background: var(--salt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.review .stars { color: var(--sea); letter-spacing: 3px; font-size: 0.95rem; }
.review blockquote { font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.review .attr { font-size: 0.83rem; color: var(--ink-soft); margin-top: auto; }
.review .attr strong { color: var(--navy); }

/* ---------- Recipe cards ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recipe-grid { grid-template-columns: 1fr; } }
.recipe-card {
  background: var(--salt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: block; color: inherit;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(10,35,66,0.35); text-decoration: none; }
.recipe-card .thumb { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.thumb-placeholder {
  aspect-ratio: 4/3; width: 100%;
  background: linear-gradient(160deg, var(--sea) 0%, var(--navy) 80%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.thumb-placeholder .ph-hangul {
  font-family: 'Noto Sans KR', sans-serif; font-weight: 900;
  font-size: 4.4rem; color: rgba(255,255,255,0.16);
}
.thumb-placeholder .ph-label {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.recipe-card .body { padding: 20px 22px 22px; }
.recipe-card .tag {
  font-family: 'Poppins', sans-serif; font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--sea); font-weight: 600;
}
.recipe-card h3 { font-size: 1.08rem; margin: 6px 0 6px; }
.recipe-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Recipe article ---------- */
.article-hero { background: linear-gradient(178deg, var(--sky) 0%, var(--sea) 60%, var(--navy) 100%); color: var(--salt); padding: 64px 0; }
.article-hero h1 { color: var(--salt); font-size: clamp(2rem, 4.4vw, 3.1rem); }
.article-hero .meta { color: var(--sky); font-size: 0.92rem; margin-top: 12px; }
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
.article h2 { font-size: 1.45rem; margin-top: 1.6em; }
.article ul, .article ol { margin: 0 0 1.2em 1.3em; color: var(--ink-soft); }
.article li { margin-bottom: 0.5em; }
.article img { border-radius: var(--radius); margin: 1.4em 0; }
.article .tip {
  background: var(--mist); border-left: 3px solid var(--sea);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 1.4em 0;
  font-size: 0.95rem;
}
.buy-inline {
  background: var(--navy); color: var(--salt); border-radius: var(--radius);
  padding: 28px; margin: 2em 0; text-align: center;
}
.buy-inline p { color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.buy-inline strong { color: var(--salt); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--salt); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--salt); }
.cta-band .sub { max-width: 560px; margin: 0 auto 32px; color: rgba(255,255,255,0.85); font-size: 1.08rem; }
.cta-band .hangul-bg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: 'Noto Sans KR', sans-serif; font-weight: 900;
  font-size: clamp(12rem, 34vw, 26rem); color: rgba(255,255,255,0.04);
  pointer-events: none; white-space: nowrap;
}
.cta-band .container { position: relative; z-index: 2; }

/* ---------- Email capture ---------- */
.capture { background: var(--mist); padding: 52px 0; }
.capture .container { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
@media (max-width: 760px) { .capture .container { flex-direction: column; text-align: center; } }
.capture h3 { margin-bottom: 4px; }
.capture p { margin-bottom: 0; font-size: 0.93rem; }
.capture form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.capture input {
  flex: 1; padding: 13px 18px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--salt);
  font-family: inherit; font-size: 0.95rem; outline: none;
}
.capture input:focus { border-color: var(--sea); }

/* ---------- Product cards (8oz + 1lb slot) ---------- */
.products { background: var(--foam); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; }
@media (max-width: 720px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--salt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.product-card img { max-height: 300px; object-fit: contain; margin: 0 auto 18px; }
.product-card .size { font-family: 'Poppins', sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea); font-weight: 600; }
.product-card h3 { margin: 6px 0 8px; }
.product-card p { font-size: 0.92rem; }
.product-card.coming {
  background: var(--mist); border-style: dashed;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.product-card.coming .ph-bag {
  width: 150px; height: 210px; border-radius: 14px 14px 10px 10px;
  background: linear-gradient(178deg, var(--sky) 0%, var(--sea) 55%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  opacity: 0.55;
}
.product-card.coming .ph-bag span { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; font-size: 2.6rem; color: rgba(255,255,255,0.5); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(178deg, var(--sky) 0%, var(--sea) 62%, var(--navy) 100%);
  color: var(--salt); padding: 72px 0; position: relative; overflow: hidden;
}
.page-hero h1 { color: var(--salt); font-size: clamp(2.2rem, 4.8vw, 3.4rem); }
.page-hero .lede { max-width: 620px; font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-top: 14px; }
.page-hero .eyebrow { color: var(--sky); }

/* ---------- Process steps ---------- */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: none; }
@media (max-width: 820px) { .step { grid-template-columns: 1fr; gap: 24px; } }
.step img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.step .num {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--sea); letter-spacing: 0.14em;
}
.step:nth-child(even) .step-text { order: -1; }
@media (max-width: 820px) { .step:nth-child(even) .step-text { order: 0; } }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 56px 0 30px; font-size: 0.9rem; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { footer .container { grid-template-columns: 1fr; } }
footer h4 { color: var(--salt); font-family: 'Poppins', sans-serif; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--salt); text-decoration: none; }
footer .brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
footer .brand-line img { height: 44px; width: 44px; }
footer .brand-line span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--salt); }
footer .copy { grid-column: 1 / -1; color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 44px; }
.section-intro { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Customer pull-quote ---------- */
.pullquote {
  max-width: 680px; margin: 56px auto 0; text-align: center; padding: 0 24px;
}
.pullquote .stars { color: var(--sea); letter-spacing: 3px; margin-bottom: 10px; }
.pullquote blockquote { font-size: 1.25rem; line-height: 1.5; color: var(--navy); font-weight: 500; }
.pullquote .attr { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
.dark .pullquote blockquote, .cta-band .pullquote blockquote { color: var(--salt); }
.dark .pullquote .stars, .cta-band .pullquote .stars { color: var(--sky); }
.dark .pullquote .attr, .cta-band .pullquote .attr { color: rgba(255,255,255,0.6); }
.article .review-aside {
  background: var(--mist); border-radius: var(--radius); padding: 20px 24px; margin: 1.6em 0;
  font-size: 0.98rem;
}
.article .review-aside .stars { color: var(--sea); letter-spacing: 2px; font-size: 0.85rem; }
.article .review-aside .attr { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Signup form status ---------- */
.capture form { position: relative; flex-wrap: wrap; }
.form-msg { width: 100%; margin: 6px 0 0; font-size: 0.86rem; }
.form-msg.error { color: #8c2f2f; }
.form-msg.success { color: var(--navy); font-weight: 500; margin: 0; }
.capture form button[disabled] { opacity: 0.6; cursor: default; }
