/* ==========================================================
   Stealth Investigation Services PLLC — site stylesheet
   Design language: the case file. IBM Plex family (the
   vernacular of official documents), night-navy + brass,
   mono "FILE" eyebrows, one redaction-reveal moment.
   ========================================================== */

:root {
  --ink: #0f1b26;        /* night navy — hero, footer */
  --deep: #16283a;       /* panel navy */
  --paper: #f2f3f0;      /* cool document paper */
  --white: #ffffff;
  --body: #2a3742;       /* body text on paper */
  --muted: #5c6a76;
  --brass: #a98b3c;      /* badge brass accent */
  --brass-dark: #8a7130;
  --line: #d9dbd5;
  --stamp: #8f3a32;      /* stamp red — used once per page at most */
  --radius: 3px;
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--body);
  line-height: 1.65;
  font-size: 1.0625rem;
}

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

a { color: var(--brass-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ---------- type roles ---------- */
h1, h2, h3, .display {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem; height: 3px;
  background: var(--brass);
  flex: none;
}
.on-dark .eyebrow { color: var(--brass); }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-family: "IBM Plex Serif", serif;
  font-weight: 600; font-size: 1.05rem; color: var(--white);
  text-decoration: none; line-height: 1.25;
}
.brand small {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brass);
}
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #cdd6dd; text-decoration: none; padding: 0.5rem 0.65rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--white); border-bottom-color: var(--brass); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--brass); }
.nav-call {
  background: var(--brass); color: var(--ink) !important;
  border-radius: var(--radius); font-weight: 600;
  border-bottom: none !important;
}
.nav-call:hover { background: #c2a14a; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(15,27,38,0.96) 55%, rgba(22,40,58,0.9)),
    var(--ink);
  color: #e6ebef;
  padding: 5.5rem 1.25rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {           /* faint file-grid texture */
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 2.6rem;
  pointer-events: none;
}
.hero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero p.lede { max-width: 52ch; margin-top: 1.25rem; font-size: 1.15rem; color: #c9d3da; }

/* the one signature moment: a redaction bar that lifts */
.redact {
  position: relative; display: inline-block; color: var(--white);
  white-space: nowrap;
}
.redact::after {
  content: ""; position: absolute; inset: 0.05em -0.08em -0.02em;
  background: #000; transform-origin: left center;
  animation: unredact 0.9s ease 0.85s forwards;
}
@keyframes unredact { to { transform: scaleX(0); transform-origin: right center; } }
@media (prefers-reduced-motion: reduce) { .redact::after { display: none; } }

.stamp {
  position: absolute; top: 2.2rem; right: 1.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp);
  padding: 0.35rem 0.7rem; transform: rotate(4deg); opacity: 0.85;
  border-radius: 2px; user-select: none;
}

.hero-actions { margin-top: 2.25rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; border-radius: var(--radius);
  padding: 0.85rem 1.5rem; font-weight: 600; font-size: 1rem;
  font-family: "IBM Plex Sans", sans-serif;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #c2a14a; color: var(--ink); }
.btn-ghost { border: 1px solid #4a5a68; color: #e6ebef; }
.btn-ghost:hover { border-color: var(--brass); color: var(--white); }

.hero-cred {
  margin-top: 3rem; display: flex; gap: 2.5rem; flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem;
  letter-spacing: 0.08em; color: #9fb0bd; text-transform: uppercase;
}
.hero-cred span strong { display: block; color: var(--white); font-size: 0.85rem; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.on-dark { background: var(--deep); color: #d7dee4; }
.section.on-dark h2, .section.on-dark h3 { color: var(--white); }
.section p + p { margin-top: 1rem; }
.section .prose { max-width: var(--measure); }
.section h2 { margin-bottom: 1.25rem; }

/* ---------- service files grid ---------- */
.files {
  display: grid; gap: 1.1rem; margin-top: 2.25rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.file-card {
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--brass); border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.file-card .file-no {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem;
  letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase;
}
.file-card h3 { font-size: 1.12rem; }
.file-card p { font-size: 0.95rem; color: var(--muted); }
.section.alt .file-card { background: var(--paper); }

/* ---------- fact list / why us ---------- */
.facts { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2rem; }
.fact h3 { margin-bottom: 0.4rem; }
.fact h3::before {
  content: "▸ "; color: var(--brass);
}
.on-dark .fact p { color: #b7c3cd; }

/* ---------- contact block ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2rem; }
.contact-card {
  border-left: 3px solid var(--brass); padding-left: 1.25rem;
}
.contact-card .label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.3rem;
}
.contact-card a { font-size: 1.15rem; font-weight: 600; }
.on-dark .contact-card .label { color: #9fb0bd; }
.on-dark .contact-card a { color: var(--white); }

/* ---------- book feature ---------- */
.book-wrap { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 780px) { .book-wrap { grid-template-columns: 280px 1fr; } }
.book-cover {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15,27,38,0.18);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #9fb0bd; padding: 3rem 1.25rem 2.5rem;
  font-size: 0.92rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.site-footer h4 {
  font-family: "IBM Plex Mono", monospace; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 0.75rem; font-weight: 500;
}
.site-footer a { color: #cdd6dd; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal {
  max-width: 1080px; margin: 2.5rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.06em; color: #6f8090;
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  background: var(--ink); color: #e6ebef; padding: 3.5rem 1.25rem;
}
.page-hero .hero-inner h1 { color: var(--white); }
.page-hero p { max-width: 56ch; margin-top: 0.9rem; color: #c9d3da; }

/* ---------- misc ---------- */
.service-detail { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.service-detail:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.service-detail h3 { margin-bottom: 0.5rem; }
.service-detail .file-no {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.16em; color: var(--brass-dark); text-transform: uppercase;
}
.callout {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  padding: 1.5rem 1.75rem; border-radius: var(--radius); margin-top: 2.5rem;
  max-width: 70ch;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 100;
  display: flex; align-items: center; gap: 0.6rem;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 0.8rem 1.2rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.wa-float:hover { background: #1ebe5b; color: #fff; }
.wa-float svg { width: 1.35rem; height: 1.35rem; flex: none; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0.9rem; } }

/* ---------- service photos ---------- */
.file-card .card-photo {
  width: calc(100% + 2.7rem); max-width: calc(100% + 2.7rem);
  margin: -1.35rem -1.35rem 0.85rem;
  aspect-ratio: 3/2; object-fit: cover; display: block;
}
.service-detail { overflow: hidden; }
.service-photo {
  float: right; width: min(320px, 42%);
  margin: 0.3rem 0 1rem 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 3/2; object-fit: cover;
}
@media (max-width: 640px) {
  .service-photo { float: none; width: 100%; margin: 0 0 1rem; }
}
