/* Premium Mass — website styles v2 (Mango Spice brand)
   Layout ideas: full-bleed photo hero, numbers band, photo industry tiles, filterable products,
   image + text split sections, contact call-to-action banner, side contact tab.
   Colours: fire + earth only (no blue / green / black). */
:root {
  --mango: #FFC145; --tang: #FF8A3D; --chili: #E4572E; --honey: #FFB400;
  --roast: #3B1F14; --night: #2B1810; --cream: #FFF6EC; --muted: #7A5A46; --line: #F1E2CC;
  --grad: linear-gradient(45deg, #FFC145 0%, #FF8A3D 50%, #E4572E 100%);
  --radius: 18px; --max: 1200px;
  --font-en: "Rubik", "Segoe UI", sans-serif;
  --font-th: "Anuphan", "Leelawadee UI", "Noto Sans Thai", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font-en); color: var(--roast); background: #fff; line-height: 1.65; font-size: 16px; overflow-x: hidden; }
html[lang="th"] body { font-family: var(--font-th); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap > *, form > *, label { min-width: 0; }
section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--chili); margin: 0 0 12px; }
html[lang="th"] .eyebrow { letter-spacing: .04em; font-size: 14px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.35; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--chili); color: #fff; box-shadow: 0 8px 22px rgba(228,87,46,.28); }
.btn-ghost { border-color: var(--roast); color: var(--roast); }
.btn-white { border-color: #fff; color: #fff; }
.btn-light { background: #fff; color: var(--roast); }
.arrow::after { content: "→"; }

/* utility bar */
.util { background: var(--night); color: #e6cdb6; font-size: 13px; }
.util .wrap { display: flex; gap: 22px; align-items: center; height: 38px; }
.util a { text-decoration: none; } .util a:hover { color: var(--mango); }
.util .sp { margin-left: auto; }
.lang { display: flex; border: 1px solid rgba(255,193,69,.35); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 3px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: #e6cdb6; }
.lang button.on { background: var(--mango); color: var(--roast); }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font-family: var(--font-en); font-weight: 600; letter-spacing: .12em; font-size: 16px; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-en); font-size: 9.5px; letter-spacing: .2em; color: var(--chili); font-weight: 600; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--chili); border-color: var(--tang); }
.header .btn { padding: 11px 22px; font-size: 14px; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--roast); }

/* hero: full-bleed photo with warm overlay */
.hero { position: relative; color: #fff; padding: 140px 0 150px; background: var(--night) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(43,24,16,.92) 0%, rgba(43,24,16,.72) 45%, rgba(228,87,46,.25) 100%); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 560px; height: 560px; background: url("mark-reverse.svg") center / contain no-repeat; opacity: .12; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--mango); }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; max-width: 820px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #f3dcc7; margin-bottom: 36px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* numbers band */
.numbers { background: var(--grad); color: var(--roast); padding: 54px 0; }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.num { text-align: center; padding: 0 10px; border-left: 1px solid rgba(59,31,20,.18); }
.num:first-child { border-left: 0; }
.num b { display: block; font-family: var(--font-en); font-size: clamp(40px, 4.4vw, 56px); line-height: 1; font-weight: 700; color: #fff; text-shadow: 0 2px 14px rgba(59,31,20,.18); }
.num span { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }

/* industries: photo tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tile { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: var(--night) center / cover no-repeat; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,24,16,0) 30%, rgba(43,24,16,.88) 100%); transition: background .25s; }
.tile:hover::before { background: linear-gradient(180deg, rgba(228,87,46,.15) 0%, rgba(43,24,16,.92) 100%); }
.tile .in { position: relative; padding: 24px; }
.tile h3 { font-size: 22px; margin: 0 0 6px; }
.tile p { margin: 0; font-size: 14.5px; color: #f3dcc7; }
.tile.pet { background: #7B3016 url("petfood-ingredients.jpg") center top / cover no-repeat; }
.tile.pet::before { background: linear-gradient(180deg, rgba(43,24,16,0) 42%, rgba(43,24,16,.93) 82%, rgba(43,24,16,.96) 100%); }
.tile.pet:hover::before { background: linear-gradient(180deg, rgba(228,87,46,.08) 30%, rgba(43,24,16,.94) 100%); }
.tile.pet .badge { top: auto; bottom: 112px; right: auto; left: 24px; }
.badge { position: absolute; top: 16px; right: 16px; z-index: 1; background: var(--honey); color: var(--roast); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; }

/* products with filter */
.products { background: var(--cream); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 28px; }
.filters button { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; border: 1.5px solid #ecd7bd; background: #fff; color: var(--roast); cursor: pointer; }
.filters button.on { background: var(--roast); border-color: var(--roast); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(59,31,20,.06); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(59,31,20,.12); }
.pcard .ph { aspect-ratio: 4 / 3; background: var(--cream) center / cover no-repeat; }
.pcard .tx { padding: 16px 18px 18px; }
.pcard i { font-style: normal; font-family: var(--font-en); font-size: 12px; font-weight: 700; color: var(--chili); letter-spacing: .1em; }
.pcard h3 { font-size: 16px; margin: 6px 0 0; line-height: 1.35; }
.pcard.hide { display: none; }

/* services */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(59,31,20,.09); }
.ico { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* split: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .img { position: relative; border-radius: 28px; min-height: 440px; background: var(--cream) center / cover no-repeat; box-shadow: 0 24px 60px rgba(59,31,20,.15); }
.split .img .motto { position: absolute; left: -28px; bottom: -28px; background: #fff; border-radius: 20px; padding: 22px 26px; max-width: 320px; box-shadow: 0 16px 40px rgba(59,31,20,.14); display: flex; gap: 14px; align-items: center; }
.split .img .motto img { width: 54px; flex: none; }
.split .img .motto b { font-size: 16px; line-height: 1.4; }
.split .img .motto em { font-style: normal; color: var(--chili); }
.ticks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: radial-gradient(circle, #fff 0 4px, transparent 4.5px), var(--grad); }

/* CTA banner */
.cta-band { position: relative; color: #fff; text-align: center; padding: 110px 0; background: var(--night) center / cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,24,16,.9), rgba(228,87,46,.78)); }
.cta-band .wrap { position: relative; }
.cta-band .lead { color: #f6e1cf; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* contact */
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.cinfo { display: grid; gap: 18px; margin-top: 28px; }
.cinfo div { display: flex; gap: 14px; }
.cinfo b { flex: none; width: 96px; color: var(--chili); font-size: 14px; letter-spacing: .04em; }
.cinfo a { text-decoration: none; } .cinfo a:hover { color: var(--chili); }
form { background: var(--cream); border-radius: 24px; padding: 36px; display: grid; gap: 16px; }
form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid #ecd7bd; border-radius: 12px; background: #fff; color: var(--roast); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tang); box-shadow: 0 0 0 4px rgba(255,138,61,.15); }
textarea { min-height: 120px; resize: vertical; }
.note { font-size: 12.5px; color: var(--muted); margin: 0; }
.form-status { border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14.5px; }
.form-status.ok { background: #FFF1C9; color: var(--roast); border: 1.5px solid var(--honey); }
.form-status.err { background: #FDE3DA; color: #9C2F14; border: 1.5px solid var(--chili); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* side contact tab */
.sidetab { position: fixed; right: 0; top: 50%; z-index: 60; transform: translateY(-50%); writing-mode: vertical-rl; background: var(--chili); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .06em; padding: 18px 10px; border-radius: 12px 0 0 12px; box-shadow: -4px 6px 18px rgba(228,87,46,.3); }
.sidetab:hover { background: var(--roast); }

/* footer */
footer { background: var(--night); color: #d9bfa8; padding: 64px 0 32px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,193,69,.15); }
footer h4 { color: var(--cream); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 16px; }
html[lang="th"] footer h4 { letter-spacing: .02em; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a { text-decoration: none; } footer a:hover { color: var(--mango); }
footer .brand b { color: var(--cream); }
footer .about { margin: 16px 0 0; max-width: 300px; }
footer .legal { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
footer .th { font-family: var(--font-th); }

/* product detail page */
a.pcard { display: block; text-decoration: none; color: inherit; }
.phero { position: relative; color: #fff; padding: 64px 0 80px; background: var(--night) center / cover no-repeat; }
.phero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(43,24,16,.94) 0%, rgba(43,24,16,.78) 55%, rgba(228,87,46,.35) 100%); }
.phero .wrap { position: relative; }
.phero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 760px; }
.phero .lead { color: #f3dcc7; }
.phero .eyebrow { color: var(--mango); }
.crumbs { font-size: 13.5px; color: #e6cdb6; margin-bottom: 36px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--mango); }
.crumbs span { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255,193,69,.18); color: var(--mango); border: 1px solid rgba(255,193,69,.4); }
.chips.light span { background: var(--cream); color: var(--roast); border-color: #ecd7bd; }
.pdetail { padding: 80px 0; }
.pcols { display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: start; }
.pcols h2 { font-size: 28px; }
.ilist { list-style: none; padding: 0; margin: 20px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ilist li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--tang); border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.two h3 { font-size: 18px; margin-bottom: 0; }
.quote { position: sticky; top: 140px; background: var(--cream); border-radius: 24px; padding: 32px; }
.quote > img { width: 56px; margin-bottom: 14px; }
.quote h3 { font-size: 22px; margin-bottom: 6px; }
.quote p { color: var(--muted); margin: 0 0 20px; }
.quote h4 { margin: 28px 0 0; font-size: 15px; }
.quote .ticks { margin: 14px 0 0; gap: 10px; font-size: 15px; }
.related { background: var(--cream); padding: 72px 0; }
.related h2 { font-size: 28px; margin-bottom: 28px; }
.pnav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; font-weight: 600; font-size: 15px; }
.pnav a { text-decoration: none; color: var(--chili); } .pnav a:hover { color: var(--roast); }

/* responsive */
@media (max-width: 1060px) {
  .tiles, .pgrid, .svc { grid-template-columns: repeat(2, 1fr); }
  .split, .contact .wrap, .pcols { grid-template-columns: 1fr; }
  .quote { position: static; }
  .split .img { min-height: 320px; }
  .split .img .motto { left: 16px; bottom: -24px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { gap: 18px; }
}
@media (max-width: 860px) {
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .header.open .nav { display: flex; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); }
  .header.open .nav a { padding: 16px 24px; border-top: 1px solid #f6ead8; }
  section { padding: 72px 0; }
  .numbers .wrap { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .num:nth-child(3) { border-left: 0; }
  .util .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .tiles, .svc, form .row2, footer .cols, .ilist, .two { grid-template-columns: 1fr; }
  .pnav { flex-direction: column; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard .tx { padding: 12px 14px 14px; } .pcard h3 { font-size: 14px; }
  .tile { min-height: 240px; }
  .tile.pet { min-height: 460px; }
  .hero { padding: 96px 0 104px; }
  form { padding: 24px; }
  .header .brand small { display: none; }
  .header .brand b { white-space: nowrap; font-size: 14px; letter-spacing: .08em; }
  .sidetab { display: none; }
}

/* WordPress admin bar (only visible when logged in) */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
