/* Kindwell — site styles
   Palette taken from the brand: Kindwell blue, paper, ink, mist and a highlighter yellow.
   Signature: the logo's leaning capsule and dot, used once per page in the hero. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --blue: #4770C7;
  --blue-deep: #2B4A8F;
  --ink: #1F3466;
  --ink-soft: #4B5B80;
  --paper: #F4F3E8;
  --mist: #E2E8F5;
  --yellow: #F2F07A;
  --white: #FFFFFF;
  --line: rgba(31, 52, 102, 0.14);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.62; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.5em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.band-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-mist { background: var(--mist); }
.bg-white { background: var(--white); }
.lead { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.45; }
.muted { color: var(--ink-soft); }
.measure { max-width: 62ch; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 243, 232, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.logo img { width: 150px; }
.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.5rem 0.9rem; border-radius: 999px; transition: background-color .15s; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0.5rem; margin-right: -0.5rem; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; }
  .logo img { width: 128px; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0 0 1.25rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 1rem; }
}

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-weight: 600; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--blue-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }

/* Hero, with the logo-derived capsule and dot */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { font-weight: 600; margin-bottom: 0.9em; }
.hero-copy p { max-width: 54ch; }
.mark { display: block; justify-self: center; width: min(100%, 470px); height: auto; overflow: visible; }
.mark .dot { fill: var(--yellow); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mark { width: min(80%, 340px); margin: 0.5rem auto 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .mark .photo { animation: fadein .7s ease-out both; }
  .mark .dot { transform-box: fill-box; transform-origin: center; animation: pop .5s .45s cubic-bezier(.3,1.5,.5,1) both; }
  @keyframes pop { from { transform: scale(0); } }
  @keyframes fadein { from { opacity: 0; } }
}

/* Two audiences */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.path { display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 3.25rem); border-radius: 32px; min-height: 320px; }
.path h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.path p { max-width: 38ch; font-size: 1.15rem; }
.path .buttons { margin-top: auto; padding-top: 1.5rem; }
.path-carers { background: var(--blue); color: var(--white); }
.path-providers { background: var(--ink); color: var(--white); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; } }

/* Split: heading column + text column */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split > :first-child h2 { margin: 0; }
.split .sticky { position: sticky; top: 120px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }

/* How we work */
.values { border-top: 1px solid var(--line); }
.value { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.value h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.value p:last-child { margin-bottom: 0; }
.value strong { font-weight: 700; }

/* Testimonials */
.quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; max-width: 1040px; margin: 0 auto; }
.quote img { width: clamp(96px, 12vw, 150px); border-radius: 50%; }
.quote blockquote { margin: 0; }
.quote .words { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 48; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; }
.quote .words.long { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
.quote .words p:last-child { margin-bottom: 0; }
.quote cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: 1rem; }
.quote cite b { display: block; font-weight: 700; }
@media (max-width: 640px) { .quote { grid-template-columns: 1fr; } }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--white); font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3.75rem; right: -1.75rem; height: 2px; background: var(--mist); }
.steps li:nth-child(3n)::after, .steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3n)::after { display: block; } .steps li:nth-child(2n)::after { display: none; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 2.25rem 4.25rem; }
  .steps li::after, .steps li:nth-child(3n)::after { display: block; top: 3.5rem; bottom: 0.5rem; left: 1.45rem; right: auto; width: 2px; height: auto; }
  .steps li:last-child::after { display: none; }
}

/* Say goodbye / say hello */
.contrast { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.contrast p { margin: 0; padding: 1.5rem 1.75rem; border-radius: 24px; font-size: 1.15rem; }
.contrast .bye { background: var(--white); color: var(--ink-soft); }
.contrast .hello { background: var(--yellow); }
.contrast strong { color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.contact h2 { margin-bottom: 0.4em; }
.form-embed iframe { width: 100%; min-height: 720px; border: 0; border-radius: 24px; background: var(--white); }
.form-fallback { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 28px; padding: clamp(1.75rem, 4vw, 2.75rem); }
.form-fallback p { font-size: 1.15rem; }
.form-fallback a:not(.btn) { color: var(--yellow); }
.form-fallback .buttons { margin-top: 1rem; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Home closing panel */
.closing { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(2.5rem, 6vw, 5rem); }
.closing::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -60px; border-radius: 50%; background: var(--yellow); }
.closing > * { position: relative; z-index: 1; max-width: 620px; }

/* About */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); margin-top: 3.5rem; }
.person .round { display: block; width: min(80%, 300px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 1.75rem; }
.person h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 0.4em; }
.person a { color: var(--blue-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 4rem 0 3rem; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.site-footer img { width: 140px; margin-bottom: 1.25rem; }
.site-footer p { margin: 0; line-height: 1.55; }
.site-footer nav { display: grid; gap: 0.5rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .email { color: var(--yellow); }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Privacy */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.toc { position: sticky; top: 120px; font-size: 0.95rem; }
.toc p { font-weight: 700; margin-bottom: 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.toc a { display: block; text-decoration: none; padding: 0.35rem 0.75rem; border-radius: 999px; color: var(--ink-soft); }
.toc a:hover { background: var(--mist); color: var(--ink); }
.legal { max-width: 70ch; }
.legal h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.legal h2 { font-size: 1.65rem; margin-top: 2.75rem; scroll-margin-top: 110px; }
.legal h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin: 1.5rem 0 0.5rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--blue-deep); }
@media (max-width: 860px) { .legal-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.not-found { text-align: left; max-width: 640px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Two short paragraphs side by side under a hero */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); padding-top: 2.5rem; }
.cols2 p { margin: 0; max-width: 52ch; }
@media (max-width: 720px) { .cols2 { grid-template-columns: 1fr; } }
.contact + * , #contact { border-bottom: 1px solid rgba(255,255,255,0.1); }

/* Contact form */
.form { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form .field { margin-bottom: 1.15rem; }
.form label { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 0.4rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 2px solid transparent; border-radius: 14px; padding: 0.85rem 1rem; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--yellow); }
.form .check { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; margin: 0.25rem 0 1.5rem; }
.form .check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--yellow); flex: none; }
.form .check a { color: var(--yellow); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .form .pair { grid-template-columns: 1fr; } }
.contact { align-items: start; }
