@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --bg: #0d1220;
  --panel: #11192b;
  --panel-alt: #0f172a;
  --text: #e5e7eb;
  --muted: #b6bdcb;
  --accent: #f6c239;
  --accent-strong: #ff9f1c;
  --line: rgba(255,255,255,0.08);
  --success: #3dd598;
  --error: #ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(255, 193, 82, 0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(255, 159, 28, 0.12), transparent 30%),
              linear-gradient(180deg, #0b1220 0%, #0b1220 45%, #0a1020 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(9, 14, 28, 0.9);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.brand .logo-wordmark { height: 108px; }
.brand .logo-symbol   { height: 36px; display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
}

.nav-links .btn { padding: 8px 14px; font-size: 0.9rem; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 184, 63, 0.3);
  text-shadow: none;
}

.btn-primary:hover { transform: translateY(-1px) scale(1.01); color: #ffffff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  text-shadow: none;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246, 194, 57, 0.15);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  font-family: 'Space Grotesk', 'Source Sans 3', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 16px 0 12px;
  line-height: 1.15;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero.has-bg::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: -140px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero.has-bg > * {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

body[data-page="home"] .hero.has-bg { --hero-bg: url('images/herobg.png'); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 50px 0;
}

.trust-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-family: 'Space Grotesk', 'Source Sans 3', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 14px;
}

.section p.lead {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card-icon { margin-bottom: 12px; display: flex; }

.card h3 { margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; }

.card p { margin: 0; color: var(--muted); }

.muted { color: var(--muted); }

.about-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: center;
}

.stacked {
  display: grid;
  gap: 12px;
}

.list-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.step span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(246, 194, 57, 0.15);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.step strong {
  display: block;
  margin-bottom: 6px;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-item { display: grid; gap: 4px; min-width: 0; }

.contact-item a { color: var(--accent); font-weight: 700; }

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

form { display: grid; gap: 14px; }

label { font-weight: 600; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 1rem;
}

input:focus, textarea:focus { outline: 2px solid var(--accent); }

textarea { min-height: 140px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.form-status {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
  display: none;
}

.form-status.visible { display: block; }

.form-status.success { color: var(--success); border-color: rgba(61,213,152,0.4); }

.form-status.error { color: var(--error); border-color: rgba(255,107,107,0.4); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.footer {
  padding: 32px 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.9);
  margin-top: 60px;
}

.footer .top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.footer h4 { margin: 0 0 10px; }

.quick-links { display: grid; gap: 8px; }

.utility-links { display: flex; gap: 12px; flex-wrap: wrap; }

.footer small { color: var(--muted); }

.hazmat-diamond {
  width: 18px;
  height: 18px;
  background: var(--accent);
  transform: rotate(45deg);
  margin-bottom: 16px;
  border-radius: 2px;
}

.highlight-panel {
  background: linear-gradient(135deg, rgba(246, 194, 57, 0.08), rgba(255, 159, 28, 0.12));
  border: 1px solid rgba(246, 194, 57, 0.3);
  border-radius: var(--radius);
  padding: 18px;
}

.job-card { display: grid; gap: 12px; }

.badges { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  font-weight: 700;
  letter-spacing: 0.01em;
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

ul.clean li {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.map-placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.02);
}

.map-iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); }

.cookie-toggles { display: grid; gap: 10px; }

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

.toggle-row p { margin: 0; color: var(--muted); }

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input { display:none; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #4b5563;
  transition: .2s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.error-page {
  text-align: center;
  padding: 120px 0;
}

@media (max-width: 640px) {
  .hero.has-bg::before { background-position: 65% center; }
  .hero-line { display: block; }
  .footer .top { grid-template-columns: 1fr; }
  .contact-card {
    grid-template-columns: 1fr;
    font-size: 0.85rem;
  }
  .contact-item a { font-size: 0.85rem; }
}

@media (max-width: 860px) {
  .brand .logo-wordmark { display: none; }
  .brand .logo-symbol   { display: block; }
  .nav-links {
    position: absolute;
    left: 0; right: 0;
    top: 72px;
    background: rgba(8, 12, 22, 0.98);
    padding: 18px 24px;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    cursor: pointer;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--text); display: block; position: relative; }
  .menu-toggle span::before, .menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px; height: 2px;
    background: var(--text);
  }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
}

@media (min-width: 861px) {
  .menu-toggle { display: none; }
}
