/* ============================================================
   GOCHUJANG — Website
   Shared site styles. Built on the Gochujang design system.
   ============================================================ */
@import url("colors_and_type.css");

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper, var(--cream));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gochu-red); color: #fff; }

/* ---------- THEME TOKENS (driven by Tweaks on <html>) ---------- */
:root {
  --paper: var(--cream);
  --label-bg: var(--korean-green);   /* section-pill background */
  --label-bg-2: var(--gochu-red);
  --cta-bg: var(--gochu-red);
  --cta-bg-hover: var(--red-600);
  --maxw: 1180px;
  --nav-h: 76px;
}
html[data-bg="white"]  { --paper: #FFFFFF; }
html[data-bg="cream"]  { --paper: var(--cream); }
html[data-accent="red"]    { --label-bg: var(--gochu-red); --label-bg-2: var(--korean-green); }
html[data-accent="green"]  { --cta-bg: var(--korean-green); --cta-bg-hover: var(--green-600); --label-bg-2: var(--korean-green); }

/* loud-only decorations hidden in clean mode */
.loud-only { display: none; }
html[data-vibe="loud"] .loud-only { display: revert; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.poster {
  font-family: var(--font-poster); font-weight: 900; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.005em;
}
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.0; }
.body { font-family: var(--font-body); font-weight: 400; line-height: 1.5; color: var(--ink-soft); }
.kicker {
  font-family: var(--font-poster); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 14px;
}
.script {
  font-family: "Pacifico", cursive; font-style: italic; color: var(--signal-yellow);
  font-weight: 400;
  text-shadow: 0 2px 0 rgba(26,26,20,.12);
}

.h1 { font-size: clamp(46px, 8.5vw, 116px); }
.h2 { font-size: clamp(34px, 5.5vw, 72px); }
.h3 { font-size: clamp(26px, 3.4vw, 46px); }
.h4 { font-size: clamp(20px, 2.2vw, 28px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.korean { font-family: var(--font-logo); }

/* ============================================================
   SECTION PILL / LABEL
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--label-bg); color: #fff;
  font-family: var(--font-logo); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 15px; line-height: 1;
  padding: 11px 22px; border-radius: var(--r-pill);
}
.pill--red { background: var(--label-bg-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal-yellow); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  padding: 14px 30px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  letter-spacing: 0.01em; transition: transform .15s cubic-bezier(.34,1.56,.64,1),
    box-shadow .2s ease, background .2s ease; will-change: transform;
  text-transform: none; line-height: 1; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn--red { background: var(--cta-bg); color: #fff; box-shadow: var(--shadow-tag); }
.btn--red:hover { background: var(--cta-bg-hover); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(239,50,0,.4); }
.btn--green { background: var(--korean-green); color: #fff; box-shadow: 0 6px 16px rgba(0,107,53,.3); }
.btn--green:hover { background: var(--green-600); transform: translateY(-2px); }
.btn--outline {
  background: transparent; color: var(--ink); border: 2px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--ghost-white { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn--ghost-white:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--sm { font-size: 15px; padding: 10px 20px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0 32px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo img { height: 46px; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-poster); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 16px; color: var(--ink);
  padding: 9px 16px; border-radius: var(--r-pill); transition: background .18s, color .18s;
}
.nav__links a:hover { background: var(--green-100); color: var(--korean-green); }
.nav__links a.is-active { color: var(--korean-green); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle svg { width: 28px; height: 28px; }

/* ============================================================
   TORN / ANGLED EDGE MOTIF
   ============================================================ */
.torn-top { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
.torn-bottom { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }
.band {
  background: var(--korean-green); color: #fff;
}
.band--red { background: var(--gochu-red); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--cream-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.food-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: #e8e2d4; aspect-ratio: 4/5;
}
.food-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.food-card:hover img { transform: scale(1.06); }
.food-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.0));
  color: #fff;
}
.food-card__label h4 {
  margin: 0; font-family: var(--font-poster); font-weight: 900; text-transform: uppercase;
  font-size: 22px; letter-spacing: 0.01em; line-height: 1.04;
}

/* ============================================================
   VEG / NON-VEG MARK
   ============================================================ */
.vmark { width: 22px; height: 22px; border-radius: 4px; background: #fff; border: 2px solid var(--veg);
  display: inline-grid; place-items: center; flex: none; }
.vmark i { width: 9px; height: 9px; border-radius: 50%; background: var(--veg); }
.vmark.nv { border-color: var(--nonveg); }
.vmark.nv i { width: 0; height: 0; border-radius: 0; background: transparent;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--nonveg); }

/* ============================================================
   MENU ITEM ROW (dotted leader)
   ============================================================ */
.mitem { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.mitem__name {
  font-family: var(--font-poster); font-weight: 700; text-transform: uppercase;
  font-size: 19px; color: var(--ink); letter-spacing: 0.01em; line-height: 1.05;
}
.mitem__badge {
  font-family: var(--font-poster); font-weight: 900; font-size: 11px; color: #fff;
  background: var(--gochu-red); padding: 3px 7px; border-radius: 5px; letter-spacing: .06em; flex: none;
}
.mitem__lead { flex: 1; border-bottom: 2px dotted rgba(26,26,20,.26); margin: 0 4px 6px; min-width: 16px; }
.mitem__price {
  font-family: var(--font-poster); font-weight: 900; font-size: 19px; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mitem.dim { opacity: .26; filter: grayscale(.4); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding-block: 64px 36px; }
.footer a:hover { color: var(--signal-yellow); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h5 {
  font-family: var(--font-poster); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 14px; color: var(--signal-yellow); margin: 0 0 16px;
}
.footer p, .footer li { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.74); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.social a:hover { background: var(--gochu-red); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* ============================================================
   V2 — FOCUS, STAGGER, EDITORIAL
   ============================================================ */
:focus-visible { outline: 3px solid var(--gochu-red); outline-offset: 2px; border-radius: 6px; }
.nav__links a:focus-visible, .btn:focus-visible { outline-color: var(--korean-green); }

/* staggered child reveal — add .stagger next to .reveal on a grid */
@media (prefers-reduced-motion: no-preference) {
  .reveal.stagger { opacity: 1; transform: none; }
  .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .stagger.in > * { opacity: 1; transform: none; }
  .stagger.in > *:nth-child(2) { transition-delay: .07s; }
  .stagger.in > *:nth-child(3) { transition-delay: .14s; }
  .stagger.in > *:nth-child(4) { transition-delay: .21s; }
  .stagger.in > *:nth-child(5) { transition-delay: .28s; }
  .stagger.in > *:nth-child(6) { transition-delay: .35s; }
  .stagger.in > *:nth-child(7) { transition-delay: .42s; }
  .stagger.in > *:nth-child(8) { transition-delay: .49s; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 12px 20px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__menu:checked ~ .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap, .nav__inner { padding-inline: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
.nav__menu { display: none; }

/* ============================================================
   MARQUEE (scrolling brand strip)
   ============================================================ */
.marquee { overflow: hidden; background: var(--korean-green); color: #fff; padding: 16px 0; border-block: 3px solid var(--ink); }
.marquee--red { background: var(--gochu-red); }
.marquee--ink { background: var(--ink); }
.marquee__track { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; will-change: transform; animation: marquee 34s linear infinite; }
.marquee__track span {
  font-family: var(--font-poster); font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .02em; padding-inline: 26px;
  display: inline-flex; align-items: center; gap: 26px;
}
.marquee__track span::after { content: "●"; color: var(--signal-yellow); font-size: .5em; }
.marquee__track .kor { font-family: var(--font-logo); color: var(--signal-yellow); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   EDITORIAL UTILITIES
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-poster); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; color: var(--gochu-red);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--gochu-red); border-radius: 2px; }
.eyebrow--green { color: var(--korean-green); }
.eyebrow--green::before { background: var(--korean-green); }
.eyebrow--yellow { color: var(--signal-yellow); }
.eyebrow--yellow::before { background: var(--signal-yellow); }
.eyebrow--white { color: #fff; }
.eyebrow--white::before { background: var(--signal-yellow); }

.imgcap { position: absolute; bottom: 18px; right: 18px; z-index: 3;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff;
  background: rgba(0,0,0,.42); backdrop-filter: blur(6px); padding: 7px 14px; border-radius: var(--r-pill);
  letter-spacing: .01em; }
