/* MKR Global Import & Export
   Layout: a merchant's catalogue. Left-aligned text, product groups listed as
   catalogue rows with HS headings, one forest-green band, one shipping-mark stamp.
   Colour and type tokens below; everything else is built from them. */
:root {
  --paper: #f6f7f2;
  --surface: #ffffff;
  --sage: #e4ebe1;
  --line: #d3dbcf;
  --field: #b6c2b3;
  --ink: #17231d;
  --ink-2: #4b5b52;
  --forest: #174a35;
  --forest-deep: #0f3426;
  --leaf: #2d7a54;
  --kraft: #d3bb91;
  --gold: #8a6418;
  --on-dark: #eef3ec;
  --on-dark-2: #b9cbbf;
  --rule-dark: #2a5543;
  --err-bg: #fbeae5;
  --err: #8a2a12;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stencil: "Stardos Stencil", "Arial Black", Impact, sans-serif;
  --wrap: 1176px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.25rem, 1.55rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.4rem); }
h3 { font-size: 1.3125rem; }
p { margin: 0; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.brand b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; white-space: nowrap; }
.brand span { font-size: 0.8125rem; color: var(--ink-2); }
.top nav ul { display: flex; align-items: center; gap: 4px 22px; list-style: none; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.top nav a:not(.btn):hover { color: var(--forest); }
.top nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -2px 0 var(--forest); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--forest); border-radius: 6px;
  background: var(--forest); color: #fff;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--sage); color: var(--forest-deep); }
.btn.ghost-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-2); }
.btn.ghost-light:hover { background: var(--forest); color: #fff; border-color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }

/* Hero */
.hero .wrap { display: grid; gap: 56px; padding-block: 44px 72px; align-items: center; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; margin-top: 20px; }
.reg { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.reg dt { font-size: 0.8125rem; color: var(--ink-2); }
.reg dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }
.hero-f { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 540px; }
.hero-f img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--sage); }

/* The shipping mark: how export sacks and cartons are marked, stencilled in ink. */
.mark {
  position: absolute; left: 14px; bottom: -30px;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background-color: var(--kraft);
  background-image:
    repeating-linear-gradient(0deg, rgb(92 64 24 / 0.09) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgb(92 64 24 / 0.09) 0 1px, transparent 1px 4px);
  color: var(--forest-deep);
  font-family: var(--stencil); font-weight: 700; text-align: center; line-height: 1.2;
  transform: rotate(-4deg);
  box-shadow: 0 14px 28px rgb(15 52 38 / 0.22);
}
.mark .dia { display: grid; place-items: center; width: 62px; height: 62px; margin: 10px 0 16px; border: 3px solid currentColor; transform: rotate(45deg); }
.mark .dia span { transform: rotate(-45deg); font-size: 1.5rem; letter-spacing: 0.02em; }
.mark .mk-l { font-size: 0.875rem; letter-spacing: 0.08em; white-space: nowrap; }
.mark .mk-l.sm { font-size: 0.8125rem; margin-top: 4px; }

/* Sections */
.sec { padding-block: 72px; }
.sec.tight { padding-block: 40px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46em; }
.sec-head p, .sec-p { color: var(--ink-2); max-width: 40em; }
.sec-p + .sec-p { margin-top: 12px; }
.small-h { font-size: 1.5rem; margin-bottom: 16px; }

/* Catalogue */
.cat-group + .cat-group { margin-top: 48px; }
.cat-h { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; padding-bottom: 10px; border-bottom: 2px solid var(--forest); }
.cat { list-style: none; column-gap: 48px; }
.cat li { border-bottom: 1px solid var(--line); break-inside: avoid; }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 18px 0; text-decoration: none; color: inherit; align-items: start; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--sage); }
.row-t { display: flex; flex-direction: column; min-width: 0; }
.row-n { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.row-s { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.hs { margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.row:hover .row-n { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

/* Band */
.band { background: var(--sage); color: var(--ink); }
.band-grid { display: grid; gap: 48px; padding-block: 72px; }
.band h2 { color: var(--ink); }
.band p { color: var(--ink-2); max-width: 34em; margin-top: 16px; }
.steps-h { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--forest); letter-spacing: 0; margin-bottom: 8px; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--field); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--gold); }
.steps b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--ink-2); }

/* Registration panel and spec sheets */
.reg-grid { display: grid; gap: 32px; align-items: start; }
.cert { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.cert dl { display: grid; grid-template-columns: 1fr; margin: 0; }
.cert dt { font-size: 0.875rem; color: var(--ink-2); padding-top: 12px; }
.cert dt:first-child { padding-top: 0; }
.cert dd { margin: 2px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--sage); min-width: 0; overflow-wrap: anywhere; }
.cert dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.code { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.dd-note { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
.cert > .dd-note { margin-top: 16px; }
.spec-h { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; color: var(--forest); }
.hs-list { list-style: none; display: grid; gap: 4px; }
.hs-list .code { display: inline-block; min-width: 3.4em; color: var(--gold); }

/* Product pages */
.p-head { padding-block: 32px 48px; }
.p-grid { display: grid; gap: 40px; align-items: start; }
.crumbs { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }
.p-fig { margin: 0; }
.p-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--sage); }
.p-fig figcaption { font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; }
.p-fig2 { margin: 0; }
.p-fig2 img { width: 100%; aspect-ratio: 1200 / 520; object-fit: cover; border-radius: 4px; background: var(--sage); }
.spec-grid { display: grid; gap: 40px; align-items: start; }
.items { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.items li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.items b { display: block; color: var(--ink); font-weight: 600; }
.note { margin-top: 20px; padding: 14px 16px; background: var(--sage); border-radius: 4px; font-size: 0.9375rem; }
.others { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.p-head .others { margin-top: 28px; }
.others a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.9375rem; color: var(--ink); }
.others a:hover { border-color: var(--forest); color: var(--forest); }
.prose { display: grid; gap: 14px; margin-top: 20px; max-width: 38em; color: var(--ink); }
.credits { list-style: none; display: grid; gap: 6px; margin-top: 16px; font-size: 0.9375rem; color: var(--ink-2); }

/* Closing call to action */
.cta { background: var(--forest); color: var(--on-dark); text-align: center; }
.cta .wrap { padding-block: 64px; }
.motto { font-family: var(--serif); font-weight: 600; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.05; color: #fff; letter-spacing: -0.012em; }
.rule { width: 72px; height: 3px; margin: 20px auto; border: 0; background: var(--kraft); }
.cta-p { color: var(--on-dark-2); max-width: 32em; margin-inline: auto; }
.cta .btn:not(.ghost-light) { background: var(--paper); border-color: var(--paper); color: var(--forest-deep); }
.cta .btn:not(.ghost-light):hover { background: #fff; border-color: #fff; }

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-main { min-width: 0; }
.form { display: grid; gap: 18px; margin-top: 28px; }
.form .two { display: grid; gap: 18px; }
label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 11px 12px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--field); border-radius: 6px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--forest); }
textarea { min-height: 160px; resize: vertical; }
::placeholder { color: #7d8a82; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hint { font-size: 0.875rem; color: var(--ink-2); }
.status { margin-top: 24px; padding: 16px 18px; border-radius: 6px; font-weight: 500; }
.status.ok { background: var(--sage); color: var(--forest-deep); }
.status.err { background: var(--err-bg); color: var(--err); }

/* Footer */
.foot { background: var(--forest-deep); color: var(--on-dark-2); font-size: 0.9375rem; }
.foot .wrap:first-child { display: grid; gap: 32px; padding-block: 48px 32px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: #fff; }
.foot-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.foot-co p:last-child { margin-top: 10px; }
.foot-h { font-weight: 600; color: var(--kraft); margin-bottom: 10px; }
.foot-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 6px 20px; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-reg { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.foot-reg dd { margin: 0; color: var(--on-dark); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.foot-small { margin-top: 10px; }
.foot-base { padding-block: 0 28px; font-size: 0.8125rem; }
.foot-base p { border-top: 1px solid var(--rule-dark); padding-top: 20px; }

@media (min-width: 560px) {
  .row { grid-template-columns: 128px minmax(0, 1fr); gap: 22px; }
  .form .two { grid-template-columns: 1fr 1fr; }
  .cert dl { grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); column-gap: 24px; }
  .cert dt { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sage); }
  .cert dd { padding-top: 12px; margin: 0; }
  .cert dt:first-child, .cert dt:first-child + dd { padding-top: 0; }
  .cert dt:last-of-type { border-bottom: 0; padding-bottom: 0; }
  .cert.stack dl { grid-template-columns: 1fr; }
  .cert.stack dt { padding-bottom: 0; border-bottom: 0; }
  .cert.stack dd { padding-top: 2px; margin: 2px 0 0; }
  .cert.stack dt:first-child + dd { padding-top: 2px; }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; padding-block: 64px 96px; }
  .mark { left: -40px; bottom: -36px; }
  .cat { column-count: 2; }
  .hero-f img { aspect-ratio: 4 / 5; }
  .mark { padding: 18px 22px 16px; }
  .mark .dia { width: 74px; height: 74px; }
  .mark .mk-l { font-size: 0.9375rem; }
  .band-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; padding-block: 88px; }
  .reg-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .p-head { padding-block: 40px 56px; }
  .p-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .spec-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; }
  .contact-side { padding-top: 96px; }
  .foot .wrap:first-child { grid-template-columns: 1.3fr 1fr 0.9fr; gap: 48px; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .brand span { display: none; }
  .top nav ul { gap: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 420px) {
  .brand b { font-size: 1.25rem; }
  .top nav ul { gap: 4px 12px; }
  .top nav a:not(.btn) { font-size: 0.9375rem; }
}
/* Registration strip above the header */
.util { background: var(--forest-deep); color: var(--on-dark-2); font-size: 0.8125rem; }
.util .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 36px; padding-block: 6px; }
.util-reg { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.util b { color: var(--on-dark); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.util a { color: var(--on-dark); text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .util-wa { display: none; } }
