/* Prime Max — industrial catalogue: black/yellow brand bands on warm paper, one hazard-stripe accent */
:root {
  --ink: #151515;
  --ink-2: #2a2a28;
  --paper: #ffffff;
  --stone: #f4f2ec;
  --line: #dedad0;
  --muted: #55524a;
  --yellow: #ffce0f;
  --yellow-ink: #7a6000;
  --on-dark: #d9d6cf;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --radius: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow-ink);
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--yellow); }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: #ffd93d; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn-ghost { border-color: #fff; color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; color: var(--ink); }

/* Header */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--yellow); }
.topbar .links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link {
  text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: var(--radius); color: var(--ink-2);
}
.nav a.link:hover { background: var(--stone); }
.nav a.link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 8px; }
  .nav a.link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 16px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .logo img { height: 44px; }
  .topbar .hide-sm { display: none; }
}

/* Sections */
section { padding-block: 88px; }
@media (max-width: 700px) { section { padding-block: 60px; } }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; max-width: 18ch; }
.section-head p { max-width: 46ch; color: var(--muted); }
.bg-stone { background: var(--stone); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-yellow { background: var(--yellow); color: var(--ink); }

/* Hero */
.hero { padding-block: 72px 80px; background: var(--stone); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin: 14px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4 / 3.8; object-fit: cover; border-radius: var(--radius); }
.hero-tag {
  position: absolute; left: -20px; bottom: 28px; background: var(--ink); color: #fff;
  padding: 16px 20px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px;
  border-left: 6px solid var(--yellow);
}
.hero-tag strong { font-family: var(--font-display); font-size: 26px; color: var(--yellow); }
.hero-tag span { font-size: 14px; color: var(--on-dark); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-tag { left: 12px; bottom: 12px; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: #fff; padding-block: 72px 64px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-top: 12px; max-width: 20ch; }
.page-hero p { color: var(--on-dark); margin-top: 18px; max-width: 60ch; font-size: 19px; }

/* Stats */
.stats { padding-block: 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 30px 24px; border-left: 1px solid #333; display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--yellow); }
.stat span { color: var(--on-dark); font-size: 15px; }
@media (max-width: 800px) {
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 16px; }
  .stat strong { font-size: 26px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid #333; }
}

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--ink); transform: translateY(-2px); }
.cat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 4px solid var(--yellow); }
.cat .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.cat h3 { font-size: 19px; font-weight: 800; }
.cat p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cat .count { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--yellow-ink); font-weight: 500; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15.5px; }
.on-dark .step { border-top-color: #444; }
.on-dark .step p { color: var(--on-dark); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Industries */
.industries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.ind { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ind svg { width: 28px; height: 28px; flex-shrink: 0; }
.industries .photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) { .industries { grid-template-columns: minmax(0, 1fr); } .industries .photo img { min-height: 220px; max-height: 300px; } }
@media (max-width: 420px) { .ind-grid { grid-template-columns: minmax(0, 1fr); } }

/* ToolSouk band */
.ts-band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ts-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 16px 0 16px; }
.ts-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ts-band li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.ts-band li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.ts-band .logo-box { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ts-band .logo-box img { height: 60px; width: auto; }
@media (max-width: 900px) { .ts-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.brand { height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-2); background: var(--paper); text-align: center; padding: 0 6px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* CTA band with the one hazard-stripe accent */
.cta-band { position: relative; padding-block: 72px; }
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px);
}
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; max-width: 22ch; }
.cta-band p { color: var(--on-dark); margin-top: 12px; max-width: 52ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Two-column text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3.2; object-fit: cover; }
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.prose p { color: var(--ink-2); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar { border-top: 4px solid var(--yellow); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { font-size: 22px; font-weight: 800; }
.pillar p { color: var(--muted); }
@media (max-width: 800px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 32px; height: 32px; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--on-dark); font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; padding-right: 32px; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Product catalogue rows */
.catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cat-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-row .thumb { background: var(--ink); display: flex; align-items: center; justify-content: center; }
.cat-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-row .thumb svg { width: 52px; height: 52px; }
.cat-row .body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.cat-row h2 { font-size: 21px; font-weight: 800; }
.cat-row p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.cat-row .meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-row .meta .mono { font-size: 13px; color: var(--yellow-ink); }
.cat-row .meta a { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.cat-row .meta a:hover { border-bottom-color: var(--ink); }
@media (max-width: 960px) { .catalogue { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .cat-row { grid-template-columns: minmax(0, 1fr); } .cat-row .thumb { height: 150px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.ccard svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.ccard h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.ccard p, .ccard a { color: var(--ink-2); font-size: 16px; }
.ccard a { text-decoration: none; border-bottom: 1px solid var(--line); }
.ccard a:hover { border-bottom-color: var(--ink); }
form.quote { background: var(--stone); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
form.quote h2 { font-size: 28px; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c9c4b8; border-radius: var(--radius); background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; padding: 12px 14px; border-radius: var(--radius); }
.form-status.ok { background: #e7f3e3; color: #1e4d16; }
.form-status.err { background: #fbe9e6; color: #7a1f12; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .row-2 { grid-template-columns: minmax(0, 1fr); } form.quote { padding: 22px 16px; } }

/* Footer */
.site-footer { background: #0e0e0e; color: var(--on-dark); padding-block: 56px 28px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.site-footer h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: var(--yellow); }
.site-footer .brandbox { background: #fff; display: inline-flex; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.site-footer .brandbox img { height: 46px; width: auto; }
.site-footer .legal { border-top: 1px solid #2c2c2c; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #a8a49b; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: #1f8f4e; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #17743f; }
.page-hero .eyebrow { color: var(--yellow); }

.cat-row .thumb.cut { background: #ffffff; border-right: 1px solid var(--line); padding: 10px; }
.cat-row .thumb.cut img { object-fit: contain; }
