:root {
  --ink: #172120;
  --muted: #5d6661;
  --paper: #f7f5f0;
  --panel: #ffffff;
  --line: #d9ded8;
  --steel: #52616a;
  --forest: #1f3a3d;
  --mint: #d8e8df;
  --brass: #bc8b2f;
  --rust: #9d4e32;
  --sky: #dcebf0;
  --danger: #a73835;
  --success: #2d6b4f;
  --shadow: 0 18px 50px rgba(23, 33, 32, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: var(--radius);
  font-size: .82rem;
}
.logo-brand {
  gap: .75rem;
}
.logo-brand img {
  width: clamp(190px, 22vw, 360px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 0 10px rgba(104, 77, 244, .52));
}
.footer-logo img {
  width: min(320px, 100%);
}
.side-logo {
  display: grid;
  align-items: start;
  gap: .55rem;
}
.side-logo img {
  width: min(205px, 100%);
  max-height: none;
}
.side-logo span {
  color: rgba(255,255,255,.78);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-links a {
  padding: .65rem .8rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 650;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--mint);
  color: var(--forest);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.button:hover { filter: brightness(.96); }
.button.secondary {
  background: var(--panel);
  color: var(--forest);
  border-color: var(--line);
}
.button.ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--line);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(23, 33, 32, .82), rgba(23, 33, 32, .46), rgba(23, 33, 32, .18)),
    url("../img/steel-fabrication.svg") center/cover no-repeat;
  color: #fff;
}
.hero-inner {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 6rem 0 8rem;
}
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--brass);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }
h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.8rem);
}
.hero p {
  max-width: 650px;
  margin: 1.2rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: rgba(255, 255, 255, .88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.7rem;
}
.hero .button.secondary {
  background: rgba(255, 255, 255, .92);
}

.section {
  padding: 5.5rem 1.2rem;
}
.section.alt { background: #fff; }
.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.section-head p { margin: 0; color: var(--muted); }

.grid {
  display: grid;
  gap: 1rem;
}
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(23, 33, 32, .04);
}
.card h3 { margin: 0 0 .65rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.metric {
  padding: 1.35rem;
  border-left: 4px solid var(--brass);
  background: var(--panel);
}
.metric strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}
.metric span { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 2rem;
  align-items: start;
}
.feature-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 1.2rem 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}
.feature-list li::before {
  content: "";
  width: .62rem;
  height: .62rem;
  margin-top: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brass);
}
.band {
  background: var(--forest);
  color: #fff;
}
.band .muted,
.band p { color: rgba(255, 255, 255, .78); }

.project-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(23, 33, 32, .1), rgba(23, 33, 32, .82)),
    var(--project-image, linear-gradient(135deg, var(--steel), var(--forest)));
  background-size: cover;
  background-position: center;
}
.project-card p { color: rgba(255,255,255,.82); }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .28rem .55rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: inherit;
  font-size: .82rem;
  background: rgba(255,255,255,.12);
}

.form {
  display: grid;
  gap: .9rem;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: .82rem .9rem;
  background: #050607;
  color: #f6f7fb;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, .42);
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(118, 92, 255, .65);
  outline-offset: 2px;
  border-color: #765cff;
}
textarea { min-height: 140px; resize: vertical; }
.form-status {
  min-height: 1.4rem;
  color: var(--forest);
  font-weight: 700;
}
.turnstile-note {
  color: var(--muted);
  font-size: .88rem;
}

.portal-shell,
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #eef2ee;
}
.side {
  padding: 1.2rem;
  background: var(--forest);
  color: #fff;
}
.side nav {
  display: grid;
  gap: .35rem;
  margin-top: 1.6rem;
}
.side a {
  padding: .7rem .8rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.82);
}
.side a[aria-current="page"],
.side a:hover { background: rgba(255,255,255,.12); color: #fff; }
.workspace {
  padding: 1.2rem;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: .85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  background: #f4f6f3;
  color: var(--muted);
  font-size: .85rem;
}
.status {
  display: inline-flex;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--forest);
  font-weight: 800;
  font-size: .78rem;
}
.status.warn { background: #f5e8c9; color: #7d5517; }
.status.good { background: var(--mint); color: var(--success); }

.footer {
  padding: 3rem 1.2rem;
  background: var(--ink);
  color: #fff;
}
.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(120px, .6fr));
  gap: 1.5rem;
}
.footer a,
.footer p { color: rgba(255,255,255,.72); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .section-head,
  .split,
  .grid.three,
  .grid.two,
  .form-row,
  .footer-grid,
  .portal-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 760px; }
  .side { min-height: auto; }
}

@media (max-width: 520px) {
  .section { padding: 3.5rem 1rem; }
  .hero-inner { width: min(100% - 2rem, 1180px); padding-bottom: 5rem; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .data-table { display: block; overflow-x: auto; }
}

/* APAZ industrial theme */
:root {
  --ink: #f6f7fb;
  --muted: #a7aab6;
  --paper: #060708;
  --panel: #101113;
  --line: rgba(255, 255, 255, .18);
  --forest: #684df4;
  --mint: rgba(104, 77, 244, .18);
  --brass: #765cff;
  --steel: #7d8493;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

body {
  color: #f6f7fb;
  background:
    radial-gradient(circle at 78% 12%, rgba(51, 83, 163, .26), transparent 26rem),
    linear-gradient(180deg, #020304 0%, #0a0b0c 55%, #050607 100%);
}

.industrial-header {
  background: #030405;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: none;
}

.industrial-header .nav {
  width: min(100%, 1536px);
  max-width: none;
  min-height: 72px;
  padding: .7rem 1.5rem;
}

.industrial-logo {
  flex: 0 0 auto;
}

.industrial-logo img {
  width: clamp(250px, 31vw, 465px);
  max-height: 58px;
  border: 0;
}

.industrial-header .nav-links {
  margin-left: auto;
  gap: .65rem;
}

.industrial-header .nav-links a {
  color: #f7f7fb;
  border-radius: 0;
  padding: .7rem .55rem;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.industrial-header .nav-links a:hover,
.industrial-header .nav-links a[aria-current="page"] {
  color: #765cff;
  background: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: .8rem;
}

.phone-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  font-weight: 900;
  letter-spacing: .05em;
}

.industrial-header .button,
.industrial-hero .button {
  min-height: 44px;
  border-radius: 0;
  border-color: #765cff;
  background: linear-gradient(135deg, #765cff, #4930c5);
  box-shadow: 0 0 24px rgba(104, 77, 244, .28);
  color: #fff;
  font-size: .88rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.industrial-hero {
  min-height: 454px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 4, 5, .97) 0%, rgba(3, 4, 5, .88) 28%, rgba(3, 4, 5, .18) 64%, rgba(3, 4, 5, .42) 100%),
    linear-gradient(180deg, rgba(3, 4, 5, .08), rgba(3, 4, 5, .62)),
    url("../img/welding-hero.png") center right/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.industrial-hero .hero-inner {
  width: min(1536px, calc(100% - 8rem));
  padding: 3rem 0 3.5rem;
}

.industrial-hero .eyebrow,
.services-showcase .eyebrow {
  color: #765cff;
  font-size: clamp(.85rem, 1.35vw, 1.25rem);
  letter-spacing: .04em;
}

.industrial-hero h1,
.services-showcase h2 {
  max-width: 680px;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .72);
}

.industrial-hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.85rem);
}

.industrial-hero p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 255, 255, .78);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.industrial-hero strong { color: #765cff; }

.hero-rule {
  display: block;
  width: 72px;
  height: 3px;
  margin: 1.5rem 0 1.2rem;
  background: #765cff;
  box-shadow: 0 0 14px rgba(118, 92, 255, .8);
}

.industrial-hero .button.secondary,
.industrial-hero .button.ghost {
  background: rgba(0, 0, 0, .34);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  box-shadow: none;
}

.trust-strip {
  background: linear-gradient(180deg, #111315, #0a0b0c);
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 1.15rem 1.5rem;
}

.trust-grid {
  width: min(1536px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.trust-grid article {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: .18rem;
  padding: 0 1.35rem;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.trust-grid article:first-child { border-left: 0; }

.trust-grid strong {
  color: #fff;
  font-size: .88rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trust-grid span {
  color: rgba(255, 255, 255, .72);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .82rem;
  line-height: 1.25;
}

.services-showcase {
  padding-top: 1.5rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(118, 92, 255, .12), transparent 26rem),
    linear-gradient(180deg, #090a0b, #050606);
}

.services-layout {
  width: min(1450px, 100%);
  display: grid;
  grid-template-columns: 280px repeat(5, minmax(165px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.services-intro {
  padding: 1rem .2rem 0 0;
}

.services-showcase h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.2rem, 3.1vw, 3.8rem);
}

.services-intro p {
  color: rgba(255, 255, 255, .74);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.services-intro .button {
  margin-top: 1.3rem;
  border-radius: 0;
  border-color: #765cff;
  background: transparent;
  color: #765cff;
  text-transform: uppercase;
}

.service-card {
  position: relative;
  min-height: 342px;
  padding: 10rem .9rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .9) 50%),
    var(--service-image, url("../img/steel-fabrication.svg")) center top/100% 150px no-repeat,
    #0b0c0d;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(120deg, rgba(118, 92, 255, .38), transparent 42%, rgba(255, 118, 43, .14));
  pointer-events: none;
}

.gear-card {
  --service-image:
    radial-gradient(circle at 52% 45%, rgba(255,255,255,.72), transparent 4%),
    repeating-radial-gradient(circle at 50% 50%, #9ea3a9 0 7px, #32383e 8px 16px, #111 17px 24px);
}
.machine-card {
  --service-image:
    radial-gradient(circle at 50% 48%, transparent 0 18px, #a9afb8 19px 34px, transparent 35px),
    repeating-linear-gradient(90deg, #101214 0 18px, #707782 19px 34px, #1d2025 35px 46px);
}
.plant-card {
  --service-image:
    linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.08)),
    repeating-linear-gradient(90deg, #535b65 0 8px, transparent 9px 48px),
    repeating-linear-gradient(0deg, #20252a 0 10px, #4d5863 11px 14px, #101214 15px 52px);
}
.drafting-card {
  --service-image:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(180,188,200,.86)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(0,0,0,.22) 19px 20px);
}

.service-icon {
  position: absolute;
  top: 7.1rem;
  left: .9rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #765cff;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(118, 92, 255, .48);
}

.service-card h3 {
  margin: .25rem 0 .55rem;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.service-card ul {
  min-height: 98px;
  margin: 0 0 .75rem;
  padding-left: 1rem;
  color: rgba(255, 255, 255, .78);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: .9rem;
  line-height: 1.45;
}

.service-card a {
  color: #765cff;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .industrial-header .nav { flex-wrap: wrap; }
  .nav-actions { margin-left: 0; }
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-grid article:nth-child(4) { border-left: 0; }
  .services-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-intro { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .industrial-header .nav-links {
    background: #050607;
    border-color: rgba(255, 255, 255, .2);
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  .industrial-hero .hero-inner {
    width: min(100% - 2rem, 1180px);
  }
  .trust-grid,
  .services-layout {
    grid-template-columns: 1fr;
  }
  .trust-grid article,
  .trust-grid article:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  .trust-grid article:first-child { border-top: 0; }
}

@media (max-width: 520px) {
  .industrial-header .nav { padding: .75rem 1rem; }
  .industrial-logo img,
  .logo-brand img { width: min(245px, 72vw); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .phone-link,
  .nav-actions .button { justify-content: center; width: 100%; }
  .industrial-hero { min-height: 620px; background-position: 62% center; }
  .industrial-hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
}
