/* Eng Huat Food. SEH brand colours: green, red and golden yellow on warm cream. */
:root {
  --green: #1f7a36;
  --green-dark: #135226;
  --green-soft: #e8f2e7;
  --red: #c8312b;
  --gold: #f0b323;
  --gold-dark: #b97f00;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #1c2a1f;
  --text: #3a4a3d;
  --muted: #687568;
  --line: #e2e6dc;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--text); font: 400 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.1em; height: 1.1em; flex: none; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h1 em { display: block; font-style: normal; color: var(--green); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 1em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.mt { margin-top: 1.4em; }
.rounded img { border-radius: var(--radius); }
picture.rounded, .rounded { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 46px; padding: .7em 1.3em; border: 2px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-lg { min-height: 52px; padding: .85em 1.6em; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .88rem; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc94d; border-color: #ffc94d; }
.link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; min-height: 44px; }
.link:hover svg { transform: translateX(3px); }
.link svg { transition: transform .15s; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Top bar and header */
.topbar { background: var(--green-dark); color: #e3efe2; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar-right { display: flex; align-items: center; gap: 1.2rem; }
.lang { display: flex; gap: 2px; }
.lang a { padding: .25em .6em; border-radius: 6px; font-weight: 600; }
.lang a:hover { background: rgba(255,255,255,.12); }
.lang a[aria-current] { background: var(--gold); color: var(--ink); }
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 241, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: var(--serif); font-size: 1.3rem; }
.brand small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .4em 0; border-bottom: 2px solid transparent; }
.nav > a:not(.btn):hover, .nav > a[aria-current] { border-bottom-color: var(--gold); }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-photo img { border-radius: 22px; box-shadow: 0 24px 60px rgba(28, 42, 31, .18); aspect-ratio: 16 / 11; object-fit: cover; }
.facts { background: var(--green); color: #fff; }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-in div { padding: 1.4rem 1.2rem; border-left: 1px solid rgba(255,255,255,.15); }
.facts-in div:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--gold); }
.facts span { font-size: .9rem; color: #dcebdc; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--green-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head .lead { margin: 0; }
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.grid { display: grid; gap: 20px; }
.grid > *, .two-col > *, .hero-in > *, .contact-grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); font-weight: 600; transition: box-shadow .2s, transform .2s; }
.tile span { display: block; padding: .9rem 1rem; }
.tile:hover { box-shadow: 0 12px 30px rgba(28,42,31,.12); transform: translateY(-2px); }
.grade { display: flex; gap: 14px; margin-top: 1.4rem; }
.grade p { margin: 0; }
.grade-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; flex: none; }
.value { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; }
.value .grade-icon { margin-bottom: 1rem; }
.value p { margin: 0; color: var(--muted); }
.prose p { font-size: 1.05rem; }

/* Products */
.product { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 100px; }
.product:target { box-shadow: 0 0 0 3px var(--gold); }
.product-body { padding: 1.2rem 1.3rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.2rem; margin-bottom: .2em; }
.product-local { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }
.product-note { margin-bottom: 1em; }
.badge { align-self: flex-start; background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: .2em .7em; border-radius: 999px; margin-bottom: .7rem; }
.specs { display: flex; gap: 1.6rem; margin: 0 0 .6rem; font-size: .9rem; }
.specs dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 0; font-weight: 600; color: var(--ink); }
.product .link { margin-top: auto; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: .5em; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list dd { margin: .3em 0 0; font-size: 1.05rem; color: var(--ink); }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 1.5rem; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.form input, .form textarea { display: block; width: 100%; margin-top: .4em; font: 400 1rem var(--sans); padding: .75em .9em; border: 1px solid #cfd6cb; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid rgba(31,122,54,.25); border-color: var(--green); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.hp { position: absolute; left: -9999px; }

/* CTA and footer */
.cta-band { background: var(--green-dark); color: #e3efe2; padding: clamp(2.5rem, 6vw, 3.5rem) 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.footer { background: #0f2a17; color: #b9c9ba; padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 2.5rem; }
.footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.footer a { display: flex; align-items: center; gap: .5em; color: #dfe9df; text-decoration: none; padding: .3em 0; }
.footer a:hover { color: var(--gold); }
.brand-light b, .brand-light { color: #fff !important; }
.brand-light small { color: #9fb3a1; }
.footer .reg { font-size: .8rem; color: #8ea290; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; color: #8ea290; }

@media (max-width: 900px) {
  .hero-in, .two-col, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-in div:nth-child(3) { border-left: 0; }
  .facts-in div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .footer a { overflow-wrap: anywhere; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: .9em 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .header-in { position: relative; }
}
@media (max-width: 600px) {
  .topbar-note { display: none; }
  .topbar-in { justify-content: center; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { gap: 12px; }
  .tile span { font-size: .88rem; padding: .7rem .8rem; }
  .form .row { grid-template-columns: 1fr; }
  .brand b { font-size: 1.1rem; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
