/* ==========================================================================
   Wijes Logistics — core design system
   Industrial-editorial: asphalt darks, bone paper, one gold accent.
   Expanded Archivo for signage-style headings, Plex Sans for prose,
   Plex Mono for every number a dispatcher would read off a screen.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  /* Surfaces — warm graphite, never pure black */
  --ink:      #0d0e11;
  --ink-2:    #131519;
  --ink-3:    #1a1d23;
  --ink-4:    #23272f;
  --hair:     rgba(255,255,255,.085);
  --hair-2:   rgba(255,255,255,.17);

  /* Paper — warm bone for editorial breaks */
  --bone:     #f1ede4;
  --bone-2:   #e4ded1;
  --bone-ink: #1b1c1a;

  /* Accent — the only saturated colour in the system */
  --gold:     #d4a94f;
  --gold-lt:  #ecd08a;
  --gold-dk:  #8d7028;
  --gold-wash: rgba(212,169,79,.09);

  /* Text */
  --text:     #ece9e3;
  --steel:    #97a0ae;
  --dim:      #626b79;

  /* Signals */
  --go:       #4bb583;
  --warn:     #d99b3c;
  --stop:     #d9584f;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans:    'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell:   1240px;
  --gut:     clamp(20px, 5vw, 64px);
  --r:       3px;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed grain + vignette. Never on a scrolling container. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; font: 600 13px/1 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

/* ── Type ───────────────────────────────────────────────────────────── */

.d1, .d2, .d3, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.005em;
  font-variation-settings: 'wdth' 116;
  text-wrap: balance;
}

.d1 { font-size: clamp(46px, 8.2vw, 116px); }
.d2 { font-size: clamp(34px, 5.4vw, 70px); }
.d3 { font-size: clamp(24px, 3vw, 38px); }

.d1 .thin, .d2 .thin, .d3 .thin {
  font-weight: 300;
  font-variation-settings: 'wdth' 108;
  color: var(--steel);
}
.gold { color: var(--gold); }

/* Small uppercase mono labels — the connective tissue of the whole site */
.tag {
  font: 500 11px/1 var(--mono);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tag::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.tag.plain::before { display: none; }
.tag.muted { color: var(--dim); }

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--steel);
  font-weight: 300;
  max-width: 58ch;
}

.num { font-family: var(--mono); font-feature-settings: 'tnum' 1; }

/* ── Layout ─────────────────────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 84px); }

.paper {
  background: var(--bone);
  color: var(--bone-ink);
}
.paper .lede { color: #4b4d49; }
.paper .tag.muted { color: #8b8a83; }

.rule { height: 1px; background: var(--hair); border: 0; }
.paper .rule { background: rgba(27,28,26,.14); }

/* Hazard chevrons — used sparingly as a section marker */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(
    115deg,
    var(--gold-dk) 0 10px,
    transparent 10px 22px
  );
  opacity: .55;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #14150f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r);
  font: 600 12px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(212,169,79,.75); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn .arw { transition: transform .22s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--hair-2);
}
.btn--ghost:hover { --btn-fg: var(--gold); border-color: var(--gold); box-shadow: none; }

.paper .btn--ghost { --btn-fg: var(--bone-ink); border-color: rgba(27,28,26,.28); }
.paper .btn--ghost:hover { --btn-fg: var(--ink); background: rgba(27,28,26,.05); border-color: var(--bone-ink); }

.btn--block { width: 100%; }
.btn--lg { padding: 18px 32px; font-size: 13px; }

.linkline {
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212,169,79,.32);
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.linkline:hover { border-color: var(--gold); gap: 13px; }

/* ── Masthead ───────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(13,14,17,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.brand__mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  display: grid;
  place-items: center;
  color: #14150f;
  font: 800 16px/1 var(--display);
  font-variation-settings: 'wdth' 100;
  letter-spacing: .02em;
  transition: clip-path .3s var(--ease);
}
.brand:hover .brand__mark { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.brand__name {
  font: 800 17px/1 var(--display);
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
}
.brand__sub {
  display: block;
  margin-top: 4px;
  font: 500 9px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font: 400 13px/1 var(--sans);
  letter-spacing: .02em;
  color: var(--steel);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color .16s var(--ease);
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .26s var(--ease);
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current { color: var(--text); }
.nav a.is-current::after { transform: scaleX(1); }

.nav .btn { padding: 12px 20px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--hair-2);
  border-radius: var(--r);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--text); transition: transform .22s var(--ease), opacity .18s; }
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--hair);
    padding: 8px var(--gut) 26px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; padding: 16px; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.foot { background: var(--ink-2); border-top: 1px solid var(--hair); }
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-block: 64px 44px;
}
.foot h4 {
  font: 500 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.foot ul { list-style: none; display: grid; gap: 11px; }
.foot li a, .foot p a { color: var(--steel); text-decoration: none; font-size: 14px; transition: color .16s var(--ease); }
.foot li a:hover, .foot p a:hover { color: var(--gold); }
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--hair);
  font: 400 11px/1.7 var(--mono);
  letter-spacing: .05em;
  color: var(--dim);
}
.foot__creds { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.foot__creds span {
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--hair);
  padding: 7px 10px;
  border-radius: var(--r);
}
@media (max-width: 760px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}

/* ── Forms ──────────────────────────────────────────────────────────── */

.field { display: block; margin-bottom: 18px; }
.field > label, .field__label {
  display: block;
  font: 500 10px/1 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hair-2);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.field input.num-in { font-family: var(--mono); letter-spacing: .06em; }
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%2397a0ae' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink-2);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--stop); }
.field__hint { font: 400 11px/1.5 var(--mono); color: var(--dim); margin-top: 7px; letter-spacing: .04em; }
.field__err {
  display: none;
  font: 400 11px/1.5 var(--mono);
  color: var(--stop);
  margin-top: 7px;
  letter-spacing: .04em;
}
.field.is-bad .field__err { display: block; }
.field.is-bad .field__hint { display: none; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.notice {
  border: 1px solid;
  border-radius: var(--r);
  padding: 13px 15px;
  font-size: 13.5px;
  line-height: 1.55;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.notice--err  { border-color: rgba(217,88,79,.4);  background: rgba(217,88,79,.08);  color: #f0a9a3; }
.notice--warn { border-color: rgba(212,169,79,.34); background: var(--gold-wash);     color: var(--gold-lt); }
.notice--ok   { border-color: rgba(75,181,131,.36); background: rgba(75,181,131,.08); color: #8fdcb8; }
.notice__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: 7px; flex-shrink: 0; }

/* ── Reveal on scroll ───────────────────────────────────────────────── */

.rise { opacity: 0; transform: translateY(22px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }
