/* Surely — landing, blog and story pages (templates extending layout.html).
   The base.html pages (privacy, terms, qr, 404) are a separate, older system
   and live in style.css; the two are deliberately not merged. */

:root {
  --bg: #fffdf7;
  --paper: #fff;
  --ink: #17181c;

  --accent: #f0a824;
  --accent-deep: #b97e0b;
  --accent-dark: #8a5e06;
  --accent-darker: #7a5504;
  --soft: #fbeecb;

  --muted: #54565f;
  --faint: #8b8d96;
  --copy: #3c3e47;

  /* Cool grey-blue carries the three "how we work" sections (trust, how it
     works, care request) so they read as one band between the warm ones. */
  --blue: #e9edf2;
  --blue-ink: #3f5573;
  --green: #e8ede6;
  --green-ink: #3e5941;

  /* WhatsApp is the primary contact channel, so its green is a real token:
     --wa on light ground, --wa-deep as the hover state of an ink button. */
  --wa: #25d366;
  --wa-deep: #1fa855;
  --wa-float: #4fbd7c;
  --wa-ink: #0b3d22;

  --line: rgba(23, 24, 28, 0.12);
  --hair: rgba(23, 24, 28, 0.08);

  --display: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--accent-deep);
}

.page {
  flex: 1;
}

/* Every full-width section centres its contents on this measure. */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 3vw, 32px);
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}
.section-head h2,
.section-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  margin: 0;
}

/* Amber word inside a display heading. */
h1 .accent,
h2 .accent {
  color: var(--accent);
}

/* Shared 4-up card grid: 4 across, 2 on tablet, stacked on phones. */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1080px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-bar {
  position: relative;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark:hover {
  color: var(--ink);
}
.dot {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 100px;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(240, 168, 36, 0.35);
}
.nav-icon {
  background: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-icon:hover {
  background: var(--accent-deep);
}
.nav-menu-btn {
  background: none;
  border: 1px solid rgba(23, 24, 28, 0.18);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.2s;
}
.nav-menu-btn:hover {
  border-color: var(--ink);
}

/* Drop-down panel. Kept inside the sticky nav so it travels with it, and
   toggled with the `hidden` attribute rather than a class so it stays out of
   the accessibility tree while closed. */
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  max-width: 1160px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid rgba(23, 24, 28, 0.1);
  border-radius: 24px;
  box-shadow: 0 28px 64px rgba(23, 24, 28, 0.16);
  overflow: hidden;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.nav-menu[hidden] {
  display: none;
}
.nav-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 8px;
  padding: clamp(18px, 3vw, 32px);
}
.nav-group {
  min-width: 0;
}
.nav-group-head {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding: 10px 14px 8px;
  margin: 0;
}
.nav-item {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--ink);
  transition: background 0.15s;
}
.nav-item:hover {
  background: #f4efe3;
  color: var(--ink);
}
.nav-item .label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.25;
}
.nav-item .desc {
  display: block;
  font-size: 13px;
  color: var(--faint);
  margin-top: 2px;
}
.nav-menu-foot {
  background: var(--blue);
  padding: 14px clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-menu-foot span:first-child {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-ink);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e5b;
  flex-shrink: 0;
}

/* ----------------------------------------------------------- buttons ---- */

/* Contact buttons carry the WhatsApp glyph and settle into WhatsApp green on
   hover, so the channel is obvious before the tap. */
.btn-wa {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16.5px;
  padding: 17px 34px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-wa:hover {
  background: var(--wa-deep);
  color: #fff;
  transform: translateY(-2px);
}
.btn-wa svg {
  flex-shrink: 0;
}

/* 16px of padding plus the 1px border matches the solid pill's 17px, so the
   two sit at the same height when they share a row. */
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 100px;
  border: 1px solid rgba(23, 24, 28, 0.2);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 28px;
  border-radius: 100px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-amber:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(240, 168, 36, 0.35);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 28px;
  border-radius: 100px;
  align-self: flex-start;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-ink:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(23, 24, 28, 0.25);
}

/* -------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
}
/* Inset by -24px so the blur has material to bleed into and never shows a
   soft edge against the section boundary. */
.hero-bg {
  position: absolute;
  inset: -24px;
  background-image: url("../images/site/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: blur(4px);
  transform: scale(1.03);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 253, 247, 0.85) 0%,
    rgba(255, 253, 247, 0.68) 42%,
    rgba(255, 253, 247, 0) 62%,
    rgba(255, 253, 247, 0) 100%
  );
}
.hero-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 130px) clamp(20px, 3vw, 32px);
}
.hero-copy {
  max-width: 560px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(38px, 5.2vw, 68px);
  margin: 0;
}
.hero h1 .deep {
  color: var(--accent-deep);
}
.hero-sub {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}
.hero-strong {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 700;
}
.hero-ctas {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--faint);
}
.hero-points {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  max-width: 585px;
}
.hero-points span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-points .tick {
  color: var(--accent-deep);
}
.hero-points a {
  color: var(--muted);
  text-decoration: underline;
}
.hero-points a:hover {
  color: var(--accent-deep);
}

/* ---------------------------------------------------------- services ---- */

.services {
  background: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition:
    box-shadow 0.3s,
    transform 0.3s,
    border-color 0.3s;
}
.svc-card:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 24, 28, 0.1);
}
.svc-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.svc-body {
  padding: 24px 26px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 8px;
}
.svc-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.svc-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(23, 24, 28, 0.1);
  margin-top: 20px;
  padding-top: 14px;
}
.svc-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.svc-contact {
  font-weight: 600;
  font-size: 14px;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.svc-contact svg {
  flex-shrink: 0;
}
.services-foot {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.services-foot span {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--faint);
}

/* ----------------------------------------- trust + how it works (blue) --- */

.blue-band {
  background: var(--blue);
  border-top: 1px solid rgba(23, 24, 28, 0.06);
}
.blue-band + .blue-band {
  border-top-color: rgba(23, 24, 28, 0.06);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
/* The photo column sticks while the numbered list scrolls past it. */
.trust-side {
  position: sticky;
  top: 100px;
}
.trust-quote {
  margin: 28px 0 0;
  max-width: 400px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.45;
  color: var(--ink);
}
.trust-photo-wrap {
  margin-top: 36px;
  max-width: 440px;
}
.trust-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.trust-lede {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 600;
}
.trust-list {
  display: flex;
  flex-direction: column;
}
.trust-row {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(23, 24, 28, 0.14);
  align-items: baseline;
}
.trust-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--blue-ink);
  min-width: 32px;
}
.trust-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink);
  line-height: 1.35;
}
/* The ABHA row pairs a mark with its label, so it centres rather than sitting
   on the shared baseline. */
.trust-row.with-logo {
  align-items: center;
}
.trust-row.with-logo .trust-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.abha-logo {
  height: 30px;
  width: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.how .eyebrow {
  color: var(--blue-ink);
}
.how h2 {
  margin-bottom: 12px;
}
.steps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
}
.step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(63, 85, 115, 0.2);
  align-items: baseline;
}
.step-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--blue-ink);
  min-width: 32px;
}
.step-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 22px);
  color: var(--ink);
  line-height: 1.3;
}
.step-desc {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Two overlapping snapshots. Sized in container query units so the pair keeps
   its arrangement as the column narrows instead of colliding. */
.how-photos {
  position: relative;
  height: min(540px, 115vw);
  min-width: 0;
  container-type: inline-size;
}
.how-photo {
  position: absolute;
  border-radius: 26px;
  object-fit: cover;
}
.how-photo-a {
  z-index: 1;
  width: 58cqw;
  max-width: 300px;
  height: 74cqw;
  max-height: 390px;
  left: 2%;
  top: 56px;
  transform: rotate(-2.5deg);
  box-shadow: 0 20px 44px rgba(23, 24, 28, 0.16);
}
.how-photo-b {
  z-index: 2;
  width: 48cqw;
  max-width: 250px;
  height: 60cqw;
  max-height: 315px;
  right: 3%;
  top: 150px;
  transform: rotate(2.5deg);
  box-shadow: 0 26px 52px rgba(23, 24, 28, 0.22);
  outline: 6px solid var(--blue);
}

/* ---------------------------------------------------------- features ---- */

.features {
  max-width: 1160px;
  margin: 0 auto;
}
.feature-grid {
  gap: 20px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid rgba(23, 24, 28, 0.1);
  border-radius: 18px;
  padding: 30px 28px 32px;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.feature-card:hover {
  box-shadow: 0 16px 36px rgba(23, 24, 28, 0.1);
  transform: translateY(-4px);
}
/* Named for the card, not the footer — `.f-tag` is the footer tagline. */
.feature-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.f-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.f-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.parents {
  margin-top: 24px;
  background: var(--soft);
  border-radius: 22px;
  padding: clamp(36px, 4.5vw, 56px) clamp(30px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.parents-photo {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.parents-copy {
  max-width: 480px;
  flex: 1;
  min-width: 260px;
}
.parents-copy h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 12px;
}
.parents-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(23, 24, 28, 0.72);
}
.parents-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}
.parents-note {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--accent-darker);
  line-height: 1.45;
}

/* ------------------------------------------------------- why surely ----- */

.why {
  background: var(--paper);
  border-top: 1px solid var(--hair);
}
.why h2 {
  margin: 0 0 52px;
  text-align: center;
}
/* A ruled table rather than separate cards: one line across the top, one under
   each cell, and a hairline between columns. */
.why-grid {
  gap: 0;
  border-top: 1px solid rgba(23, 24, 28, 0.1);
}
.why-cell {
  padding: 32px 28px 36px;
  border-bottom: 1px solid rgba(23, 24, 28, 0.1);
  border-right: 1px solid var(--hair);
}
.why-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.why-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}
.why-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ------------------------------------------------------ care request ---- */

.care {
  background: var(--blue);
  border-top: 1px solid rgba(23, 24, 28, 0.06);
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.care .eyebrow {
  color: var(--blue-ink);
}
.care-lede {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.care-privacy {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(255, 253, 247, 0.7);
  border-radius: 14px;
  max-width: 420px;
}
.care-privacy strong {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.care-privacy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* display:flex below beats the hidden attribute's UA display:none, so hiding
   the form after submit needs saying explicitly. */
.care-form[hidden] {
  display: none !important;
}
.care-form {
  background: var(--paper);
  border: 1px solid rgba(23, 24, 28, 0.1);
  border-radius: 22px;
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: 0 20px 44px rgba(23, 24, 28, 0.08);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.care-form input {
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(23, 24, 28, 0.18);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.care-form input:focus {
  border-color: var(--ink);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Selection state lives in aria-pressed so the button reports it to assistive
   tech, and the styling follows from that rather than a parallel class. */
.opt-chip {
  font-family: var(--sans);
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(23, 24, 28, 0.2);
  background: var(--bg);
  color: var(--ink);
  transition: all 0.15s;
}
.opt-chip:hover {
  border-color: var(--ink);
}
.opt-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.care-submit {
  font-family: var(--sans);
  cursor: pointer;
  margin-top: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16.5px;
  padding: 16px 32px;
  border: none;
  border-radius: 100px;
  transition: background 0.2s;
}
.care-submit:hover {
  background: var(--wa-deep);
}
.care-error {
  font-size: 14px;
  font-weight: 600;
  color: #b4232a;
  text-align: center;
}
.care-error[hidden] {
  display: none !important;
}

/* The standalone /request-care page: same section shell, but it carries the h1
   and a little reassurance, since there is no page above it doing that job. */
.care-page {
  flex: 1;
}
.care-page h1 {
  margin: 0;
}
.care-points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.care-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--muted);
}
.care-points .tick {
  color: var(--accent-deep);
}
.care-alt {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.care-alt a {
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: underline;
}
.care-alt a:hover {
  color: var(--accent-dark);
}

/* Replaces the form once the request is away. A blocked popup otherwise looks
   identical to nothing happening at all. */
.care-done {
  background: var(--paper);
  border: 1px solid rgba(23, 24, 28, 0.1);
  border-radius: 22px;
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: 0 20px 44px rgba(23, 24, 28, 0.08);
  text-align: center;
  min-width: 0;
}
.care-done[hidden] {
  display: none !important;
}
.care-done-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.care-done h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 12px;
  color: var(--ink);
}
.care-done p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* -------------------------------------------------------- download ------ */

.download {
  background: var(--ink);
  padding: clamp(80px, 10vw, 130px) clamp(20px, 3vw, 32px);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: center;
}
.download h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: clamp(32px, 4vw, 54px);
  margin: 0;
  color: var(--bg);
}
.download-sub {
  margin: 20px 0 40px;
  max-width: 440px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  color: rgba(255, 253, 247, 0.6);
}
/* On ink the WhatsApp button inverts: full green fill, dark green label. */
.btn-wa-bright {
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 700;
  font-size: 16.5px;
  padding: 17px 34px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-wa-bright:hover {
  color: var(--wa-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.3);
}
.btn-wa-bright svg {
  flex-shrink: 0;
}
.download-apps {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 253, 247, 0.14);
  max-width: 440px;
}
.download-apps p {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 253, 247, 0.75);
}
.download-apps div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.app-link {
  background: transparent;
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 253, 247, 0.35);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.app-link:hover {
  color: var(--bg);
  border-color: var(--bg);
  background: rgba(255, 253, 247, 0.06);
}
.download-art {
  display: flex;
  justify-content: center;
}
.download-photo {
  width: min(300px, 74vw);
  height: min(360px, 90vw);
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

/* ------------------------------------------------------- wa float ------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--wa-float);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(23, 24, 28, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wa-float:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 14px 34px rgba(23, 24, 28, 0.35);
}

/* ----------------------------------------------------------- footer ----- */

.site-footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px clamp(20px, 3vw, 32px) 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
.f-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.f-tag {
  font-size: 13.5px;
  color: var(--faint);
  margin-top: 4px;
}
.f-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.f-links a {
  color: var(--faint);
  transition: color 0.2s;
}
.f-links a:hover {
  color: var(--ink);
}
.f-copy {
  color: var(--faint);
}

/* ------------------------------------------------------- blog index ----- */

.blog-head {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(50px, 6vw, 90px) clamp(20px, 3vw, 32px) clamp(40px, 5vw, 64px);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.blog-head .eyebrow {
  margin-bottom: 18px;
}
.blog-head h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(40px, 5vw, 64px);
  margin: 0;
}
.blog-lede {
  margin: 24px auto 0;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.clear-filter {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent-deep);
}

.blog-list {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px) 100px;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 26px;
}
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.post-card:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 24, 28, 0.1);
}
.post-card .thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card .c-body {
  padding: 24px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.c-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.c-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--faint);
}
.chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--soft);
  padding: 4px 12px;
  border-radius: 100px;
}
.post-card h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
/* Three lines of excerpt, then it clips — keeps every card the same shape. */
.c-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-deep);
}
.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--faint);
}

.pagination {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.page-btn {
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid rgba(23, 24, 28, 0.2);
  transition: border-color 0.2s;
}
.page-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.page-info {
  font-size: 14px;
  color: var(--faint);
  font-weight: 600;
}

/* -------------------------------------------------------- blog post ----- */

.post-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 3vw, 32px) 90px;
  width: 100%;
  box-sizing: border-box;
}
.breadcrumb {
  font-size: 14px;
  color: var(--faint);
  font-weight: 500;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--faint);
}
.breadcrumb a:hover {
  color: var(--accent-deep);
}
.breadcrumb a.current {
  color: var(--accent-deep);
  font-weight: 600;
}
.breadcrumb a.current:hover {
  color: var(--accent-dark);
}

.post-meta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.post-meta .chip {
  border: 1.5px solid var(--accent);
  padding: 5px 14px;
}
.post-meta .byline {
  font-size: 14px;
  font-weight: 600;
  color: var(--faint);
}

.post-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(36px, 4.6vw, 58px);
  margin: 18px 0 0;
}
.post-lede {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}
.post-image {
  width: 100%;
  border-radius: 26px;
  border: 1.5px solid rgba(23, 24, 28, 0.1);
  margin-top: 40px;
  display: block;
}

/* Styles whatever HTML the post body carries from the blog API. */
.blog-content {
  margin-top: 44px;
}
.blog-content h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 44px 0 14px;
}
.blog-content h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 34px 0 12px;
}
.blog-content h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 10px;
}
.blog-content p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--copy);
  margin: 0 0 20px;
}
.blog-content ul,
.blog-content ol {
  padding-left: 22px;
  margin: 0 0 20px;
}
.blog-content li {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--copy);
  margin-bottom: 8px;
}
.blog-content strong {
  color: var(--ink);
}
.blog-content a {
  color: var(--accent-deep);
  text-decoration: underline;
}
.blog-content a:hover {
  color: var(--accent-dark);
}
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 28px 0;
}
.blog-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
}
.blog-content blockquote p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.blog-content pre {
  background: var(--soft);
  padding: 18px 20px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 0 0 24px;
}
.blog-content code {
  font-size: 15px;
}
.blog-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 16px;
}
.blog-content th,
.blog-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.blog-content th {
  background: var(--soft);
  font-weight: 700;
}
.blog-content hr {
  border: 0;
  border-top: 1.5px solid rgba(23, 24, 28, 0.1);
  margin: 40px 0;
}

/* ----------------------------------------------------- founder story ---- */

/* The one editorial surface on the site: hairline rules and plain rounded
   cards, no photography. The quieter treatment is deliberate — it reads as a
   letter rather than a pitch. */

.story-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 3vw, 32px) 0;
  text-align: center;
}
.story-hero .eyebrow {
  margin-bottom: 18px;
}
.story-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(36px, 4.6vw, 58px);
  margin: 0;
}

/* Prose runs narrower than the headline above it to keep the measure short. */
.story-body,
.story-close {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);
}
.story-body {
  padding-top: clamp(44px, 5vw, 64px);
}

/* Paragraph rhythm is a flex gap rather than margins, so the pull quote and
   the chip row drop into the same vertical flow as the paragraphs. */
.story-prose {
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.85;
  color: var(--copy);
}
.story-prose p {
  margin: 0;
}
.story-prose strong {
  font-weight: 700;
  color: var(--ink);
}
/* Raised initial on the opening paragraph. Kept as a span rather than
   ::first-letter because line-height on ::first-letter is inconsistent across
   browsers and would shove the first line around. */
.story-cap {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.6em;
  line-height: 1;
  color: var(--ink);
}

.story-quote {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  margin: 12px 0;
}
.story-quote p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(21px, 2.3vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

/* Fill and text colour vary per chip via --chip-bg / --chip-fg, set from the
   template so the three pairs can cycle without three extra classes. */
.story-needs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px 0;
}
.story-needs span {
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 18px;
  border-radius: 100px;
}

.story-idea {
  max-width: 760px;
  margin: clamp(48px, 6vw, 72px) auto;
  padding: 0 clamp(20px, 3vw, 32px);
}
.story-idea-card {
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 56px);
  text-align: center;
}
.story-idea .eyebrow {
  color: var(--accent);
  font-size: 12.5px;
  margin-bottom: 18px;
}
.story-idea p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--bg);
}
/* The shared .accent helper only reaches headings; this statement is a <p>. */
.story-idea .accent {
  color: var(--accent);
}

.story-sign {
  margin-top: clamp(44px, 5vw, 60px);
  border-top: 1px solid var(--line);
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.story-sign-tag {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(21px, 2.2vw, 25px);
  color: var(--ink);
}
.story-sign-name {
  margin-top: 14px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.story-sign-role {
  font-size: 14.5px;
  color: var(--faint);
}
/* Holds the founder portrait. Carries both the monogram styling (flex centring,
   serif initials) and the photo styling (object-fit), so the class works
   unchanged whether the markup is the placeholder div or an <img>. */
.story-portrait {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
  box-sizing: border-box;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--accent-darker);
}

.story-cta {
  max-width: 760px;
  margin: clamp(56px, 7vw, 88px) auto clamp(64px, 8vw, 96px);
  padding: 0 clamp(20px, 3vw, 32px);
  text-align: center;
}
.story-cta-card {
  background: var(--soft);
  border-radius: 24px;
  padding: clamp(36px, 4.5vw, 52px) clamp(24px, 4vw, 48px);
}
.story-cta h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 24px;
}
.story-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
/* Smaller than the hero pair, and sized so the solid and outlined pills match
   in height (14px + 1px border == 15px). */
.story-cta-row .btn-wa {
  font-size: 16px;
  padding: 15px 30px;
}
.story-cta-row .btn-ghost {
  font-size: 16px;
  padding: 14px 29px;
  background: var(--bg);
}

/* ---------------------------------------------------------- responsive ---
   The source design is authored at desktop width; these rules keep the same
   layout readable once the columns collapse. */

@media (max-width: 900px) {
  /* Once trust collapses to one column the photo would pin itself to the top
     of a column it no longer shares with the list. */
  .trust-side {
    position: static;
  }
  /* The overlapping snapshots need room below the steps, not beside them. */
  .how-photos {
    height: min(460px, 118vw);
  }
}

@media (max-width: 760px) {
  /* Portrait crop of the same scene, framed for a phone: the landscape shot
     puts its subjects on the right, which a narrow viewport crops away. Only
     the matching rule's image is fetched, so phones never pull the wide one.
     Less blur too — this frame is composed to be read, not just textured. */
  .hero-bg {
    background-image: url("../images/site/hero-bg-mobile.jpg");
    background-position: center;
    filter: blur(2px);
  }
  /* The design's 100deg gradient clears the right half of the photo, which
     works beside a 560px copy column but not underneath one. Here it runs top
     to bottom instead: heaviest behind the headline, thinning over the lower
     half so the nurse and patient still come through. */
  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(255, 253, 247, 0.9) 0%,
      rgba(255, 253, 247, 0.86) 45%,
      rgba(255, 253, 247, 0.7) 62%,
      rgba(255, 253, 247, 0.6) 100%
    );
  }
  /* The lower half of the veil is thin enough to show the room, so the small
     supporting lines switch to ink: at this weight the quieter greys would
     need a veil around 0.8 to clear AA, which hides the photo again. The two
     buttons carry their own fills and need no help. */
  .hero-note,
  .hero-points,
  .hero-points a {
    color: var(--ink);
  }
  .hero-points {
    gap: 12px 24px;
  }

  .parents {
    justify-content: flex-start;
  }
  .parents-side {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    gap: 10px;
  }
  .nav-cta {
    padding: 11px 20px;
    font-size: 14.5px;
  }
  /* Instagram is the least load-bearing of the three actions; drop it before
     the nav row starts wrapping. */
  .nav-icon {
    display: none;
  }
  .nav-menu {
    left: 10px;
    right: 10px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .f-links {
    gap: 16px;
  }

  .wa-float {
    bottom: 16px;
    right: 16px;
    padding: 14px 22px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  /* Ruled cells need their column rule removed once there is one column. */
  .why-cell {
    border-right: none;
  }

  /* Signature block: the portrait drops under the sign-off instead of being
     pushed to the far edge. */
  .story-sign {
    justify-content: flex-start;
  }
  .story-portrait {
    width: 96px;
    height: 96px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .svc-card,
  .post-card,
  .feature-card,
  .btn-wa,
  .btn-ghost,
  .btn-amber,
  .btn-ink,
  .btn-wa-bright,
  .wa-float {
    transition: none;
  }
  .svc-card:hover,
  .post-card:hover,
  .feature-card:hover,
  .btn-wa:hover,
  .btn-ghost:hover,
  .btn-amber:hover,
  .btn-ink:hover,
  .btn-wa-bright:hover,
  .wa-float:hover {
    transform: none;
  }
}
