/* ============================================================
   DAQfx Business Solutions — site styles
   Palette: Ink #0F1923 · Steel #4A5A66 · Paper #F4F7F8
            Trace #1F5EFF · Hairline #D9E1E5
   Type:    Display — Bricolage Grotesque
            Body    — Public Sans
            Utility — IBM Plex Mono
   ============================================================ */

:root {
  --ink: #0f1923;
  --steel: #4a5a66;
  --paper: #f4f7f8;
  --card: #ffffff;
  --trace: #1f5eff;
  --trace-soft: #e8eeff;
  --hairline: #d9e1e5;
  --radius: 10px;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--trace); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--trace);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ------------------------------------------------------------
   Channel labels (eyebrows) — the DAQ signature
   ------------------------------------------------------------ */
.ch {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ch::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--trace);
}

/* ------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .fx { color: var(--trace); }
.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--trace); text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: var(--trace);
  border-bottom: 2px solid var(--trace);
  padding-bottom: 3px;
}
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--trace); text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { padding: 88px 0 0; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--trace);
}
.hero .lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--steel);
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--trace); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--trace); color: var(--trace); }

/* Scope readout strip */
.readout {
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.readout div {
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.readout div + div { border-left: 1px solid var(--hairline); padding-left: 24px; }
.readout strong { color: var(--ink); font-weight: 500; display: block; font-size: 13px; }

/* Waveform */
.scope { overflow: hidden; }
.scope svg { width: 100%; height: 120px; }
.scope .wave {
  fill: none;
  stroke: var(--trace);
  stroke-width: 2.5;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: sweep 2.4s ease-out forwards;
}
.scope .grid-line { stroke: var(--hairline); stroke-width: 1; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scope .wave { animation: none; stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-head p { margin-top: 14px; color: var(--steel); }

/* Service cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--trace); transform: translateY(-2px); }
.card .ch { margin-bottom: 2px; }
.card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p { color: var(--steel); font-size: 15.5px; flex: 1; }
.card a { font-size: 15px; font-weight: 600; }

/* Detailed service rows (services page) */
.svc-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.svc-row h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.svc-row .ch { margin-bottom: 8px; }
.svc-row p { color: var(--steel); max-width: 62ch; }
.svc-row ul {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--steel);
}
.svc-row li { margin: 6px 0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.step h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step .ch::before { display: none; }
.step p { color: var(--steel); font-size: 15.5px; }

/* Dark band */
.band {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band h2 { color: #fff; max-width: 18ch; }
.band p { color: #aebac4; margin-top: 10px; max-width: 48ch; }
.band .btn-primary { background: var(--trace); }
.band .btn-primary:hover { background: #fff; color: var(--ink); }

/* Two-column about block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.split p + p { margin-top: 16px; }
.split .facts {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  padding: 8px 26px;
}
.facts dl { display: block; }
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.facts div:last-child { border-bottom: none; }
.facts dt {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  padding-top: 3px;
}
.facts dd { font-weight: 600; text-align: right; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--steel); font-size: 15.5px; }
.contact-card + .contact-card { margin-top: 20px; }
.contact-card .big {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
}

form { display: grid; gap: 18px; }
label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  display: block;
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--card);
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--trace);
  outline-offset: 0;
  border-color: var(--trace);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form button {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: var(--body);
}
.form-note { font-size: 13.5px; color: var(--steel); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--steel); font-size: 14.5px; }
.site-footer .legal {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 8px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.page-hero p { margin-top: 18px; max-width: 58ch; color: var(--steel); font-size: 18px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding-top: 56px; }
  .grid, .steps, .form-row { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .readout div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); }
  .band { padding: 40px 28px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
}

/* ------------------------------------------------------------
   Imagery
   ------------------------------------------------------------ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-art img { width: 100%; height: auto; }

.card .icon { width: 48px; height: 48px; margin-bottom: 6px; }
.svc-row .icon { width: 44px; height: 44px; margin-bottom: 10px; }

.about-art {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* Honeypot field — hidden from humans */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Form status messages */
.form-status { font-size: 15px; font-weight: 600; min-height: 1em; }
.form-status.ok { color: #0c8a55; }
.form-status.err { color: #c0392b; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 440px; }
}
