/* Titan Stack LLC — shared stylesheet
   Aesthetic: "field-service manual" — warm paper, ink, torch-orange accent,
   Archivo display + IBM Plex Sans body + IBM Plex Mono labels. */

:root {
  --ink: #111827; /* brand navy — headings, footer bg */
  --ink-2: #1e293b; /* panel navy */
  --body: #1f2937; /* body text */
  --muted: #64748b; /* brand slate — secondary text */
  --paper: #fafaf9; /* brand off-white page bg */
  --surface: #ffffff; /* cards */
  --line: #e2e8f0; /* hairline */
  --line-dark: #334155; /* hairline on dark */
  --accent: #ea580c; /* brand orange — marks, highlights */
  --accent-deep: #c2410c; /* buttons, links (AA on white) */
  --accent-hover: #9a3412;
  --ok: #16723c;
  --max: 1120px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px rgba(17, 24, 39, 0.07);
  --shadow-pop: 0 2px 4px rgba(17, 24, 39, 0.08), 0 16px 40px rgba(17, 24, 39, 0.14);
  /* Shared "ease-out-expo"-style curve for hover/press motion — snappy start,
     soft landing, no linear/mechanical feel. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  hyphens: none;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* One consistent focus ring for every interactive element — never the
   browser default, never invisible. Only shows for keyboard focus. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.35);
  border-radius: 4px;
}

ul {
  padding-left: 1.2em;
}

img {
  max-width: 100%;
}

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

/* Monospace eyebrow label above headings */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "// ";
  color: var(--accent);
}

/* Anchor targets (Get a quote / Request a quote links) must not land
   underneath the sticky header. */
section[id] {
  scroll-margin-top: 110px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  display: block;
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:not(.btn) {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.nav-links a.btn {
  color: #fff;
}

.btn {
  display: inline-block;
  background: var(--accent-deep);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.15s ease, box-shadow 0.2s var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 65, 12, 0.28);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.22);
  transition-duration: 0.05s;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
}

.btn-ghost:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 14px;
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  /* Blueprint grid texture */
  background-image: linear-gradient(var(--paper) 0%, rgba(250, 250, 249, 0) 60%),
    linear-gradient(rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

.hero .wrap {
  max-width: 880px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 30px;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
}

/* Stat chips under hero CTAs */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
}

.chip strong {
  color: var(--accent-deep);
  font-weight: 600;
}

/* ---------- Service-area marquee ---------- */
.marquee {
  background: var(--ink);
  color: #cfd6e2;
  overflow: hidden;
  padding: 13px 0;
  border-bottom: 3px solid var(--accent);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 46s linear infinite;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  padding: 0 14px;
}

.marquee-track span::after {
  content: "\2726"; /* four-pointed star separator */
  color: var(--accent);
  padding-left: 28px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Trust strip ----------
   Quiet, monospace row of true operating facts (not marketing claims).
   Sits directly under a hero, before the first content section. */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.trust-strip .fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-strip .fact::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section {
  padding: 76px 0;
}

section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: rgba(17, 24, 39, 0.16);
}

.card .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 10px;
}

.card ul {
  margin: 12px 0 18px;
  padding-left: 0;
  list-style: none;
  color: var(--body);
  font-size: 0.96rem;
}

.card ul li {
  padding: 6px 0 6px 26px;
  position: relative;
  border-top: 1px solid var(--line);
}

.card ul li:first-child {
  border-top: none;
}

.card ul li::before {
  content: "\2192"; /* → */
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 600;
}

.card .card-cta {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Numbered steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 26px 26px 84px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  counter-increment: step;
  box-shadow: var(--shadow-card);
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--accent);
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  color: var(--accent-deep);
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--accent-deep);
}

.faq details p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--muted);
}

/* ---------- Dark CTA / contact band ---------- */
.band {
  background: var(--ink);
  color: #cfd6e2;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}

.band::before {
  /* faint grid on dark */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.band .wrap {
  position: relative;
}

.band h2 {
  color: #fff;
}

.band .eyebrow {
  color: var(--accent);
}

.band p {
  color: #9aa5b5;
  max-width: 60ch;
}

.contact-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .contact-rows {
    grid-template-columns: 1fr;
  }
}

.contact-cell {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.contact-cell .kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a94a6;
  margin-bottom: 8px;
}

.contact-cell a {
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.contact-cell a:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-cell p {
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #8a94a6;
  border-top: 1px solid var(--line-dark);
  padding: 44px 0 36px;
  font-size: 0.88rem;
}

footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

@media (max-width: 860px) {
  footer.site .cols {
    grid-template-columns: 1fr;
  }
}

footer.site h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-mark {
  display: block;
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.footer-logo {
  display: block;
  height: 30px;
  width: auto;
}

footer.site a {
  color: #b6bfcc;
}

footer.site a:hover {
  color: #fff;
}

footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site li {
  margin-bottom: 8px;
}

.legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(rgba(17, 24, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-hero .wrap {
  max-width: 880px;
}

.page-hero .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Full logo lockups used once per page as a brand moment (About, 404) */
.logo-lockup {
  display: block;
  height: 60px;
  width: auto;
  margin-bottom: 24px;
}

.logo-lockup-stacked {
  display: block;
  height: 110px;
  width: auto;
  margin: 0 auto 26px;
}

/* Prose blocks on interior pages */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 1.6em;
}

/* Checklist (what's covered) */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin: 24px 0;
}

@media (max-width: 720px) {
  .checklist {
    grid-template-columns: 1fr;
  }
}

.checklist li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.checklist li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 4px;
  color: var(--ok);
  font-weight: 700;
}

/* Callout panel */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Scroll reveal ----------
   Hidden state applies ONLY under html.js (set by script.js after it confirms
   IntersectionObserver actually works). No JS, no IO, or a broken renderer
   -> content simply shows. Animation is an enhancement, never a gate. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  /* Keep color/shadow feedback on hover, drop the movement. */
  .btn:hover,
  .btn:active,
  .card:hover {
    transform: none;
  }

  .faq summary::after {
    transition: none;
  }
}
