/* =============================================================
   CbG — Shared chrome + service-page styles
   Used by /services/*.html. Pairs with tokens.css.
   ============================================================= */

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
body { background: var(--bg-canvas); color: var(--fg-1); }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 24px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--fg-1); }
.brand__mark { width: 56px; height: 56px; display: grid; place-items: center; flex: none; }
.brand__mark img { width: 56px; height: 56px; display: block; }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand__name { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand__name .by { color: var(--cbg-blue-500, #1F7AE0); font-weight: 800; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3, #6b7280);
}

.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav__links a {
  text-decoration: none; color: var(--fg-2);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  padding: 8px 14px; border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--fg-1); background: var(--bg-surface-2); }
.nav__links a.is-active { color: var(--accent); background: var(--cbg-blue-50); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  text-decoration: none; color: var(--fg-1); font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: var(--radius-md); flex: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav__phone svg { width: 17px; height: 17px; color: var(--accent); }
.nav__phone:hover { background: var(--bg-surface-2); color: var(--fg-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--fg-1); border-color: var(--border-default); }
.btn--ghost:hover { background: var(--bg-surface-2); border-color: var(--border-strong); }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Service hero ---------- */
.svc-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--cbg-blue-50) 0%, transparent 60%),
    var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}
.svc-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(26,29,34,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,29,34,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.svc-hero__inner { position: relative; max-width: 760px; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--border-default); }
.crumbs .cur { color: var(--fg-1); font-weight: 600; }

.svc-hero__icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: var(--cbg-blue-50); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
}
.svc-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06; letter-spacing: -0.03em; margin: 0;
}
.svc-hero h1 em { font-style: normal; color: var(--accent); }
.svc-hero__lead { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--fg-2); max-width: 60ch; }
.svc-hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Generic section ---------- */
section { padding: 80px 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 720px; }
.sec-head .eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.025em; margin: 0; line-height: 1.12; }
.sec-head p { font-size: 18px; color: var(--fg-2); margin: 0; line-height: 1.55; max-width: 58ch; }

/* prose body */
.prose { max-width: 68ch; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--fg-2); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg-1); }

/* ---------- Includes grid ---------- */
.inc { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.inc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.inc-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.inc-card__icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--cbg-blue-50); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.inc-card h3 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.inc-card p { font-size: 15px; color: var(--fg-2); line-height: 1.6; margin: 0; }

/* ---------- Outcomes (checklist) ---------- */
.outcomes-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--fg-1); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--cbg-mint-500); }
.checks strong { display: block; font-weight: 700; }
.checks span { color: var(--fg-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border-subtle); padding: 24px 0; }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-item h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -0.01em; }
.faq-item p { font-size: 16px; color: var(--fg-2); line-height: 1.65; margin: 0; }

/* ---------- Related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  text-decoration: none; color: var(--fg-1);
  font-weight: 600; font-size: 16px;
  transition: all var(--dur-base) var(--ease-out);
}
.related-card:hover { border-color: var(--cbg-blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--fg-1); }
.related-card .arrow { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cbg-ink-900); color: #fff; }
.cta-band .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.025em; margin: 0; color: #fff; line-height: 1.12; max-width: 22ch; }
.cta-band p { font-size: 18px; color: var(--cbg-gray-300); margin: 0; max-width: 56ch; line-height: 1.55; }
.cta-band__actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.25); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ---------- Footer ---------- */
footer.foot { background: var(--cbg-ink-900); color: #fff; padding: 64px 0 32px; border-top: 1px solid var(--cbg-ink-700); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.foot__brand { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.foot__lockup { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.foot__lockup-mark { width: 56px; height: 56px; flex: none; }
.foot__lockup-mark img { width: 100%; height: 100%; display: block; }
.foot__lockup-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.foot__lockup-word { font-family: var(--font-sans); font-weight: 800; font-size: 28px; letter-spacing: -0.025em; color: #fff; }
.foot__lockup-word .by { color: var(--cbg-blue-300); }
.foot__lockup-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cbg-gray-400); }
.foot__brand p { font-size: 14px; color: var(--cbg-gray-300); line-height: 1.55; margin: 0; }
.foot__contact { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.foot__contact a { display: inline-flex; align-items: center; gap: 9px; color: var(--cbg-gray-200); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--dur-fast); }
.foot__contact a:hover { color: #fff; }
.foot__contact svg { width: 15px; height: 15px; color: var(--cbg-blue-300); flex: none; }
.foot__col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cbg-gray-400); margin: 0 0 16px; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot__col a { color: var(--cbg-gray-200); text-decoration: none; font-size: 14px; transition: color var(--dur-fast); }
.foot__col a:hover { color: #fff; }
.foot__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--cbg-ink-700);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--cbg-gray-400); font-size: 13px;
}
.foot__social { display: flex; gap: 10px; }
.foot__social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--cbg-ink-800); border: 1px solid var(--cbg-ink-700);
  border-radius: var(--radius-md); color: var(--cbg-gray-300);
  transition: all var(--dur-base) var(--ease-out);
}
.foot__social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .inc-grid, .related-grid, .foot__grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav__links { display: none; }
  .nav__phone span { display: none; }
  section { padding: 56px 0; }
}
