/* Layout: a printed trade catalogue — wordmark masthead, numbered catalogue sections, product plates on white like catalogue photos */
:root {
  /* green = brand colour (bands, links, WhatsApp); red = highlights and main calls to action */
  --bg: #f0f3f0;
  --surface: #ffffff;
  --ink: #142019;
  --muted: #55635a;
  --line: #d4dbd5;
  --accent: #17663a;
  --accent-soft: #e2efe6;
  --accent-ink: #ffffff;
  --red: #c1272d;
  --red-ink: #ffffff;
  --band: #0d2e20;
  --band-ink: #eef3ef;
  --band-muted: #a3bcae;
  --band-hi: #8ad9a8;
  --plate: #ffffff;
  --wa: #17663a;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --radius: 4px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1410; --surface: #141e18; --ink: #e5ece7; --muted: #95a59b; --line: #25332b;
    --accent: #4cc27a; --accent-soft: #15291d; --accent-ink: #06180d;
    --red: #ef5a55; --red-ink: #230606;
    --band: #08180f; --band-ink: #e5ece7; --band-muted: #8ea698; --band-hi: #8ad9a8; --plate: #eceeea; --wa: #4cc27a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1410; --surface: #141e18; --ink: #e5ece7; --muted: #95a59b; --line: #25332b;
  --accent: #4cc27a; --accent-soft: #15291d; --accent-ink: #06180d;
  --red: #ef5a55; --red-ink: #230606;
  --band: #08180f; --band-ink: #e5ece7; --band-muted: #8ea698; --band-hi: #8ad9a8; --plate: #eceeea; --wa: #4cc27a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: 1.16rem; color: var(--muted); max-width: 62ch; }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--band); color: var(--band-ink);
  border-bottom: 3px solid var(--red);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--band-ink); }
.brand-logo { width: 46px; height: 46px; flex: none; background: #ffffff; border-radius: 8px; padding: 3px; border: 2px solid var(--red); }
.brand-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-mark { font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; line-height: 1; letter-spacing: 0.04em; }
.brand-sub { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-muted); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em;
  padding: 8px 12px; border-radius: var(--radius); color: var(--band-ink);
}
.nav a:hover { background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--band-hi); }
.nav .nav-wa { background: var(--red); color: var(--red-ink); margin-left: 6px; }
.nav .nav-wa:hover { background: var(--red); filter: brightness(1.08); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  padding: 12px 20px; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 2px solid var(--red); background: var(--red); color: var(--red-ink);
}
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); filter: none; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--accent-ink); }
.btn-sm { padding: 7px 12px; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 84px) clamp(36px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-plate { display: grid; gap: 6px; text-decoration: none; color: var(--ink); }
/* 7 sections: the first and last photos span two columns so the grid fills 3 rows of 3 */
.hero-plates .hero-plate:first-child:nth-last-child(7),
.hero-plates .hero-plate:last-child:nth-child(7) { grid-column: span 2; grid-template-rows: 1fr auto; }
.hero-plates .hero-plate:first-child:nth-last-child(7) .plate,
.hero-plates .hero-plate:last-child:nth-child(7) .plate { aspect-ratio: auto; height: 100%; min-height: 0; }
.hero-plates .hero-plate:first-child:nth-last-child(7) .plate img,
.hero-plates .hero-plate:last-child:nth-child(7) .plate img { position: absolute; inset: 0; }
.hero-plates .hero-plate:first-child:nth-last-child(7) .plate,
.hero-plates .hero-plate:last-child:nth-child(7) .plate { position: relative; }
.hero-plate .plate { aspect-ratio: 1 / 1; transition: border-color 0.15s; }
.hero-plate .plate img { padding: 12px; }
.hero-plate span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero-plate:hover .plate { border-color: var(--accent); }
.hero-plate:hover span { color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 6px; border-top: 1px solid var(--line); }
.fact { display: grid; }
.fact b { font-family: var(--f-display); font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.9rem; color: var(--muted); }

/* ---------- plates (product photos) ---------- */
.plate {
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; max-width: 100%;
}
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.plate-empty { background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--bg) 10px 20px); }
.plate-empty span { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.credits { margin-top: 24px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; max-width: 90ch; }
.credits a { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pillar { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 3px solid var(--ink); }
.pillar p { color: var(--muted); }

/* catalogue index */
.catalogue { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.catalogue li { border-bottom: 1px solid var(--line); }
.catalogue a {
  display: grid; grid-template-columns: 64px 120px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding-block: 16px; text-decoration: none;
}
.catalogue a:hover .cat-name { color: var(--accent); }
.cat-no { font-family: var(--f-mono); font-size: 0.95rem; color: var(--muted); }
.catalogue .plate { aspect-ratio: 4 / 3; }
.catalogue .plate img { padding: 6px; }
.cat-text { display: grid; gap: 2px; min-width: 0; }
.cat-name { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; }
.cat-items { color: var(--muted); font-size: 0.98rem; }
.cat-go { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

/* export board */
.band { background: var(--band); color: var(--band-ink); }
.band .label, .band .lede { color: var(--band-muted); }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 8px; }
.board-row { background: rgba(255, 255, 255, 0.05); padding: 18px 18px 20px; display: grid; gap: 6px; border-top: 3px solid var(--red); }
.board-code { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--band-muted); }
.board-country { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.board-route { font-family: var(--f-mono); font-size: 0.85rem; color: var(--band-muted); }

/* brands */
.brands { display: flex; flex-wrap: wrap; gap: 14px; }
.brand-chip {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 22px; border: 2px solid var(--ink); border-radius: var(--radius); line-height: 1.1;
}
.brand-chip:nth-child(2) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.brand-chip:nth-child(3) { border-color: var(--red); color: var(--red); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }

/* call to action */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta h2 { max-width: 18ch; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 36px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 14px; }
.crumbs { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* products overview */
.range { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.range-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; overflow: hidden;
}
.range-card .plate { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; aspect-ratio: 16 / 10; }
.range-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.range-body h2 { font-size: 1.8rem; }
.range-body p { color: var(--muted); }
.range-card:hover h2 { color: var(--accent); }

/* category page */
.cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cat-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.cat-nav .label { margin-bottom: 8px; }
.cat-nav a { text-decoration: none; padding: 8px 10px; border-left: 3px solid transparent; font-weight: 600; color: var(--muted); }
.cat-nav a:hover { color: var(--ink); }
.cat-nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); background: var(--surface); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.item { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item .plate { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.item-body { padding: 14px 16px 16px; display: grid; gap: 6px; grid-template-rows: auto 1fr auto; }
.item-body h3 { font-size: 1.3rem; }
.item-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.item-body .enq { justify-self: start; margin-top: 8px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.group-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.group-nav a:hover { border-color: var(--accent); color: var(--accent); }
.group { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 96px); }
.group + .group { margin-top: 44px; }
.group-title {
  font-size: 1.8rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
}
.group-note { margin: -4px 0 16px; padding: 12px 16px; background: var(--accent-soft); border-radius: var(--radius); max-width: 70ch; }
.group-title span { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.also { margin-top: 40px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.also h2 { font-size: 1.8rem; margin-bottom: 14px; }
.also ul { margin: 0; padding: 0; list-style: none; columns: 3 200px; column-gap: 28px; }
.also li { padding: 5px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.cat-foot { margin-top: 40px; padding: 24px; background: var(--accent-soft); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cat-foot p { max-width: 52ch; }

/* contact */
.offices { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.office { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.office.main { border-top-color: var(--red); }
.office dl { margin: 0; display: grid; gap: 14px; }
.office dt { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.office dd { margin: 0; font-size: 1.1rem; }
.office .tel { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; user-select: all; }
.office.pending dd { color: var(--muted); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--band-ink); padding-block: 48px 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; color: var(--band-muted); font-family: var(--f-mono); font-weight: 500; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { color: var(--band-hi); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; color: var(--band-muted); }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.88rem; color: var(--band-muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; max-height: none; overflow: visible; }
  .cat-nav .label { width: 100%; margin-bottom: 0; }
  .cat-nav a { border-left: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font-size: 0.92rem; }
  .cat-nav a[aria-current="page"] { border-color: var(--accent); }
  .offices { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .catalogue a { grid-template-columns: 34px 84px minmax(0, 1fr); gap: 12px; }
  .cat-go { display: none; }
  .cat-name { font-size: 1.35rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 6px 8px; }
}
