/* =========================================================
   Aruna Pork Supply — Design System "Heritage Cold & Cut"
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --navy-900: #0f1d36;
  --navy-800: #16274a;
  --navy-700: #1e293b;
  --navy-600: #2c3a58;
  --indigo-700: #2a2350;

  --red-700: #b3261e;
  --red-600: #c92a2a;
  --red-050: #fdeceb;

  --white: #ffffff;
  --surface: #f9f9fe;
  --surface-2: #f3f3f9;
  --line: #e6e8f2;
  --line-strong: #d7dae8;

  --ink: #0f1d36;
  --ink-muted: #5c6580;
  --ink-soft: #808aa3;

  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wechat-green: #07c160;

  /* Type */
  --font-display: "Newsreader", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space & shape */
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 29, 54, .06);
  --shadow-sm: 0 2px 8px rgba(15, 29, 54, .06);
  --shadow-md: 0 10px 30px rgba(15, 29, 54, .08);
  --shadow-lg: 0 24px 60px rgba(15, 29, 54, .14);

  --header-h: 72px;
}

/* Versi Mandarin: Inter/Newsreader tidak punya aksara Han,
   jadi huruf Latin tetap dari Inter dan aksara Han jatuh ke font sistem. */
:root[data-lang="zh"] {
  --font-display: "Newsreader", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
}
:root[data-lang="zh"] body { line-height: 1.8; }
:root[data-lang="zh"] h1,
:root[data-lang="zh"] h2,
:root[data-lang="zh"] h3 { letter-spacing: 0; }
:root[data-lang="zh"] .eyebrow,
:root[data-lang="zh"] .trust-label,
:root[data-lang="zh"] .brand-tagline,
:root[data-lang="zh"] .footer-col h3,
:root[data-lang="zh"] .qr-card figcaption { letter-spacing: .06em; }

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 3. Shared blocks ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .688rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-700);
}
.eyebrow svg { width: 14px; height: 14px; flex: none; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tint { background: var(--surface); }

.section-head { max-width: 640px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--navy-900);
}
.section-head p { margin-top: 14px; color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-900);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy-900); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--wa svg { color: var(--wa-green-dark); }
.btn--wechat svg { color: var(--wechat-green); }
.btn--ghost-dark {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.btn--ghost-dark svg { color: var(--wa-green); }
.btn--ghost-dark.btn--wechat svg { color: var(--wechat-green); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red-700); font-size: .875rem; font-weight: 700;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
  color: var(--navy-900); letter-spacing: -.01em;
}
.brand-tagline {
  font-size: .563rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red-700); margin-top: 2px;
}

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 500; color: var(--ink-muted);
  transition: color .18s ease, background-color .18s ease;
}
.site-nav a:hover { color: var(--navy-900); background: var(--surface-2); }
.site-nav a.is-active { color: var(--navy-900); font-weight: 600; background: var(--surface-2); }

/* Pemilih bahasa */
.header-tools { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.lang-btn {
  display: inline-block;
  padding: 6px 13px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-muted);
  font-size: .75rem; font-weight: 600; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
span.lang-btn { cursor: default; }
.lang-btn:hover { color: var(--navy-900); }
.lang-btn.is-active {
  background: var(--white); color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}

.nav-toggle {
  display: none; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy-900); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(48px, 6vw, 84px);
  background:
    radial-gradient(900px 420px at 12% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--white) 55%);
  overflow: hidden;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  color: var(--navy-900);
}

.hero-lead {
  margin-top: 20px; max-width: 46ch;
  color: var(--ink-muted); font-size: 1rem;
}
.hero-lead strong { color: var(--navy-900); font-weight: 600; }

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

.trust { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust-label {
  font-size: .625rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 16px; }
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.partner-logos img {
  height: 26px; width: auto;
  filter: saturate(.9);
  opacity: .92;
  transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.partner-logos li:hover img { opacity: 1; filter: none; transform: translateY(-1px); }

.cert-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--red-050); color: var(--red-700);
  font-size: .688rem; font-weight: 700; letter-spacing: .02em;
}
.cert-badge svg { width: 13px; height: 13px; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  font-size: .75rem; font-weight: 600; color: var(--navy-900);
}
.hero-badge svg { width: 15px; height: 15px; color: var(--red-600); }

/* ---------- 6. Value strip ---------- */
.value-strip { background: var(--navy-900); color: #fff; }
.value-strip ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
}
.value-strip li {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-size: .813rem; font-weight: 500; letter-spacing: .01em;
  color: rgba(255, 255, 255, .92);
}
.value-strip li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.value-strip svg { width: 17px; height: 17px; color: var(--red-600); flex: none; }

/* ---------- 7. Products ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 40px;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.product-card figure { margin: 0; background: var(--surface-2); overflow: hidden; }
.product-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover img { transform: scale(1.04); }
.product-card figcaption {
  padding: 14px 12px 16px; text-align: center;
  font-size: .875rem; font-weight: 700; color: var(--navy-900);
  transition: color .2s ease;
}
.product-card:hover figcaption { color: var(--red-600); }

/* ---------- 8. Custom cuts ---------- */
.cuts-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}

.cuts-title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--navy-900);
}
.cuts-intro { margin-top: 16px; max-width: 46ch; color: var(--ink-muted); }

.cut-list { margin-top: 28px; display: flex; flex-direction: column; }
.cut-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 4px;
  border-top: 1px solid var(--line);
}
.cut-item:last-child { border-bottom: 1px solid var(--line); }
.cut-icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px; background: var(--red-050); color: var(--red-700);
}
.cut-icon svg { width: 17px; height: 17px; }
.cut-body { flex: 1 1 auto; min-width: 0; }
.cut-body h3 { font-family: var(--font-body); font-size: .938rem; font-weight: 700; color: var(--navy-900); letter-spacing: 0; }
.cut-body p { margin-top: 2px; font-size: .75rem; color: var(--ink-muted); line-height: 1.5; }
.cut-spec {
  flex: none;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: #eef2fb; color: #2a4a8b;
  font-size: .688rem; font-weight: 700; white-space: nowrap;
}

.cuts-cta { margin-top: 24px; }

.cuts-media { position: relative; margin: 0; }
.cuts-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cuts-media figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(15, 29, 54, .86);
  backdrop-filter: blur(8px);
  color: #fff;
}
.cuts-media figcaption strong { display: block; font-size: .875rem; font-weight: 600; }
.cuts-media figcaption span { display: block; margin-top: 3px; font-size: .75rem; color: rgba(255, 255, 255, .7); }

/* ---------- 9. Contact panel ---------- */
.contact { padding-bottom: clamp(56px, 7vw, 96px); }
.contact-panel {
  position: relative; overflow: hidden;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 4.5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 320px at 88% 8%, rgba(179, 38, 30, .38) 0%, rgba(179, 38, 30, 0) 62%),
    linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 42%, var(--indigo-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.contact-panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .18; pointer-events: none;
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.contact-panel .eyebrow { color: #ff8f86; }
.contact-panel h2 {
  margin-top: 14px; max-width: 22ch;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.contact-panel p {
  margin-top: 14px; max-width: 54ch;
  color: rgba(255, 255, 255, .74); font-size: .938rem;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hours-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  font-size: .813rem; font-weight: 500; color: rgba(255, 255, 255, .86);
}
.hours-badge svg { width: 16px; height: 16px; color: var(--red-600); flex: none; }

/* QR pemesanan */
.contact-qr { display: flex; gap: 14px; }
.qr-card {
  margin: 0;
  padding: 12px 12px 10px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(5, 10, 24, .3);
  text-align: center;
}
.qr-card img {
  width: 130px; height: 130px;
  border-radius: 6px;
}
.qr-card figcaption {
  margin-top: 9px;
  font-size: .625rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-900);
}

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 48px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tagline { color: #ff8f86; }
.footer-about { margin-top: 16px; max-width: 42ch; font-size: .813rem; line-height: 1.7; }
.footer-col h3 {
  font-family: var(--font-body); font-size: .688rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.footer-col ul { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; font-size: .875rem; }
.footer-col a { transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .75rem; color: rgba(255, 255, 255, .5);
}

/* ---------- 11. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 20px);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--navy-900); color: #fff;
  font-size: .813rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--wa-green); }

/* ---------- 12. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-grid, .cuts-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .cuts-media img { aspect-ratio: 16 / 11; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-about { max-width: none; }

  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-qr { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .header-inner { position: relative; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { padding: 14px 10px; border-radius: var(--radius-sm); font-size: .938rem; }
  .nav-toggle { display: inline-flex; }

  .value-strip ul { flex-direction: column; }
  .value-strip li { justify-content: flex-start; padding: 13px 0; width: 100%; }
  .value-strip li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .value-strip .container { padding-block: 6px; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .hero h1 { font-size: 2rem; }
  .brand-name { font-size: 1rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta, .contact-actions { flex-direction: column; align-items: stretch; }
  .hours-badge { justify-content: center; }

  .cut-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon title spec"
      "icon desc  desc";
    align-items: center;
    column-gap: 12px; row-gap: 2px;
  }
  .cut-icon { grid-area: icon; align-self: start; margin-top: 2px; }
  .cut-body { display: contents; }
  .cut-body h3 { grid-area: title; }
  .cut-body p { grid-area: desc; margin-top: 0; }
  .cut-spec { grid-area: spec; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .product-grid { gap: 14px; }

  .header-inner { gap: 10px; }
  .header-tools { gap: 8px; }
  .lang-btn { padding: 5px 10px; font-size: .688rem; }

  .contact-qr { justify-content: center; gap: 12px; }
  .qr-card { padding: 10px 10px 8px; }
  .qr-card img { width: min(130px, 30vw); height: auto; aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .toast { display: none !important; }
  body { color: #000; }
}
