:root {
  --ink: #111827;
  --body: #485568;
  --muted: #6f7c8d;
  --line: #dce5ef;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --soft-blue: #eaf2fb;
  --brand: #184078;
  --brand-dark: #0f2f63;
  --brand-soft: #dceaf8;
  --accent: #f0a640;
  --accent-soft: #fff2db;
  --coral: #d96f5f;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  padding: 10px 14px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.site-topbar {
  background: var(--brand-dark);
  color: #f4f8ff;
  font-size: 0.9rem;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  min-height: 42px;
}

.topbar-inner a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar-cqc-logo {
  align-items: center;
  background: #233c81;
  border-radius: 4px;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 3px 6px;
  width: 82px;
}

.topbar-cqc-logo img {
  height: 16px;
  width: auto;
}

.topbar-homecare {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 10px;
}

.topbar-homecare:hover,
.topbar-homecare:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.09);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 86px;
  transition: min-height 180ms ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 74px;
}

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

.brand img {
  height: 64px;
  object-fit: contain;
  transition: height 180ms ease;
  width: 230px;
}

.site-header.is-scrolled .brand img {
  height: 56px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.site-nav a {
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  padding: 10px 12px;
  position: relative;
}

.site-nav a::after {
  background: var(--brand);
  border-radius: 999px;
  bottom: 5px;
  content: "";
  height: 2px;
  left: 12px;
  opacity: 0;
  position: absolute;
  right: 12px;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: var(--soft-blue);
  color: var(--brand-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav .nav-cta {
  background: var(--brand);
  color: #fff;
  margin-left: 8px;
  padding-inline: 18px;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.nav-toggle {
  align-items: center;
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.nav-toggle span {
  background: var(--brand-dark);
  border-radius: 2px;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 20px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero-home {
  background-image:
    linear-gradient(90deg, rgba(12, 37, 78, 0.9) 0%, rgba(12, 37, 78, 0.76) 38%, rgba(12, 37, 78, 0.3) 68%, rgba(12, 37, 78, 0.08) 100%),
    url("../img/bmpc-care-hero.png");
  background-position: center;
  background-size: cover;
  min-height: calc(100svh - 128px);
}

.hero-inner {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100svh - 128px);
  padding-block: 72px 42px;
  place-items: center stretch;
}

.hero-copy {
  max-width: 700px;
  padding-left: 24px;
  position: relative;
}

.hero-copy::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: min(78%, 360px);
  left: 0;
  position: absolute;
  top: 8px;
  transform: scaleY(0);
  transform-origin: top;
  width: 4px;
}

.hero-copy.is-visible::before {
  animation: accentGrow 520ms ease 120ms forwards;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 900;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #ffd37f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
}

.hero h1,
.page-hero h1 {
  color: #fff;
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-title-mark {
  color: #ffd37f;
  display: inline-block;
  position: relative;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-title-mark::after {
  background: rgba(255, 211, 127, 0.5);
  border-radius: 999px;
  bottom: 0.04em;
  content: "";
  height: 0.18em;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
  z-index: -1;
}

.hero-copy.is-visible .hero-title-mark::after {
  animation: highlightSweep 580ms ease 340ms forwards;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  color: #edf5ff;
  font-size: 1.16rem;
  max-width: 620px;
}

.hero-lede {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  padding-left: 18px;
  text-wrap: pretty;
}

.hero-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.hero-promise li {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 8px;
  min-height: 36px;
  opacity: 0;
  padding: 8px 12px;
  transform: translateY(8px);
  backdrop-filter: blur(12px);
}

.hero-promise li::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.hero-copy.is-visible .hero-promise li {
  animation: promiseIn 360ms ease forwards;
}

.hero-copy.is-visible .hero-promise li:nth-child(1) {
  animation-delay: 420ms;
}

.hero-copy.is-visible .hero-promise li:nth-child(2) {
  animation-delay: 500ms;
}

.hero-copy.is-visible .hero-promise li:nth-child(3) {
  animation-delay: 580ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  overflow: hidden;
  padding: 12px 18px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn::after {
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.26) 45%, transparent 70%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: 1;
  transform: translateX(120%);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: #fff;
}

.hero .btn-primary,
.page-hero .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
  background: #ffc066;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  color: var(--brand-dark);
}

.hero-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(3, 10, 24, 0.24);
  padding: 20px;
  backdrop-filter: blur(18px);
}

.cqc-card {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 16px;
  grid-template-columns: 118px 1fr;
  padding: 16px;
}

.cqc-card img {
  width: 112px;
}

.cqc-card strong,
.cqc-card span {
  display: block;
}

.cqc-card strong {
  font-size: 1.05rem;
}

.cqc-card span {
  color: #d9e8f8;
  font-size: 0.9rem;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(12, 37, 78, 0.92), rgba(12, 37, 78, 0.72)),
    url("../img/bmpc-care-hero.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.page-hero-inner {
  padding-block: 92px;
  text-align: center;
}

.page-hero h1 {
  margin-inline: auto;
  max-width: 780px;
}

.page-hero p:not(.eyebrow) {
  margin-inline: auto;
}

.section {
  padding-block: 86px;
}

.intro-section,
.services-preview,
.aims-section {
  background: var(--soft);
}

.split-grid,
.process-grid,
.mission-grid,
.contact-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  text-align: center;
}

.split-grid h2,
.section-heading h2,
.process-copy h2,
.reviews-copy h2,
.mission-copy h2,
.contact-copy h2,
.cta-inner h2,
.care-builder h2 {
  font-size: 2.45rem;
  margin-bottom: 18px;
}

.intro-copy,
.stacked-copy,
.mission-copy {
  font-size: 1.05rem;
  margin-inline: auto;
  max-width: 720px;
}

.section-heading {
  margin-inline: auto;
  margin-bottom: 34px;
  max-width: 760px;
  text-align: center;
}

.service-rail,
.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-tile,
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  color: var(--body);
  min-height: 236px;
  overflow: hidden;
  padding: 26px;
  position: relative;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-tile::before,
.service-card::before {
  background: var(--brand);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.service-tile::after,
.service-card::after {
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(24, 64, 120, 0.13), transparent 42%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 180ms ease;
}

.service-tile:hover,
.service-card:hover {
  border-color: rgba(24, 64, 120, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-tile.is-hovered::after,
.service-card.is-hovered::after {
  opacity: 1;
}

.service-tile span,
.service-number {
  color: var(--brand);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 42px;
}

.service-tile h3,
.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-tile p,
.service-card p {
  margin-bottom: 0;
}

.service-card a {
  color: var(--brand);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 20px;
}

.service-card-wide {
  grid-column: span 3;
  min-height: 170px;
}

.process-section {
  background: var(--brand-dark);
  color: #dceaf8;
  text-align: center;
}

.process-copy h2,
.process-copy h3,
.path-tabs h3 {
  color: #fff;
}

.path-tabs {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  margin-inline: auto;
  max-width: 720px;
  padding: 18px;
}

.tab-list {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
}

.tab-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #e9f3ff;
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 10px;
}

.tab-button.is-active {
  background: #fff;
  color: var(--brand-dark);
}

.tab-panel {
  animation: panelIn 260ms ease both;
  padding: 26px 6px 6px;
  text-align: center;
}

.tab-panel p {
  margin-bottom: 0;
}

.reviews-section {
  background:
    linear-gradient(180deg, rgba(234, 242, 251, 0.78), rgba(255, 255, 255, 0.96));
}

.reviews-panel {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  text-align: center;
}

.reviews-copy p:not(.section-kicker) {
  font-size: 1.05rem;
  margin-inline: auto;
  max-width: 680px;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.homecare-review-quote {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 64, 120, 0.16);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 58, 108, 0.09);
  margin: 22px auto 0;
  max-width: 680px;
  padding: 22px;
  position: relative;
}

.homecare-review-quote p {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.7;
  margin: 0;
}

.homecare-review-quote cite {
  color: var(--brand-dark);
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 14px;
}

.btn-outline {
  background: #fff;
  border-color: rgba(24, 64, 120, 0.28);
  color: var(--brand-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--soft-blue);
  border-color: rgba(24, 64, 120, 0.45);
  color: var(--brand-dark);
}

.review-notes {
  display: grid;
  gap: 14px;
}

.review-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
  padding: 22px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.review-note:hover {
  border-color: rgba(24, 64, 120, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.review-note span {
  color: var(--brand);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.review-note strong {
  color: var(--ink);
  display: block;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.review-note p {
  margin-bottom: 0;
}

.cqc-section {
  background: #fff;
}

.cqc-band {
  align-items: center;
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 32px;
  grid-template-columns: 260px 1fr;
  padding: 34px;
  text-align: center;
}

.cqc-wordmark {
  align-items: center;
  background: #233c81;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 118px;
  padding: 20px;
}

.cqc-wordmark img {
  width: min(190px, 100%);
}

.cqc-band h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cqc-band p:last-child {
  margin-bottom: 0;
}

.cta-section {
  background: var(--soft);
}

.cta-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  text-align: center;
}

.cta-inner h2 {
  margin-inline: auto;
  max-width: 760px;
}

.mission-section {
  background: #fff;
}

.mission-grid {
  align-items: center;
}

.image-panel {
  aspect-ratio: 4 / 3;
  background-image:
    linear-gradient(180deg, rgba(24, 64, 120, 0.06), rgba(24, 64, 120, 0.14)),
    url("../img/bmpc-care-hero.png");
  background-position: 64% center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.accordion-list {
  display: grid;
  gap: 14px;
}

.info-accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.info-accordion summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 900;
  list-style: none;
  padding: 20px 54px 20px 22px;
  position: relative;
}

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

.info-accordion summary::after {
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  content: "+";
  display: grid;
  font-weight: 900;
  height: 30px;
  place-items: center;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}

.info-accordion[open] summary::after {
  content: "-";
}

.info-accordion p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 18px 22px 22px;
}

.services-directory {
  background: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-button,
.choice-panel button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 14px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active,
.choice-panel button:hover,
.choice-panel button:focus-visible,
.choice-panel button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.filter-button:hover,
.choice-panel button:hover {
  transform: translateY(-1px);
}

.interactive-surface.is-pressed {
  transform: scale(0.985);
}

.service-card.is-hidden {
  display: none;
}

.service-card.filter-pop {
  animation: filterPop 260ms ease both;
}

.care-builder-section {
  background: var(--soft-blue);
}

.care-builder {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  text-align: center;
}

.choice-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  padding: 22px;
}

.choice-panel .btn {
  grid-column: span 2;
}

.contact-section {
  background: #fff;
}

.contact-grid {
  align-items: center;
}

.contact-list {
  display: grid;
  font-style: normal;
  gap: 14px;
  margin-top: 26px;
}

.contact-list a,
.contact-list > span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  padding: 18px;
}

.contact-list a:hover {
  border-color: rgba(24, 64, 120, 0.45);
  color: var(--brand);
}

.contact-list span span,
.contact-list a span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-cqc {
  align-items: center;
  background: #233c81;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 20px;
  padding: 18px;
}

.contact-cqc img {
  width: 136px;
}

.contact-cqc p {
  font-weight: 900;
  margin: 0;
}

.enquiry-form {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 28px;
  text-align: left;
}

.enquiry-form label {
  display: grid;
  gap: 7px;
}

.enquiry-form label span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  background: #fff;
  border: 1px solid #cbd7e4;
  border-radius: 6px;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.enquiry-form textarea {
  min-height: 132px;
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(24, 64, 120, 0.13);
}

.form-status {
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 900;
  margin: 0;
  min-height: 1.4em;
  text-align: center;
}

.map-section {
  background: var(--soft);
  padding: 0 0 86px;
}

.map-section iframe {
  border: 0;
  display: block;
  height: 420px;
  width: 100%;
}

.site-footer {
  background: var(--ink);
  color: #d9e5f3;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.2fr 0.7fr 1.2fr 0.8fr;
  padding-block: 56px 34px;
  text-align: center;
}

.footer-logo {
  background: #fff;
  border-radius: 6px;
  height: 62px;
  margin-inline: auto;
  object-fit: contain;
  padding: 6px;
  width: 230px;
}

.footer-grid h2 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-cqc {
  align-self: start;
  background: #233c81;
  border-radius: 8px;
  padding: 18px;
}

.footer-cqc img {
  margin-inline: auto;
  width: 142px;
}

.footer-cqc span {
  color: #fff;
  font-weight: 900;
  margin: 14px 0 0;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 16px;
  justify-content: center;
  min-height: 76px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #fff;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  animation: revealUp 560ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accentGrow {
  to {
    transform: scaleY(1);
  }
}

@keyframes highlightSweep {
  to {
    transform: scaleX(1);
  }
}

@keyframes promiseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes filterPop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    justify-content: center;
  }

  .brand,
  .brand img {
    width: 210px;
  }

  .hero-inner,
  .split-grid,
  .process-grid,
  .mission-grid,
  .contact-grid,
  .care-builder {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: stretch;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.25rem;
  }

  .hero-copy {
    max-width: 760px;
  }

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

  .service-card-wide {
    grid-column: span 2;
  }

  .cqc-band,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1140px);
  }

  .site-topbar {
    display: block;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
    min-height: auto;
    padding-block: 8px;
    text-align: center;
  }

  .topbar-cqc-logo {
    height: 24px;
    width: 82px;
  }

  .topbar-homecare {
    padding: 5px 9px;
  }

  .header-inner {
    min-height: 68px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 62px;
  }

  .brand,
  .brand img {
    height: 50px;
    min-width: 0;
    width: 178px;
  }

  .site-header.is-scrolled .brand img {
    height: 44px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.12);
    display: grid;
    gap: 0;
    inset: 68px 0 auto;
    opacity: 0;
    padding: 10px 12px 14px;
    pointer-events: none;
    position: fixed;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav.is-open a {
    animation: menuItemIn 220ms ease both;
  }

  .site-nav.is-open a:nth-child(2) {
    animation-delay: 35ms;
  }

  .site-nav.is-open a:nth-child(3) {
    animation-delay: 70ms;
  }

  .site-nav.is-open a:nth-child(4) {
    animation-delay: 105ms;
  }

  .site-nav.is-open a:nth-child(5) {
    animation-delay: 140ms;
  }

  .site-nav a {
    min-height: 44px;
    padding: 11px 14px;
  }

  .site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .hero-home,
  .hero-inner {
    min-height: auto;
  }

  .hero-home {
    background-image:
      linear-gradient(180deg, rgba(12, 37, 78, 0.82) 0%, rgba(12, 37, 78, 0.68) 50%, rgba(12, 37, 78, 0.86) 100%),
      url("../img/bmpc-care-hero.png");
    background-position: 58% top;
  }

  .hero-inner {
    gap: 20px;
    padding-block: 32px 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.28rem;
    line-height: 1.04;
  }

  .hero-copy {
    padding-left: 14px;
  }

  .hero-copy::before {
    height: min(70%, 260px);
    width: 3px;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-lede {
    padding-left: 12px;
  }

  .hero-promise {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
    width: 100%;
  }

  .hero-promise li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    flex: 0 1 auto;
    font-size: 0.74rem;
    gap: 5px;
    justify-content: center;
    min-height: 30px;
    padding: 5px 7px;
    white-space: nowrap;
  }

  .hero-promise li::before {
    height: 5px;
    width: 5px;
  }

  .hero-copy.is-visible .hero-promise li:nth-child(1) {
    animation-delay: 170ms;
  }

  .hero-copy.is-visible .hero-promise li:nth-child(2) {
    animation-delay: 230ms;
  }

  .hero-copy.is-visible .hero-promise li:nth-child(3) {
    animation-delay: 290ms;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .btn {
    min-height: 46px;
    padding: 11px 16px;
  }

  .service-rail,
  .services-grid,
  .choice-panel,
  .cqc-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cqc-card {
    gap: 12px;
    grid-template-columns: 84px 1fr;
    padding: 12px;
  }

  .cqc-card img {
    width: 84px;
  }

  .cqc-card strong {
    font-size: 0.98rem;
  }

  .cqc-card span {
    font-size: 0.85rem;
  }

  .hero-panel {
    display: none;
    padding: 12px;
  }

  .section {
    padding-block: 54px;
  }

  .page-hero-inner {
    padding-block: 46px;
  }

  .split-grid h2,
  .section-heading h2,
  .process-copy h2,
  .reviews-copy h2,
  .mission-copy h2,
  .contact-copy h2,
  .cta-inner h2,
  .care-builder h2 {
    font-size: 1.86rem;
    line-height: 1.12;
  }

  .service-card,
  .service-card-wide,
  .service-tile {
    grid-column: auto;
    min-height: auto;
    padding: 22px;
  }

  .service-tile span,
  .service-number {
    margin-bottom: 28px;
  }

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

  .reviews-panel {
    grid-template-columns: 1fr;
  }

  .reviews-actions,
  .reviews-actions .btn {
    width: 100%;
  }

  .homecare-review-quote {
    padding: 18px;
  }

  .review-note {
    padding: 20px;
  }

  .filter-bar {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    min-height: 46px;
    padding-inline: 10px;
    width: 100%;
  }

  .cta-inner {
    align-items: center;
    flex-direction: column;
  }

  .choice-panel .btn {
    grid-column: auto;
  }

  .contact-cqc {
    align-items: center;
    flex-direction: column;
  }

  .enquiry-form {
    gap: 14px;
    padding: 18px;
  }

  .map-section {
    padding-bottom: 64px;
  }

  .map-section iframe {
    height: 300px;
  }

  .footer-grid {
    gap: 24px;
    padding-block: 42px 24px;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }
}

@media (max-width: 460px) {
  .brand,
  .brand img {
    width: 152px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.96rem;
  }

  .hero-copy {
    padding-left: 12px;
  }

  .hero-lede {
    border-left: 0;
    padding-left: 0;
  }

  .hero-promise {
    gap: 4px;
  }

  .hero-promise li {
    font-size: 0.68rem;
    min-height: 28px;
    padding-inline: 5px;
  }

  .hero-promise li::before {
    display: none;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    margin-inline: 0;
  }

  .split-grid h2,
  .section-heading h2,
  .process-copy h2,
  .reviews-copy h2,
  .mission-copy h2,
  .contact-copy h2,
  .cta-inner h2,
  .care-builder h2 {
    font-size: 1.72rem;
  }

  .cqc-band {
    padding: 24px;
  }

  .contact-list a,
  .contact-list > span {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .brand,
  .brand img {
    width: 140px;
  }

  .cqc-card {
    grid-template-columns: 84px 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.82rem;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy::before {
    display: none;
  }

  .hero-promise {
    gap: 3px;
  }

  .hero-promise li {
    font-size: 0.58rem;
    gap: 2px;
    padding-inline: 3px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}
