/* =====================================================================
   Ami Home Care — stylesheet
   Brand colours are taken from the official logo:
     purple #4E2B73, berry #9E1C57, sage #949482.
   Visual idea: a deep plum "evening at home" field, and the arch of a
   London terraced doorway as the one recurring shape (hero photo frame,
   inner page headers, section labels).
   Contents: 1 tokens · 2 base · 3 layout · 4 buttons · 5 header
             6 page sections · 7 components · 8 forms · 9 footer
             10 utilities · 11 motion
   ===================================================================== */

/* 1. Design tokens --------------------------------------------------- */
:root {
  --plum: #4E2B73;
  --plum-700: #3F2361;
  --plum-900: #2F1A47;
  --berry: #9E1C57;
  --berry-700: #86164A;
  --berry-300: #EBB3CB;
  --stone: #949482;
  --stone-ink: #5E5E51;
  --stone-50: #EFEEE7;

  --ivory: #F9F7FA;            /* page base: cool paper, not cream */
  --white: #FFFFFF;
  --mist: #F4F0F7;             /* lilac wash */
  --sage-50: #EEF0E8;          /* sage wash, from the logo's third colour */
  --night: #2A1741;            /* deep plum for the hero and headers */
  --night-2: #3B2159;
  --ink: #2B2532;
  --ink-2: #585161;
  --line: #E7E2EC;
  --line-strong: #D3CCDA;
  --field-border: #857D8F;

  --on-dark: #EEE8F5;
  --on-dark-2: #CDC1DC;
  --line-dark: rgba(255, 255, 255, .18);

  --ok: #2C6A4D;
  --ok-bg: #E7F1EB;
  --err: #A1361F;
  --err-bg: #FBEDE9;

  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --r: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --section: clamp(64px, 8vw, 112px);
  --header-h: 84px;
  --shadow: 0 1px 2px rgba(47, 26, 71, .06), 0 16px 36px -18px rgba(47, 26, 71, .3);
  --shadow-lg: 0 2px 4px rgba(42, 23, 65, .05), 0 34px 70px -34px rgba(42, 23, 65, .5);
  --glow-night: radial-gradient(55% 90% at 100% 0%, rgba(158, 28, 87, .42) 0%, rgba(158, 28, 87, 0) 70%),
                linear-gradient(160deg, var(--night-2) 0%, var(--night) 62%, #22123A 100%);
  color-scheme: light;
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { /* paints the phone status-bar area behind the sticky header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 60;
}
img { max-width: 100%; height: auto; display: block; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--berry); }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--plum);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.45rem + 3.4vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.7rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p, li { text-wrap: pretty; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--white); }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--plum); color: var(--white); padding: 12px 18px; border-radius: var(--r);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 3. Layout ---------------------------------------------------------- */
.wrap {
  max-width: calc(var(--wrap) + 40px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--section); }
.section--flush-top { padding-top: 0; }
.bg-white { background: var(--white); }
.bg-mist { background: var(--mist); }
.bg-sage { background: var(--sage-50); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 12px; }
.measure { max-width: 720px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; align-self: flex-start;
  font-size: .98rem; font-weight: 700; letter-spacing: .005em; color: var(--berry);
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.small { font-size: .95rem; color: var(--ink-2); }

@media (max-width: 860px) {
  .split, .section-head { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
}

/* 4. Buttons and links ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--f-body); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--berry); color: var(--white); box-shadow: 0 12px 26px -14px rgba(158, 28, 87, .85); }
.btn--primary:hover { background: var(--berry-700); color: var(--white); box-shadow: 0 16px 30px -14px rgba(158, 28, 87, .9); }
.btn--plum { background: var(--plum); color: var(--white); }
.btn--plum:hover { background: var(--plum-700); color: var(--white); }
.btn--secondary { background: transparent; color: var(--plum); border-color: rgba(78, 43, 115, .45); }
.btn--secondary:hover { background: var(--white); border-color: var(--plum); color: var(--plum); }
.btn--light { background: var(--white); color: var(--plum); }
.btn--light:hover { background: var(--mist); color: var(--plum); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; padding-block: 4px 3px;
  font-weight: 700; color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--berry);
}
.text-link:hover { color: var(--berry); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .2s; }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 0;
  background: none; border: 0; font: 700 1rem var(--f-body); color: var(--plum);
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.btn-link:hover { color: var(--berry); }
.linklike { background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* 5. Top bar, header and menu ----------------------------------------- */
.topbar { background: var(--plum-900); color: var(--on-dark-2); font-size: .875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; min-height: 40px; }
.topbar__note { display: inline-flex; align-items: center; gap: 8px; }
.topbar__note .icon { color: #A6DBBE; }
.topbar a { display: inline-block; padding-block: 6px; color: var(--white); font-weight: 700; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
}
.site-header.is-scrolled { box-shadow: 0 10px 26px -20px rgba(47, 26, 71, .6); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: block; flex-shrink: 0; line-height: 0; }
.logo img { height: 58px; width: auto; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.menu a {
  position: relative; display: block; padding: 10px 12px;
  font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.menu a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--berry); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--plum); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav-call { display: flex; flex-direction: column; padding: 4px; line-height: 1.2; color: var(--plum); text-decoration: none; }
.nav-call small { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.nav-call b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.nav-call:hover b { color: var(--berry); }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--plum); border-radius: 1px; transition: transform .3s, background-color .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; }

@media (max-width: 1180px) { .nav-call { display: none; } }
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .menu-nav, .nav__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo img { height: 46px; }
  .drawer {
    display: block; visibility: hidden; max-height: 0; overflow: hidden; background: var(--white);
    transition: max-height .35s ease, visibility 0s linear .35s;
  }
  .drawer.is-open {
    visibility: visible; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
    border-top: 1px solid var(--line); transition: max-height .35s ease, visibility 0s;
  }
  .drawer__list { list-style: none; margin: 0; padding: 8px 0 0; }
  .drawer__link {
    display: block; padding: 12px 0; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-size: 1.5rem; color: var(--plum); text-decoration: none;
  }
  .drawer__link[aria-current="page"] { color: var(--berry); }
  .drawer__cta { display: grid; gap: 10px; padding: 20px 0 24px; }
}
@media (max-width: 900px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 420px) {
  .topbar__contact a[href^="mailto"], .topbar__sep { display: none; }
}
@media (min-width: 1181px) { /* the header shows "Call us" at this width, so the top bar keeps just the email */
  .topbar .topbar__tel, .topbar .topbar__sep { display: none; }
}
@media (max-width: 700px) { /* the sticky Call us / Enquire bar is always visible here */
  .drawer__cta { display: none; }
  .drawer__list { padding-bottom: 20px; }
}

/* 6. Page sections ----------------------------------------------------- */

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(48% 75% at 84% 42%, rgba(158, 28, 87, .45) 0%, rgba(158, 28, 87, 0) 72%),
    radial-gradient(42% 60% at 0% 100%, rgba(148, 148, 130, .22) 0%, rgba(148, 148, 130, 0) 72%),
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 60%, #22123A 100%);
  padding-block: clamp(44px, 6vw, 88px) clamp(120px, 12vw, 176px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; container-type: inline-size; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 10.4cqi, 4.4rem); line-height: 1.04; letter-spacing: -.012em; }
.hero h1 .accent { display: block; font-style: italic; }
.hero .eyebrow { color: var(--berry-300); }
.hero .lead { color: var(--on-dark-2); font-size: 1.2rem; }
.hero .btn-row { margin-top: 8px; }
.hero .btn--primary { box-shadow: 0 16px 36px -14px rgba(214, 61, 130, .8); }
.hero__media { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.hero__media::before { /* lamplight glow behind the doorway */
  content: ""; position: absolute; inset: 4% -10% -8% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 179, 203, .38), rgba(235, 179, 203, 0)); filter: blur(10px);
}
.hero__media .media {
  position: relative; border-radius: 999px 999px var(--r-lg) var(--r-lg);
  box-shadow: 0 44px 90px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: stretch; max-width: none; }
  .hero__media .media { aspect-ratio: 5 / 4; }
}

/* Trust strip */
.trust { position: relative; z-index: 2; margin-top: calc(-1 * clamp(76px, 8vw, 112px)); }
.trust__list {
  list-style: none; padding: 8px clamp(8px, 1.5vw, 16px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.trust__list li { display: flex; gap: 16px; align-items: center; padding: 24px 22px; border-left: 1px solid var(--line); }
.trust__list li:first-child { border-left: 0; }
.trust__list .icon { box-sizing: content-box; padding: 11px; border-radius: 50%; background: var(--mist); color: var(--berry); }
.trust__list strong { display: block; color: var(--plum); line-height: 1.35; }
.trust__list span { display: block; margin-top: 2px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
@media (min-width: 761px) and (max-width: 1000px) {
  .trust__list li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 18px; }
}
@media (max-width: 760px) {
  .trust__list { grid-template-columns: 1fr; padding: 4px 18px; }
  .trust__list li, .trust__list li:first-child { border-left: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .trust__list li:last-child { border-bottom: 0; }
}

/* Levels of care */
.scale { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.scale__label { margin-bottom: 16px; font-size: .95rem; font-weight: 700; color: var(--stone-ink); }
.scale ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
.scale ol::before { content: ""; position: absolute; left: 8px; right: calc(33.33% - 8px); top: 7px; height: 2px; background: linear-gradient(90deg, var(--stone), var(--plum), var(--berry)); }
.scale li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 30px 14px 0 0; }
.scale li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--plum); }
.scale li:first-child::before { border-color: var(--stone); }
.scale li:last-child::before { border-color: var(--berry); background: var(--berry); }
.scale strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; color: var(--plum); }
.scale span { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 520px) {
  .scale ol { grid-template-columns: 1fr; gap: 18px; }
  .scale ol::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--stone), var(--plum), var(--berry)); }
  .scale li { padding: 0 0 0 32px; }
}

/* Service cards (home) */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 28px;
  background: var(--white); border: 1px solid rgba(78, 43, 115, .08); border-radius: var(--r-md);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card:hover { border-color: rgba(158, 28, 87, .3); box-shadow: 0 26px 50px -30px rgba(42, 23, 65, .55); transform: translateY(-4px); }
.card:focus-within { outline: 3px solid var(--berry); outline-offset: 2px; z-index: 1; }
.card h3 { font-size: 1.3rem; }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--mist); color: var(--plum); transition: background-color .3s, color .3s; }
.card:hover .card__icon, .card:focus-within .card__icon { background: var(--plum); color: var(--white); }
.card p { flex-grow: 1; font-size: 1rem; color: var(--ink-2); }
.card__more { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; color: var(--plum); }
.card__more .icon { transition: transform .2s; }
.card:hover .card__more .icon { transform: translateX(3px); }
@media (max-width: 1000px) {
  .cards { gap: 14px; }
  .card { padding: 26px 22px 24px; }
}
@media (max-width: 699px) {
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 22px 20px; }
  .card__icon { grid-row: 1 / span 3; width: 44px; height: 44px; }
  .card h3, .card p, .card__more { grid-column: 2; }
}

/* Why choose us */
.why { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.why__media { position: sticky; top: calc(var(--header-h) + 32px); }
.why__media .media { border-radius: var(--r-lg); }
.quote { position: relative; z-index: 1; margin: -64px 0 0 32px; padding: 26px 28px; background: var(--night); color: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.quote p { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; }
.quote figcaption { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--berry-300); }
.benefits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; margin-top: 44px; }
.benefits li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.benefits h3 { font-size: 1.45rem; }
.benefits p { font-size: 1.0625rem; color: var(--ink-2); }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why__media { position: static; }
  .why__media .media { aspect-ratio: 3 / 2; }
  .quote { margin: -40px 0 0 16px; }
}
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* How it works */
.band-plum {
  background: radial-gradient(50% 90% at 100% 0%, rgba(158, 28, 87, .38) 0%, rgba(158, 28, 87, 0) 70%),
              linear-gradient(160deg, var(--plum) 0%, var(--night-2) 100%);
  color: var(--on-dark);
}
.band-plum h2, .band-plum h3 { color: var(--white); }
.band-plum .eyebrow { color: var(--berry-300); }
.band-plum .lead { color: var(--on-dark-2); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 36px 32px 8px 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.steps__n { font-family: var(--f-display); font-size: 3.2rem; line-height: 1; color: var(--berry-300); }
.steps p { color: var(--on-dark-2); }
@media (max-width: 1000px) {
  .steps li { padding: 30px 22px 4px 0; }
  .steps li + li { padding-left: 22px; }
}
@media (max-width: 699px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
}

/* CQC ratings */
.cqc {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: center;
  padding: clamp(28px, 5vw, 64px); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.cqc__meta { font-size: .92rem; color: var(--ink-2); }
.cqc__official { display: flex; justify-content: center; min-height: 120px; }
.cqc__official > * { max-width: 100%; }
.cqc--solo { grid-template-columns: minmax(0, 760px); }
.cqc--solo .cqc__official { display: none; }
.ratings { overflow: hidden; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.ratings > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); }
.ratings > div:first-child { border-top: 0; }
.ratings dt { font-weight: 600; }
.ratings dd { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); }
.ratings__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.ratings__overall { background: var(--plum); color: var(--white); }
.ratings__overall dt { font-weight: 700; }
.ratings__overall dd { color: var(--white); font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
@media (max-width: 860px) { .cqc { grid-template-columns: 1fr; } }

/* Feature banner (careers) */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); overflow: hidden; background: var(--glow-night); color: var(--on-dark); border-radius: var(--r-lg); }
.feature__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 5vw, 64px); }
.feature h2 { color: var(--white); }
.feature .eyebrow { color: var(--berry-300); }
.feature .media { min-height: 320px; height: 100%; border-radius: 0; }
@media (max-width: 1000px) { /* the careers photo is a wide banner: full width above the text */
  .feature { grid-template-columns: 1fr; }
  .feature .media { order: -1; min-height: 0; aspect-ratio: 12 / 5; }
}
@media (max-width: 560px) { .feature .media { aspect-ratio: 3 / 2; } }

/* Contact band */
.cta-band { background: var(--white); }
.cta-band__inner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 64px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(158, 28, 87, .10) 0%, rgba(158, 28, 87, 0) 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(148, 148, 130, .16) 0%, rgba(148, 148, 130, 0) 70%),
    var(--mist);
  border: 1px solid rgba(78, 43, 115, .08);
}
.cta-band__inner > * { position: relative; z-index: 1; }
.contact-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.contact-list__label { font-size: .9rem; font-weight: 700; color: var(--berry); }
.contact-list a { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--berry); overflow-wrap: anywhere; }
.contact-list a.contact-list__big { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; border-bottom: 0; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Inner page header */
.page-hero {
  position: relative; overflow: hidden; background: var(--glow-night); color: var(--on-dark-2);
  padding-block: clamp(44px, 5.5vw, 76px) clamp(44px, 5.5vw, 72px);
}
.page-hero .wrap { position: relative; z-index: 1; }
/* Header photo in a doorway arch, standing on the bottom edge of the header */
.page-hero { --arch-w: clamp(220px, 24vw, 300px); --ph-pb: clamp(44px, 5.5vw, 72px); padding-bottom: var(--ph-pb); }
.page-hero--photo { min-height: calc(var(--arch-w) * 1.25 + 40px); display: flex; }
.page-hero--photo > .wrap { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-right: calc(var(--arch-w) + 64px); }
.page-hero__media { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(-1 * var(--ph-pb)); width: var(--arch-w); }
.page-hero__media::before { /* lamplight glow behind the doorway */
  content: ""; position: absolute; inset: 0 -22% -10% -22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 179, 203, .30), rgba(235, 179, 203, 0)); filter: blur(10px);
}
.page-hero__media .media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -30px rgba(0, 0, 0, .7);
}
@media (max-width: 760px) {
  .page-hero--photo { display: block; min-height: 0; padding-bottom: 0; }
  .page-hero--photo > .wrap { padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .page-hero__media { position: relative; right: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: 28px; }
  .page-hero__media .media { aspect-ratio: 16 / 10; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
.page-hero h1 { max-width: 22ch; margin-top: 12px; color: var(--white); font-size: clamp(2.2rem, 1.5rem + 2.3vw, 3.4rem); }
.page-hero .eyebrow { color: var(--berry-300); }
.page-hero .lead { margin-top: 14px; color: var(--on-dark); }

/* Services page */
.service-index { padding-block: 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; } /* even grid across the full width */
.chips li a { width: 100%; justify-content: center; }
@media (max-width: 1100px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  font-size: .9rem; font-weight: 700; color: var(--plum); text-decoration: none; white-space: nowrap;
}
@media (max-width: 700px) { /* one swipeable row instead of six rows of buttons */
  .service-index { padding-block: 14px; }
  .chips {
    display: flex; flex-wrap: nowrap; max-width: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -20px; padding: 2px 44px 2px 20px; scroll-padding-inline: 20px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { flex: 0 0 auto; scroll-snap-align: start; }
}
.service-group { padding-block: clamp(56px, 7vw, 96px); }
.group-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.service h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); }
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 44px); }
.svc-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid rgba(78, 43, 115, .08); border-radius: var(--r-md); transition: box-shadow .3s, transform .3s; }
.svc-card:hover { box-shadow: 0 26px 50px -30px rgba(42, 23, 65, .5); transform: translateY(-4px); }
.svc-card .media { border-radius: 0; }
.svc-card .media img, .service .media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.svc-card:hover .media img, .service:hover .media img { transform: scale(1.035); }
.svc-card__body { display: flex; flex-direction: column; flex-grow: 1; gap: 14px; padding: clamp(24px, 3vw, 36px); }
.svc-card h3 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.8rem); }
.svc-card .lead { font-size: 1.1rem; }
.svc-card__action { margin-top: auto; padding-top: 6px; }
@media (max-width: 1000px) { .svc-card__action .btn { width: 100%; padding-inline: 16px; } }
@media (max-width: 699px) { .svc-cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .svc-card__body { padding: 24px 20px; } }
.chips a:hover { border-color: var(--plum); color: var(--plum); background: var(--mist); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service:nth-child(even) .media { order: 2; }
@media (max-width: 700px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .media { order: 0; }
  .service .media { aspect-ratio: 3 / 2; }
}

/* 7. Components --------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--stone-50); border-radius: var(--r-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
@media (max-width: 860px) { .split > .ratio-1x1 { aspect-ratio: 3 / 2; } }

.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist--spaced { gap: 14px; margin-top: 4px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { margin-top: 4px; color: var(--berry); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li { padding: 6px 14px; border: 1px solid var(--plum); border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--plum); }
.tags--soft li { padding: 4px 12px; border: 0; border-radius: 999px; background: var(--mist); font-size: .8rem; }

.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.person__name { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; color: var(--plum); }
.person__role { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

.facts { overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); }
.facts > div { padding: 16px 20px; background: var(--white); }
.facts dt { font-size: .88rem; font-weight: 700; color: var(--berry); }
.facts dd { margin-top: 4px; }
.facts--compact > div { padding: 12px 16px; font-size: .95rem; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.role { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .3s, box-shadow .3s, transform .3s; }
.role:hover { border-color: rgba(158, 28, 87, .35); box-shadow: 0 26px 50px -30px rgba(42, 23, 65, .45); transform: translateY(-4px); }
.role__apply { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

.disclosure { margin-top: 12px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); }
.disclosure summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 14px 20px;
  font-weight: 700; color: var(--plum); cursor: pointer; list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.disclosure[open] summary::after { content: "\2212"; }
.disclosure__body { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; font-size: .96rem; color: var(--ink-2); }
.disclosure__body ul { display: grid; gap: 6px; padding-left: 20px; }

.contact-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "info form" "next form" "photo form"; grid-template-rows: auto auto 1fr;
  column-gap: clamp(32px, 6vw, 80px); row-gap: 40px; align-items: start;
}
.contact-info { grid-area: info; }
.contact-grid > .form { grid-area: form; }
.contact-next { grid-area: next; }
.contact-next__title { margin-bottom: 18px; font-size: 1.5rem; }
.next-steps { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.next-steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 50px; counter-increment: step; }
.next-steps li::before {
  content: counter(step); content: counter(step) / "";
  position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--stone); border-radius: 50%; font: 400 1.1rem/1 var(--f-display); color: var(--plum);
}
.next-steps strong { color: var(--plum); }
.next-steps span { font-size: .95rem; color: var(--ink-2); }
.contact-photo { grid-area: photo; align-self: stretch; position: relative; min-height: 220px; }
.contact-photo .media { position: absolute; inset: 0; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "info" "form" "next" "photo"; grid-template-rows: none; }
  .contact-photo { min-height: 0; }
  .contact-photo .media { position: relative; inset: auto; aspect-ratio: 3 / 2; }
}
.details { border-top: 1px solid var(--line-strong); }
.details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.details dt { padding-top: 3px; font-size: .9rem; font-weight: 700; color: var(--berry); }
.details dd { overflow-wrap: anywhere; }
.details a { font-weight: 700; }
.details a.details__big { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-decoration: none; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-left: 10px; padding: 4px 10px; vertical-align: middle;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px;
  font: 700 .8rem var(--f-body); color: var(--plum); cursor: pointer;
}
.copy:hover { border-color: var(--plum); }
@media (max-width: 420px) { .details > div { grid-template-columns: 1fr; gap: 4px; } }

/* Policies */
.docs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.doc { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc:target, .doc.is-active { border-color: var(--berry); box-shadow: var(--shadow); }
.doc h2 { font-size: 1.45rem; }
.doc p { color: var(--ink-2); font-size: .98rem; }
.doc > p:not(.doc__meta) { flex-grow: 1; }
.doc__type { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--berry); font-size: .82rem; font-weight: 700; }
.doc .doc__meta { font-size: .875rem; color: var(--stone-ink); font-variant-numeric: tabular-nums; }
.doc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } }
.viewer { overflow: hidden; margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); scroll-margin-top: calc(var(--header-h) + 24px); }
.viewer:focus { outline: none; }
.viewer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--mist); border-bottom: 1px solid var(--line); }
.viewer__bar h2 { font-size: 1.3rem; }
.viewer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.viewer__tools .btn { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.viewer__pages { font-size: .9rem; color: var(--ink-2); }
.viewer__pages-box { display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 80vh; overflow: auto; padding: 20px; background: #E9E5EE; }
.viewer__pages-box canvas { display: block; max-width: 100%; height: auto; background: var(--white); box-shadow: 0 6px 18px -8px rgba(47, 26, 71, .35); }
.viewer__message { padding: 40px 20px; text-align: center; color: var(--ink-2); }

/* Privacy */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal__nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal__nav-title { margin-bottom: 10px; font-size: .9rem; font-weight: 700; color: var(--stone-ink); }
.legal__nav ul { list-style: none; padding: 0; border-left: 1px solid var(--line-strong); }
.legal__nav a { display: block; margin-left: -1px; padding: 6px 16px; border-left: 2px solid transparent; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.legal__nav a:hover { border-left-color: var(--berry); color: var(--plum); }
.legal__body { display: flex; flex-direction: column; gap: 16px; max-width: 70ch; min-width: 0; }
.doc-facts { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.doc-facts dl { display: grid; gap: 12px; }
.doc-facts dt { font-size: .82rem; font-weight: 700; color: var(--stone-ink); }
.doc-facts dd { font-weight: 600; color: var(--plum); }
.doc-facts__actions { display: grid; gap: 10px; }
.doc-facts__actions .btn { width: 100%; justify-content: center; padding-inline: 14px; }
.doc-facts__note { font-size: .85rem; color: var(--ink-2); }
.legal:has(.doc-facts) { grid-template-columns: 290px minmax(0, 1fr); }
.legal__body h2 { margin-top: 28px; font-size: 1.75rem; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul { display: grid; gap: 8px; padding-left: 20px; }
.note { padding: 14px 18px; background: var(--mist); border-left: 3px solid var(--plum); border-radius: 0 var(--r) var(--r) 0; font-size: .95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table-scroll table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; }
.table-scroll th, .table-scroll td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll th { background: var(--mist); color: var(--plum); font-weight: 700; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll--fit table { min-width: 0; }
.table-scroll--fit td { white-space: nowrap; }
@media (max-width: 480px) { .table-scroll--fit th, .table-scroll--fit td { padding: 10px 9px; font-size: .84rem; } }
@media (max-width: 860px) {
  .legal, .legal:has(.doc-facts) { grid-template-columns: 1fr; gap: 32px; }
  .legal__nav, .doc-facts { position: static; }
}

/* 404 */
.not-found { min-height: 50vh; }

/* 8. Forms ---------------------------------------------------------------- */
.form { padding: clamp(22px, 4vw, 44px); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.form__title { font-size: 1.75rem; margin-bottom: 6px; }
.form__intro { font-size: .95rem; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .95rem; font-weight: 700; color: var(--plum); }
.field legend { padding: 0; margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--ink-2); }
.hint { font-size: .875rem; color: var(--ink-2); }
.fields > .hint { margin-bottom: -10px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 1rem var(--f-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234E2B73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); }
/* Browser autofill: keep the field white with dark text instead of the browser's grey/blue tint */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus,
.field select:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset; box-shadow: 0 0 0 1000px var(--white) inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:autofill { background-color: var(--white); color: var(--ink); }
#q-postcode, #a-postcode { text-transform: uppercase; }
.field input[type="file"] { padding: 10px; cursor: pointer; border-style: dashed; background: var(--mist); }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 16px; font: 700 .95rem var(--f-body); color: var(--white);
  background: var(--plum); border: 0; border-radius: 999px; cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--berry); }
.field.has-error input:not([type="checkbox"]):not([type="radio"]), .field.has-error select, .field.has-error textarea { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.err { display: flex; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--err); }
.err:empty { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--field-border); border-radius: 999px; background: var(--white);
  font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.pills input { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); }
.pills label:has(input:checked) { border-color: var(--plum); background: var(--mist); color: var(--plum); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { flex-shrink: 0; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--plum); cursor: pointer; }
.consent label { font-size: .95rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.field.has-error .consent input { outline: 2px solid var(--err); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form__note { max-width: 40ch; font-size: .875rem; color: var(--ink-2); }
.form-status { margin-top: 20px; }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid; border-radius: var(--r); font-size: .97rem; }
.alert .icon { margin-top: 2px; }
.alert strong { display: block; }
.alert--ok { background: var(--ok-bg); border-color: #B9D5C4; color: var(--ok); }
.alert--error { background: var(--err-bg); border-color: #E9C3B8; color: var(--err); }
.alert--info { background: var(--mist); border-color: #D8CDE4; color: var(--plum); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

/* 9. Footer, quick-contact bar and cookie banner --------------------------- */
.site-footer { background: var(--night); color: var(--on-dark-2); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px 48px; padding-block: 64px 44px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer__brand p { max-width: 34ch; line-height: 1.6; }
.footer__logo { display: inline-block; padding: 12px 18px; background: var(--white); border-radius: var(--r-md); line-height: 0; }
.footer__logo img { height: 52px; width: auto; }
.footer__head { margin: 0 0 14px; font: 700 .95rem/1.4 var(--f-body); color: var(--berry-300); }
.footer__list { list-style: none; padding: 0; display: grid; gap: 2px; }
.footer__list a { display: inline-block; padding-block: 4px; color: var(--white); text-decoration: none; }
.footer__list a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--berry-300); }
.footer__address { padding-top: 6px; line-height: 1.6; }

/* CQC trust strip */
.footer__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 0;
  padding: 18px 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: var(--r-md);
}
.footer__trust-item { display: flex; align-items: center; gap: 12px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line-dark); line-height: 1.35; }
.footer__trust-item:nth-of-type(2) { border-right: 0; }
.footer__trust-item strong { display: block; color: var(--white); font-weight: 700; }
.footer__trust-item .icon { color: #A6DBBE; }
.footer__trust-sub { display: block; font-size: .85rem; color: var(--on-dark-2); }
.footer__dot { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; background: #7FC29B; box-shadow: 0 0 0 4px rgba(127, 194, 155, .18); }
.footer__trust-link {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; color: var(--white); font-weight: 700; text-decoration: none;
}
.footer__trust-link:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }

/* Legal row */
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; padding-block: 22px 26px; font-size: .875rem; }
.footer__sep { margin-inline: 8px; color: var(--on-dark-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; padding: 0; }
.footer__links a, .footer__links .linklike { display: inline-block; padding-block: 6px; color: var(--white); text-underline-offset: .2em; }
.footer__links a:hover { color: var(--berry-300); }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; }
  .footer__trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 20px; }
  .footer__trust-item, .footer__trust-item:nth-of-type(2) { margin: 0; padding: 0; border: 0; }
  .footer__trust-link { grid-column: 1 / -1; margin-left: 0; justify-self: start; }
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__trust { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .footer__trust-item { padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
  .footer__trust-item:nth-of-type(2) { padding-bottom: 0; border-bottom: 0; }
  .footer__trust-link { justify-self: stretch; justify-content: center; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-block: 48px 32px; }
  .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__logo img { height: 46px; }
}

.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(47, 26, 71, .45);
  }
  .callbar .btn { min-height: 48px; padding: 8px 12px; font-size: .95rem; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; pointer-events: none;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.cookie__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; max-width: 980px; margin: 0 auto; padding: 20px 24px;
  background: var(--white); border-radius: var(--r-md); box-shadow: 0 18px 50px -12px rgba(47, 26, 71, .45); pointer-events: auto;
}
.cookie__inner p { flex: 1 1 420px; min-width: 0; font-size: .95rem; color: var(--ink-2); }
.cookie__inner strong { color: var(--plum); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .cookie__actions { width: 100%; } .cookie__actions .btn { flex: 1 1 0; } }

/* 10. Print --------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .callbar, .cookie, .cqc__official, .service-index, .viewer { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero, .page-hero, .band-plum, .feature, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .band-plum h2, .band-plum h3, .feature h2 { color: #000 !important; }
}

/* 11. Motion: gentle, transform-only, and switched off for reduced motion ---- */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.hero .anim { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .anim:nth-child(2) { animation-delay: .06s; }
.hero .anim:nth-child(3) { animation-delay: .12s; }
.hero .anim:nth-child(4) { animation-delay: .18s; }
@keyframes settle { from { transform: translateY(22px) scale(.985); } to { transform: none; } }
.hero__media .media { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }
.will-reveal, .will-reveal.is-revealed { transform: none; } /* sections no longer slide in; the hero is the one moment */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .will-reveal { transform: none; }
}
