/* ==========================================================================
   OpsForge Automation — Website Stylesheet (Version 1)
   Single shared stylesheet. No external dependencies. System font stack.
   Palette: slate/navy ink, restrained blue accent, generous whitespace.
   ========================================================================== */

:root {
  --ink: #0f172a;         /* headings, primary text          */
  --slate: #334155;       /* body text                        */
  --muted: #64748b;       /* secondary text                   */
  --bg: #ffffff;
  --bg-alt: #f6f8fb;      /* alternating section background    */
  --line: #e2e8f0;        /* borders, rules                   */
  --accent: #1d4ed8;      /* primary accent (blue-700)         */
  --accent-dark: #1e40af;
  --accent-light: #93c5fd;
  --maxw: 1080px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
h4 { font-size: 0.95rem; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
p { margin: 0 0 1.1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--ink); }
img { max-width: 100%; height: auto; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.center { text-align: center; }
.center .lede, .center p { margin-left: auto; margin-right: auto; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; color: var(--accent); margin: 0 0 0.75rem; font-weight: 600;
}
.lede { font-size: clamp(1.05rem, 1.8vw, 1.26rem); color: var(--slate); max-width: 62ch; margin: 0 0 1.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.98rem; padding: 0.75rem 1.25rem;
  border-radius: 8px; text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.9rem 1.55rem; font-size: 1.02rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.85rem 0; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: none; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted); font-weight: 600; margin-left: 0.35rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.site-nav a { color: var(--slate); font-weight: 500; font-size: 0.98rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .phone { font-family: var(--mono); font-size: 0.92rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.header-cta .phone:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero (subtle blueprint grid) ---------- */
.hero { position: relative; background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 72%);
}
.hero .container { position: relative; padding-top: 5.5rem; padding-bottom: 5.5rem; max-width: 900px; }
.hero h1 { max-width: 20ch; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06); border-color: #cbd5e1; }
.card h3 { display: flex; align-items: baseline; gap: 0.5rem; }
.card .tag { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Process flow ---------- */
.flow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0 0 2.5rem; }
.flow-step {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1.05rem;
}
.flow-arrow { color: var(--accent); font-weight: 700; }

/* ---------- Feature list (differentiation) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.25rem; }
.feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature .num {
  font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: 0.85rem;
  border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.5rem; flex: none; margin-top: 0.15rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.feature p { margin: 0; font-size: 0.97rem; color: var(--slate); }

/* ---------- Chips (industries) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-size: 0.92rem; color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.25rem; }
.checklist li { position: relative; padding-left: 1.5rem; margin: 0.5rem 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--accent); border-radius: 2px;
}

/* ---------- Offering blocks (services page) ---------- */
.offering {
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 2rem 2rem 1.75rem; background: #fff; margin-bottom: 1.5rem;
}
.offering h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.offering .role { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.offering .outcome { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 0.5rem; }
.offering .outcome strong { color: var(--ink); }

/* ---------- Prose spacing for content pages ---------- */
.prose > * + h2 { margin-top: 2.75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 4.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cbd5e1; max-width: 58ch; margin: 0 auto 1.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #e2e8f0; }
.cta-band .phone-inline { display: inline-block; margin-top: 1.1rem; color: var(--accent-light); font-family: var(--mono); font-size: 0.95rem; }
.cta-band .phone-inline:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 2rem; }
.footer .brand { margin-bottom: 0.75rem; }
.footer p { color: var(--muted); max-width: 34ch; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0.4rem 0; }
.footer a { color: var(--slate); }
.footer a:hover { color: var(--accent); }
.footer .contact-line { color: var(--slate); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .header-inner { gap: 0.75rem; }
  .site-nav { flex-basis: 100%; order: 3; }
  .site-nav ul { gap: 1.1rem; flex-wrap: wrap; }
  .header-cta .phone { display: none; }
  .section { padding: 3.5rem 0; }
  .hero .container { padding-top: 3.75rem; padding-bottom: 3.75rem; }
  .grid-3, .grid-2, .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
