/* ═══════════════════════════════════════════════════════════════
   SERVICE DETAIL PAGE — css/service-page.css

   Shared styles for the individual service pages (the first of which is
   quality-of-earnings.html; this file is the template for the rest).
   Reuses the shared site components from css/style.css — navbar, footer,
   .section, .cta-banner, .btn — and defines only this page type's hero
   and body layout. Colors/fonts come from the style.css design tokens.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   SERVICE PAGE — SPLIT HERO (shared core in css/style.css)
   Per the "Hero Section Standard" in CLAUDE.md, the home page hero
   (index.html) is the canonical reference. These overrides mirror the
   services-page hero (css/services.css) exactly — the split-hero CSS is
   duplicated per page across the site, so tweaks there must be mirrored
   here. Page-specific content (title, copy, photo) lives in the HTML.
   ═══════════════════════════════════════ */
.home-hero__grid {
  display: grid;
  /* Single column, matching the home hero — the photo is no longer a
     grid column; it pins to the section's right half (see
     .home-hero__bleed below). */
  grid-template-columns: 1fr;
}
/* ── Hero photo — full-bleed feathered, mirroring the home hero
   (design handoff "Hero — Image Treatments", Option 2). The photo
   pins to the section's right half and dissolves into the navy via
   mask gradients (fade-in from the left over 24%, fade-out at the
   bottom past 78%), with a navy wash over the dissolve so the
   headline stays legible. ── */
.home-hero__content { position: relative; max-width: 690px; }
.home-hero__bleed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  /* Above the section's grid overlay (z 0); .container (z 1) comes
     later in the DOM so text still paints on top. */
  z-index: 1;
  pointer-events: none;
}
.home-hero__bleed-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 24%),
    linear-gradient(to bottom, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 24%),
    linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.home-hero__bleed-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,29,69,0.55) 0%, rgba(11,29,69,0) 34%);
  pointer-events: none;
}
/* Hero glow customizations — mirror the home page hero per CLAUDE.md.
   - Top-right circle glow removed; ::before repurposed as the
     grid-line layer, radially masked (per the design handoff's
     bg-grid) so the grid fades out toward the lower-right and never
     shows behind the full-bleed photo's feathered edges.
   - All glows removed: ::after (which carried the bottom-edge teal
     ellipse glow) is disabled entirely. */
.home-hero::before {
  display: block;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(120% 120% at 30% 30%, #000 35%, transparent 90%);
  mask-image: radial-gradient(120% 120% at 30% 30%, #000 35%, transparent 90%);
}
/* When the full-bleed photo is showing (>1100px), also clamp the grid
   horizontally so it ends around the section midpoint and never
   reaches the photo's feathered edge — same values as the home hero. */
@media (min-width: 1101px) {
  .home-hero::before {
    -webkit-mask-image:
      radial-gradient(120% 120% at 30% 30%, #000 35%, transparent 90%),
      linear-gradient(to right, #000 45%, transparent 53%);
    -webkit-mask-composite: source-in;
    mask-image:
      radial-gradient(120% 120% at 30% 30%, #000 35%, transparent 90%),
      linear-gradient(to right, #000 45%, transparent 53%);
    mask-composite: intersect;
  }
}
.home-hero::after {
  display: none;
}
/* Below ~1100px the text column would run into the photo's opaque
   zone, so the bleed hides and the hero goes text-only — same
   breakpoint as the home hero. */
@media (max-width: 1100px) {
  .home-hero__bleed { display: none; }
}
@media (max-width: 900px) {
  .home-hero__title { font-size: 38px; }
}

/* ═══════════════════════════════════════
   SERVICE PAGE — BODY (Editorial Hairlines)

   Recreates the QoE design handoff "Option A": each section is a row of a
   300px label rail + a content column, separated by hairline rules. This is
   the reusable body template for the individual service pages.

   Palette is the handoff's two-tone mint — a darker "ink" green (#0F8C6B)
   for eyebrows/indices/links and a brighter mint (#2DCFA6) for accent dots —
   plus ink/body/dim text and tile/rule neutrals. It is scoped to .svc-body
   (as local custom properties) so it never leaks into the shared site theme;
   the hero and CTA on this page keep the site's own tokens.
   ═══════════════════════════════════════ */
.svc-body {
  --svc-ink: #0b1b3d;        /* headings */
  --svc-text: #3d4a66;       /* body prose */
  --svc-dim: #5a6b85;        /* muted / asides */
  --svc-mint: #2dcfa6;       /* accent (dots) */
  --svc-mint-ink: #0f8c6b;   /* eyebrows / indices / labels */
  --svc-tile: #f4f6f9;       /* card + table-head surface */
  --svc-rule: rgba(11, 27, 61, 0.10);
  --svc-rule-soft: rgba(11, 27, 61, 0.06);
  --svc-mint-wash: rgba(45, 207, 166, 0.06);
  --svc-mint-line: rgba(45, 207, 166, 0.26);
  background: var(--white);
  padding: 20px 0 20px;
}

/* ── Section row: label rail + content ── */
.svc-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  padding: 52px 0;
  border-top: 1px solid var(--svc-rule);
}
.svc-row--first { border-top: none; }
.svc-row__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--svc-ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
.svc-row__aside {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  font-style: normal;
  color: var(--svc-dim);
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 240px;
}

/* ── S.01 Overview — prose + standards note ── */
.svc-prose {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  color: var(--svc-text);
  margin: 0 0 22px;
}
.svc-prose:last-of-type { margin-bottom: 0; }
.svc-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
  max-width: 640px;
  padding: 16px 20px;
  background: var(--svc-mint-wash);
  border: 1px solid var(--svc-mint-line);
  border-radius: 10px;
}
.svc-note__icon {
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--svc-mint-ink);
}
.svc-note__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--svc-mint-ink);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.svc-note__body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--svc-text);
  margin: 0;
}

/* ── S.02 Engagement details — 2×2 grid ── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 36px;
}
.svc-item {
  border-top: 2px solid var(--svc-mint-line);
  padding-top: 18px;
}
.svc-item__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.svc-item__num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--svc-mint-ink);
}
.svc-item__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--svc-ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.svc-item__body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.62;
  color: var(--svc-text);
  margin: 0;
}

/* ── S.03 Who it's for — audience cards ── */
.svc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--svc-tile);
  border-radius: 12px;
  padding: 26px 26px 28px;
}
.svc-card__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--svc-mint-ink);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.svc-card__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--svc-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.svc-card__body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  line-height: 1.62;
  color: var(--svc-text);
  margin: 0;
}

/* ── S.04 Buy-side vs. sell-side — comparison table ── */
.svc-compare {
  border: 1px solid var(--svc-rule);
  border-radius: 14px;
  overflow: hidden;
}
.svc-compare__head {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  background: var(--svc-tile);
  border-bottom: 1px solid var(--svc-rule);
}
.svc-compare__col {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--svc-mint-ink);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.svc-compare__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--svc-mint);
  flex-shrink: 0;
}
.svc-compare__row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  border-top: 1px solid var(--svc-rule-soft);
}
.svc-compare__row:first-of-type { border-top: none; }
.svc-compare__aspect {
  padding: 18px 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--svc-dim);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.5;
}
.svc-compare__cell {
  padding: 16px 24px;
  border-left: 1px solid var(--svc-rule-soft);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--svc-text);
  margin: 0;
}

/* ── Responsive (body sections; hero responsive rules live with the
   split-hero block above, mirroring the other pages) ── */
@media (max-width: 1024px) {
  .svc-row {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 44px 0;
  }
  .svc-row__aside { max-width: none; }
}
@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; row-gap: 30px; }
  .svc-cards { grid-template-columns: 1fr; }
  /* Comparison table stacks: aspect becomes a full-width label above the
     buy/sell pair, which sit side by side beneath it. */
  .svc-compare__head { grid-template-columns: 1fr 1fr; }
  .svc-compare__corner { display: none; }
  .svc-compare__col { padding: 12px 16px; letter-spacing: 0.16em; }
  .svc-compare__row { grid-template-columns: 1fr 1fr; }
  .svc-compare__aspect {
    grid-column: 1 / -1;
    padding: 14px 16px 8px;
    background: var(--svc-tile);
  }
  .svc-compare__cell { padding: 12px 16px 16px; font-size: 14.5px; }
  .svc-compare__cell:first-of-type { border-left: none; }
}
