/* Versatility Welding Manufacturing — site styles */
:root {
  --bg: #101214;
  --bg-elev: #171b1f;
  --bg-card: #1e2328;
  --bg-soft: #252b31;
  --line: #32393f;
  --text: #f3f1ec;
  --muted: #a9a498;
  --accent: #d8892b;
  --accent-hover: #f0b35a;
  --accent-ink: #1a1208;
  --steel: #8a97a2;
  --focus: #f0b35a;
  --radius: 6px;
  --wrap: 1120px;
  --header-h: 4.25rem;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: #fff; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--text); }
.mark { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font: inherit;
}
.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  box-shadow: 0 -5px 0 var(--text), 0 5px 0 var(--text);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent-hover); }
.site-nav a[aria-current="page"] { color: var(--accent-hover); }
.btn, .btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
}
.btn:hover, .btn-nav:hover { background: var(--accent-hover); color: var(--accent-ink) !important; }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover) !important; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero & typography */
.hero {
  position: relative;
  padding: 4.5rem 0 3.75rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(16,18,20,0.2), var(--bg) 90%),
    repeating-linear-gradient(-45deg, #15181b 0 12px, #131618 12px 24px);
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent-hover) 50%, var(--accent) 80%, transparent);
}
.eyebrow {
  font-family: var(--cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
h1, h2, h3, .h1 {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.lede { font-size: 1.2rem; max-width: 40rem; color: #d8d4cb; margin: 0 0 1.5rem; }
.muted, .fine { color: var(--muted); }
.section { padding: 3.5rem 0; }
.section + .section, .band + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 1.75rem; max-width: 42rem; }

.grid-3, .grid-2, .grid-4, .cards {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: #d0ccc3; }
.card.accent-edge { border-top: 3px solid var(--accent); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.stat {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1rem;
}
.stat b {
  display: block;
  font-family: var(--cond);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 0.95rem; }

.band {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Tables / definition lists */
.specs {
  width: 100%;
  border-collapse: collapse;
}
.specs th, .specs td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs th {
  font-weight: 700;
  width: 34%;
  color: #ece8df;
}
.specs td { color: #d0ccc3; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel .panel-body { padding: 0 0.5rem; }

/* Gallery placeholders */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.tile {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(30,35,40,0.2), rgba(16,18,20,0.55)),
    repeating-linear-gradient(45deg, #1a1f24 0 8px, #1c2227 8px 16px);
  border: 1px dashed #4a525a;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}
.tile strong {
  color: var(--text);
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* Company info */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list dt, .info-label {
  font-weight: 700;
  color: #ece8df;
}
.naics-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.naics-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.naics-list li:last-child { border-bottom: 0; }
.naics-code {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field { margin-bottom: 1rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}
textarea { min-height: 8.5rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); }
.form-note { font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.form-status.is-visible { display: block; }
.contact-aside p { margin: 0.35rem 0 1rem; }
.contact-aside a.big {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.contact-aside a.big:hover { color: var(--accent-hover); }

/* Footer */
.site-footer {
  border-top: 3px solid var(--accent);
  background: #0c0e10;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem 2rem;
}
.footer-brand {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.footer-label {
  font-family: var(--cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-hover); }
.site-footer p { margin: 0 0 0.35rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: #14181c;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn-nav { margin-top: 0.75rem; border: 0; }
  .grid-2, .grid-3, .grid-4, .stat-row, .gallery-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .info-list li, .naics-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Media, captions, equipment, hero image */
.hero.hero-photo {
  padding: 0;
  overflow: hidden;
  min-height: 28rem;
}
.hero-photo .hero-bg {
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: flex-end;
  background: #0c0e10 center/cover no-repeat;
}
.hero-photo .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,18,20,0.88) 0%, rgba(16,18,20,0.62) 46%, rgba(16,18,20,0.25) 100%),
    linear-gradient(180deg, rgba(16,18,20,0.15) 40%, rgba(16,18,20,0.72) 100%);
}
.hero-photo .hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}
.hero-photo .lede { color: #e4e0d7; }
.caption, figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.45rem 0 0;
}
.hero-caption {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.45rem 0 0.7rem;
  color: #b8b3a8;
}
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.equip-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.equip-card .photo {
  background: #f3f1ec;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.equip-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.equip-card .body { padding: 1rem 1.15rem 1.2rem; }
.equip-card h3 { margin-bottom: 0.35rem; }
.equip-card p { margin: 0; color: #d0ccc3; }
.gallery-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.gallery-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.gallery-grid figcaption {
  padding: 0.45rem 0.1rem 0;
}
@media (max-width: 860px) {
  .equip-grid { grid-template-columns: 1fr; }
  .hero-photo .hero-bg { min-height: 0; }
  .hero-photo .hero-content { padding: 3rem 0 2.2rem; }
}
