/* Cornerstone Consulting — design system
   Brand from official logo: magenta #A80C5A, charcoal #404241, silver cube */

:root {
  /* Surfaces — warm local paper */
  --bg: #f5f2eb;
  --bg-elevated: #fffcf7;
  --bg-subtle: #ebe6dc;
  --bg-inverse: #1a1c1e;
  --bg-inverse-elevated: #25282b;

  /* Text */
  --fg: #1a1c1e;
  --fg-muted: #5a5f66;
  --fg-subtle: #7a8088;
  --fg-inverse: #f3f1ec;
  --fg-inverse-muted: #a8adb4;

  /* Brand — extracted from logo with name.jpg */
  --brand: #a80c5a;
  --brand-hover: #8c0a4b;
  --brand-deep: #700838;
  --brand-bright: #b00c5c;
  --brand-soft: color-mix(in oklab, var(--brand) 11%, transparent);
  --brand-soft-strong: color-mix(in oklab, var(--brand) 18%, transparent);
  --brand-fg: #ffffff;
  --brand-charcoal: #404241;
  --brand-silver: #c0c2c2;

  --accent: var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-soft: var(--brand-soft);
  --accent-fg: var(--brand-fg);

  /* Borders & depth */
  --border: color-mix(in oklab, var(--fg) 10%, transparent);
  --border-strong: color-mix(in oklab, var(--fg) 18%, transparent);
  --border-inverse: color-mix(in oklab, var(--fg-inverse) 12%, transparent);
  --shadow-sm: 0 1px 2px color-mix(in oklab, var(--fg) 6%, transparent);
  --shadow-md: 0 8px 24px color-mix(in oklab, var(--fg) 8%, transparent);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Vertical rhythm (keeps section stacks from doubling into huge voids) */
  --section-y: var(--space-8);       /* 64px default section pad */
  --section-y-tight: var(--space-6); /* 32px tight sections */
  --section-gap: var(--space-7);     /* 48px when sections meet */

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  --text-4xl: clamp(2.75rem, 2rem + 3vw, 4.25rem);

  --leading-tight: 1.12;
  --leading-snug: 1.28;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.025em;
  --tracking-display: -0.03em;
  --tracking-wide: 0.06em;

  /* Motion */
  --motion-quick: 150ms;
  --motion-fast: 250ms;
  --motion-medium: 350ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1120px;
  --container-narrow: 720px;
  --header-h: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; }
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }

/* Layout helpers */
.container {
  width: min(100% - 2 * var(--space-5), var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2 * var(--space-5), var(--container-narrow));
  margin-inline: auto;
}

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand);
}
.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-muted);
}
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-quick) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--brand);
  color: var(--brand-fg);
}
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn--secondary:hover {
  background: var(--bg-elevated);
  border-color: color-mix(in oklab, var(--brand) 35%, var(--fg));
  color: var(--brand-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-inverse);
  border-color: var(--border-inverse);
}
.btn--ghost:hover {
  background: color-mix(in oklab, var(--fg-inverse) 8%, transparent);
}
.btn--inverse {
  background: var(--fg-inverse);
  color: var(--bg-inverse);
}
.btn--inverse:hover {
  background: color-mix(in oklab, var(--fg-inverse) 90%, white);
}
.btn--full { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Logo — full lockup from provided asset */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.logo__img {
  /* Official lockup is wide (~10:1); size by max-height so aspect stays correct */
  height: auto;
  width: auto;
  max-height: 40px;
  max-width: min(360px, 58vw);
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 420px) {
  .logo__img {
    max-height: 28px;
    max-width: min(240px, 64vw);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
/* Nav chips: neutral surface; thin brand outline on hover/current (no pink fill) */
.nav a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid transparent;
  transition:
    color var(--motion-quick) var(--ease-out),
    border-color var(--motion-quick) var(--ease-out),
    background-color var(--motion-quick) var(--ease-out);
}
.nav a:hover {
  color: var(--fg);
  background: transparent;
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
}
.nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  background: transparent;
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
}
.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .nav, .header-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  background: var(--bg);
  padding: var(--space-5);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a:not(.btn) {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  border: 1px solid transparent;
  transition:
    border-color var(--motion-quick) var(--ease-out),
    color var(--motion-quick) var(--ease-out);
}
.mobile-nav a:not(.btn):hover {
  background: transparent;
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  color: var(--fg);
}
.mobile-nav a:not(.btn)[aria-current="page"] {
  background: transparent;
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  color: var(--fg);
  font-weight: 600;
}
.mobile-nav__cta {
  margin-top: var(--space-4);
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-7) 0;
  overflow: hidden;
}
.hero--home {
  /* Flat warm paper — no brand wash / pink gradient */
  background: var(--bg);
}
/* First block after home hero */
.hero + .section {
  padding-top: var(--section-gap);
}
.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
  }
}
.hero__copy { max-width: 38rem; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  margin: var(--space-4) 0 var(--space-5);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero-card {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--brand);
}
.hero-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-inverse-muted);
  margin-bottom: var(--space-5);
}
.hero-card__list {
  display: grid;
  gap: var(--space-4);
}
.hero-card__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-inverse);
}
.hero-card__item:first-child {
  padding-top: 0;
  border-top: none;
}
.hero-card__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: color-mix(in oklab, var(--brand-bright) 70%, white);
  min-width: 1.5rem;
}
.hero-card__item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 2px;
}
.hero-card__item span {
  font-size: var(--text-sm);
  color: var(--fg-inverse-muted);
  line-height: var(--leading-snug);
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}
.section--tight {
  padding: var(--section-y-tight) 0;
}
/* Consecutive sections: avoid 2× full pad (was ~192px voids) */
.section + .section {
  padding-top: var(--section-gap);
}
.section + .section--tight {
  padding-top: var(--section-y-tight);
}
.section--tight + .section {
  padding-top: var(--section-gap);
}
/* CTA bands: more space above the box than below (footer no longer doubles below) */
.section:has(.cta-band) {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y-tight);
}
.section--tight:has(.cta-band) {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-y-tight);
}
/* Last main block: even footing into footer */
main > .section:last-child {
  padding-bottom: var(--space-7);
}
main > .section:last-child:has(.cta-band) {
  padding-bottom: var(--space-7);
}
.section--inverse {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
}
.section--subtle { background: var(--bg-subtle); }
.section--elevated { background: var(--bg-elevated); }
.section__header {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}
.section__header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: var(--space-3) 0 var(--space-4);
}
.section__header p {
  color: var(--fg-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}
.section--inverse .section__header p,
.section--inverse .muted { color: var(--fg-inverse-muted); }
.section__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.section__top .section__header { margin-bottom: 0; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  background: var(--bg-elevated);
  padding: var(--space-5) var(--space-5);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: var(--space-2);
  color: var(--brand);
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-snug);
}

/* Service cards */
.card-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2-lg { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
a.card:hover {
  border-color: color-mix(in oklab, var(--brand) 45%, var(--border-strong));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Icon wells: outlined in brand, transparent fill; glyph stays brand pink */
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--border));
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-1);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: var(--leading-snug);
}
.card p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  margin-top: var(--space-2);
}
.card__link svg { width: 14px; height: 14px; }

/* Feature rows */
.feature-list {
  display: grid;
  gap: var(--space-4);
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
/* Lifecycle / step indices: outline well, brand numeral (no solid pink fill) */
.feature__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--border));
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  flex-shrink: 0;
}
.feature h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.feature p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}

/* Split layout */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .split--reverse > :first-child { order: 2; }
}
.split__visual {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  border-top: 3px solid var(--brand);
}
.split__visual-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}
.split__visual-meta {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-inverse);
}
.split__visual-meta div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.split__visual-meta dt { color: var(--fg-inverse-muted); }
.split__visual-meta dd { font-weight: 600; text-align: right; }
.split__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: var(--space-3) 0 var(--space-4);
}
.split__body p {
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.split__body p:last-of-type { margin-bottom: 0; }
.check-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--text-sm);
  color: var(--fg);
  line-height: var(--leading-snug);
}
.check-list svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  margin-top: 1px;
  flex-shrink: 0;
}

/* Process steps */
.steps {
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}
.steps + p {
  margin-top: var(--space-5);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  position: relative;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brand);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--border));
  margin-bottom: var(--space-4);
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
}
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 var(--space-5);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) 0;
  font-weight: 600;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform var(--motion-fast) var(--ease-out);
  flex-shrink: 0;
  margin-top: -4px;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.faq details[open] {
  border-color: color-mix(in oklab, var(--brand) 22%, var(--border));
}
.faq details p {
  padding: 0 0 var(--space-5);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

/* CTA band */
.cta-band {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-6);
  display: grid;
  gap: var(--space-5);
  align-items: center;
  border-top: 3px solid var(--brand);
}
@media (min-width: 720px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    padding: var(--space-8) var(--space-7);
  }
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}
.cta-band p {
  color: var(--fg-inverse-muted);
  max-width: 36rem;
  line-height: var(--leading-relaxed);
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
/* CTA actions: thin brand outline (no solid fill), same language as nav/cards */
.cta-band__actions .btn,
.cta-band__actions .btn--inverse,
.cta-band__actions .btn--ghost {
  background: transparent;
  color: var(--fg-inverse);
  border-color: color-mix(in oklab, var(--brand) 70%, var(--fg-inverse));
}
.cta-band__actions .btn:hover,
.cta-band__actions .btn--inverse:hover,
.cta-band__actions .btn--ghost:hover {
  background: transparent;
  color: var(--fg-inverse);
  border-color: color-mix(in oklab, var(--brand) 90%, white);
}

/* Page hero (inner pages) */
.page-hero {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
  /* Flat warm paper — no brand wash / pink gradient */
  background: var(--bg);
}
.page-hero + .section {
  padding-top: var(--section-gap);
}
/* Services list sits in a bare .container after page-hero */
.page-hero + .container {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  margin: var(--space-3) 0 var(--space-4);
  max-width: 18ch;
}
.page-hero .lead { max-width: 40rem; }

/* Service detail blocks */
.service-detail {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  /* Keep tags/title clear of sticky header when jumping to #anchors */
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}
.service-detail:first-of-type {
  padding-top: var(--space-5);
}
.service-detail:last-of-type {
  padding-bottom: var(--space-6);
  border-bottom: none;
  margin-bottom: var(--space-6);
}
@media (min-width: 900px) {
  .service-detail {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-8);
  }
}
.service-detail__aside h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}
.service-detail__aside p {
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
/* Segment chips (Core / Operations / …): outline only, no pink fill */
.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--border));
  color: var(--fg);
}
.capability-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 560px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}
.capability {
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.capability h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.capability p {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-8);
    align-items: start;
  }
}
.contact-info {
  display: grid;
  gap: var(--space-5);
}
.contact-block h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--space-2);
}
.contact-block p,
.contact-block a {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}
.contact-block a:hover { color: var(--brand); }
.contact-phone {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.contact-phone:hover {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.location-card__body .contact-phone {
  display: inline-block;
  margin-top: var(--space-2);
}
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--brand);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.contact-form > .muted {
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.form-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 560px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: var(--space-2); }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-sm);
  transition:
    border-color var(--motion-quick) var(--ease-out),
    box-shadow var(--motion-quick) var(--ease-out);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--leading-normal);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-subtle); }
.form-note {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}
.form-success {
  display: none;
  padding: var(--space-5);
  background: var(--brand-soft);
  border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent);
  border-radius: var(--radius-md);
  color: var(--brand-hover);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.form-success.is-visible { display: block; }

/* Footer — no extra margin-top (was stacking with last section into ~2× voids) */
.site-footer {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: 0;
  border-top: 3px solid var(--brand);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border-inverse);
}
/* Brand left; Navigate / Services / Support cluster on the right */
.footer-brand {
  flex: 1 1 14rem;
  max-width: 22rem;
  min-width: 12rem;
}
.footer-nav-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  /* Support stays at the right of the cluster; gaps tighten toward it */
  margin-left: auto;
  /* Services→Support ≈ x; Navigate→Services ≈ 2x */
  column-gap: 0;
  row-gap: var(--space-6);
}
.footer-nav-cluster .footer-col {
  flex: 0 0 auto;
  min-width: 8.5rem;
}
/* Navigate: further from Support (2x) */
.footer-nav-cluster .footer-col:nth-child(1) {
  margin-right: var(--space-8); /* 64px ≈ 2x */
}
/* Services: closer to Support (x) */
.footer-nav-cluster .footer-col:nth-child(2) {
  margin-right: var(--space-5); /* 24px ≈ x */
}
/* Support: rightmost, no extra margin */
.footer-nav-cluster .footer-col:nth-child(3) {
  margin-right: 0;
}
@media (max-width: 719px) {
  .footer-nav-cluster {
    width: 100%;
    margin-left: 0;
  }
  .footer-nav-cluster .footer-col:nth-child(1),
  .footer-nav-cluster .footer-col:nth-child(2) {
    margin-right: var(--space-6);
  }
}
.footer-brand .logo { margin-bottom: var(--space-4); }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--fg-inverse-muted);
  line-height: var(--leading-relaxed);
  max-width: 28ch;
}
.footer-col h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-inverse-muted);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--fg-inverse);
  opacity: 0.85;
  transition: opacity var(--motion-quick) var(--ease-out), color var(--motion-quick) var(--ease-out);
}
.footer-col a:hover {
  opacity: 1;
  color: color-mix(in oklab, var(--brand-bright) 55%, white);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--fg-inverse-muted);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.text-balance { text-wrap: balance; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0 !important; }

/* Location card + subtle map */
.location-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.location-card__map {
  height: 200px;
  position: relative;
  background: var(--bg-subtle);
  overflow: hidden;
}
.location-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Soft, paper-like map (less “busy” than full-color tiles) */
  filter: grayscale(0.55) contrast(0.92) brightness(1.06) saturate(0.75);
  pointer-events: none;
}
/* Soft brand wash so the map sits quietly with the site palette */
.location-card__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      160deg,
      color-mix(in oklab, var(--bg) 35%, transparent) 0%,
      transparent 45%,
      color-mix(in oklab, var(--brand) 8%, transparent) 100%
    );
  pointer-events: none;
  z-index: 1;
}
/* Map pin: brand outline; full-color cube mark */
.location-card__pin {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--bg-elevated);
  border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--border));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  pointer-events: none;
}
.location-card__pin img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transform: rotate(45deg);
  filter: none;
}
.location-card__body {
  padding: var(--space-5);
}
.location-card__body h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.location-card__body p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}

/* Support page section anchors clear sticky header */
#get-help, #guides, #choice, #remote-access, #pbx, #efax, #exchange-online {
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}

/* Support path accordion (Contact Support / Self-Guided Help) */
.support-path-accordion {
  display: grid;
  gap: var(--space-3);
  max-width: 920px;
}
.path-acc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--motion-fast) var(--ease-out);
  scroll-margin-top: calc(var(--header-h) + var(--space-5));
}
.path-acc:hover,
.path-acc:focus-within,
.path-acc[open] {
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
}
.path-acc__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  padding-right: calc(var(--space-5) + 1.5rem);
  position: relative;
  background: transparent;
}
.path-acc__summary::-webkit-details-marker { display: none; }
.path-acc__summary::after {
  content: "";
  position: absolute;
  right: var(--space-5);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.75px solid var(--fg-muted);
  border-bottom: 1.75px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--motion-fast) var(--ease-out);
}
.path-acc[open] > .path-acc__summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.path-acc__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.path-acc__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--brand) 55%, var(--border));
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.path-acc__icon svg {
  width: 22px;
  height: 22px;
}
.path-acc__copy {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.path-acc__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  line-height: var(--leading-snug);
}
.path-acc__blurb {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}
.path-acc__body {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}
.path-acc__intro {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-5);
  max-width: 40rem;
}
.support-inline-cta {
  margin-top: var(--space-7);
}
/* CTA band may contain a button styled as inverse */
.cta-band__actions .btn--inverse {
  cursor: pointer;
}

/* Guide category accordion (collapsed by default) */
.guide-accordion {
  display: grid;
  gap: var(--space-3);
}
.guide-acc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--motion-fast) var(--ease-out);
}
/* Thin brand outline on hover / open — no pink fill (matches nav & cards) */
.guide-acc:hover,
.guide-acc:focus-within,
.guide-acc[open] {
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  box-shadow: none;
}
.guide-acc__summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  position: relative;
  padding-right: calc(var(--space-5) + 1.5rem);
  background: transparent;
  transition: background-color var(--motion-quick) var(--ease-out);
}
.guide-acc__summary::-webkit-details-marker { display: none; }
.guide-acc__summary::after {
  content: "";
  position: absolute;
  right: var(--space-5);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.75px solid var(--fg-muted);
  border-bottom: 1.75px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--motion-fast) var(--ease-out);
}
.guide-acc[open] > .guide-acc__summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.guide-acc__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  line-height: var(--leading-snug);
}
.guide-acc__blurb {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
  max-width: 40rem;
}
.guide-acc__body {
  padding: 0 var(--space-5) var(--space-5);
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}
.guide-acc__summary:hover {
  background: transparent;
}
.guide-acc__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Guides (knowledge base) */
.page-hero--guide .lead { max-width: 40rem; }
.page-hero--guide .eyebrow a {
  color: inherit;
  text-decoration: none;
}
.page-hero--guide .eyebrow a:hover { color: var(--brand-deep); }

.guide-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg);
}
.guide-body > p,
.guide-body .guide-block {
  margin: 0 0 var(--space-4);
  color: var(--fg-muted);
}
.guide-body > p:first-child,
.guide-body > p strong:only-child {
  color: var(--fg);
}
.guide-body h2,
.guide-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin: var(--space-7) 0 var(--space-3);
  line-height: var(--leading-snug);
}
.guide-body h2 { font-size: var(--text-xl); }
.guide-body h3 { font-size: var(--text-lg); }
.guide-body h3:first-child { margin-top: 0; }
.guide-body ul,
.guide-body ol {
  margin: 0 0 var(--space-5);
  padding-left: 1.25rem;
  color: var(--fg-muted);
}
.guide-body li { margin-bottom: var(--space-2); }
.guide-body ul { list-style: disc; }
.guide-body ol { list-style: decimal; }
.guide-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guide-body a:hover { color: var(--brand-hover); }
.guide-body code,
.guide-body .guide-code-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid color-mix(in oklab, var(--brand) 22%, var(--border));
  border-radius: var(--radius-xs);
  padding: 0.12em 0.4em;
  white-space: nowrap;
}
.guide-body blockquote {
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--brand);
  background: var(--bg-elevated);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--fg-muted);
}
.guide-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-6) 0;
}
.guide-body .guide-u {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guide-figure {
  margin: 0 0 var(--space-5);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.guide-figure img {
  width: 100%;
  height: auto;
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}
.guide-code-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6) !important;
}
.guide-code-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0 !important;
}
.guide-code-desc {
  color: var(--fg-muted);
  font-size: var(--text-sm);
  flex: 1;
  min-width: 12rem;
}
.guide-pre {
  overflow-x: auto;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
  white-space: pre-wrap;
}
.guide-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
/* Guide article section: less dead air under the action row */
.page-hero--guide + .section {
  padding-bottom: var(--space-7);
}

/* Values grid */
.values {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .values { grid-template-columns: repeat(3, 1fr); }
}
.value {
  padding: var(--space-5);
  border-top: 2px solid var(--brand);
  background: var(--bg-elevated);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.value h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.value p {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: var(--leading-relaxed);
}

/* Breadcrumb-style page context */
.context-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin-top: var(--space-5);
}
.context-line a:hover { color: var(--brand); }
.context-line span { color: var(--fg-subtle); }
