/* ==========================================================================
   WSG CONCEPT BLOCK KIT
   Shared stylesheet for client redesign concepts.

   TO RESKIN FOR A NEW CLIENT: change only the --brand block below.
   Everything else stays. That is the whole design system.
   ========================================================================== */

:root {
  /* ---- CLIENT BRAND (the only block you change) ---- */
  --accent:        #00A8BD;
  --accent-dark:   #00808F;
  --accent-ink:    #FFFFFF;   /* text that sits on the accent */
  --ink:           #111315;   /* near black, body text + dark panels */
  --ink-soft:      #4A5056;
  --paper:         #FFFFFF;
  --paper-alt:     #F2F3F4;
  --line:          #DDE0E2;
  --font-display:  'Archivo', system-ui, sans-serif;
  --font-body:     'Barlow', system-ui, sans-serif;
  --radius:        2px;        /* industrial: near square. Soften per client. */

  /* ---- STRUCTURE (leave alone) ---- */
  --wrap: 1240px;
  --gut: 24px;
  --sp-xs: 8px;
  --sp-s: 16px;
  --sp-m: 32px;
  --sp-l: 56px;
  --sp-xl: 88px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-s);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p  { margin: 0 0 var(--sp-s); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sp-xl); }
.section--tight { padding-block: var(--sp-l); }
.section--dark { background: var(--ink); color: #fff; }
.section--alt  { background: var(--paper-alt); }

/* ---- Eyebrow label: small uppercase kicker above a heading ---- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--sp-xs);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: "";
  flex: 0 0 40px;
  height: 2px;
  background: var(--accent);
}
.section--dark .eyebrow { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  min-height: 52px;          /* comfortable thumb target */
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Site header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  padding-block: 14px;
}
.site-head__logo img { max-height: 54px; width: auto; }
.site-head__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-head__nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-head__nav a:hover, .site-head__nav a[aria-current] { border-bottom-color: var(--accent); }
.site-head__cta { display: flex; gap: 10px; }
.site-head__cta .btn { padding: 11px 18px; min-height: 44px; font-size: 0.9rem; }

.navtoggle {
  display: none;
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  border: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---- Utility bar above header ---- */
.utility {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.utility .wrap { display: flex; gap: var(--sp-m); align-items: center; padding-block: 9px; flex-wrap: wrap; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--accent); }
.utility__spacer { margin-left: auto; }

/* ---- Hero ---- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,19,21,.95) 0%, rgba(17,19,21,.72) 48%, rgba(17,19,21,.3) 100%);
}
.hero__inner { position: relative; padding-block: clamp(64px, 11vw, 130px); }
.hero__copy { max-width: 42rem; }
.hero h1 { color: #fff; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #D4D8DB; max-width: 36rem; }
.hero__rule { width: 72px; height: 5px; background: var(--accent); margin-bottom: var(--sp-m); }

/* ---- Trust strip ---- */
.trust { position: relative; border-top: 1px solid rgba(255,255,255,.14); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.trust__item { padding: 22px 0; }
.trust__item + .trust__item { border-left: 1px solid rgba(255,255,255,.14); padding-left: var(--sp-m); }
.trust__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.trust__label { font-size: 0.9rem; color: #B9BFC4; margin-top: 6px; }

/* ---- Section heading block ---- */
.shead { max-width: 46rem; margin-bottom: var(--sp-l); }
.shead p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }
.section--dark .shead p { color: #B9BFC4; }
.shead--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-m); max-width: none; }

/* ---- Machine / product cards ---- */
.cards {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.section--dark .cards { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }

.card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background .15s ease;
}
.card:hover { background: var(--paper-alt); }
.card:hover .card__title { color: var(--accent-dark); }
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  display: grid;
  place-items: center;
  padding: var(--sp-s);
  overflow: hidden;
}
.card__media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.card__body { padding: var(--sp-s) var(--sp-s) 22px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin: 0 0 8px; }
.card__desc { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 var(--sp-s); }
.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Filter bar ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-m);
  padding-bottom: var(--sp-m);
  border-bottom: 1px solid var(--line);
}
.filters button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters__count { margin-left: auto; align-self: center; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Spec table ---- */
.specs { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-family: var(--font-display); font-weight: 700; width: 46%; }
.specs td { color: var(--ink-soft); }

/* ---- Feature list ---- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-m); }
.features > li { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-s); }
.features__mark {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  border-radius: var(--radius);
}
.features h3 { margin-bottom: 4px; }
.features p { color: var(--ink-soft); margin: 0; }
.section--dark .features p { color: #B9BFC4; }

/* ---- Split media + copy ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: center; }
.split--narrow { gap: var(--sp-l); }
.split__media img { width: 100%; border-radius: var(--radius); }

/* ---- Quotes ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-m); }
.quote { border-left: 4px solid var(--accent); padding-left: var(--sp-s); }
.quote p { font-size: 1.1rem; font-weight: 500; }
.quote cite { font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.quote span { display: block; font-size: 0.86rem; color: var(--ink-soft); font-weight: 400; }
.section--dark .quote span { color: #B9BFC4; }

/* ---- Enquiry panel ---- */
.enquire { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
.form-grid { display: grid; gap: 14px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ---- Contact band ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-m); }
.contact-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { color: var(--accent); }

/* ---- Footer ---- */
.site-foot { background: #0A0B0C; color: #9AA1A7; font-size: 0.92rem; padding-block: var(--sp-l) var(--sp-m); }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-l); margin-bottom: var(--sp-l); }
.site-foot h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot__base { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-s); display: flex; justify-content: space-between; gap: var(--sp-s); flex-wrap: wrap; font-size: 0.85rem; }

/* ---- Sticky mobile call bar (the thing old sites never have) ---- */
.callbar { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .split, .enquire { grid-template-columns: 1fr; gap: var(--sp-l); }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --sp-xl: 56px; --sp-l: 40px; --gut: 18px; }
  .site-head__nav { display: none; }
  .site-head__cta { display: none; }
  .navtoggle { display: block; }
  .site-head__nav.is-open {
    display: grid;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-s) var(--gut) var(--sp-m);
    gap: 0;
    margin: 0;
  }
  .site-head__nav.is-open a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .utility .wrap { justify-content: center; gap: var(--sp-s); font-size: 0.8rem; }
  .utility__spacer { margin-left: 0; }
  .utility__hide-sm { display: none; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-left: 0; }
  .shead--split { display: block; }
  .shead--split .btn { margin-top: var(--sp-s); }
  .hero__scrim { background: linear-gradient(180deg, rgba(17,19,21,.72) 0%, rgba(17,19,21,.93) 70%); }

  /* Sticky call + email bar, thumb height, always reachable */
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 58px;
    font-family: var(--font-display);
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
  }
  .callbar a:first-child { background: var(--accent); color: var(--accent-ink); }
  .callbar a:last-child { background: var(--ink); color: #fff; }
  body { padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .filters__count { width: 100%; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
