@font-face {
  font-family: "TT Chocolates";
  src: url("assets/fonts/TT Chocolates Trial Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Chocolates";
  src: url("assets/fonts/TT Chocolates Trial Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Chocolates";
  src: url("assets/fonts/TT Chocolates Trial DemiBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0c204a;
  --sage: #6c9d85;
  --white: #ffffff;
  --paper: #f8f5ee;
  --paper-deep: #eee9df;
  --ink: #18223a;
  --muted: #5d6473;
  --line: rgba(12, 32, 74, 0.16);
  --max-width: 1160px;
  --gutter: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "TT Chocolates", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  width: 100%;
  padding: 12px var(--gutter);
  background: var(--white);
  color: var(--navy);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 5px;
  background: var(--white);
  content: "";
  box-shadow: 0 10px 18px rgba(12, 32, 74, 0.08);
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 92px;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
}

.nav-panel {
  display: contents;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after,
.header-action::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 3px;
  background: var(--sage);
  content: "";
  transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after,
.header-action:hover::after,
.header-action:focus-visible::after {
  width: 100%;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(12, 32, 74, 0.35);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(7, 15, 34, 0.86) 0%, rgba(7, 15, 34, 0.62) 40%, rgba(7, 15, 34, 0.18) 76%),
    url("assets/webp/home-hero-family-support-desktop.webp") right center / cover no-repeat,
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: -4vw;
  bottom: -16px;
  left: -4vw;
  height: 78px;
  background: var(--white);
  clip-path: polygon(0 42%, 12% 55%, 31% 40%, 48% 62%, 66% 47%, 82% 58%, 100% 38%, 100% 100%, 0 100%);
  content: "";
}

.hero-copy {
  align-self: center;
  max-width: 720px;
  padding: 160px 0 150px var(--gutter);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.3rem, 6.4vw, 6.2rem);
  font-weight: 700;
  line-height: 0.92;
}

.hero p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--sage);
  color: var(--navy);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: var(--white);
}

.hero-media {
  display: none;
}

.photo-placeholder,
.care-photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(12, 32, 74, 0.14);
  background:
    linear-gradient(135deg, rgba(108, 157, 133, 0.18), rgba(12, 32, 74, 0.06)),
    var(--paper);
  color: rgba(12, 32, 74, 0.66);
  font-size: 0.95rem;
  font-weight: 700;
}

.care-photo {
  display: block;
}

.care-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(12, 32, 74, 0.12);
  content: "";
}

.photo-placeholder::after {
  position: absolute;
  right: -12%;
  bottom: 10%;
  width: 44%;
  height: 18px;
  background: var(--sage);
  content: "";
  transform: rotate(-7deg);
}

.photo-placeholder span {
  position: relative;
  z-index: 1;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.photo-placeholder-large,
.care-photo-large {
  width: min(100%, 720px);
  min-height: clamp(430px, 58vh, 660px);
  border-radius: 0 0 0 78px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.24);
}

.photo-placeholder-panel {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 36px 36px 4px 36px;
}

.intro-section,
.services-preview,
.trust-section {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(46px, 8vw, 118px);
  align-items: center;
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-top: clamp(84px, 10vw, 150px);
  padding-bottom: clamp(74px, 9vw, 132px);
  background: var(--white);
}

.intro-section-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  padding-top: clamp(68px, 8vw, 118px);
}

.photo-placeholder-portrait,
.care-photo-portrait {
  aspect-ratio: 0.82;
  min-height: 0;
  border-radius: 36px 36px 4px 36px;
}

.intro-copy h2,
.section-heading h2,
.trust-copy h2,
.cta-section h2,
.content-section h2,
.careers-section h2,
.faq-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.96;
}

.intro-copy p,
.trust-copy p,
.cta-section p,
.content-section p,
.careers-section p,
.faq-section p {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
}

.brush-line {
  width: min(280px, 62%);
  height: 10px;
  margin-top: 18px;
  background: var(--sage);
  clip-path: polygon(0 39%, 13% 22%, 31% 44%, 48% 30%, 65% 52%, 83% 28%, 100% 43%, 99% 67%, 72% 76%, 52% 62%, 27% 78%, 0 64%);
}

.services-preview {
  position: relative;
  padding-top: clamp(86px, 10vw, 138px);
  padding-bottom: clamp(82px, 9vw, 126px);
  background: var(--paper);
}

.services-preview::before,
.services-preview::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 48px;
  background: var(--white);
  content: "";
}

.services-preview::before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 22%, 83% 38%, 60% 18%, 41% 36%, 18% 18%, 0 42%);
}

.services-preview::after {
  bottom: 0;
  clip-path: polygon(0 58%, 20% 38%, 43% 64%, 64% 42%, 84% 62%, 100% 44%, 100% 100%, 0 100%);
}

.about-band {
  background: var(--navy);
  color: var(--white);
}

.about-band .section-heading h2 {
  color: var(--white);
}

.about-band .long-form p {
  color: rgba(255, 255, 255, 0.82);
}

.about-band::before,
.about-band::after {
  background: var(--white);
}

.green-band {
  position: relative;
  isolation: isolate;
  background: transparent;
}

.green-band::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--sage);
  content: "";
  transform: translateX(-50%);
}

.green-band h2 {
  color: var(--navy);
}

.green-band p {
  color: rgba(12, 32, 74, 0.84);
}

.green-band .brush-line {
  background: var(--white);
}

.green-band-light h2,
.green-band-light p,
.green-band-light .check-list {
  color: var(--white);
}

.green-band-light .check-list li::before {
  background: var(--white);
}

.cream-band {
  background: var(--paper);
}

.jagged-to-green,
.jagged-to-white,
.jagged-to-cream,
.jagged-from-white {
  position: relative;
}

.jagged-from-white {
  padding-top: clamp(104px, 11vw, 156px);
}

.jagged-to-green {
  padding-bottom: clamp(104px, 11vw, 156px);
}

.jagged-to-white {
  padding-bottom: clamp(104px, 11vw, 156px);
}

.jagged-to-cream {
  padding-bottom: clamp(104px, 11vw, 156px);
}

.jagged-to-green::after,
.jagged-to-white::after,
.jagged-to-cream::after {
  position: absolute;
  right: auto;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  height: 58px;
  content: "";
  clip-path: polygon(0 50%, 15% 36%, 31% 58%, 48% 40%, 65% 62%, 82% 42%, 100% 56%, 100% 100%, 0 100%);
  pointer-events: none;
  transform: translateX(-50%);
}

.jagged-from-white::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 100vw;
  height: 58px;
  background: var(--white);
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 44%, 82% 58%, 65% 38%, 48% 60%, 31% 42%, 15% 64%, 0 50%);
  pointer-events: none;
  transform: translateX(-50%);
}

.jagged-to-green::after {
  background: var(--sage);
}

.jagged-to-white::after {
  background: var(--white);
}

.jagged-to-cream::after {
  background: var(--paper);
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section-heading h2 {
  display: inline;
  background-image: linear-gradient(transparent 78%, rgba(108, 157, 133, 0.42) 78%);
}

.support-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 70px);
  max-width: var(--max-width);
  margin: clamp(56px, 8vw, 92px) auto 0;
}

.support-list article {
  position: relative;
  padding-top: 30px;
}

.support-list article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 8px;
  background: var(--sage);
  content: "";
  transform: rotate(-2deg);
}

.support-list h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.support-list p {
  margin: 16px 0 0;
  color: var(--muted);
}

.long-form {
  max-width: 920px;
  margin: clamp(44px, 6vw, 72px) auto 0;
}

.long-form p {
  margin: 0;
  color: var(--muted);
}

.long-form p + p {
  margin-top: 22px;
}

.long-form-center {
  max-width: 880px;
  text-align: center;
}

.long-form-center p {
  max-width: none;
}

.content-section {
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(84px, 10vw, 142px) var(--gutter);
  background: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
  margin-top: clamp(44px, 6vw, 72px);
}

.content-section > .two-column:first-child {
  margin-top: 0;
}

.content-card {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 40px 40px 4px 40px;
  background: var(--paper);
}

.content-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
  transform: translateY(-50%);
}

.trust-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 6vw, 72px);
  align-items: start;
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-top: clamp(84px, 10vw, 150px);
  padding-bottom: clamp(74px, 9vw, 132px);
  background: var(--white);
}

.trust-marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 78px);
  align-items: start;
}

.trust-marks div {
  display: grid;
  align-content: start;
  justify-items: start;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.trust-marks strong {
  color: var(--sage);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}

.trust-marks span {
  display: block;
  margin-top: 14px;
  color: var(--navy);
  max-width: none;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.feature-grid article {
  min-height: 220px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
}

.feature-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.feature-grid p {
  margin: 16px 0 0;
  color: var(--muted);
}

.cta-section {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  max-width: var(--max-width);
  margin: clamp(36px, 5vw, 64px) auto clamp(60px, 8vw, 100px);
  padding: clamp(44px, 6vw, 68px) clamp(28px, 4vw, 48px);
  border-radius: 52px 52px 6px 52px;
  background: var(--navy);
  color: var(--white);
}

.cta-section h2 {
  max-width: 720px;
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line);
  color: var(--navy);
}

.site-footer img {
  width: 170px;
}

.footer-details {
  display: grid;
  gap: 6px;
  max-width: 760px;
  text-align: right;
}

.footer-details p {
  margin: 0;
  color: rgba(12, 32, 74, 0.78);
  font-weight: 500;
}

.footer-details p:first-child {
  color: var(--sage);
  font-weight: 700;
}

.footer-details a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer-details span {
  margin: 0 8px;
  color: rgba(12, 32, 74, 0.32);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: end;
  min-height: 78svh;
  padding: 150px var(--gutter) 112px;
  background:
    linear-gradient(112deg, rgba(12, 32, 74, 0.97), rgba(12, 32, 74, 0.82)),
    var(--navy);
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  position: absolute;
  right: -5vw;
  bottom: -18px;
  left: -5vw;
  height: 70px;
  background: var(--white);
  clip-path: polygon(0 45%, 18% 58%, 36% 42%, 53% 62%, 72% 48%, 100% 59%, 100% 100%, 0 100%);
  content: "";
}

.page-hero-copy,
.page-hero-media,
.contact-panel {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.5rem, 6.8vw, 6.9rem);
  font-weight: 700;
  line-height: 0.93;
}

.page-hero p {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.page-photo-placeholder,
.page-care-photo {
  min-height: clamp(360px, 48vh, 560px);
  border-radius: 52px 52px 4px 52px;
}

.section-heading-left {
  text-align: left;
}

.service-detail-section,
.split-feature,
.process-section,
.contact-layout {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.service-detail-section {
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-top: clamp(84px, 10vw, 142px);
  padding-bottom: clamp(72px, 9vw, 126px);
  background: var(--white);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 82px);
  background: var(--line);
}

.service-detail-grid article {
  min-height: 280px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--white);
}

.service-detail-grid-large article {
  min-height: 360px;
}

.service-detail-grid-services .service-featured {
  grid-column: 1 / -1;
  min-height: 0;
}

.service-detail-grid span {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--sage);
  font-size: 1rem;
  font-weight: 700;
}

.service-detail-grid h3,
.form-section h3,
.contact-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.service-detail-grid p {
  margin: 18px 0 0;
  color: var(--muted);
}

.service-detail-grid ul {
  margin: 18px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: center;
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-top: clamp(76px, 9vw, 128px);
  padding-bottom: clamp(84px, 10vw, 144px);
  background: var(--white);
}

.split-feature h2,
.process-section h2,
.contact-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.96;
}

.split-feature p,
.contact-intro p {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
}

.split-feature.green-band {
  background: var(--sage);
  max-width: none;
  margin: 0;
  padding-right: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  padding-left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
}

.split-feature.green-band .brush-line {
  background: var(--white);
}

.split-feature.green-band-light h2,
.split-feature.green-band-light p,
.split-feature.green-band-light .check-list {
  color: var(--white);
}

.split-feature.green-band-light .check-list li::before {
  background: var(--white);
}

.process-section {
  position: relative;
  padding-top: clamp(82px, 10vw, 132px);
  padding-bottom: clamp(36px, 5vw, 60px);
  background: var(--paper);
  text-align: center;
}

.process-section.jagged-to-white {
  padding-bottom: clamp(104px, 11vw, 156px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 58px);
  max-width: var(--max-width);
  margin: clamp(46px, 7vw, 76px) auto 0;
  text-align: left;
}

.process-steps article {
  position: relative;
  padding-top: 32px;
}

.process-steps article::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 8px;
  background: var(--sage);
  content: "";
  transform: rotate(-2deg);
}

.process-steps strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.process-steps p {
  margin: 15px 0 0;
  color: var(--muted);
}

.careers-section {
  background: var(--paper);
}

.careers-section .button {
  width: fit-content;
  margin-top: 30px;
}

.faq-section {
  padding: clamp(84px, 10vw, 142px) var(--gutter);
  background: var(--white);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max-width);
  margin: clamp(48px, 7vw, 82px) auto 0;
  background: var(--line);
}

.faq-list article {
  padding: clamp(26px, 4vw, 42px);
  background: var(--white);
}

.faq-list h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.faq-list p {
  max-width: none;
  margin: 16px 0 0;
}

.faq-section-home {
  padding-top: clamp(40px, 6vw, 76px);
}

.faq-accordion {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: clamp(44px, 6vw, 72px) auto 0;
}

.faq-accordion details {
  border: 1px solid var(--line);
  border-radius: 28px 28px 4px 28px;
  background: var(--paper);
  overflow: hidden;
}

.faq-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 64px 24px 28px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.12;
  cursor: pointer;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 18px;
  height: 18px;
  border-right: 3px solid var(--sage);
  border-bottom: 3px solid var(--sage);
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
}

.faq-accordion details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-accordion p {
  max-width: none;
  margin: 0;
  padding: 0 28px 28px;
}

.contact-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
}

.contact-panel {
  padding: clamp(28px, 5vw, 46px);
  border-radius: 42px 42px 4px 42px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

.contact-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-panel a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin: 0 auto;
  padding-top: clamp(84px, 10vw, 142px);
  padding-bottom: clamp(84px, 10vw, 142px);
  background: var(--white);
}

.contact-layout-wide {
  grid-template-columns: 1fr;
  gap: clamp(38px, 6vw, 68px);
  max-width: min(1380px, 100%);
}

.contact-intro-wide {
  max-width: 980px;
}

.referral-form {
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 44px 44px 4px 44px;
  background: var(--paper);
}

.form-section + .form-section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid rgba(12, 32, 74, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.form-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid-person,
.form-grid-care {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid-person label,
.form-grid-care label {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 700;
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(12, 32, 74, 0.18);
  border-radius: 18px 18px 3px 18px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

input,
select {
  min-height: 54px;
  padding: 0 16px;
}

textarea {
  resize: vertical;
  min-height: 136px;
  padding: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(108, 157, 133, 0.35);
  border-color: var(--sage);
}

.consent-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 34px;
  color: var(--muted);
  font-weight: 500;
}

.consent-row input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 5px;
  accent-color: var(--sage);
}

.form-submit {
  margin-top: 30px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 10px var(--gutter);
    text-align: left;
  }

  .site-header::after {
    bottom: -4px;
    height: 4px;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 5px;
    align-content: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(12, 32, 74, 0.24);
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(3) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-panel {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 8px 0 6px;
  }

  .site-header.is-menu-open .nav-panel {
    display: grid;
    gap: 12px;
  }

  .nav-links {
    display: grid;
    gap: 2px;
    font-size: 1rem;
  }

  .nav-links a {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid rgba(12, 32, 74, 0.12);
  }

  .nav-links a::after {
    bottom: 0;
    height: 2px;
  }

  .header-action {
    width: 100%;
    min-height: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100svh - 76px);
    background:
      linear-gradient(180deg, rgba(7, 15, 34, 0.42) 0%, rgba(7, 15, 34, 0.62) 48%, rgba(7, 15, 34, 0.84) 100%),
      url("assets/webp/home-hero-family-support-mobile.webp") right center / cover no-repeat;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 76px);
    padding: 52px var(--gutter) 78px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 5.7rem);
    line-height: 0.96;
  }

  .hero-actions {
    margin-top: auto;
    padding-top: 46px;
  }

  .hero-media {
    display: none;
  }

  .photo-placeholder-large,
  .care-photo-large {
    min-height: 380px;
    border-radius: 42px 42px 4px 42px;
  }

  .intro-section,
  .intro-section-reverse,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .support-list {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .trust-marks {
    grid-template-columns: 1fr;
  }

  .trust-marks div {
    width: auto;
    min-height: 132px;
    padding: 28px 22px 22px;
    border-radius: 32px 32px 4px 32px;
    background: var(--paper);
    text-align: center;
    align-content: center;
    justify-items: center;
  }

  .cta-section {
    display: grid;
    border-radius: 36px 36px 4px 36px;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }

  .footer-details {
    text-align: left;
  }

  .page-hero,
  .contact-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 76px;
  }

  .page-hero h1 {
    font-size: clamp(3.1rem, 14vw, 5.5rem);
    line-height: 0.96;
  }

  .service-detail-grid,
  .split-feature,
  .process-steps,
  .contact-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .service-detail-grid article {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .brand {
    width: 78px;
  }

  .header-action,
  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .intro-copy h2,
  .section-heading h2,
  .trust-copy h2,
  .cta-section h2,
  .split-feature h2,
  .process-section h2,
  .contact-intro h2 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .referral-form {
    border-radius: 32px 32px 4px 32px;
  }
}
