/* ==========================================================================
   AH TRADERS — B2B Marketing for Industrial Businesses
   Custom layer over the Tailwind CDN build. "Industrial Brutalist" system:
   concrete ground, ink + hi-vis orange, thick raw borders, hazard stripes,
   stencil mono labels, oversized Anton headlines. No rounded corners.
   ========================================================================== */

:root {
  --concrete: #E5E3DC;
  --card: #F2F0E9;
  --ink: #141414;
  --hv: #FF5C00;
  --hvDeep: #E24E00;
  --steel: #6B6A64;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { border-color: #141414; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: "Anton", Impact, system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

::selection { background: var(--hv); color: var(--concrete); }

/* Skip link ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--hv);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border: 3px solid var(--ink);
}
.skip-link:focus { left: 16px; top: 16px; }

/* Stencil label ------------------------------------------------------------ */
.stencil {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.stencil--hv { color: var(--hv); }
.stencil--muted { color: var(--steel); }

/* Hazard stripe ---------------------------------------------------------- */
.hazard {
  background-image: repeating-linear-gradient(
    -45deg, var(--ink) 0 12px, var(--hv) 12px 24px
  );
}

/* Slab card ------------------------------------------------------------- */
.slab {
  position: relative;
  background: var(--card);
  border: 3px solid var(--ink);
}
/* bolt-head detail, top-right */
.slab--bolt::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  background: var(--hv);
  border: 3px solid var(--ink);
}

.rule-ink { height: 3px; background: var(--ink); }
.rule-hv { height: 3px; background: var(--hv); }

/* ==========================================================================
   Buttons — rectangular, hard offset shadow on hover
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--concrete);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn__arrow { transition: transform 0.16s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 0 var(--ink); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--hv { background: var(--hv); color: var(--ink); }
.btn--hv:hover { box-shadow: 5px 5px 0 0 var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--concrete); }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marq { overflow: hidden; background: var(--ink); }
.marq-track {
  display: flex;
  width: max-content;
  animation: marq 30s linear infinite;
}
.marq:hover .marq-track { animation-play-state: paused; }
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-slam {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-slam.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   FAQ accordion — boxed + / x toggle
   ========================================================================== */

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-item[data-state="open"] .faq-body { max-height: 26rem; }

.faq-box {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  border: 3px solid var(--ink);
  background: var(--card);
  transition: transform 0.35s var(--ease), background-color 0.2s var(--ease);
}
.faq-box::before,
.faq-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--hv);
}
.faq-box::before { width: 14px; height: 3px; transform: translate(-50%, -50%); }
.faq-box::after { width: 3px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[data-state="open"] .faq-box { transform: rotate(45deg); background: var(--hv); }
.faq-item[data-state="open"] .faq-box::before,
.faq-item[data-state="open"] .faq-box::after { background: var(--ink); }
.faq-item[data-state="open"] .faq-q { color: var(--hv); }

/* ==========================================================================
   Forms (ink contact band)
   ========================================================================== */

.field {
  width: 100%;
  background: rgba(229, 227, 220, 0.06);
  border: 3px solid rgba(229, 227, 220, 0.4);
  color: var(--concrete);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field::placeholder { color: rgba(229, 227, 220, 0.4); }
.field:focus {
  border-color: var(--hv);
  background: rgba(229, 227, 220, 0.1);
}
.field option { color: var(--ink); }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--hv);
  transform: translateY(-40%);
  pointer-events: none;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--concrete);
  border: 3px solid var(--hv);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 15px 20px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.toast.is-shown { transform: none; opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-slam { opacity: 1; transform: none; transition: none; }
  .marq-track { animation: none; }
  .btn, .btn__arrow, .faq-box { transition: none; }
  .btn:hover { transform: none; box-shadow: none; }
}
