/* BlueCollar Systems — Static CSS (replaces Tailwind CDN) */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: inherit; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; color: inherit; }
ul[role="list"] { list-style-position: inside; }

/* ─── Brand tokens ─── */
.bg-industrial { background-color: #1a202c; }
.accent-steel { color: #63b3ed; }
.btn-safety { background-color: #ed8936; }
.btn-safety:hover { background-color: #dd6b20; }

/* ─── Layout utilities ─── */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── Spacing ─── */
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-6 { margin-top: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* ─── Typography ─── */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-8xl { font-size: 6rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* ─── Colors ─── */
.text-white { color: #fff; }
.text-gray-100 { color: #f7fafc; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-blue-400 { color: #63b3ed; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5); }
.bg-gray-900\/90 { background-color: rgba(17, 24, 39, 0.9); }

/* ─── Borders & Rounded ─── */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top: 1px solid; border-bottom: 1px solid; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* ─── Effects ─── */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.transition { transition-property: color, background-color, border-color; transition-duration: 200ms; }
.opacity-75 { opacity: 0.75; }
.cursor-not-allowed { cursor: not-allowed; }

/* ─── Position & Z-index ─── */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.relative { position: relative; }

/* ─── Accessibility ─── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.focus\:not-sr-only:focus { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.focus\:absolute:focus { position: absolute; }
.focus\:top-4:focus { top: 1rem; }
.focus\:left-4:focus { left: 1rem; }
.focus\:bg-blue-600:focus { background-color: #2563eb; }
.focus\:text-white:focus { color: #fff; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:rounded:focus { border-radius: 0.25rem; }
.focus\:z-50:focus { z-index: 50; }
.focus\:outline-none:focus { outline: none; }

/* ─── Sizing ─── */
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }

/* ─── Hover ─── */
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-gray-600:hover { background-color: #4b5563; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:border-blue-400:hover { border-color: #63b3ed; }
.group:hover .group-hover\:text-blue-400 { color: #63b3ed; }

/* ─── Grid ─── */
.grid { display: grid; }

/* ─── Responsive: md (768px+) ─── */
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── max-md (below 768px) — mobile nav ─── */
@media (max-width: 767px) {
  .max-md\:absolute { position: absolute; }
  .max-md\:top-full { top: 100%; }
  .max-md\:left-0 { left: 0; }
  .max-md\:right-0 { right: 0; }
  .max-md\:bg-gray-900 { background-color: #111827; }
  .max-md\:border-b { border-bottom: 1px solid; }
  .max-md\:border-gray-800 { border-color: #1f2937; }
  .max-md\:flex-col { flex-direction: column; }
  .max-md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .max-md\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .max-md\:gap-4 { gap: 1rem; }
}

.pb-20 { padding-bottom: 5rem; }
.footer-version { opacity: 0.5; }
.text-left { text-align: left; }
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

/* ─── Hidden utility ─── */
.hidden { display: none !important; }

/* ─── Fill-current for SVGs ─── */
.fill-current { fill: currentColor; }

/* ─── Mobile optimizations (below 640px) ─── */
@media (max-width: 639px) {
  /* Reduce oversized headings on small screens */
  .text-4xl { font-size: 1.75rem; line-height: 2.25rem; }
  .text-3xl { font-size: 1.5rem; line-height: 2rem; }
  .text-2xl { font-size: 1.25rem; line-height: 1.75rem; }

  /* Tighten section padding on mobile */
  .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .py-24 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .p-10 { padding: 1.5rem; }
  .p-8 { padding: 1.25rem; }
  .mb-12 { margin-bottom: 2rem; }

  /* Prevent horizontal overflow from wide buttons */
  .flex-wrap { flex-wrap: wrap; }
  .gap-4 { gap: 0.75rem; }

  /* Stack grid cards on narrow screens */
  .grid { gap: 1rem; }

  /* Ensure hero text doesn't overflow */
  header h1 { font-size: 1.75rem; line-height: 2.25rem; }
}
