/* Caring Together Support — main stylesheet */
:root {
  --teal: #1C6FB8;
  --teal-dark: #0F3D66;
  --teal-soft: #E1F0FC;
  --coral: #E4805F;
  --coral-dark: #B9553A;
  --coral-soft: #FBE3D9;
  --cream: #F7FBFF;
  --sand: #EAF4FD;
  --sage: #E6F5F8;
  --ink: #1A2B3C;
  --muted: #4A5D70;
  --line: #D6E6F3;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(15, 61, 102, .08);
  --shadow-lg: 0 24px 60px rgba(15, 61, 102, .14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--cream); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--teal-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--teal-dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Urgent help bar */
.urgent-bar { background: var(--teal-dark); color: #E6F1FB; font-size: .875rem; padding: 7px 0; text-align: center; }
.urgent-bar strong { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 251, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand-sub { margin-top: 4px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--coral-dark); font-weight: 600; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.site-nav .nav-cta a { margin-left: 8px; }
.site-nav .nav-cta a, .site-nav .nav-cta a:hover { background: var(--teal); color: #fff; }
.site-nav .nav-cta a:hover { background: var(--teal-dark); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; color: var(--teal-dark); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .site-nav a { padding: 13px 16px; border-radius: 12px; }
  .site-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(28, 111, 184, .28); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: var(--teal-dark); color: #fff; }
.btn-secondary:hover { background: #0A2C4B; color: #fff; }
.btn-ghost { border-color: var(--teal); color: var(--teal-dark); background: transparent; }
.btn-ghost:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-light { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary { background: var(--teal-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: #0A2C4B; }
.btn-light:hover { background: var(--sand); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Sections */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-sand { background: var(--sand); }
.section-sage { background: var(--sage); }
.section-white { background: var(--white); }
.section-teal { background: var(--teal); color: #EEF5FC; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal a:not(.btn) { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: 14px; }
.section-teal .eyebrow { color: #CDE6FF; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section-teal .lead { color: #D6E6F5; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: radial-gradient(1200px 520px at 85% 0%, #D3EAFF, transparent 62%), radial-gradient(900px 500px at 0% 100%, #E3F6F9, transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { max-width: 560px; }
.hero-art { position: relative; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .95rem; padding: 0; list-style: none; }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231C6FB8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.page-hero { padding: 64px 0 56px; background: radial-gradient(900px 400px at 90% 0%, #D3EAFF, transparent 60%), var(--cream); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 720px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
  .section { padding: 64px 0; }
}

/* Chat illustration */
.chat-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; position: relative; }
.chat-card::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px; border-radius: 50%; background: #CDE6FF; z-index: -1; }
.chat-card::after { content: ""; position: absolute; inset: auto auto -22px -22px; width: 160px; height: 160px; border-radius: 50%; background: var(--teal-soft); z-index: -1; }
.chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat-top .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.chat-top strong { display: block; font-size: .98rem; color: var(--teal-dark); }
.chat-top small { color: var(--muted); }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 18px; margin-bottom: 10px; font-size: .95rem; line-height: 1.5; }
.bubble.them { background: var(--sage); border-bottom-left-radius: 6px; }
.bubble.me { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.handover { background: var(--coral-soft); border-bottom-left-radius: 6px; }
.chat-channels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid rgba(226, 216, 204, .6); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { margin-top: auto; padding-top: 14px; font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " \2192"; }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--teal-soft); color: var(--teal); flex-shrink: 0; }
.icon svg { width: 28px; height: 28px; }
.icon.coral { background: var(--coral-soft); color: var(--coral-dark); }
.icon.sand { background: var(--sand); color: var(--teal-dark); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--coral-soft); color: var(--coral-dark); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }
.tag.teal { background: var(--teal-soft); color: var(--teal-dark); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 0 30px 74px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -4px; width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.steps li::after { content: ""; position: absolute; left: 25px; top: 54px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .25em; }
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; }
.steps-row li { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.steps-row li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; }
@media (max-width: 1000px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps-row { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.panel { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.panel-teal { background: var(--teal); color: #EEF5FC; }
.panel-teal h3 { color: #fff; }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231C6FB8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.panel-teal .ticks li::before, .section-teal .ticks li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Quote / promise */
.promise { background: var(--white); border-left: 6px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px; font-family: var(--serif); font-size: 1.3rem; color: var(--teal-dark); box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #1C6FB8, #3A9BE0); color: #EEF5FC; border-radius: var(--radius-lg); padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; margin-top: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } .cta-band .btn-row { justify-content: flex-start; } }

/* Notice */
.notice { background: var(--coral-soft); border-radius: var(--radius); padding: 18px 22px; border: 1px solid #F2C9B8; }
.notice-teal { background: var(--teal-soft); border-color: #BCD9F2; }
.notice p:last-child { margin: 0; }

/* FAQ */
.faq details { background: #fff; border-radius: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; list-style: none; position: relative; color: var(--teal-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--coral-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--teal-dark); }
.field .hint { display: block; font-size: .9rem; color: var(--muted); margin: -2px 0 6px; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1.5px solid #BFD3E6; border-radius: 12px; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(28, 111, 184, .18); outline-offset: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-weight: 400 !important; color: var(--ink) !important; }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.choices-inline { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-status.error { background: #FCE4E0; color: #8A2A17; }
.form-status.ok { background: var(--teal-soft); color: var(--teal-dark); }
.book-only[hidden] { display: none; }

/* Tool */
.tool { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.tool fieldset { border: 0; margin: 0 0 24px; padding: 0; }
.tool legend { font-weight: 700; color: var(--teal-dark); margin-bottom: 10px; font-size: 1.05rem; }
.results { margin-top: 28px; }
.result-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; background: var(--cream); }
.result-item h3 { font-size: 1.12rem; margin-bottom: .3em; }
.result-item p { margin-bottom: .4em; }
.plan-sheet h2 { font-size: 1.4rem; margin-top: 10px; }

/* Footer */
.site-footer { background: var(--teal-dark); color: #D6E6F5; padding: 64px 0 0; margin-top: 0; }
.site-footer a { color: #EEF5FC; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-heading { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #9FD3FF; margin-bottom: 16px; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-sub { color: #9FD3FF; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding: 22px 20px 28px; font-size: .9rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* Prose pages */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Print: caring plan */
@media print {
  .urgent-bar, .site-header, .site-footer, .no-print, .page-hero .btn-row { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .tool { box-shadow: none; padding: 0; }
  .field input, .field textarea, .field select { border: 1px solid #999; }
  .section { padding: 0; }
}

/* Utilities */
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 36px; }
.center-text { text-align: center; }
.split-top { align-items: start; }

/* Photos */
.photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-art { padding-bottom: 150px; }
.chat-mini { position: absolute; left: -56px; bottom: 0; width: min(310px, 78%); padding: 14px 16px; }
.chat-mini .bubble { font-size: .86rem; padding: 9px 13px; }
.chat-mini .chat-top { padding-bottom: 10px; margin-bottom: 12px; }
.chat-mini::before, .chat-mini::after { display: none; }
@media (max-width: 900px) { .hero-art { padding-bottom: 0; } .chat-mini { position: relative; left: auto; bottom: auto; margin: -56px 12px 0 auto; } }
.about-photo { margin-top: 24px; }
