/* Kindred Care Partners — shared stylesheet
   Pastel design system
   Warm Ivory #FAF8F4 · Mist Blue #EAF4F6 · Soft Sage #E8F1E8
   Pastel Teal #A9D8D6 · Muted Coral #F2B8AE · Deep Slate #2F4858 */

:root {
  /* Core palette */
  --ivory: #FAF8F4;        /* page background */
  --mist: #EAF4F6;         /* surface cards / trust cues */
  --sage: #E8F1E8;         /* secondary surface / wellbeing */
  --teal: #A9D8D6;         /* primary brand pastel */
  --coral: #F2B8AE;        /* accent / calls to action */
  --slate: #2F4858;        /* heading & text anchor */

  /* Working derivatives (kept accessible) */
  --teal-ink: #2C6E6B;     /* readable teal for small accents & links */
  --teal-soft: #DCEFEE;    /* pale teal icon tint */
  --coral-deep: #E19183;   /* coral hover */
  --slate-deep: #223744;   /* deepest anchor */
  --text: #3A4852;         /* body text */
  --text-soft: #5C6872;    /* muted body text */
  --border: #E6E2D8;       /* warm neutral border on ivory */
  --border-cool: #D3E3E6;  /* cool border for mist/teal surfaces */
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 34px rgba(47, 72, 88, 0.10);
  --shadow-sm: 0 4px 16px rgba(47, 72, 88, 0.07);
  --maxw: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--slate);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; color: var(--text-soft); }

a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 76px 0; }
.section--tint { background: var(--sage); }
.section--blue { background: var(--slate); }
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue p { color: #d6e2e6; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
/* Primary = Muted Coral CTA with Deep Slate text for warmth + readability */
.btn--primary { background: var(--coral); color: var(--slate); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--coral-deep); color: var(--slate-deep); }
.btn--secondary { background: #fff; color: var(--slate); border-color: var(--border-cool); }
.btn--secondary:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,244,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--slate); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-ink), var(--slate));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-soft); letter-spacing: .02em; }
.brand > span:last-child { white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: .92rem; white-space: nowrap;
  padding: 8px 11px; border-radius: 8px; display: block;
}
.nav-links a:hover, .nav-links a.active { background: var(--mist); color: var(--slate); text-decoration: none; }
.nav-links .nav-cta a.active { background: var(--coral); color: var(--slate); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--slate); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* Hero */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(169,216,214,.45), transparent),
    radial-gradient(900px 500px at 5% 120%, rgba(242,184,174,.20), transparent),
    var(--ivory);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal-ink); }
.hero .lead { font-size: 1.2rem; color: var(--text-soft); max-width: 40ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border-cool); border-radius: 40px;
  padding: 8px 15px; font-size: .85rem; font-weight: 600; color: var(--slate);
  box-shadow: var(--shadow-sm);
}
.pill::before { content: "✓"; color: var(--teal-ink); font-weight: 800; }

.hero-card {
  background: var(--mist); border-radius: 20px; box-shadow: var(--shadow); padding: 30px;
  border: 1px solid var(--border-cool);
}
.hero-card h3 { color: var(--slate); }
.hero-card .support-list { list-style: none; margin: 0; padding: 0; }
.hero-card .support-list li { padding: 12px 0; border-bottom: 1px solid rgba(47,72,88,.10); display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.hero-card .support-list li:last-child { border-bottom: 0; }
.hero-card .ico { color: var(--teal-ink); font-weight: 800; }

/* Grid cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--mist); border: 1px solid var(--border-cool); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal); color: var(--slate); font-size: 1.4rem; margin-bottom: 8px;
}
/* Cards sitting on sage sections switch to white so they lift off the surface */
.section--tint .card { background: #fff; border-color: var(--border); }
.section--tint .card .icon { background: var(--sage); }

/* Feature / split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .media {
  border-radius: var(--radius); min-height: 320px;
  background: linear-gradient(135deg, var(--sage), var(--mist));
  border: 1px solid var(--border-cool); display: grid; place-items: center; color: var(--slate);
  padding: 30px; text-align: center;
}
.split .media p { color: var(--teal-ink); }

/* Illustration figures */
.figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-cool); box-shadow: var(--shadow-sm);
  background: var(--sage);
}
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption {
  padding: 13px 20px; font-size: .9rem; color: var(--text-soft);
  background: #fff; border-top: 1px solid var(--border);
}
.figure figcaption strong { color: var(--slate); }

/* Hero illustration inside trust card */
.hero-illus {
  width: 100%; height: auto; display: block; border-radius: 14px;
  margin-bottom: 20px; background: var(--sage);
}

/* Full-width illustration banner */
.illus-band { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 960px) { .illus-band { grid-template-columns: 1fr; gap: 30px; } }
.ticklist { list-style: none; margin: 0; padding: 0; }
.ticklist li { position: relative; padding: 9px 0 9px 34px; color: var(--text); }
.ticklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal);
  color: var(--slate); font-weight: 800; font-size: .8rem; display: grid; place-items: center;
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--mist); border: 1px solid var(--border-cool); border-radius: var(--radius); padding: 26px; position: relative; box-shadow: var(--shadow-sm); }
.section--tint .step { background: #fff; border-color: var(--border); }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--slate); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; }
.stat .label { color: #cdd9de; font-size: .95rem; }
.section--blue .stat .num { color: var(--teal); }
.section--blue .stat .label { color: #c3d2d7; }

/* Testimonials */
.quote {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote p { font-style: italic; color: var(--text); font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-style: normal; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-ink), var(--coral-deep)); color:#fff; display:grid; place-items:center; font-weight:700; }
.quote .who strong { color: var(--slate); display: block; font-size: .95rem; }
.quote .who span { color: var(--text-soft); font-size: .85rem; }

/* Safeguarding banner */
.safeguard {
  background: linear-gradient(135deg, var(--teal-ink), var(--slate));
  border-radius: 18px; padding: 40px; color: #fff; display: grid;
  grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center;
}
.safeguard h3 { color: #fff; margin: 0 0 6px; }
.safeguard p { color: #dbe8ea; margin: 0; }
.safeguard .shield { font-size: 2.6rem; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-size: 1.05rem; font-weight: 600; color: var(--slate);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform .25s; color: var(--teal-ink); font-size: 1.3rem; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; }
.faq-a-inner p { margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--slate), var(--teal-ink));
  border-radius: 20px; padding: 54px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe8ea; max-width: 56ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--slate); margin-bottom: 6px; font-size: .95rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-cool); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(169,216,214,.45);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--text-soft); }
.contact-info { display: grid; gap: 18px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--teal); color: var(--slate); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info .item strong { color: var(--slate); display: block; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(169,216,214,.40), transparent),
    var(--ivory);
  padding: 64px 0 44px;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { font-size: 1.12rem; max-width: 62ch; }
.breadcrumb { font-size: .85rem; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--teal-ink); }

/* Value chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip { background: var(--sage); color: var(--teal-ink); border-radius: 40px; padding: 7px 15px; font-weight: 600; font-size: .88rem; }

/* Footer */
.site-footer { background: var(--slate-deep); color: #cdd8dd; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: #cdd8dd; display: block; padding: 5px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand small { color: #9fb2ba; }
.footer-brand p { color: #a9bcc3; font-size: .92rem; }
.footer-mission { background: rgba(255,255,255,.05); border-radius: 12px; padding: 16px 18px; margin-top: 8px; font-size: .88rem; color: #bfcfd5; border-left: 3px solid var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; color: #9fb2ba; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; padding: 0; }
.footer-social a:hover { background: var(--teal-ink); }

/* Utility */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.lead { font-size: 1.15rem; }

/* Responsive */

/* Collapse the horizontal nav to a menu button before the links run out of room */
@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ivory); border-bottom: 1px solid var(--border);
    padding: 14px 20px 22px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; white-space: normal; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .safeguard { grid-template-columns: 1fr; text-align: center; }
  .safeguard .shield { font-size: 2.2rem; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band, .safeguard { padding: 32px 22px; }
}
