@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Archivo:wght@400;600;700&family=Space+Mono:wght@400&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #D4D4D4;
  background: #0A0A0A;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }

/* ===== Custom Properties ===== */
:root {
  --soot: #0A0A0A;
  --concrete: #1A1A1A;
  --smoke: #2A2A2A;
  --chalk: #D4D4D4;
  --bone: #E8E4DF;
  --safety-yellow: #D4A017;
  --hazard-orange: #E85D04;
  --rust: #8B3A2F;

  --display-family: 'Bebas Neue', Impact, sans-serif;
  --body-family: 'Archivo', Arial, sans-serif;
  --label-family: 'Space Mono', 'Courier New', monospace;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 128px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--safety-yellow);
  color: var(--soot);
  padding: var(--space-xs) var(--space-sm);
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { top: var(--space-sm); }

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--concrete);
  border-bottom: 1px solid var(--smoke);
  height: 72px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--display-family);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-transform: uppercase;
}

.navbar-logo span { color: var(--safety-yellow); }

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-family: var(--body-family);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--chalk);
  padding: 4px 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--safety-yellow);
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--safety-yellow);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--bone);
}

.nav-links a.active::after {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--chalk);
}

.hamburger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile menu */
@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--concrete);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-family: var(--display-family);
    font-size: 2rem;
    letter-spacing: 0.02em;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
  background: var(--soot);
  border-bottom: 3px solid var(--safety-yellow);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(212, 160, 23, 0.03) 40px,
      rgba(212, 160, 23, 0.03) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(212, 160, 23, 0.03) 40px,
      rgba(212, 160, 23, 0.03) 41px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-display {
  font-family: var(--display-family);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero-display .accent {
  color: var(--safety-yellow);
  display: block;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--chalk);
  max-width: 65ch;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* ===== Warning Bar ===== */
.warning-bar {
  background: var(--safety-yellow);
  color: var(--soot);
  padding: 24px var(--space-md);
  text-align: center;
}

.warning-bar p {
  font-family: var(--display-family);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--concrete);
  padding: var(--space-xl) var(--space-md);
}

.section-dark .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--body-family);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: var(--bone);
  margin-bottom: var(--space-sm);
}

.section-label {
  font-family: var(--label-family);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--space-xs);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--chalk);
  max-width: 65ch;
  margin-bottom: var(--space-lg);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 18px 48px;
  font-family: var(--display-family);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary {
  background: var(--safety-yellow);
  color: var(--soot);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--hazard-orange);
  color: var(--bone);
}

.btn-outline {
  background: transparent;
  color: var(--safety-yellow);
  border: 2px solid var(--safety-yellow);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--safety-yellow);
  color: var(--soot);
}

.btn:focus-visible {
  outline: 2px solid var(--safety-yellow);
  outline-offset: 2px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--concrete);
  border: 1px solid var(--smoke);
  padding: var(--space-md);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--rust);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--safety-yellow);
}

.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bone);
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--chalk);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== Divider ===== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--smoke);
  border: none;
}

.divider-accent {
  width: 48px;
  height: 3px;
  background: var(--safety-yellow);
  border: none;
  margin-bottom: var(--space-md);
}

/* ===== Text Blocks ===== */
.text-block {
  max-width: 65ch;
}

.text-block p {
  margin-bottom: var(--space-sm);
  color: var(--chalk);
}

.text-block p:last-child { margin-bottom: 0; }

.text-block strong {
  color: var(--bone);
  font-weight: 700;
}

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.stat {
  text-align: center;
  padding: var(--space-md);
  border: 1px solid var(--smoke);
  background: var(--concrete);
}

.stat-number {
  font-family: var(--display-family);
  font-size: 3rem;
  color: var(--safety-yellow);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--label-family);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk);
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--smoke);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-label {
  font-family: var(--label-family);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--safety-yellow);
  margin-bottom: var(--space-xs);
}

.contact-info-value {
  font-size: 1.125rem;
  color: var(--bone);
  font-weight: 600;
}

.contact-info-value a {
  color: var(--bone);
  transition: color 0.15s ease;
}

.contact-info-value a:hover,
.contact-info-value a:focus-visible {
  color: var(--safety-yellow);
}

/* ===== Form ===== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--label-family);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px var(--space-sm);
  background: var(--soot);
  border: 1px solid var(--smoke);
  color: var(--chalk);
  font-family: var(--body-family);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border: 2px solid var(--safety-yellow);
  padding: 11px calc(var(--space-sm) - 1px);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--concrete);
  border-bottom: 1px solid var(--smoke);
  padding: var(--space-lg) var(--space-md);
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--display-family);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-transform: uppercase;
}

.page-header .accent { color: var(--safety-yellow); }

.page-header p {
  margin-top: var(--space-sm);
  font-size: 1.125rem;
  color: var(--chalk);
  max-width: 60ch;
}

/* ===== Footer ===== */
.footer {
  background: var(--concrete);
  border-top: 1px solid var(--smoke);
  padding: var(--space-lg) var(--space-md);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--display-family);
  font-size: 1.25rem;
  color: var(--bone);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-logo span { color: var(--safety-yellow); }

.footer-copy {
  font-family: var(--label-family);
  font-size: 0.75rem;
  color: var(--chalk);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: var(--space-sm);
}

.footer-links a {
  font-family: var(--body-family);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--chalk);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--safety-yellow);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Hazard Striping ===== */
.hazard-stripes {
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--safety-yellow),
    var(--safety-yellow) 10px,
    var(--soot) 10px,
    var(--soot) 20px
  );
}

/* ===== Section Accent Border ===== */
.accent-border-left {
  border-left: 3px solid var(--safety-yellow);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
}

/* ===== Testimonial / Quote ===== */
.pullquote {
  font-family: var(--display-family);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  color: var(--bone);
  padding: var(--space-md);
  border-left: 3px solid var(--safety-yellow);
  margin: var(--space-lg) 0;
}

.pullquote cite {
  display: block;
  font-family: var(--label-family);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk);
  margin-top: var(--space-sm);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid var(--smoke);
}

.timeline-item {
  position: relative;
  padding: var(--space-sm) 0 var(--space-md) var(--space-md);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 5px);
  top: var(--space-sm);
  width: 10px;
  height: 10px;
  background: var(--safety-yellow);
}

.timeline-year {
  font-family: var(--label-family);
  font-size: 0.75rem;
  color: var(--safety-yellow);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.timeline-text {
  color: var(--chalk);
  font-size: 0.9375rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid var(--safety-yellow);
  outline-offset: 2px;
}

/* ===== Utility ===== */
.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;
}

.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
