:root {
  --ink: #292a58;
  --muted: #516d88;
  --line: #a8d6ea;
  --paper: #f4fbff;
  --white: #ffffff;
  --mist: #e3f4fc;
  --teal: #4aa9e6;
  --teal-dark: #292a58;
  --coral: #2d86cc;
  --sage: #8bc8ec;
  --shadow: 0 20px 55px rgba(41, 42, 88, 0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --good: #5a9f32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(41, 42, 88, 0.08);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(41, 42, 88, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
}

.brand img {
  width: clamp(185px, 21vw, 270px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 390px);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  overflow: hidden;
  padding: 108px clamp(20px, 5vw, 72px) 68px;
  color: var(--ink);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center top;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(244, 251, 255, 0.94) 0%, rgba(227, 244, 252, 0.86) 38%, rgba(255, 255, 255, 0.34) 58%, rgba(41, 42, 88, 0.18) 100%),
    linear-gradient(0deg, rgba(244, 251, 255, 0.52), rgba(74, 169, 230, 0.16));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(530px, 100%);
}

.rating-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  padding: 22px;
  border: 1px solid #c8d9ea;
  border-top: 5px solid var(--good);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 255, 0.97));
  box-shadow: var(--shadow);
}

.rating-panel .cqc-label {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.rating-panel strong {
  display: block;
  margin-top: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.12rem;
  line-height: 1.08;
}

.cqc-location,
.cqc-date {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.cqc-good {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.52rem;
  font-weight: 900;
  letter-spacing: 0;
}

.cqc-good i {
  display: inline-block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--good);
}

.cqc-date {
  margin-top: 14px;
}

.rating-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.rating-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--mist);
  font-weight: 800;
}

.rating-list b {
  display: inline-flex;
  align-items: center;
  min-width: 58px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--good);
  font-size: 0.78rem;
}

.cqc-activity {
  display: block;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #c8d9ea;
  border-radius: var(--radius);
  color: var(--ink);
  background: #eef7fd;
  font-weight: 850;
}

.rating-panel a {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid #d2d2d2;
  border-radius: 5px;
  color: #6b1f7b;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  font-weight: 900;
  text-decoration: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 530px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin: 24px 0 0;
  color: #27415c;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.button.full {
  width: 100%;
}

.trust-strip,
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div,
.contact-strip a,
.contact-strip address {
  min-height: 140px;
  padding: 28px clamp(20px, 4vw, 42px);
  background: var(--white);
}

.contact-strip a,
.contact-strip address {
  display: grid;
  align-content: center;
  min-height: 112px;
  font-style: normal;
  text-decoration: none;
}

.contact-strip span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-strip strong,
.contact-strip strong {
  display: block;
  font-size: 1.08rem;
}

.trust-strip span {
  display: block;
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(54px, 7vw, 88px) clamp(20px, 5vw, 72px);
}

.section-muted {
  background: var(--mist);
}

#services {
  padding-top: 54px;
  padding-right: clamp(18px, 1.6vw, 30px);
  padding-bottom: 62px;
  padding-left: clamp(18px, 1.6vw, 30px);
}

#services .section-heading {
  margin-bottom: 30px;
}

#services h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.intro-grid,
.section-heading,
.split,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.intro h2,
.section-heading h2,
.split h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.35vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.intro p,
.section-heading p,
.split p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cqc-inspection-date {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-weight: 900;
}

.intro h2 + p {
  margin-top: 18px;
}

.section-photo {
  width: 100%;
  height: auto;
  max-height: none;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #c8d9ea;
  background: #eef5fb;
  box-shadow: 0 18px 42px rgba(41, 42, 88, 0.1);
  object-fit: contain;
  object-position: center top;
}

.content-image-frame,
.service-image-frame,
.apply-image-frame,
.gallery-slide-frame,
.page-photo-frame,
.narrow-photo {
  width: 100%;
  background: #eef5fb;
  border: 1px solid #c8d9ea;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 320px;
}

.content-image-frame img,
.service-image-frame img,
.apply-image-frame img,
.gallery-slide-frame img,
.page-photo-frame img,
.narrow-photo img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 12px;
}

.photo-portrait img,
img.photo-portrait {
  object-fit: contain;
  object-position: center top;
}

.photo-landscape img,
img.photo-landscape {
  object-fit: contain;
  object-position: center center;
}

.narrow-photo {
  max-width: 640px;
  margin: 0 auto;
}

#privacy h2 {
  max-width: 620px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.12;
}

#privacy,
#contact,
#forms,
#recruitment,
#cqc,
#services,
#standards,
#care-gallery {
  scroll-margin-top: 96px;
}

#privacy > div:first-child p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.service-grid.expanded {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 0 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(41, 42, 88, 0.06);
}

.service-media {
  width: calc(100% + 40px);
  height: auto;
  min-height: 150px;
  margin: 0 -20px;
  padding: 12px;
  object-fit: contain;
  object-position: center top;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.official-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 0;
  align-items: start;
}

.official-service-card {
  text-align: center;
  overflow: visible;
}

.official-service-card img {
  display: block;
  width: 100%;
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  padding: 10px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid #c8d9ea;
  border-radius: 16px;
  background: #eef5fb;
  overflow: visible;
}

.service-personal img {
  object-position: center top;
}

.service-livein img {
  object-position: center top;
}

.service-endoflife img {
  object-position: center top;
}

.service-respite img {
  object-position: center top;
}

.service-domestic img {
  object-position: center top;
}

.official-service-card h3 {
  margin: 18px auto 0;
  color: #2f2a4f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.registered-support-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 56px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #c8d9ea;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 94% 12%, rgba(74, 169, 230, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 253, 0.96));
  box-shadow: 0 18px 38px rgba(41, 42, 88, 0.08);
}

.registered-support-panel h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.registered-support-panel p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.specialism-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.specialism-grid span {
  display: grid;
  min-height: 72px;
  align-items: center;
  padding: 14px;
  border: 1px solid #c8d9ea;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(41, 42, 88, 0.05);
  font-weight: 850;
}

.card-icon {
  display: grid;
  width: 46px;
  height: 42px;
  margin-top: -22px;
  position: relative;
  z-index: 1;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3,
.steps h3 {
  margin: 16px 0 8px;
  font-size: 1.18rem;
}

.service-card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--teal-dark);
  font-weight: 900;
  text-underline-offset: 5px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--coral);
  font-weight: 900;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.compliance-panel {
  display: grid;
  gap: 18px;
}

.compliance-panel .section-photo {
  max-width: 640px;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
}

.compliance-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(41, 42, 88, 0.06);
}

.quality-panel,
.ecm-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.quality-panel h2,
.ecm-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.35vw, 3rem);
  line-height: 1.1;
}

.quality-panel p,
.ecm-panel p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.quality-panel .section-photo,
.ecm-panel .section-photo {
  max-width: 720px;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  box-shadow: 0 14px 32px rgba(41, 42, 88, 0.1);
}

.quality-summary,
.expectations-grid,
.kpi-grid,
.ecm-list,
.improvement-actions {
  display: grid;
  gap: 14px;
}

.quality-summary {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.quality-summary article,
.expectations-grid article,
.kpi-grid span,
.ecm-list span,
.improvement-actions span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(41, 42, 88, 0.06);
}

.quality-summary article,
.expectations-grid article {
  padding: 20px;
}

.quality-summary strong,
.expectations-grid span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.quality-summary span,
.expectations-grid p {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
}

.expectations-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 32px;
}

.cqc-expectations {
  background:
    radial-gradient(circle at 8% 18%, rgba(74, 169, 230, 0.16), transparent 30%),
    linear-gradient(180deg, #eef7fd, #f6fbff);
}

.expectations-grid article {
  min-height: 248px;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--good);
}

.expectations-grid span {
  color: var(--teal-dark);
  font-size: 1.14rem;
}

.expectations-grid p {
  font-size: 0.95rem;
}

.expectation-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.expectation-card i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #d9effb;
  font-style: normal;
  font-weight: 900;
}

.expectation-card b {
  align-self: end;
  justify-self: start;
  margin-top: 4px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--good);
  font-size: 0.86rem;
  font-weight: 900;
}

.kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 30px;
}

.kpi-grid span,
.ecm-list span,
.improvement-actions span {
  display: grid;
  min-height: 78px;
  align-items: center;
  padding: 16px;
  color: var(--ink);
  font-weight: 850;
}

.quality-note {
  max-width: 980px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--mist);
}

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

.dashboard-kpi-grid span {
  min-height: 132px;
  align-content: start;
  gap: 10px;
  border-top: 4px solid var(--good);
  background:
    linear-gradient(180deg, #ffffff, #f5fbff);
}

.dashboard-kpi-grid i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #d9effb;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.dashboard-kpi-grid strong,
.dashboard-kpi-grid b {
  display: block;
}

.dashboard-kpi-grid b {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--good);
  font-size: 0.76rem;
}

.quality-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.kpi-overview-card,
.kpi-trend-card {
  min-height: 250px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #c8d9ea;
  border-top: 5px solid var(--good);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 16px 34px rgba(41, 42, 88, 0.08);
}

.dashboard-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: #d9effb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-overview-card strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.kpi-overview-card p,
.kpi-trend-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  height: 150px;
  padding: 16px;
  border-radius: 14px;
  background: #eef7fd;
}

.trend-bars i {
  display: block;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #4aa9e6, #2d86cc);
}

.trend-bars i:nth-child(1) { height: 52%; }
.trend-bars i:nth-child(2) { height: 62%; }
.trend-bars i:nth-child(3) { height: 74%; }
.trend-bars i:nth-child(4) { height: 83%; }
.trend-bars i:nth-child(5) { height: 92%; background: linear-gradient(180deg, #76b84f, var(--good)); }

.kpi-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kpi-detail-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #c8d9ea;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(41, 42, 88, 0.06);
}

.kpi-detail-grid i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #d9effb;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.kpi-detail-grid strong,
.kpi-detail-grid span,
.kpi-detail-grid b {
  display: block;
}

.kpi-detail-grid strong {
  color: var(--ink);
}

.kpi-detail-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.kpi-detail-grid b {
  grid-column: 2;
  justify-self: start;
  align-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--good);
  font-size: 0.76rem;
}

.ecm-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.technology-section {
  display: grid;
  gap: 28px;
}

.technology-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #c8d9ea;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 14%, rgba(90, 159, 50, 0.1), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #eef8fd 100%);
  box-shadow: 0 22px 46px rgba(41, 42, 88, 0.1);
}

.careverity-logo {
  width: min(420px, 100%);
  margin-bottom: 22px;
  padding: 0;
  border: 1px solid #c8d9ea;
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
}

.technology-hero-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
}

.technology-subtitle {
  color: var(--ink);
  font-weight: 900;
}

.technology-hero-panel p:not(.section-kicker) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.technology-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #c8d9ea;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 248, 255, 0.92)),
    var(--white);
  box-shadow: 0 20px 42px rgba(41, 42, 88, 0.08);
}

.careverity-note {
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #eef7fd;
}

.careverity-mockup {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid #c8d9ea;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(41, 42, 88, 0.1);
}

.mockup-top,
.mockup-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.mockup-top {
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.mockup-top b,
.mockup-list b {
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--good);
  font-size: 0.78rem;
}

.mockup-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
  height: 170px;
  padding: 16px;
  border-radius: 14px;
  background: #eef7fd;
}

.mockup-chart span {
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #4aa9e6, #2d86cc);
}

.mockup-chart span:nth-child(1) { height: 52%; }
.mockup-chart span:nth-child(2) { height: 68%; }
.mockup-chart span:nth-child(3) { height: 82%; }
.mockup-chart span:nth-child(4) { height: 92%; }

.mockup-list {
  display: grid;
  gap: 10px;
}

.mockup-list span {
  padding: 12px;
  border: 1px solid #c8d9ea;
  border-radius: var(--radius);
  color: var(--ink);
  background: #f7fcff;
  font-weight: 850;
}

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

.careverity-feature-grid article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid #c8d9ea;
  border-top: 4px solid var(--good);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(41, 42, 88, 0.07);
}

.careverity-feature-grid i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #d9effb;
  font-style: normal;
  font-weight: 900;
}

.careverity-feature-grid h3,
.careverity-leaflet-panel h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
}

.careverity-feature-grid p,
.careverity-leaflet-panel p {
  margin: 0;
  color: var(--muted);
}

.careverity-leaflet-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #c8d9ea;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(41, 42, 88, 0.07);
}

.careverity-disclaimer {
  padding: 16px;
  border-left: 4px solid var(--good);
  border-radius: var(--radius);
  background: #eef7fd;
  font-size: 0.92rem;
}

.disabled-button {
  margin-top: 18px;
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}

.careverity-dashboard {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #bcd4ea;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, rgba(74, 169, 230, 0.2), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #eef8fd 100%);
  box-shadow: 0 18px 38px rgba(41, 42, 88, 0.08);
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-header .section-kicker {
  margin: 0;
}

.dashboard-header strong {
  max-width: 520px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  text-align: right;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-metrics span {
  min-height: 118px;
  padding: 20px;
  border: 1px solid #c8d9ea;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(41, 42, 88, 0.06);
}

.dashboard-metrics b,
.dashboard-metrics em {
  display: block;
}

.dashboard-metrics b {
  color: var(--ink);
  font-size: 1.05rem;
}

.dashboard-metrics em {
  margin-top: 10px;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 850;
}

.careverity-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.improvement-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 28px;
}

.compliance-grid strong {
  display: block;
  font-size: 1.05rem;
}

.compliance-grid span,
.recruitment-panel p,
.privacy-box p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.quote-band {
  padding: clamp(46px, 7vw, 78px) clamp(20px, 8vw, 124px);
  color: var(--white);
  background: var(--teal-dark);
}

.quote-band blockquote {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.4vw, 2.85rem);
  line-height: 1.08;
}

.standards-section {
  background: var(--white);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.standard-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 126px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  text-align: center;
  text-decoration: none;
}

.standards-note {
  max-width: 980px;
  margin: -12px 0 30px;
  color: var(--muted);
  font-size: 1.02rem;
}

.standard-logo {
  display: block;
  width: min(132px, 100%);
  max-height: 64px;
  object-fit: contain;
  object-position: center center;
}

.cqc-rating-logo {
  max-height: 68px;
}

.nhs-logo {
  width: min(88px, 70%);
  padding: 7px;
  background: #005eb8;
}

.standard-card strong {
  display: block;
  max-width: 150px;
  font-size: 0.78rem;
  line-height: 1.32;
}

.standard-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.32;
}

.cqc-standard {
  border-color: #6b1f7b;
}

.cqc-standard strong {
  color: #6b1f7b;
}

.why-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

.why-band h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.why-band p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.why-panel {
  display: grid;
  gap: 18px;
}

.why-panel .section-photo {
  max-width: 640px;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  background: rgba(255, 255, 255, 0.14);
}

.why-grid span {
  display: grid;
  min-height: 86px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.areas {
  background: var(--white);
}

.section-heading.compact {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  align-items: end;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 42px;
}

.area-list span {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: var(--paper);
  font-weight: 900;
  text-align: center;
}

.recruitment-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.54fr) minmax(0, 0.9fr) minmax(260px, 0.58fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--teal-dark);
}

.recruitment-panel .section-photo {
  align-self: center;
  max-width: 520px;
  min-height: 0;
  object-fit: contain;
  object-position: center top;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.recruitment-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.1;
}

.recruitment-panel p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
}

.recruitment-panel .button {
  margin-top: 24px;
}

.tick-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.privacy-box h3 {
  margin: 0;
  font-size: 1.15rem;
}

.apply-cta {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.apply-cta .section-photo {
  max-width: 520px;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  box-shadow: none;
}

.apply-cta p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.apply-cta .button {
  margin-top: 18px;
}

.care-gallery {
  background: linear-gradient(180deg, var(--mist), var(--paper));
}

.care-gallery-slider {
  margin-top: 34px;
}

.gallery-slide {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(41, 42, 88, 0.1);
}

.gallery-slide img {
  width: 100%;
  height: auto;
  max-height: 620px;
  padding: 14px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid #c8d9ea;
  border-radius: 16px;
  background: #eef5fb;
}

.gallery-slide figcaption {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.care-gallery .splide__arrow {
  width: 42px;
  height: 42px;
  background: var(--ink);
  opacity: 0.92;
}

.care-gallery .splide__arrow svg {
  fill: var(--white);
}

.care-gallery .splide__pagination {
  bottom: -1.7rem;
}

.care-gallery .splide__pagination__page {
  background: var(--line);
  opacity: 1;
}

.care-gallery .splide__pagination__page.is-active {
  background: var(--teal);
}

.privacy-box {
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.privacy-section > div:first-child .section-photo {
  max-width: 540px;
  max-height: none;
  margin-top: 26px;
  object-fit: contain;
  object-position: center top;
}

.privacy-box a {
  color: var(--teal-dark);
  font-weight: 800;
}

.privacy-box hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-photo {
  max-width: 540px;
  max-height: none;
  margin-top: 26px;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  object-fit: contain;
  object-position: center top;
}

.contact-copy p,
.contact-details dd {
  color: rgba(255, 255, 255, 0.72);
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.contact-details div {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-details dt {
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 6px 0 0;
}

.contact-details a {
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.contact-form span {
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(13, 109, 104, 0.18);
  border-color: var(--teal);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #17183f;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-logo {
  width: min(260px, 100%);
  height: auto;
  margin-bottom: 12px;
  object-fit: contain;
  background: #ffffff;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (max-width: 1200px) {
  .official-services-grid {
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .trust-strip,
  .contact-strip,
  .intro-grid,
  .section-heading,
  .split,
  .contact-section,
  .quality-panel,
  .ecm-panel,
  .registered-support-panel,
  .technology-hero-panel,
  .careverity-leaflet-panel,
  .apply-cta,
  .section-heading.compact {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid.expanded,
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-summary,
  .expectations-grid,
  .kpi-grid,
  .dashboard-kpi-grid,
  .quality-dashboard,
  .kpi-detail-grid,
  .careverity-feature-grid,
  .careverity-kpi-grid,
  .dashboard-metrics,
  .improvement-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .why-band,
  .recruitment-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .rating-panel {
    align-self: auto;
  }

  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .official-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero {
    min-height: 88vh;
    padding-top: 110px;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(244, 251, 255, 0.96), rgba(227, 244, 252, 0.88) 62%, rgba(255, 255, 255, 0.5)),
      linear-gradient(0deg, rgba(74, 169, 230, 0.16), rgba(74, 169, 230, 0.16));
  }

  .trust-strip,
  .contact-strip,
  .service-grid,
  .service-grid.expanded,
  .official-services-grid,
  .standards-grid,
  .compliance-grid,
  .quality-summary,
  .expectations-grid,
  .kpi-grid,
  .dashboard-kpi-grid,
  .quality-dashboard,
  .kpi-detail-grid,
  .careverity-feature-grid,
  .careverity-kpi-grid,
  .dashboard-metrics,
  .ecm-list,
  .improvement-actions,
  .why-grid,
  .area-list,
  .specialism-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    display: grid;
  }

  .dashboard-header strong {
    text-align: left;
  }

  .rating-panel {
    padding: 18px;
  }

  .careverity-logo {
    width: min(320px, 100%);
  }

  .mockup-chart {
    height: 140px;
  }

  .trust-strip div {
    min-height: auto;
  }

  .service-card {
    min-height: auto;
  }

  .official-service-card img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .steps li {
    grid-template-columns: 44px 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
