/*
  Fabrotic Unified Storefront & Corporate Platform (fabrotic.com)
  MECHRITE LLC dba Fabrotic · Oklahoma City, OK · 405-822-1322 · fabroticllc@gmail.com
  Hand-written HTML + CSS + vanilla JS. Zero external CDNs, trackers, or third-party scripts.
*/

:root {
  --bg: #121519;
  --bg-2: #181c22;
  --surface: #1e232b;
  --surface-2: #252b35;
  --text: #eef1f5;
  --muted: #aab4c2;
  --line: #323a46;
  --amber: #ffb000;
  --amber-text: #ffc44d;
  --green: #2ecc71;
  --cyan: #38bdf8;
  --danger: #ff6b6b;
  --btn-text: #14171a;
  --focus: #8ab4ff;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, transparent 46%, var(--bg-2) 46%, var(--bg-2) 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--bg-2) 46%, var(--bg-2) 54%, transparent 54%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

img, svg { display: block; max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.85rem 1.1rem;
  background: var(--amber);
  color: var(--btn-text);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 21, 25, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 74px;
  padding: 0.5rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img { width: auto; height: 42px; }
.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
.header-nav a:hover { color: var(--amber-text); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  background: var(--amber);
  color: var(--btn-text);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 0 4px 0 #000;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #000; }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.button-lg { min-height: 56px; padding: 0.9rem 1.85rem; font-size: 1.12rem; }
.button-outline {
  background: var(--surface-2);
  color: var(--text);
  border: 2px solid var(--amber);
}

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  text-align: center;
}
.hero-logo {
  width: 100%;
  max-width: 960px;
  padding: clamp(0.75rem, 2.2vw, 1.5rem) clamp(0.75rem, 2.8vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.hero-logo img { width: 100%; height: auto; }
.hero-text { max-width: 840px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.badge-cyan { border-color: var(--cyan); color: #bae6fd; }
.badge-green { border-color: var(--green); color: #bbf7d0; }
.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.25);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}
h1 .by {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
}
.tagline {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.18rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: #fff;
}
.lede {
  margin: 0 auto 1.5rem;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.25rem;
}
.kpi-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
}
.kpi-box .k-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--amber-text);
}
.kpi-box .k-lbl {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- Hazard stripe divider ---------- */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 16px,
    #14171a 16px 32px
  );
}

/* ---------- Sections ---------- */
.sec { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.sec-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.sec-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--amber-text);
  margin-bottom: 0.35rem;
}
.sec-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.15;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- 13-Module Grid ---------- */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.mod-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.mod-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.mod-card.featured {
  border: 2px solid var(--amber);
  background: linear-gradient(145deg, #252015 0%, var(--surface) 55%);
}
.mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.mod-num {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--amber-text);
  border: 1px solid var(--line);
}
.mod-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
}
.mod-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: #fff;
}
.mod-card p {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.mod-link {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--amber-text);
}

/* ---------- Interactive Role & Licensing Switcher ---------- */
.role-switcher {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
}
.role-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.role-tab {
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.role-tab strong { display: block; font-size: 0.95rem; color: #fff; }
.role-tab span { font-size: 0.78rem; color: var(--muted); }
.role-tab.active {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.14);
}
.role-panel {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
}
.role-panel.active { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.35rem; }
@media (max-width: 820px) {
  .role-panel.active { grid-template-columns: 1fr; }
}
.role-panel h3 { margin: 0 0 0.5rem; font-size: 1.28rem; color: var(--amber-text); }
.role-list { margin: 0.6rem 0 1rem; padding-left: 1.2rem; font-size: 0.92rem; color: var(--text); }
.role-list li { margin-bottom: 0.4rem; }
.firewall-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.88rem;
}
.fw-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.fw-open { background: rgba(46, 204, 113, 0.16); color: #6ee7b7; border: 1px solid #2ecc71; }
.fw-lock { background: rgba(255, 107, 107, 0.16); color: #fca5a5; border: 1px solid #ff6b6b; }

/* ---------- Field Services & Vo-Tech Grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1rem;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.svc-card h3 { margin: 0 0 0.45rem; font-size: 1.1rem; color: var(--amber-text); }
.svc-card p { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--muted); }
.svc-card ul { margin: 0; padding-left: 1.15rem; font-size: 0.86rem; color: var(--text); }
.svc-card li { margin-bottom: 0.3rem; }

/* ---------- Contact & Footer ---------- */
.contact-box {
  background: var(--surface);
  border: 2px solid var(--amber);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.site-footer {
  background: #0d0f12;
  color: var(--muted);
  border-top: 4px solid var(--amber);
  padding: 1.75rem 0;
  font-size: 0.9rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; padding: 0 .3em; border-radius: 4px; background: rgba(127,127,127,.15); }

.legal{padding:3rem 0;font-size:.95rem}.legal h3{margin-top:1rem}

/* Build 18: nav CTA keeps dark-on-amber text (WCAG AA) */
.header-nav a.button,
.header-nav a.button:hover,
.header-nav a.button:focus { color: var(--btn-text); }
