/* =====================================================
   STEELWORX — Modern Industrial Premium Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@300;400;500;600&family=Barlow:wght@400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --bg-primary:   #0A0A0A;
  --bg-secondary: #111111;
  --bg-card:      #161616;
  --bg-card-hover:#1C1C1C;

  --text-primary: #F0EDE8;
  --text-secondary: #888880;
  --text-muted:   #555550;

  --accent:       #FF6B00;
  --accent-dark:  #CC5500;
  --accent-glow:  rgba(255, 107, 0, 0.25);

  --border:       rgba(255, 255, 255, 0.07);
  --border-accent: rgba(255, 107, 0, 0.4);

  --font-headline: 'Barlow Condensed', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-wide:     'Barlow', sans-serif;

  --max-width: 1280px;
  --section-pad: 120px 5%;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Utility ───────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }
.accent { color: var(--accent); }
.label {
  font-family: var(--font-wide);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}
nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 5%;
  border-bottom: 1px solid var(--border);
}
.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-logo img:hover {
  filter: brightness(0) saturate(100%) invert(42%) sepia(80%) saturate(600%) hue-rotate(10deg) brightness(110%);
  transform: scale(1.03);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 10px 24px;
  font-family: var(--font-wide);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ── HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero_background.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.78) 55%,
    rgba(10,10,10,0.50) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  padding-top: 100px;
}
.hero-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp 1s 0.3s ease forwards;
}
.hero-tag-line {
  width: 40px; height: 2px;
  background: var(--accent);
}
.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeSlideUp 1s 0.5s ease forwards;
}
.hero-headline .line-2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}
.hero-subhead {
  margin-top: 28px;
  font-family: var(--font-wide);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 1s 0.7s ease forwards;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 1s 0.9s ease forwards;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 15px 36px;
  font-family: var(--font-wide);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: #ff8533;
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-primary .arrow { font-size: 1rem; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-wide);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-primary); }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 5%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeSlideUp 1s 1.2s ease forwards;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}
/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  opacity: 0;
  animation: fadeSlideUp 1s 1.1s ease forwards;
}
.stat-item {
  padding: 22px 32px;
  background: rgba(22,22,22,0.85);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  text-align: center;
}
.stat-num {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── CAPABILITIES ──────────────────────────────────── */
#capabilities {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.7;
  text-align: right;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cap-item {
  background: var(--bg-primary);
  padding: 52px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.cap-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.cap-item:hover::before { width: 100%; }
.cap-item:hover { background: var(--bg-card); }

.cap-num {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 28px;
}
.cap-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}
.cap-title {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  line-height: 1;
}
.cap-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
}

/* ── CREDENTIALS ───────────────────────────────────── */
#credentials {
  padding: 80px 5%;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.credentials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cred-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 140px;
}
.cred-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  padding: 14px 24px;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.badge-icon { font-size: 1.2rem; }
.badge-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* ── SELECTED WORKS ────────────────────────────────── */
#works {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
}
.works-inner {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.works-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.works-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.works-inner:hover .works-image-wrap img { transform: scale(1.04); }
.works-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(10,10,10,0.6));
}
.works-info {
  background: var(--bg-card);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border);
}
.works-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.works-title {
  font-family: var(--font-headline);
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}
.works-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: center;
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-key {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-val {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
}
.works-nav {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}
.works-nav-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.works-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,0,0.08);
}

/* ── CONTACT / RFQ ─────────────────────────────────── */
#contact {
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-info-title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 20px;
  margin-bottom: 44px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item { display: flex; flex-direction: column; gap: 5px; }
.contact-item-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-item-value {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.contact-item-value a { transition: color 0.25s; }
.contact-item-value a:hover { color: var(--accent); }
.contact-divider {
  width: 40px; height: 1px;
  background: var(--border-accent);
  margin: 8px 0;
}

/* RFQ Form */
.rfq-tag {
  margin-bottom: 16px;
}
.rfq-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.rfq-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-bottom-color: var(--accent);
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-select {
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888880' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right center;
  cursor: pointer;
}
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 80px; }

/* Drag & Drop Zone */
.drop-zone {
  border: 1px dashed rgba(255,107,0,0.35);
  padding: 40px 24px;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  margin-bottom: 28px;
  position: relative;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(255,107,0,0.04);
}
.drop-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.drop-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.drop-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.drop-hint span { color: var(--accent); }
.drop-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-files-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  text-align: left;
}
.drop-file-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.drop-file-item::before { content: '✓'; color: var(--accent); }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-family: var(--font-wide);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-submit:hover {
  background: #ff8533;
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-1px);
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
  padding: 36px 5%;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-seo {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.8;
  opacity: 0.6;
}

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 88px 5%; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .cap-item { padding: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .works-inner { grid-template-columns: 1fr; }
  .works-info { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
  :root { --section-pad: 72px 5%; }
  .hero-stats { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-subtitle { text-align: left; max-width: 100%; }
  .credentials-inner { flex-direction: column; align-items: flex-start; }
  .cred-badges { justify-content: flex-start; }
  .badge-divider { display: none; }
  .form-row-2col { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-seo { text-align: left; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 3.8rem; }
  .nav-cta { display: none; }
}
