/* INDUSTRIAL PRECISION CLEAN - badgerbanterclover.sbs */

:root {
  /* Palette - strictly no blue */
  --bg-base: #161a1d;
  --bg-surface: #22262a;
  --text-primary: #eef2e1;
  --text-muted: #9aa0a6;
  --accent: #ff6f59;
  --accent-hover: #e05e4a;
  --border-line: #3a3f44;

  /* Typography */
  --font-head: 'Arial Narrow', Arial, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
  
  /* Layout Metrics */
  --space-unit: 8px;
  --content-max: 1200px;
  
  /* Motion - soft clip-path reveal for images, fade for text */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 500ms;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0; /* Square edges strictly enforced */
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography Constraints */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: calc(var(--space-unit) * 3);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p { margin-bottom: calc(var(--space-unit) * 3); max-width: 72ch; }

a {
  color: var(--text-primary);
  text-decoration: none;
}

/* Links & Buttons (Main solid button, others hover-underline) */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #000;
  padding: 16px 32px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-main:hover, .btn-main:focus-visible {
  background-color: var(--text-primary);
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.link-action {
  position: relative;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 2px;
  display: inline-block;
}
.link-action::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}
.link-action:hover::after, .link-action:focus-visible::after {
  width: 100%;
}
.link-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Header & Topbar */
.topbar {
  background-color: var(--accent);
  color: #000;
  text-align: center;
  padding: 4px 16px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.site-header {
  border-bottom: 1px solid var(--border-line);
  background-color: var(--bg-base);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.brand-accent {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Structural Classes */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px;
}

.page-header {
  border-bottom: 1px solid var(--border-line);
  padding: 64px 24px 32px;
  background-color: var(--bg-surface);
}

/* Alternating Split Pane Layout */
.split-pane {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-line);
}
@media (min-width: 769px) {
  .split-pane {
    flex-direction: row;
    align-items: stretch;
  }
  .split-pane:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.split-content, .split-visual {
  flex: 1;
  padding: 48px 24px;
}
@media (min-width: 769px) {
  .split-content {
    padding: 80px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.split-visual {
  background-color: var(--bg-surface);
  position: relative;
  min-height: 400px;
}

.split-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CSS Grid for Equipment Specs */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.spec-card {
  background-color: var(--bg-surface);
  padding: 24px;
  border-left: 4px solid var(--accent);
}

.spec-title {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.spec-data {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Definition Lists */
dl.protocol-list {
  margin-top: 32px;
}
dl.protocol-list dt {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent);
  margin-top: 24px;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 8px;
}
dl.protocol-list dd {
  margin-top: 12px;
  color: var(--text-muted);
}

/* Translucent Solid Overlays */
.overlay-card {
  background: rgba(34, 38, 42, 0.95); /* var(--bg-surface) slightly transparent */
  padding: 32px;
  position: relative;
  z-index: 2;
  margin-top: -64px;
  max-width: 90%;
}
@media (min-width: 769px) {
  .overlay-card {
    margin-top: 0;
    margin-left: -64px;
    align-self: center;
  }
  .split-pane:nth-child(even) .overlay-card {
    margin-left: 0;
    margin-right: -64px;
  }
}

/* Round Badges / Avatars (The only exception to square corners) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--border-line);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
}

/* Forms */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: var(--font-body);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Table */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}
table.data-table th, table.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-line);
}
table.data-table th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-line);
  padding: 64px 24px;
  margin-top: 64px;
}
.footer-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.footer-col-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.footer-link {
  display: block;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.footer-link:hover {
  color: var(--accent);
}
.footer-meta {
  max-width: var(--content-max);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-line);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Motion Reveal Classes */
.reveal-text {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-image {
  clip-path: inset(10% 0 10% 0);
  transition: clip-path 0.8s var(--ease);
}
.reveal-image.visible {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-text, .reveal-image, .link-action::after, .nav-link::after {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: inset(0) !important;
  }
}

/* Mobile Nav */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-line);
    z-index: 100;
  }
  .main-nav.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .site-header {
    position: relative;
  }
}