/* ============================================================
   ACO METALS — styles.css
   Design language: shop-drawing / blueprint. No external requests.
   ============================================================ */

:root {
  /* Palette */
  --navy:        #0e2136;   /* blueprint background */
  --navy-deep:   #091624;   /* footer / deep panels */
  --navy-line:   rgba(234, 241, 246, 0.07); /* grid lines */
  --linework:    #eaf1f6;   /* primary text on navy */
  --steel:       #90a4b7;   /* secondary text / borders */
  --steel-dim:   #5a6c7e;   /* tertiary text */
  --yellow:      #f5b400;   /* safety yellow — CTA / accent, spent sparingly */
  --orange:      #e8622c;   /* weld orange — secondary accent */
  --paper:       #f4f6f8;   /* light section background */
  --ink:         #101820;   /* text on light background */

  /* Type */
  --font-display: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Consolas", "Liberation Mono", monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--linework);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* Blueprint grid backdrop, used on dark sections */
.grid-bg {
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- Sheet label system ----------
   Every top-level section carries a "sheet number" callback to the
   client's own CONCEPT 02/0X pagination — reused here as the site's
   own wayfinding device. */
.sheet {
  position: relative;
  padding: 96px 0 88px;
}
.sheet-tag {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--steel-dim);
}
.sheet--light .sheet-tag { color: #9aa7b1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--yellow);
  display: inline-block;
}
.eyebrow--amber { color: #b3810a; }
.eyebrow--amber::before { background: #b3810a; }

/* Section background variants (kept as classes, not inline styles,
   so the strict style-src 'self' CSP doesn't need 'unsafe-inline') */
.sheet--paper { background: var(--paper); color: var(--ink); }
.sheet--slate { background: #e9edf1; color: var(--ink); }
.sheet--slate .sheet-tag { color: #8a97a1; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.icon-yellow { color: var(--yellow); }

.honeypot-field { position: absolute; left: -9999px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 20px;
}
h2 { font-size: clamp(28px, 4vw, 42px); max-width: 18ch; }
h3 { font-size: 18px; letter-spacing: 0; }
p { color: var(--steel); max-width: 60ch; }
.sheet--light p, .sheet--light h2 { color: var(--ink); }
.sheet--light p { color: #40505d; }

/* Dimension-line divider: a drafting-style line with tick end-caps,
   drawn once on load. This is the page's one animated flourish. */
.dim-divider {
  width: 100%;
  height: 20px;
  overflow: visible;
}
.dim-divider line, .dim-divider path {
  stroke: var(--steel-dim);
  stroke-width: 1;
}
.dim-divider .dim-run {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.4s ease-out 0.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 22, 36, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--navy-line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; color: var(--yellow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--linework);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { border-color: var(--yellow); color: var(--yellow); }
.main-nav a.nav-cta {
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 8px 14px;
}
.main-nav a.nav-cta:hover { background: var(--yellow); color: var(--navy-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-dim);
  color: var(--linework);
  width: 40px; height: 40px;
  font-size: 16px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 70px;
  position: relative;
}
.error-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.error-title { font-size: clamp(32px, 6vw, 56px); }
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 78px);
  max-width: 16ch;
}
.hero h1 span { color: var(--yellow); }
.hero-lede {
  font-size: 18px;
  max-width: 46ch;
  margin-top: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid transparent;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--navy-deep); }
.btn-primary:hover { background: #ffca33; }
.btn-outline { border-color: var(--steel-dim); color: var(--linework); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-dark { background: var(--navy-deep); color: var(--yellow); border-color: var(--navy-deep); }
.btn-dark:hover { background: #000; }

.hero-strip {
  margin-top: 60px;
  border-top: 1px solid var(--navy-line);
  padding-top: 20px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-strip div {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel-dim);
  text-transform: uppercase;
}
.hero-strip strong { color: var(--yellow); margin-right: 6px; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section-head p { margin: 0; text-align: right; min-width: 220px; }
.sheet--light .section-head p { color: #40505d; }

/* ---------- Capabilities (S-01 / M-02 / F-03) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy-line);
  border: 1px solid var(--navy-line);
}
.cap-card {
  background: var(--navy);
  padding: 36px 30px 40px;
}
.cap-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--yellow);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 22px;
}
.cap-card h3 { margin-bottom: 10px; font-size: 20px; }
.cap-card p { font-size: 14.5px; }

/* ---------- Project fit list ---------- */
.fit-list {
  border-top: 1px solid var(--navy-line);
}
.fit-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--navy-line);
  transition: background 0.15s ease;
}
.fit-row:hover { background: rgba(245, 180, 0, 0.04); }
.fit-num { font-family: var(--font-mono); color: var(--steel-dim); font-size: 13px; }
.fit-row h3 { margin: 0; font-size: 17px; letter-spacing: 0.01em; }

/* ---------- Method (light panel) ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 10px;
}
.method-step {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}
.method-step .fit-num { color: var(--orange); }
.method-step h3 { color: var(--ink); margin: 10px 0 8px; }
.method-step p { font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); padding: 0; }
.cta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 46px 24px;
}
.cta-wrap span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #6b4e00;
}
.cta-wrap h2 { color: var(--navy-deep); margin: 6px 0 0; font-size: clamp(22px, 3vw, 30px); max-width: 22ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-note {
  border: 1px dashed var(--steel-dim);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
  margin-top: 22px;
  line-height: 1.6;
}
.contact-fact {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-fact span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--steel-dim); text-transform: uppercase; }
.contact-fact strong { font-size: 15px; }

.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.quote-form label.full { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--navy-deep);
  border: 1px solid var(--navy-line);
  color: var(--linework);
  padding: 12px 12px;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--yellow); }
.quote-form button { justify-self: start; margin-top: 4px; }
.form-status { font-family: var(--font-mono); font-size: 12px; color: var(--steel); min-height: 18px; }
.form-status[data-state="error"] { color: var(--orange); }
.form-status[data-state="ok"] { color: var(--yellow); }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); border-top: 1px solid var(--navy-line); padding: 44px 0 30px; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.footer-brand span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--steel-dim); font-weight: 400; }
footer p { font-family: var(--font-mono); font-size: 11px; color: var(--steel-dim); margin: 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.footer-links a:hover { color: var(--yellow); }
.footer-tag { text-align: center; margin-top: 26px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--steel-dim); text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-form { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--navy-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--navy-line); }
  .main-nav a.nav-cta { border: none; margin: 8px 24px; padding: 12px 14px; border: 1px solid var(--yellow); }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .hero-strip { gap: 20px; }
  .section-head { align-items: flex-start; }
  .section-head p { text-align: left; }
}

@media (max-width: 480px) {
  .method-grid { grid-template-columns: 1fr; }
  .fit-row { grid-template-columns: 44px 1fr; }
}
