/* ============================================================
   Alfatron — clean static rebuild
   Brand: charcoal + Alfatron red (#e2141f), PCB-green imagery.
   No JS. Responsive. Self-contained. Self-hosted Inter.
   ============================================================ */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("../fonts/inter-800.woff2") format("woff2"); }

:root {
  --ink:      #16181d;
  --slate:    #1f2530;
  --slate-2:  #2b3341;
  --muted:    #5c6672;
  --line:     #e4e7ec;
  --bg:       #ffffff;
  --bg-alt:   #f5f7f9;
  --red:      #e2141f;
  --red-dark: #b60f18;
  --green:    #1f8a54;
  --white:    #ffffff;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(16,24,40,.08);
  --shadow-lg:0 24px 60px rgba(16,24,40,.16);
  --wrap:     1180px;
  --font: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }

/* --- polish: focus visibility, selection, reduced motion --- */
:focus-visible { outline:3px solid var(--red); outline-offset:3px; border-radius:4px; }
::selection { background:var(--red); color:#fff; }
.skip-link { position:absolute; left:-9999px; top:0; background:var(--red); color:#fff;
  padding:.7em 1.2em; z-index:100; font-weight:700; border-radius:0 0 6px 0; }
.skip-link:focus { left:0; text-decoration:none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: .9rem;
  position: relative; padding-left: 26px;
}
.eyebrow::before { content:""; position:absolute; left:0; top:50%; width:18px; height:2px;
  background: currentColor; transform: translateY(-50%); }
.center .eyebrow { padding-left: 0; }
.center .eyebrow::before { display: none; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .98rem; padding: .85em 1.6em;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(226,20,31,.28); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--slate); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--slate); font-weight: 550; font-size: .96rem; padding: .55em .85em;
  border-radius: 8px;
}
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content:""; position:absolute; left:.85em; right:.85em; bottom:.3em;
  height:2px; background: var(--red); }
.nav-cta { margin-left: 8px; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(11,13,17,.92) 0%, rgba(11,13,17,.72) 42%, rgba(11,13,17,.35) 100%);
}
.hero__inner { position: relative; padding: 120px 0 128px; max-width: 720px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 800; letter-spacing: -.02em;
  margin-bottom: .55em;
}
.hero h1 .accent { color: #ff5a63; }
.hero p { font-size: 1.22rem; color: #d5dae2; max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- trust strip ---------- */
.trust {
  background: var(--slate); color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.trust__item { padding: 26px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.trust__item:first-child { border-left: none; }
.trust__item strong { display: block; font-size: 1.05rem; letter-spacing: .01em; }
.trust__item span { color: #9aa5b4; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* industries */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: .6em 1.15em;
  font-weight: 600; font-size: .95rem; color: var(--slate); background: #fff;
}
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: .6em; vertical-align: middle; }

/* service cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__num {
  font-size: .8rem; font-weight: 800; color: var(--red); letter-spacing: .1em;
  display: block; margin-bottom: .8rem;
}

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 100%;
  object-fit: cover; max-height: 460px; }
.split ul { padding-left: 0; list-style: none; margin: 1.2rem 0 0; }
.split li { padding: .45em 0 .45em 1.8em; position: relative; color: var(--slate); }
.split li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: 12px; height: 7px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* highlight band */
.band {
  background: linear-gradient(120deg, var(--ink), var(--slate-2));
  color: #fff; border-radius: 20px; padding: 56px; position: relative; overflow: hidden;
}
.band .eyebrow { color: #ff5a63; }
.band h2 { color: #fff; }
.band p { color: #c9d0da; max-width: 60ch; }

/* CTA */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c2c9d3; }

/* ---------- footer ---------- */
.site-footer { background: #0f1116; color: #aeb6c2; padding: 66px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1em; }
.site-footer a { color: #aeb6c2; }
.site-footer a:hover { color: #fff; }
.footer-logo { height: 40px; margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #79828f; font-size: .85rem;
}

/* page hero (subpages) */
.page-hero { background: linear-gradient(120deg, var(--ink), var(--slate-2)); color: #fff; padding: 74px 0 66px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-hero p { color: #c9d0da; max-width: 60ch; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: #8b95a3; margin-bottom: 1rem; }
.breadcrumb a { color: #8b95a3; }

/* prose */
.prose h2 { margin-top: 1.6em; }
.prose h4 { margin-top: 1.4em; color: var(--red-dark); font-size: 1.08rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1.4rem; }
.info-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-row .val { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 40px 28px; }

  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .nav-toggle-label span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow);
  }
  .nav-links a { padding: 1em 24px; border-top: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 24px 18px; }
  .nav-toggle:checked ~ .nav-links { max-height: 460px; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 84px 0 90px; }
}
