/* Keystone Therapy — home page refresh
   Upload to /assets/home-refresh.css. Loads AFTER /assets/style.css, so it only adds to it.
   To undo everything: delete the one <link> line to this file in index.html.
   Matches the live palette: navy #002147, ink #112C45, page #FAFBFC, blue tint #EEF6FA, CTA blue #CFE9F5.
   Adds brand accents: teal #2E7D8C, sage #2D6A4F, amber #B45309. */

:root {
  --kt-teal: #2E7D8C;
  --kt-teal-text: #1F6B79;   /* darker teal for small text, passes contrast on white */
  --kt-sage: #2D6A4F;
  --kt-amber: #B45309;
  --kt-tint-sage: #F2F7F4;
  --kt-ink-soft: #34495A;    /* card text, a step darker than before */
}

/* 1. Section rhythm: hero tint / white / navy / white / blue tint / white / sage tint */
main > section.hero { background: linear-gradient(180deg, #EEF6FA 0%, #FAFBFC 100%); }
main > section:nth-of-type(2),
main > section:nth-of-type(4),
main > section:nth-of-type(6) { background: #fff; }
main > section:nth-of-type(7) { background: var(--kt-tint-sage); }

/* 2. Cards: white fill, coloured top stripe, gentle lift on hover */
main .cards .card {
  background: #fff;
  border-top: 4px solid var(--kt-teal);
  transition: box-shadow .2s ease, transform .2s ease;
}
main .cards .card:nth-child(3n+2) { border-top-color: var(--kt-sage); }
main .cards .card:nth-child(3n+3) { border-top-color: var(--kt-amber); }
main .cards .card:hover,
main .cards .card:focus-visible {
  box-shadow: 0 8px 22px rgba(0, 33, 71, .10);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  main .cards .card { transition: none; }
  main .cards .card:hover, main .cards .card:focus-visible { transform: none; }
}

/* 3. Easier-to-read card text */
main .card p { color: var(--kt-ink-soft); font-size: 16px; line-height: 1.6; }
main .card .step { color: var(--kt-amber); font-size: 11px; font-weight: 700; letter-spacing: .08em; }

/* 4. Section labels in teal (not on the navy band) */
main .hero .eyebrow,
main .section:not(.blue) .eyebrow { color: var(--kt-teal-text); }

/* 5. Info boxes (Brain-Grow, EAP, first appointment) */
main .section .note { background: #fff; border-left: 4px solid var(--kt-teal); }
main .section .split .note:nth-child(2) { border-left-color: var(--kt-sage); }

/* 7. Hero illustration: let its white background blend into the tinted hero */
main .keystone-home-image { mix-blend-mode: darken; }

/* 8. Space between the article cards and the Soro feed below them */
#soro-blog { margin-top: 32px; }

/* 6. Amber used sparingly: primary buttons on hover */
.button:not(.secondary):not(.light):hover,
.button:not(.secondary):not(.light):focus-visible {
  background: var(--kt-amber);
  border-color: var(--kt-amber);
  color: #fff;
}
