:root {
  --navy: #0B1F7A;
  --navy-deep: #08175C;
  --yellow: #FFE600;
  --cream: #FFF8CC;
  --white: #FFFFFF;
  --ink: #0B1F7A;
  --muted: #3C4A8F;
  --max: 1200px;
  --gutter: clamp(16px, 5vw, 80px);
  --radius: 6px;
  --font: "Plus Jakarta Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
:lang(th) body, body:lang(th) { line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.15; }
h3 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; }
p { margin: 0; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.35; letter-spacing: 0; }
section[id] { scroll-margin-top: 76px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); margin-top: 14px; max-width: 760px; }

/* Buttons */
.btn { display: inline-block; text-align: center; padding: 13px 26px; border-radius: var(--radius); background: var(--navy); color: var(--white); font: 600 16px/1.2 var(--font); text-decoration: none; border: 2px solid var(--navy); transition: background .15s, color .15s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn:focus-visible, .lang a:focus-visible, .nav a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid #E6E8F2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover { border-bottom-color: var(--yellow); }
.lang { display: flex; gap: 6px; }
.lang a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border: 1px solid var(--navy); border-radius: 4px; }
.lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
.lang a:not([aria-current="true"]):hover { background: var(--yellow); }
.menu-toggle { display: none; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-card { min-width: 0; }
.hero > * { grid-area: 1 / 1; }
.hero-img { width: 100%; height: 100%; min-height: clamp(560px, 54vw, 740px); object-fit: cover; align-self: stretch; }
.hero-card { align-self: end; justify-self: start; margin: 48px 0 64px var(--gutter); width: min(720px, 60%); background: var(--yellow); padding: clamp(28px, 3.6vw, 48px); }
.hero-card p { margin-top: 18px; font-size: clamp(16px, 1.5vw, 19px); }

/* What we do */
.pillars { position: relative; color: var(--white); background: var(--navy) url("/assets/img/bg-ship.jpg") center / cover no-repeat; }
.pillars::before { content: ""; position: absolute; inset: 0; background: rgba(11, 31, 122, 0.78); }
.pillars .wrap { position: relative; }
.pillars .lead { color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 36px auto 0; max-width: 940px; }
.card { background: var(--white); color: var(--ink); padding: 32px; display: flex; flex-direction: column; }
.card img { width: 64px; height: 64px; }
.card h3 { margin-top: 20px; }
.card p { margin-top: 8px; }
.card ul { margin: 10px 0 0; padding-left: 20px; }
.card li { margin: 2px 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .spacer { flex: 1; min-height: 22px; }

/* Services */
.svc-row { display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); margin-top: 40px; }
.svc-photo { grid-row: 1; grid-column: 39 / 101; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.svc-box { grid-row: 1; grid-column: 1 / 49; position: relative; background: var(--cream); padding: 40px 44px; display: grid; gap: 22px; align-content: center; }
.svc-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.svc-item img { width: 44px; height: 44px; }
.svc-item strong { display: block; font-size: 17px; }
.svc-item p { font-size: 15.5px; line-height: 1.55; }

/* Sourcing */
.sourcing { position: relative; color: var(--white); background: #000 url("/assets/img/bg-produce.jpg") center / cover no-repeat; }
.sourcing::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.66); }
.sourcing .wrap { position: relative; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.product img { width: 100%; height: clamp(320px, 34vw, 460px); object-fit: cover; }
.product h3 { margin-top: 18px; }
.product p { margin-top: 6px; font-size: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.about-grid > img { width: 100%; height: 100%; min-height: 420px; max-height: 600px; object-fit: cover; }
.about-copy p { margin-top: 16px; }
.stat { background: var(--yellow); padding: 28px 36px; margin-top: 28px; }
.stat strong { display: block; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.1; }
.stat > span { display: block; margin-top: 6px; }

/* Contact */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.contact h3 { margin-top: 32px; }
.contact address { font-style: normal; margin-top: 8px; }
.contact .tel { margin-top: 14px; }
.contact .tel a { text-decoration: none; font-weight: 600; }
.map { width: 100%; height: 460px; border: 0; background: #E7E9F3; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer a { text-decoration: none; }

/* Tablet and phone */
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; border: 1px solid var(--navy); border-radius: 4px; }
  .menu-btn > span { display: block; width: 22px; height: 2px; background: var(--navy); }
  .nav { gap: 12px; }
  .nav ul { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid #E6E8F2; padding: 8px var(--gutter) 16px; }
  .nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid #EEF0F6; }
  .menu-toggle:checked ~ .header-inner .nav ul { display: flex; }
  .svc-row { grid-template-columns: minmax(0, 1fr); }
  .svc-photo { grid-row: 1; grid-column: 1; height: 260px; min-height: 0; }
  .svc-box { grid-row: 2; grid-column: 1; padding: 28px 22px; }
}
@media (max-width: 767px) {
  .logo img { height: 38px; }
  .hero-img { height: 260px; min-height: 0; }
  .hero > .hero-card { grid-area: 2 / 1; margin: 0; width: 100%; }
  .cards, .products, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card { padding: 26px 22px; }
  .about-grid > img { min-height: 0; height: 240px; }
  .map { height: 320px; }
  .product img { height: 320px; }
}
.contact .maplink { margin-top: 6px; }
.contact .maplink a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Thai has no spaces: break lines only between words (zero-width spaces are inserted at build time) */
.tw { white-space: nowrap; display: inline; }
