/* site-version: 2026.10.04.2 */
/* ============================================================
   service-redesign.css - Redesign 2026-10 (preserve-brand pass)
   Loaded by the six service detail pages (/services/<slug>/) and
   the six platform detail pages (/platforms/...), after site.css
   and service-page.css. Same tokens, fonts and copy as before;
   contrast, depth and rhythm change. The problem/solution cards
   are deliberately left as originally designed.
   ============================================================ */

:root {
  /* Lime tints for text on blue (#8DB331 itself is under 3:1 on #006C9F) */
  --lime-on-blue-lg: #c9e27a;
  --lime-on-blue-sm: #dcec9f;
  /* Darker olive for text on white: large 3.7:1, small 5.3:1 */
  --accent-ink: #6b8a17;
  --accent-ink-sm: #5a7512;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 3px solid var(--accent);
}

h1,
h2,
h3 {
  text-wrap: balance;
}
.section-sub,
.lead,
.hero-sub,
.final-cta p {
  text-wrap: pretty;
}

/* Grain on the blue bands */
.hero,
.hiw,
.final-cta {
  position: relative;
}
.hero::after,
.hiw::after,
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero > .container,
.hiw > .container,
.final-cta > .container {
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-breadcrumb,
.hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}
.hero-breadcrumb span {
  color: rgba(255, 255, 255, 0.45);
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 em {
  color: var(--lime-on-blue-lg);
}
.hero-sub {
  color: rgba(255, 255, 255, 0.88);
}
.hero-trust-item {
  color: rgba(255, 255, 255, 0.86);
}
.hero-trust-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.5l3 3 5-6' stroke='%23c9e27a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 12px;
}
.hero-actions,
.final-cta-actions {
  gap: 1.75rem;
}

/* Secondary call to action: text link instead of a ghost button */
.hero .btn-outline-white,
.final-cta .btn-outline-white {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 8px 2px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.hero .btn-outline-white:hover,
.final-cta .btn-outline-white:hover {
  background: none;
  transform: none;
  text-decoration-color: var(--white);
}
.hero .btn-outline-white:focus-visible,
.final-cta .btn-outline-white:focus-visible {
  outline: 3px solid var(--accent-lt);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Section headings on white ──────────────────────────── */
.section-label {
  color: var(--accent-ink-sm);
}
.hiw-header .section-label {
  color: var(--lime-on-blue-sm);
}

/* ── What's included: hairline grid ─────────────────────── */
.included-grid {
  gap: 0 3.5rem;
  margin-top: 2rem;
}
.included-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 1.5rem 0;
}
.included-icon {
  width: auto;
  height: auto;
  background: none;
  justify-content: flex-start;
  padding-top: 2px;
}
.included-item strong {
  font-size: 1rem;
}
.included-item span {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── How it works: left-aligned steps, readable copy ────── */
.hiw-step {
  text-align: left;
  padding: 0 1.5rem 0 0;
}
.step-num {
  margin: 0 0 1.25rem;
}
.hiw-steps::before {
  left: 28px;
  right: calc(25% - 28px);
}
/* Five-step variant (platforms/zoho/migration); the six-step variant has no connector */
.hiw-steps--five::before {
  left: 28px;
  right: calc(20% - 28px);
}
.hiw-step p {
  color: rgba(255, 255, 255, 0.86);
}

/* ── Why us: quieter cards, no icon tiles ───────────────── */
.why-card {
  border: 1px solid rgba(0, 60, 100, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.08),
    0 10px 28px rgba(0, 60, 100, 0.08);
}
.why-icon {
  width: auto;
  height: auto;
  background: none;
  justify-content: flex-start;
  margin-bottom: 1rem;
}
.why-icon svg {
  stroke: var(--primary);
}
.why-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.why-card p {
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ── FAQ: hairline rows instead of boxed rows ───────────── */
.faq-list {
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
}
.faq-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--gray-200);
  border-radius: 0;
}
.faq-btn {
  padding: 1.25rem 0;
  font-size: 1.02rem;
}
.faq-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.faq-answer {
  padding: 0 0 1.4rem;
  font-size: 0.95rem;
}

/* ── Related services + reading ─────────────────────────── */
.related-card {
  border: 1px solid rgba(0, 60, 100, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.08),
    0 10px 28px rgba(0, 60, 100, 0.08);
}
.related-card:hover {
  border-color: rgba(0, 60, 100, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 60, 100, 0.08),
    0 18px 40px rgba(0, 60, 100, 0.12);
  transform: translateY(-3px);
}
.related-card p {
  font-size: 0.9rem;
}

/* Related reading: article cards, same as the location pages' Insights */
#related-reading {
  background: var(--off-white);
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}
/* Six cards sit 3 + 3 instead of 4 + 2 (the 1024px / 640px rules below still apply) */
.insights-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.insight-card {
  position: relative;
  background: var(--white);
  padding: 1.75rem;
  border: 1px solid rgba(0, 60, 100, 0.1);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 60, 100, 0.08),
    0 10px 28px rgba(0, 60, 100, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 60, 100, 0.16);
  box-shadow:
    0 2px 4px rgba(0, 60, 100, 0.1),
    0 18px 40px rgba(0, 60, 100, 0.14);
}
.insight-card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.insight-card p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.6;
}
.insight-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.insight-card-link:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.insight-card .arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-ink-sm);
}

/* Compact list of further posts under the cards (e.g. /services/taxes/ planning topics) */
.reading-sub {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 0;
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.reading-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.35rem;
  background: var(--white);
  border: 1px solid rgba(0, 60, 100, 0.1);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.reading-list a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.reading-list a span {
  margin-left: auto;
  color: var(--primary);
}
@media (max-width: 640px) {
  .reading-list {
    grid-template-columns: 1fr;
  }
}

/* ── Closing call to action ─────────────────────────────── */
.final-cta p {
  color: rgba(255, 255, 255, 0.88);
}
.final-cta p a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .included-grid {
    gap: 0;
  }
  .hero-actions,
  .final-cta-actions {
    gap: 1.25rem;
  }
}

.hiw-header .section-sub {
  color: rgba(255, 255, 255, 0.86);
}

/* Stat strip (three figures above "What's included") */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-grid-mid {
  border-left: 1px solid #e1e5ec;
  border-right: 1px solid #e1e5ec;
}
@media (max-width: 640px) {
  /* one figure per row: three columns are too narrow for the large numerals */
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stat-grid > div {
    padding: 1.25rem 0;
  }
  .stat-grid > div + div {
    border-top: 1px solid #e1e5ec;
  }
  .stat-grid-mid {
    border-left: 0;
    border-right: 0;
  }
}
