:root {
  --green: #8DC171;
  --green-dark: #5f9449;
  --green-deep: #315d22;
  --green-soft: #eef6ea;
  --sage: #d9deb0;
  --sage-strong: #8ab39e;
  --orange: #ED9F2B;
  --orange-soft: #fff6e9;
  --ink: #263126;
  --dark: #182116;
  --muted: #66705f;
  --paper: #ffffff;
  --soft: #f7faf6;
  --line: #e2eadf;
  --shadow: 0 12px 35px rgba(31, 41, 31, .08);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.62;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.top-strip { background: var(--green-deep); color: #fff; font-size: 13px; }
.top-strip .wrap { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-strip strong { color: #e4f6d8; }

.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; min-width: 250px; }
.brand-logo { width: 250px; height: 72px; object-fit: contain; }
.brand b { display: block; color: var(--green-deep); font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: 0; }
.brand span span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.nav-band { background: var(--sage); border-bottom: 1px solid rgba(95,148,73,.35); }
.nav-inner { display: flex; justify-content: center; align-items: center; min-height: 40px; }
.menu-toggle { display: none; border: 1px solid rgba(49,93,34,.35); background: var(--green-deep); color: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(31,41,31,.12); }
.menu-icon { display: block; width: 28px; height: 28px; object-fit: contain; }
.tabs { min-height: 40px; display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 10px 12px; color: var(--green-deep); font-size: 13px; font-weight: 700; border-radius: 8px; }
.tabs a:hover, .tabs a:focus, .tabs a.active { background: rgba(255,255,255,.58); outline: none; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 11px 17px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--green-dark); color: #fff; box-shadow: 0 10px 22px rgba(95,148,73,.22); }
.button.secondary { background: #fff; color: var(--green-deep); border-color: rgba(95,148,73,.4); }
.button.orange { background: var(--orange); color: #fff; }

.hero { min-height: 520px; display: grid; align-items: center; position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(247,250,246,.96) 0%, rgba(247,250,246,.86) 38%, rgba(247,250,246,.08) 68%), url("images/hero-care.png?v=2") center right / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero .wrap { padding: clamp(54px, 8vw, 96px) 0; }
.hero-copy { max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.86); border: 1px solid var(--line); color: var(--green-dark); border-radius: 999px; padding: 7px 12px; margin-bottom: 18px; font-size: 13px; font-weight: 700; }
.eyebrow img, .inline-logo { width: 24px; height: 24px; object-fit: contain; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; color: var(--green-deep); font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: 0; }
.hero h1 span, .section-title h2 span { color: var(--green-dark); }
.hero-copy p { max-width: 500px; margin: 20px 0 0; color: #3f4b3c; font-size: clamp(18px, 2vw, 21px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-card { width: min(620px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.hero-stat { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; box-shadow: 0 8px 18px rgba(31,41,31,.04); }
.hero-stat strong { display: block; color: var(--green-dark); font-size: 20px; line-height: 1.1; }
.hero-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

section, .page-section { padding: clamp(48px, 7vw, 82px) 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 22px; flex-wrap: wrap; margin-bottom: 24px; }
.section-title-with-visual { justify-content: flex-start; align-items: center; flex-wrap: nowrap; }
.section-title-with-visual > div:last-child { min-width: 0; }
.section-title h2 { margin: 0; color: var(--green-deep); font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 700; }
.section-title p { max-width: 710px; margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.section-visual-badge { flex: 0 0 184px; width: 184px; height: 112px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,246,234,.82)); border: 1px solid rgba(141,193,113,.35); box-shadow: 0 18px 34px rgba(31,41,31,.13); overflow: hidden; }
.section-visual { width: 92%; height: 90%; object-fit: contain; object-position: center; filter: drop-shadow(0 10px 14px rgba(49,93,34,.22)) saturate(.86) contrast(1.05); opacity: .9; }
.section-visual-silhouette { width: 96%; height: 92%; opacity: .88; filter: drop-shadow(0 12px 16px rgba(49,93,34,.24)) saturate(.72) contrast(1.08); }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px rgba(31,41,31,.055); }
.card.green { border-left: 5px solid var(--green); }
.card.orange { border-left: 5px solid var(--orange); }
.card h3 { margin: 0 0 9px; color: var(--green-deep); font-size: 21px; line-height: 1.2; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card-heading { margin: 0 0 12px; color: var(--green-deep); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.card-logo { width: 42px; height: 42px; object-fit: contain; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; background: var(--green-soft); color: var(--green-deep); border: 1px solid rgba(141,193,113,.45); border-radius: 999px; padding: 6px 10px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.pill.orange { background: var(--orange-soft); color: #8a5311; border-color: rgba(237,159,43,.45); }

.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 70px); align-items: center; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tag { position: absolute; right: 14px; bottom: 14px; background: var(--sage-strong); color: #fff; border-radius: 8px; padding: 12px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(31,41,31,.12); }
.photo-tag small { display: block; font-weight: 500; margin-top: 2px; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; color: var(--muted); }
.leaf { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 14px 0 14px 0; background: var(--green); transform: rotate(-35deg); margin-top: 4px; }
.care-band { background: var(--sage); overflow: hidden; padding: 0; }
.care-band .wrap { min-height: 360px; display: grid; grid-template-columns: .96fr 1.04fr; gap: 38px; align-items: center; }
.care-band img.care-photo { align-self: end; width: 100%; max-height: 420px; object-fit: cover; object-position: center; border-radius: 0; margin-left: -64px; box-shadow: var(--shadow); }
.care-band h2 { color: var(--green-deep); margin: 0 0 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.care-band p { color: #4f5b49; max-width: 560px; }

.how-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { min-height: 205px; padding: 26px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 8px; background: var(--green); color: #fff; font-size: 20px; font-weight: 700; }
.stats-band { background: #22301e; color: #fff; }
.stats-band h2, .stats-band .section-title p { color: #fff; }
.stat-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 24px; }
.stat-card strong { display: block; color: #d9f0bd; font-size: clamp(34px, 5vw, 54px); line-height: 1; font-weight: 700; }
.stat-card span { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-weight: 600; }
.video-placeholder { min-height: 260px; display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px dashed rgba(95,148,73,.55); border-radius: var(--radius); background: linear-gradient(135deg, #fff, #fbfdf9); box-shadow: 0 8px 24px rgba(31,41,31,.045); }
.video-frame { min-height: 150px; border-radius: var(--radius); background: linear-gradient(135deg, var(--green-soft), #fff); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.video-frame img { width: 74px; height: 74px; object-fit: contain; opacity: .9; }
.video-frame::after { content: ""; width: 46px; height: 46px; border-radius: 50%; background: rgba(49,93,34,.88); position: absolute; box-shadow: 0 10px 24px rgba(31,41,31,.16); }
.video-frame::before { content: ""; position: absolute; z-index: 1; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; transform: translateX(2px); }
.video-placeholder h3 { margin: 0; color: var(--green-deep); font-size: 22px; }
.video-placeholder p { margin: 0; color: var(--muted); }

.resource-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.chapter-index { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(31,41,31,.055); padding: 16px; }
.chapter-index h3 { margin: 0 0 12px; color: var(--green-deep); font-size: 18px; }
.search { margin-bottom: 12px; }
.search input, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 12px 13px; outline-color: var(--green); }
.chapter-list { display: grid; gap: 8px; }
.chapter-list button { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: #fbfdf9; color: var(--muted); padding: 10px 11px; cursor: pointer; font-weight: 600; }
.chapter-list button.active, .chapter-list button:hover { background: var(--green-soft); color: var(--green-deep); border-color: rgba(141,193,113,.55); }
.chapter-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chapter-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 0; border-bottom: 1px solid var(--line); }
.chapter-copy { padding: 28px; }
.chapter-copy h3 { margin: 0 0 10px; color: var(--green-deep); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.chapter-copy p { margin: 0; color: var(--muted); }
.chapter-hero img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.chapter-grid { padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fbfdf9; }
.mini-card h4 { margin: 0 0 7px; color: var(--green-deep); font-size: 17px; }
.mini-card p { margin: 0; color: var(--muted); font-size: 14px; }
.signup-panel { margin-top: 18px; background: var(--orange-soft); border: 1px solid rgba(237,159,43,.35); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }

.testimonial-shell { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: stretch; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); min-height: 230px; display: grid; align-content: center; }
.testimonial blockquote { margin: 0; color: var(--green-deep); font-size: clamp(22px, 3vw, 32px); line-height: 1.22; font-weight: 700; }
.testimonial cite { margin-top: 16px; color: var(--muted); font-style: normal; font-weight: 600; }
.slider-controls { display: grid; gap: 10px; align-content: center; }
.slider-controls button { min-height: 54px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); cursor: pointer; font-weight: 700; }
.slider-controls button.active { background: var(--green-soft); color: var(--green-deep); border-color: rgba(141,193,113,.55); }

.contact { background: var(--paper); color: var(--ink); }
.contact h1, .contact h2 { color: var(--green-deep); }
.contact .section-title p { color: var(--muted); }
.contact .card { background: var(--paper); border-color: var(--line); box-shadow: 0 8px 24px rgba(31,41,31,.055); }
.contact .card h3 { color: var(--green-deep); }
.contact .card p, .contact label { color: var(--muted); }
.contact-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
textarea { min-height: 120px; resize: vertical; }

.chat-launcher { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--green-dark); color: #fff; box-shadow: 0 14px 32px rgba(31,41,31,.22); cursor: pointer; font-size: 24px; }
.chat-window { position: fixed; right: 18px; bottom: 88px; z-index: 40; width: min(360px, calc(100vw - 36px)); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 48px rgba(31,41,31,.18); overflow: hidden; transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.chat-window.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-head { background: var(--green-deep); color: #fff; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.chat-head button { border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.chat-body { padding: 14px; display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.bubble { max-width: 88%; border-radius: 8px; padding: 10px 12px; background: var(--green-soft); color: var(--green-deep); font-size: 14px; }
.bubble.user { justify-self: end; background: var(--orange-soft); color: #7f4d0d; }
.chat-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); padding: 10px; background: #fbfdf9; }

footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; padding: 26px 0 38px; }

@media (max-width: 980px) {
  .hero { background: linear-gradient(90deg, rgba(247,250,246,.98), rgba(247,250,246,.78)), url("images/hero-care.png?v=2") center right / cover no-repeat; }
  .grid.two, .grid.three, .split, .care-band .wrap, .how-panel, .resource-layout, .testimonial-shell { grid-template-columns: 1fr; }
  .care-band { padding: 48px 0; }
  .care-band img.care-photo { margin-left: 0; max-height: none; border-radius: 8px; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .chapter-index { position: static; }
  .chapter-hero { grid-template-columns: 1fr; }
  .chapter-hero img { order: -1; }
  .slider-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-band { position: relative; z-index: 30; }
  .nav-inner { align-items: flex-start; flex-direction: column; min-height: 0; padding: 5px 0; position: relative; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 42px; padding: 0; font-size: 0; background: #fff; color: var(--green-deep); }
  .tabs { display: none; position: absolute; left: 0; top: calc(100% + 4px); width: min(286px, calc(100vw - 32px)); justify-content: flex-start; align-items: stretch; flex-direction: column; padding: 8px; background: var(--sage); border: 1px solid rgba(95,148,73,.35); border-radius: 8px; box-shadow: 0 16px 34px rgba(31,41,31,.18); }
  .tabs.open { display: flex; }
  .tabs a { width: 100%; background: rgba(255,255,255,.38); }
}
@media (max-width: 700px) {
  .top-strip .wrap, .masthead .wrap { align-items: center; flex-direction: column; padding: 12px 0; }
  .brand { justify-content: center; min-width: 0; width: 100%; }
  .brand-logo { width: min(280px, 92vw); }
  section, .page-section { padding: 28px 0 48px; }
  .hero .wrap { padding: 34px 0 42px; }
  .section-title { margin-bottom: 18px; }
  .section-title-with-visual { align-items: flex-start; gap: 14px; }
  .section-visual-badge { flex-basis: 116px; width: 116px; height: 74px; }
  .hero { min-height: auto; }
  .hero-card, .chapter-grid, .signup-panel, .form-row { grid-template-columns: 1fr; }
  .signup-panel .button { width: 100%; }
  .slider-controls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
