/* ITS — Industrial Trade Supplies. Charcoal + safety-yellow + cream. Trade counter feel. */
:root {
  --bg: #f5f3ee;
  --bg-soft: #ebe7dc;
  --bg-dark: #1f1f1f;
  --bg-darker: #141414;
  --line: rgba(31, 31, 31, 0.10);
  --charcoal: #1f1f1f;
  --charcoal-2: #333;
  --yellow: #f5c218;
  --yellow-2: #d9a90e;
  --orange: #e85d1e;
  --text: #1f1f1f;
  --text-2: #4a4a4a;
  --text-dim: #757575;
  --text-on-dark: #f5f3ee;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --container: 1240px;
  --r: 4px;
  --r-lg: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.accent { color: var(--orange); }

.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px; padding: 14px 28px; background: var(--charcoal); color: var(--text-on-dark); border-bottom: 4px solid var(--yellow); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-pill { display: inline-block; padding: 6px 12px; background: var(--yellow); color: var(--charcoal); font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; border-radius: var(--r); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 14px; color: var(--text-on-dark); letter-spacing: 0.01em; }
.brand-loc { font-family: var(--mono); font-size: 11px; color: rgba(245,243,238,0.6); margin-top: 2px; }
.nav-primary { display: none; gap: 24px; font-size: 14px; }
.nav-primary a { color: rgba(245,243,238,0.8); font-weight: 500; transition: color .2s; }
.nav-primary a:hover { color: var(--yellow); }
.nav-primary .nav-cta { padding: 9px 18px; background: var(--yellow); color: var(--charcoal); border-radius: var(--r); font-weight: 700; transition: background .2s; }
.nav-primary .nav-cta:hover { background: var(--orange); color: white; }
.nav-call { display: none; padding: 9px 16px; background: var(--orange); color: white; border-radius: var(--r); font-weight: 700; font-family: var(--mono); font-size: 14px; }
.nav-call:hover { background: #d8501a; }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: 0; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-on-dark); }
.mobile-menu { position: fixed; top: 76px; left: 0; right: 0; z-index: 25; display: flex; flex-direction: column; background: var(--charcoal); border-bottom: 4px solid var(--yellow); padding: 12px 28px; color: var(--text-on-dark); }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid rgba(245,243,238,0.15); color: var(--text-on-dark); }
.mobile-menu .mobile-cta { color: var(--yellow); }
@media (min-width: 980px) { .nav-primary { display: flex; } .nav-call { display: inline-flex; } .nav-toggle { display: none; } .mobile-menu { display: none !important; } }

.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,31,31,0.55) 0%, rgba(31,31,31,0.92) 100%); }
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 80px 28px 56px; width: 100%; color: var(--text-on-dark); }
.hero-eyebrow { display: inline-block; padding: 6px 14px; background: var(--yellow); color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; margin: 0 0 28px; font-weight: 700; font-family: var(--mono); border-radius: var(--r); }
.hero-title { font-family: var(--sans); font-size: clamp(48px, 8vw, 108px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 28px; color: var(--text-on-dark); text-transform: uppercase; }
.hero-sub { max-width: 660px; font-size: clamp(16px, 1.5vw, 19px); color: rgba(245,243,238,0.85); margin: 0 0 36px; line-height: 1.6; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.cta-primary, .cta-ghost { display: inline-flex; align-items: center; padding: 14px 28px; border-radius: var(--r); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; transition: background .15s, color .15s, transform .15s; font-family: var(--mono); }
.cta-primary { background: var(--yellow); color: var(--charcoal); }
.cta-primary:hover { background: var(--orange); color: white; transform: translateY(-1px); }
.cta-ghost { color: var(--text-on-dark); border: 2px solid rgba(245,243,238,0.4); }
.cta-ghost:hover { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.hero-stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-top: 32px; border-top: 1px solid rgba(245,243,238,0.2); max-width: 760px; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { color: var(--yellow); font-weight: 700; font-size: 20px; font-family: var(--mono); }
.hero-stats span { font-size: 12px; color: rgba(245,243,238,0.6); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }

.section-head { max-width: 800px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow { display: inline-block; padding: 5px 12px; background: var(--charcoal); color: var(--yellow); text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; margin: 0 0 16px; font-weight: 700; font-family: var(--mono); border-radius: var(--r); }
.section-title { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 4.5vw, 56px); line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 18px; color: var(--text); text-transform: uppercase; }
.section-blurb { font-size: 17px; color: var(--text-2); margin: 0; line-height: 1.55; }
.lede { font-size: 19px; color: var(--text); line-height: 1.6; font-weight: 400; }
.lede a { color: var(--orange); border-bottom: 1px solid var(--orange); }

.categories { padding: clamp(72px, 9vw, 120px) 28px; max-width: var(--container); margin: 0 auto; }
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cat { padding: 28px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.cat:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,31,31,0.10); }
.cat-num { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--yellow); background: var(--charcoal); padding: 4px 10px; border-radius: var(--r); display: inline-block; margin: 0 0 16px; letter-spacing: 0.08em; }
.cat h3 { font-weight: 800; font-size: 18px; margin: 0 0 10px; color: var(--charcoal); letter-spacing: -0.01em; text-transform: uppercase; }
.cat p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.55; }

.brands { padding: clamp(72px, 9vw, 120px) 28px; background: var(--charcoal); color: var(--text-on-dark); }
.brands .section-eyebrow { background: var(--yellow); color: var(--charcoal); }
.brands .section-title { color: var(--text-on-dark); }
.brands-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.brands p { color: rgba(245,243,238,0.85); }
.brands .lede a { color: var(--yellow); border-color: var(--yellow); }

.counter { padding: clamp(72px, 9vw, 120px) 28px; max-width: var(--container); margin: 0 auto; }
.counter-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.counter-card { padding: 32px 28px; background: var(--bg-soft); border-radius: var(--r-lg); border-left: 4px solid var(--orange); transition: transform .2s, border-color .2s; }
.counter-card:hover { transform: translateY(-3px); border-color: var(--yellow); }
.counter-num { font-family: var(--mono); font-weight: 700; font-size: 32px; color: var(--orange); margin: 0 0 12px; line-height: 1; }
.counter-card h3 { font-weight: 800; font-size: 22px; margin: 0 0 12px; color: var(--charcoal); letter-spacing: -0.01em; text-transform: uppercase; }
.counter-card p { color: var(--text-2); font-size: 15px; margin: 0; line-height: 1.6; }
.counter-card a { color: var(--orange); border-bottom: 1px solid var(--orange); }

.sister { padding: clamp(72px, 9vw, 120px) 28px; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sister-inner { max-width: var(--container); margin: 0 auto; display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sister-inner { grid-template-columns: 1.6fr 1fr; gap: 72px; } }
.sister-text .section-title { margin-top: 8px; }
.sister-card { padding: 32px; background: var(--charcoal); color: var(--text-on-dark); border-radius: var(--r-lg); text-align: center; }
.aside-eyebrow { display: inline-block; padding: 4px 10px; background: var(--yellow); color: var(--charcoal); font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; border-radius: var(--r); margin: 0 0 16px; }
.aside-name { font-weight: 800; font-size: 22px; margin: 0 0 4px; color: var(--text-on-dark); letter-spacing: -0.01em; }
.aside-blurb { color: rgba(245,243,238,0.7); font-size: 14px; margin: 0 0 18px; }
.aside-phone { margin: 0; font-family: var(--mono); }
.aside-phone a { color: var(--yellow); font-size: 18px; font-weight: 700; }

.contact-strip { padding: clamp(72px, 9vw, 120px) 28px; background: var(--charcoal); color: var(--text-on-dark); text-align: center; }
.contact-strip .section-eyebrow { background: var(--yellow); color: var(--charcoal); }
.contact-strip-inner { max-width: 760px; margin: 0 auto; }
.contact-strip-title { font-family: var(--sans); font-weight: 800; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.0; letter-spacing: -0.025em; margin: 16px 0 18px; color: var(--text-on-dark); text-transform: uppercase; }
.contact-strip-blurb { font-size: 17px; color: rgba(245,243,238,0.82); margin: 0 0 32px; }
.contact-strip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { padding: 56px 28px 24px; background: var(--bg-darker); color: var(--text-on-dark); }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-pill { display: inline-block; padding: 6px 12px; background: var(--yellow); color: var(--charcoal); font-family: var(--mono); font-weight: 700; font-size: 16px; border-radius: var(--r); margin: 0 0 14px; }
.footer-name { font-weight: 700; font-size: 17px; margin: 0 0 8px; color: var(--text-on-dark); }
.footer-blurb { font-size: 14px; color: rgba(245,243,238,0.6); margin: 0; line-height: 1.55; }
.footer-eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; color: var(--yellow); margin: 0 0 14px; font-weight: 700; font-family: var(--mono); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col li, .footer-col a { color: rgba(245,243,238,0.78); transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-base { max-width: var(--container); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(245,243,238,0.15); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: rgba(245,243,238,0.55); }
.footer-fineprint a { color: var(--yellow); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 700px) {
  .topbar { padding: 12px 18px; gap: 12px; grid-template-columns: auto 1fr auto; }
  .nav-call { display: none; }
  .hero-inner { padding: 56px 18px 40px; }
  .categories, .brands, .counter, .sister, .contact-strip, .footer { padding-left: 18px; padding-right: 18px; }
  .footer-base { flex-direction: column; gap: 10px; }
}

/* Fix: hidden attribute must override display:flex */
.mobile-menu[hidden] { display: none !important; }
