/* ==========================================================================
   Aeroweld, Inc. — site stylesheet
   ========================================================================== */

:root {
  --ink: #0e1114;
  --ink-2: #1a1f24;
  --steel: #2b323a;
  --muted: #5a636c;
  --line: #dfe3e7;
  --paper: #f4f5f6;
  --white: #ffffff;
  --heat: #e0521d;
  --heat-dark: #b83f12;
  --heat-soft: #fdeee7;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(14, 17, 20, .06), 0 8px 24px rgba(14, 17, 20, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--heat-dark); }
a:hover { color: var(--heat); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--heat); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #b9c0c7;
  font-size: .88rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--heat); }
.topbar .station { letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.topbar .station strong { color: var(--white); font-weight: 600; }
.topbar .links { display: flex; gap: 22px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 24px;
}
.brand img { width: 190px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 42px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 0 auto; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.main-nav a:hover { color: var(--heat); }
.main-nav a[aria-current="page"] { color: var(--heat); }
.main-nav .btn { color: var(--white); margin-left: 8px; }
.main-nav .btn:hover { color: var(--white); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; display: inline-block; margin-left: 7px; vertical-align: 3px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.sub {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--heat);
  box-shadow: var(--shadow); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .98rem; padding: 9px 20px; border-radius: 0; }
.sub a:hover { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--heat); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  padding: 12px 24px; border-radius: var(--radius); border: 2px solid var(--heat);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--heat-dark); border-color: var(--heat-dark); color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 80% 20%, #2a3139 0%, var(--ink) 60%);
  color: var(--white);
  padding: 110px 0 120px;
}
.hero .swoosh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--heat);
  margin-bottom: 18px;
}
.hero h1 { max-width: 18ch; margin-bottom: 24px; }
.hero p.lead { font-size: 1.2rem; color: #c6ccd2; max-width: 56ch; margin-bottom: 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 72px; padding-top: 32px; gap: 24px;
}
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); overflow-wrap: anywhere; line-height: 1; color: var(--white); }
.stat .label { font-size: .9rem; color: #9aa3ac; margin-top: 6px; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--white);
  padding: 64px 0 56px;
}
.page-head .swoosh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: #c6ccd2; font-size: 1.15rem; max-width: 62ch; margin: 0; }
.crumbs { font-size: .88rem; color: #8e979f; margin-bottom: 14px; }
.crumbs a { color: #c6ccd2; text-decoration: none; }
.crumbs a:hover { color: var(--heat); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.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(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .more {
  margin-top: auto; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--heat); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card .tag {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--heat); margin-bottom: 10px;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }

/* Process list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.check-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px 15px 50px; position: relative; font-weight: 500;
}
.check-list li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: var(--heat); clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Feature strip */
.strip { background: var(--heat); color: var(--white); padding: 44px 0; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.strip h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.strip p { margin: 6px 0 0; color: #ffe3d7; }
.strip .btn { background: var(--ink); border-color: var(--ink); }
.strip .btn:hover { background: #000; border-color: #000; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--ink); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fafbfb; }
td.pn { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95rem; white-space: nowrap; }
.note { font-size: .92rem; color: var(--muted); margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px;
}
.chip small { color: var(--muted); font-family: var(--font-body); margin-left: 4px; }

/* Approved data list */
.data-list { display: grid; gap: 16px; }
.data-item {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--heat);
  border-radius: var(--radius); padding: 24px 28px;
}
.data-item .code { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.data-item p { margin: 0; color: var(--steel); }

/* Price list */
.price-list { display: grid; gap: 12px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px;
}
.price-row .model { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.price-row .price { white-space: nowrap; color: var(--muted); }
.price-row .price strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-left: 6px; }

/* Documents */
.doc {
  display: flex; gap: 18px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.doc:hover { border-color: var(--heat); box-shadow: var(--shadow); color: inherit; }
.doc .icon {
  flex: 0 0 48px; height: 58px; border-radius: 4px; background: var(--heat-soft); color: var(--heat-dark);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.doc .title { font-weight: 600; display: block; }
.doc .meta { font-size: .9rem; color: var(--muted); }

/* Job posting */
.job { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.job-head h3 { font-size: 1.9rem; margin: 0; }
.pay { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--heat-dark); }
.job ul { padding-left: 20px; margin: 0 0 1.4em; }
.job li { margin-bottom: 6px; }
.job h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 1.4em; }

/* Contact */
.contact-card { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 40px; }
.contact-card h3 { color: var(--white); }
.contact-card dl { margin: 0; display: grid; gap: 22px; }
.contact-card dt {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--heat);
}
.contact-card dd { margin: 4px 0 0; font-size: 1.15rem; }
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card a:hover { color: var(--heat); }
.map { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: var(--radius); background: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa3ac; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-logo { width: 200px; filter: invert(1); mix-blend-mode: screen; margin-bottom: 18px; }
.site-footer h4 {
  color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c6ccd2; text-decoration: none; }
.site-footer a:hover { color: var(--heat); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 0; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .main-nav .btn { margin: 16px 0 0; text-align: center; border-radius: var(--radius); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar .station { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand img { width: 150px; }
  .site-header .wrap { min-height: 70px; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .data-item { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .price-row { flex-direction: column; gap: 4px; }
  .job, .contact-card { padding: 26px; }
  th, td { padding: 11px 12px; }
}
