/* ============================================================
   JING GU FOOD PTY LTD — stylesheet (red & white)
   Brand red #EF222D · white · warm neutrals · maroon
   Display: Fraunces · Body: IBM Plex Sans · Data: IBM Plex Mono
   ============================================================ */

:root {
  --red:       #EF222D;
  --red-600:   #D11A24;
  --red-700:   #A8131C;
  --maroon:    #2A1310;
  --maroon-soft:#3a1c18;

  --ink:       #211A18;
  --ink-soft:  #6E625E;

  --white:     #FFFFFF;
  --cream:     #FFF8F5;
  --paper:     #FBF3F1;
  --line:      #ECE0DC;
  --line-strong:#DFCFCA;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(33,26,24,.05), 0 14px 34px -20px rgba(33,26,24,.3);
  --shadow-lg: 0 34px 70px -34px rgba(120,24,22,.4);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 540; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--cream); border-block: 1px solid var(--line); }

.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-body); font-weight: 600; font-size: .98rem; padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--red); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--red); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--red-700); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--white) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand__logo { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a { padding: .5rem .8rem; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--ink-soft); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--red); background: var(--paper); }
.nav__links a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav__cta { margin-left: .4rem; }
.nav__toggle { display: none; background: none; border: 1.5px solid var(--line-strong); border-radius: 9px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav__toggle svg { width: 22px; height: 22px; margin: auto; }

/* Image frame */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-700); background: rgba(255,255,255,.92); padding: .3rem .6rem; border-radius: 6px; z-index: 2; }

/* Hero (image) */
.hero { position: relative; min-height: clamp(460px, 72vh, 660px); display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(42,19,16,.82) 0%, rgba(42,19,16,.55) 45%, rgba(42,19,16,.25) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 560; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: #ffd9d6; }
.hero .lede { color: rgba(255,255,255,.9); margin-bottom: 2rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Page banner */
.pbanner { position: relative; min-height: clamp(230px, 34vw, 360px); display: grid; align-items: center; overflow: hidden; color: #fff; }
.pbanner__bg { position: absolute; inset: 0; z-index: 0; }
.pbanner__bg img { width: 100%; height: 100%; object-fit: cover; }
.pbanner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(42,19,16,.8), rgba(42,19,16,.45)); }
.pbanner .wrap { position: relative; z-index: 2; }
.pbanner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .6rem; }
.pbanner .lede { color: rgba(255,255,255,.9); max-width: 60ch; }
.crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 1.2rem; }
.crumbs a:hover { color: #fff; }

/* Section heading */
.head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .9rem; }

/* Supply chain signature */
.chain__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.chain__track::before { content: ""; position: absolute; top: 22px; left: 7%; right: 7%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); z-index: 0; }
.chain__node { position: relative; z-index: 1; text-align: center; }
.chain__dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto .9rem; background: var(--white); border: 2px solid var(--red); display: grid; place-items: center; color: var(--red); font-family: var(--font-mono); font-weight: 600; font-size: .85rem; box-shadow: 0 0 0 6px var(--white); }
.chain__node:nth-child(2) .chain__dot { border-color: var(--red-600); color: var(--red-600); }
.chain__node:nth-child(3) .chain__dot { border-color: var(--maroon); color: var(--maroon); }
.chain__node:nth-child(4) .chain__dot { border-color: var(--red-700); color: var(--red-700); }
.chain__node h4 { font-size: 1.1rem; margin-bottom: .25rem; }
.chain__node p { font-size: .9rem; color: var(--ink-soft); max-width: 22ch; margin: 0 auto; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em; color: var(--red); }
.card__icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.1rem; background: var(--paper); color: var(--red); display: grid; place-items: center; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card__link { margin-top: 1rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; color: var(--red); display: inline-flex; gap: .4rem; align-items: center; }
.card__link svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Product card with image */
.pcard { overflow: hidden; padding: 0; }
.pcard .frame { border: 0; border-radius: 0; aspect-ratio: 16/10; }
.pcard__body { padding: 1.4rem 1.5rem 1.6rem; }
.pcard__body h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.pcard__body p { color: var(--ink-soft); font-size: .95rem; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--alt { direction: rtl; }
.split--alt > * { direction: ltr; }
.split__frame { aspect-ratio: 5/4; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.feature-list { display: grid; gap: .85rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: 1rem; }
.feature-list svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: .2rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; border-block: 1px solid var(--line); padding-block: 2.25rem; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--red); display: block; line-height: 1; letter-spacing: -.02em; }
.stat span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .55rem; display: block; }

/* CTA band */
.cta-band { background: linear-gradient(150deg, var(--red), var(--red-700) 70%, var(--maroon)); border-radius: var(--radius); color: #fff; padding: clamp(2.25rem, 5vw, 3.75rem); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 18px 18px; opacity:.5; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .6rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 48ch; }

/* Values */
.value { padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.value h3 { font-size: 1.15rem; margin: .8rem 0 .4rem; }
.value p { color: var(--ink-soft); font-size: .95rem; }
.value .card__icon { margin-bottom: 0; }

/* Roles */
.role { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.35rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.role:hover { border-color: var(--red); transform: translateY(-2px); }
.role__meta { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }
.role h3 { font-size: 1.2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); padding: .8rem .95rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,34,45,.16); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 1.1rem; }
.cinfo { display: flex; gap: .9rem; align-items: flex-start; padding: 1.2rem 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cinfo svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: .2rem; }
.cinfo h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .15rem; }
.cinfo p, .cinfo a { color: var(--ink-soft); font-size: .96rem; }
.cinfo a:hover { color: var(--red); }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }

/* Footer */
.site-footer { background: var(--maroon); color: rgba(255,255,255,.78); margin-top: clamp(3rem,6vw,5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.5rem,5vw,3.5rem); }
.footer__logo { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-about { max-width: 36ch; font-size: .95rem; }
.footer-col h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ffd9d6; margin-bottom: 1rem; font-weight: 500; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.72); font-size: .95rem; display: block; padding: .2rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: .73rem; letter-spacing: .04em; color: rgba(255,255,255,.55); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 1.75rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .8rem .6rem; font-size: 1.05rem; }
  .nav__cta { margin: .4rem 0 0; justify-content: center; }
  .nav__toggle { display: grid; }
  .split, .split--alt, .contact-grid, .cta-band__inner { grid-template-columns: 1fr; }
  .split--alt { direction: ltr; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .chain__track { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .chain__track::before { display: none; }
  .role { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .role { transition: none; }
}
