/* CareMatch v4 — impeccable overhaul.
   Young Serif display + Public Sans body. Pure white surface,
   deep indigo ink sections, coral accent. No cream, no card-grid slop. */

:root {
  --indigo: oklch(0.30 0.06 262);
  --indigo-deep: oklch(0.24 0.05 262);
  --ink: oklch(0.22 0.025 262);
  --ink-soft: oklch(0.44 0.02 262);
  --coral: oklch(0.62 0.17 35);
  --coral-deep: oklch(0.53 0.16 32);
  --coral-soft: oklch(0.62 0.17 35 / 0.09);
  --line: oklch(0.9 0.008 262);
  --bg: oklch(1 0 0);
  --wash: oklch(0.965 0.006 262);
  --white: #FFFFFF;
  --shadow-warm: 0 2px 6px oklch(0.3 0.04 262 / 0.07), 0 22px 44px -18px oklch(0.3 0.05 262 / 0.2);
  --r: 12px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px; line-height: 1.6;
  color: var(--ink-soft); background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: "Young Serif", Georgia, serif;
  color: var(--ink); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.8vw, 58px); }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 20px; line-height: 1.3; }
p { text-wrap: pretty; }

a { color: var(--coral-deep); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 26px; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Public Sans", sans-serif; font-size: 16px; font-weight: 700;
  padding: 13px 26px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.m-btn-primary { background: var(--coral); color: #fff; }
.m-btn-primary:hover { background: var(--coral-deep); }
.m-btn-ghost { background: transparent; color: var(--ink); border-color: oklch(0.22 0.025 262 / 0.3); }
.m-btn-ghost:hover { border-color: var(--ink); background: var(--wash); }
.m-btn-sm { font-size: 14.5px; padding: 9px 18px; }
.m-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.m-btn:active { transform: translateY(1px); }
.m-btn:focus-visible, .opt:focus-visible, .f-input:focus-visible, .f-area:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* nav */
.m-nav { position: sticky; top: 0; z-index: 50; background: oklch(1 0 0 / 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.m-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.m-logo { font-family: "Young Serif", Georgia, serif; font-size: 23px; color: var(--ink); letter-spacing: -0.01em; }
.m-logo b { color: var(--coral); font-weight: 400; }
.m-nav-links { display: flex; align-items: center; gap: 26px; }
.m-nav-links a:not(.m-btn) { font-size: 15px; font-weight: 600; color: var(--ink); }

/* hero: drenched indigo */
.m-hero { background: var(--indigo); padding: 84px 0 76px; }
.m-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.m-hero h1 { color: #fff; }
.m-hero p.lede { font-size: 18.5px; margin: 22px 0 30px; max-width: 44ch; color: oklch(0.86 0.02 262); }
.m-hero .fine { font-size: 14px; margin-top: 16px; color: oklch(0.74 0.02 262); }

/* photos */
.m-photo { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-warm); }
.m-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-hero-photo { aspect-ratio: 4/3.4; position: relative; }
.m-hero-photo .caption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: oklch(1 0 0 / 0.94); border-radius: 10px; padding: 12px 16px;
  font-size: 13.5px; color: var(--ink); font-weight: 600;
}
.m-photo-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-photo-trio .m-photo { aspect-ratio: 4/3; }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* category band */
.m-cat-band { background: var(--white); border-bottom: 1px solid var(--line); padding: 36px 0; }
.m-cat-band h3 { margin-bottom: 16px; }
.m-cat-band .m-cat-list { flex-direction: row; flex-wrap: wrap; }
.m-cat-band .m-cat-link { flex: 1 1 250px; }
.m-cat-list { display: flex; flex-direction: column; gap: 10px; }
.m-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-weight: 700; color: var(--ink); font-size: 15.5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.m-cat-link small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; margin-top: 1px; }
.m-cat-link .arr { color: var(--coral); font-size: 18px; transition: transform 0.2s var(--ease); }
.m-cat-link:hover { border-color: var(--coral); background: var(--coral-soft); }
.m-cat-link:hover .arr { transform: translateX(3px); }

/* sections */
.m-section { padding: 84px 0; }
.m-section.tint { background: var(--wash); }
.m-section.ink { background: var(--indigo); }
.m-section.ink h2 { color: #fff; }
.m-section.ink p { color: oklch(0.84 0.02 262); }
.m-section-head { max-width: 60ch; margin-bottom: 46px; }
.m-section-head p { font-size: 17.5px; margin-top: 16px; }

/* steps: open numbered rows, serif numerals */
.m-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; border-top: 1px solid var(--line); padding-top: 30px; }
.m-section.ink .m-steps { border-top-color: oklch(1 0 0 / 0.2); }
.m-step { background: none; border: 0; padding: 0; }
.m-step .big { font-family: "Young Serif", Georgia, serif; font-size: 40px; color: var(--coral); line-height: 1; }
.m-step h3 { margin: 12px 0 8px; }
.m-section.ink .m-step h3 { color: #fff; }
.m-step p { font-size: 15px; }
.m-section.ink .m-step p { color: oklch(0.8 0.02 262); }

/* service index: editorial rows, not identical tiles */
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.m-tile {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: baseline;
  padding: 22px 4px; border-top: 1px solid var(--line); border-radius: 0;
  transition: background 0.2s var(--ease);
}
.m-tile:hover { background: var(--coral-soft); }
.m-tile h3 { font-size: 21px; }
.m-tile:hover h3 { color: var(--coral-deep); }
.m-tile p { grid-column: 1 / -1; font-size: 14.5px; margin: 2px 0 0; color: var(--ink-soft); }
.m-tile .go { font-family: "Public Sans", sans-serif; font-weight: 700; color: var(--coral-deep); font-size: 14px; white-space: nowrap; }

/* FAQ */
.m-faq { max-width: 720px; }
.m-faq details { border-top: 1px solid var(--line); }
.m-faq details:last-child { border-bottom: 1px solid var(--line); }
.m-faq summary { cursor: pointer; padding: 18px 4px; font-weight: 700; font-family: "Public Sans", sans-serif; color: var(--ink); font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.m-faq summary::after { content: "+"; color: var(--coral); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.m-faq details[open] summary::after { content: "\2212"; }
.m-faq .a { padding: 0 4px 18px; font-size: 15px; max-width: 62ch; }

.m-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.m-footer .wrap { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; flex-wrap: wrap; }

/* ============ form wizard ============ */
.wiz-shell { max-width: 640px; margin: 0 auto; padding: 40px 24px 80px; }
.wiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.wiz-bar { height: 6px; background: var(--wash); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 34px; }
.wiz-bar i { display: block; height: 100%; background: var(--coral); border-radius: 3px; width: 0; min-width: 6%; transition: width 0.4s var(--ease); }
.wiz-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-warm); padding: 36px; }
.wiz-card h2 { font-size: 27px; margin-bottom: 10px; }
.wiz-card .sub { font-size: 15.5px; margin-bottom: 26px; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid.one { grid-template-columns: 1fr; }
.opt {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px;
  cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--ink);
  background: var(--white); transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  font-family: inherit; text-align: left; width: 100%;
}
.opt:hover { border-color: var(--coral); }
.opt.on { border-color: var(--coral); background: var(--coral-soft); }
.opt .tick {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: var(--white);
}
.opt.on .tick { background: var(--coral); border-color: var(--coral); }
.opt small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }

.f-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin: 20px 0 6px; }
.f-input, .f-area {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white);
}
.f-input::placeholder, .f-area::placeholder { color: var(--ink-soft); }
.f-input:focus, .f-area:focus { outline: none; border-color: var(--coral); }
.f-area { min-height: 90px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-err { color: var(--coral-deep); font-size: 13.5px; font-weight: 600; margin-top: 10px; min-height: 18px; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 20px; cursor: pointer; }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--coral); flex-shrink: 0; }
.consent span { font-size: 13.5px; line-height: 1.55; }

.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.wiz-back { background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink-soft); cursor: pointer; padding: 8px 4px; }
.wiz-back:hover { color: var(--ink); }

.done-wrap { text-align: center; padding: 20px 0 8px; }
.done-mark { width: 62px; height: 62px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.done-steps { text-align: left; margin: 26px auto 0; max-width: 420px; }
.done-steps .ds { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--wash); font-size: 15px; }
.done-steps .ds:last-child { border-bottom: 0; }
.done-steps .ds b { color: var(--coral); font-family: "Young Serif", Georgia, serif; font-weight: 400; }

@media (max-width: 900px) {
  .m-hero { padding: 56px 0 48px; }
  .m-hero .wrap, .m-tiles, .m-steps, .m-photo-trio, .m-split { grid-template-columns: 1fr; }
  .m-hero .wrap { gap: 36px; }
  .m-steps { gap: 26px; }
  .m-photo-trio .m-photo { aspect-ratio: 16/9; }
  .m-section { padding: 58px 0; }
  .m-nav-links a:not(.m-btn) { display: none; }
  .wiz-card { padding: 24px 20px; }
  .opt-grid, .f-row { grid-template-columns: 1fr; }
}
