/* Adapt Systems — styles.css (Direction A+)
 * Quiet, confident enterprise aesthetic.
 * Off-white surfaces, hairline borders, no gradients/glow/glass.
 * Inter Tight (display) + Inter (body) + JetBrains Mono (labels).
 * Single muted-blue accent.
 */

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --surface-alt:  #F4F3EE;

  /* Foreground */
  --ink:          #0B0F12;
  --ink-2:        #3D454C;
  --muted:        #7A8189;
  --on-dark:      #FFFFFF;

  /* Lines */
  --line:         #E6E5E0;
  --line-strong:  #D4D2CC;

  /* Accent */
  --accent:       #3B6FB0;
  --accent-ink:   #2C5A95;
  --accent-soft:  #E8EEF6;

  /* Radii */
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    18px;
  --radius-pill:  999px;

  /* Shadow (used sparingly) */
  --shadow-sm:    0 1px 0 rgba(11,15,18,0.04);
  --shadow:       0 1px 2px rgba(11,15,18,0.04), 0 8px 24px rgba(11,15,18,0.05);

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max:          1200px;
  --gutter:       24px;

  /* Motion */
  --dur-fast:     120ms;
  --dur-med:      200ms;
  --ease-out:     cubic-bezier(.2,.6,.2,1);
}

/* ─── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ─── Container ──────────────────────────────────────────────── */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ─── Accessibility ──────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 1000;
  background: var(--ink); color: var(--on-dark);
  padding: 0.55rem 0.8rem; border-radius: 8px;
  font-size: 0.875rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Decorative bg layers — neutralized ─────────────────────── */
.bg-canvas, .bg-orb, .bg-grid { display: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 1.25rem;
  color: var(--ink);
  /* explicitly clear any inherited gradient text fill */
  background: none;
  -webkit-text-fill-color: var(--ink);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

p { margin: 0; }

/* ─── Eyebrow (mono label, no pill) ──────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Header / nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.menu a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.menu a:hover, .menu a:focus-visible {
  color: var(--ink);
}

.menu a.btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.menu a.btn:hover, .menu a.btn:focus-visible {
  opacity: 0.86;
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 8px;
  background: var(--surface);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid var(--ink);
  transition: opacity var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  /* clear any inherited gradient/shadow */
  box-shadow: none;
  filter: none;
  transform: none;
}
.btn:hover, .btn:focus-visible {
  opacity: 0.86;
  transform: none;
  filter: none;
  box-shadow: none;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--surface-alt);
  color: var(--ink);
  border-color: var(--line-strong);
  opacity: 1;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-dark);
}
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  opacity: 1;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 64px;
  position: relative;
}
.hero::before { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.hero-copy { padding: 0; background: none; border: 0; box-shadow: none; }

.positioning {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 28px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 0;
  margin-right: 20px;
  border-right: 1px solid var(--line);
  background: none;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}
.hero-meta span::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 1;
  flex-shrink: 0;
}

/* Hero side panel (Advisory Focus) */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.panel-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-panel li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.hero-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Trust strip ────────────────────────────────────────────── */
.trust-strip {
  padding: 0 0 80px;
}
.trust-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.trust-grid p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
  max-width: 24ch;
}
.trust-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  flex: 1;
}
.trust-grid li {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0;
  border: 0;
}

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt {
  background: var(--surface-alt);
  position: relative;
}

.section-head {
  margin-bottom: 48px;
  max-width: 60ch;
}
.section-head h2 { margin-top: 8px; }

/* ─── Cards ──────────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 16px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
  /* clear inherited shadows / accent line */
  box-shadow: none;
}
.card::after { display: none; }
.card:hover {
  border-color: var(--line-strong);
  transform: none;
  box-shadow: none;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Service card icon area — replaced with a small sigil block */
.card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 0;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Case-style cards keep simpler treatment */
.card.case h3 { margin-bottom: 12px; }

/* ─── Outcomes / split ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split > div > p:last-child {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 48ch;
}

.stats {
  margin: 0;
  display: grid;
  gap: 16px;
}
.stats > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: none;
}
.stats dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--ink);
  /* clear gradient text */
  background: none;
  -webkit-text-fill-color: var(--ink);
}
.stats dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ─── Process / timeline ─────────────────────────────────────── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.timeline li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: visible;
  box-shadow: none;
}
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding: 0;
}
.step::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}
.timeline li h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.timeline li p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ─── CTA ────────────────────────────────────────────────────── */
.cta { padding: 96px 0; }
.cta-inner {
  text-align: center;
  padding: 64px 32px;
  background: var(--ink);
  color: var(--on-dark);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
  position: relative;
  overflow: hidden;
  /* override generic glass background */
  background-image: none;
}
.cta-inner::before { display: none; }

.cta-inner .eyebrow { color: rgba(250, 250, 247, 0.65); }
.cta-inner .eyebrow::before { background: var(--on-dark); }

.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 16px;
  color: var(--on-dark);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.cta-inner > p {
  color: rgba(250, 250, 247, 0.78);
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* CTA buttons sit on dark — invert ghost */
.cta-inner .btn {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}
.cta-inner .btn:hover { opacity: 0.9; }
.cta-inner .btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(250, 250, 247, 0.25);
}
.cta-inner .btn-ghost:hover {
  background: rgba(250, 250, 247, 0.08);
  color: var(--on-dark);
  border-color: rgba(250, 250, 247, 0.45);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 250, 247, 0.12);
}
.cta-link {
  color: rgba(250, 250, 247, 0.78);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-link:hover { color: var(--on-dark); }
.cta-link--accent,
.cta-link--brand {
  /* both link variants use the same muted-blue accent in this system */
  color: #88B0DD;
}
.cta-link--accent:hover,
.cta-link--brand:hover { color: var(--on-dark); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 40px 0 48px;
  background: var(--bg);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.9;
}
.footer-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-wrap a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-wrap a:hover { color: var(--ink); }

/* ─── Fade-up entrance ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid, .split, .cards-3, .cards-2, .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section { padding: 64px 0; }
  .cta { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }

  .trust-grid { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust-grid p { max-width: none; }
  .trust-grid ul { gap: 16px; }

  .menu-toggle { display: inline-block; }
  .menu {
    display: none;
    position: absolute;
    right: 24px;
    top: 64px;
    width: min(20rem, calc(100% - 48px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu li { width: 100%; }
  .menu a {
    display: block;
    padding: 10px 12px;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
  }
  .menu a:hover { background: var(--surface-alt); }
  .menu a.btn { margin-top: 8px; justify-content: center; }
}

@media (max-width: 680px) {
  .brand-logo { height: 24px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-logo { height: 20px; }
  .cta-inner { padding: 40px 20px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
