/* =========================================================
   Hands In Harmony – site styles
   Colours, fonts and spacing are set as variables at the top,
   so a brand change only needs editing here.
   ========================================================= */

@font-face { font-family: "Averia Sans Libre"; src: url("../fonts/averia-sans-libre-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Averia Sans Libre"; src: url("../fonts/averia-sans-libre-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Average Sans"; src: url("../fonts/average-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --blue: #4054b2;          /* main brand blue */
  --blue-mid: #5065c4;      /* lighter blob shapes */
  --blue-dark: #2f3f8f;
  --blue-pale: #c5cbea;     /* wave edges */
  --input: #dde0f2;         /* form fields on white */
  --soft: #f4f5fb;          /* pale section background */
  --pink: #cc3366;          /* inline link accent */
  --sky: #6ec1e4;
  --text: #555;
  --muted: #727272;
  --dark: #222;
  --footer-bottom: #43464c;

  --font-head: "Averia Sans Libre", "Trebuchet MS", sans-serif;
  --font-body: "Average Sans", "Segoe UI", Arial, sans-serif;
  --font-ui: "Open Sans", "Segoe UI", Arial, sans-serif;

  /* Type scale: use these everywhere so text stays consistent */
  --fs-body: 19.2px;   /* all body text, lists, testimonials, form labels */
  --lh-body: 1.8;
  --fs-small: 15px;    /* small print: form notes, dates, captions, breadcrumbs */

  --container: 1140px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 30, 90, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
a:hover { text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--blue); line-height: 1.15; margin: 0 0 .5em; }
/* Sizes matched to the original WordPress site at desktop width: h1/h2 64px, h3 32px, body 19.2px */
h1 { font-size: clamp(2.4rem, 4.45vw, 4rem); }
h2 { font-size: clamp(2.2rem, 4.45vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--dark); margin-bottom: .2em; }
strong { color: var(--dark); }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.icon { flex: none; }
.center { text-align: center; }
.justify p { text-align: justify; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 400; color: #fff; background: var(--blue); border: 2px solid var(--blue); border-radius: 8px; padding: .55em 1.6em; text-decoration: none; line-height: 1.2; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: var(--input); border-color: var(--input); }
.btn--outline { background: transparent; border-color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.topbar { background: var(--blue); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; padding: 10px 0; }
.logo img { width: 173px; }
.topbar .container { width: min(100% - 40px, 1260px); }
.topbar__contacts { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); line-height: 1.25; }
.topbar__contacts li { display: flex; align-items: center; gap: 10px; }
.topbar__contacts .icon { width: 24px; height: 24px; }
.topbar__contacts div { display: flex; flex-direction: column; white-space: nowrap; }
.topbar__contacts .label { font-size: 15px; font-weight: 300; opacity: .9; }
.topbar__contacts a { color: #fff; font-weight: 600; font-size: 20px; text-decoration: none; }
.topbar__contacts a.email { font-size: 15px; }
.topbar__contacts .sub { font-size: 13px; font-weight: 300; opacity: .9; }
.topbar__mobile { display: none; align-items: center; gap: 14px; }
.topbar__mobile a { color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.topbar__mobile .icon { width: 19px; height: 19px; }
.menu-toggle { width: 44px; height: 44px; background: none; border: 0; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.site-nav { background: #fff; box-shadow: 0 1px 0 #eceef6; position: relative; z-index: 20; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; gap: 6px; font-family: var(--font-ui); }
.menu a, .sub-toggle { display: block; padding: 20px 16px; font: 300 16px/1.25 var(--font-ui); color: var(--muted); text-decoration: none; border: 0; background: none; cursor: pointer; position: relative; }
.menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.menu > li > a:hover::after, .menu > li > a[aria-current]::after { transform: scaleX(1); }
.menu a:hover, .menu a[aria-current], .sub-toggle:hover { color: var(--dark); }
.caret { display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.has-sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: 6px 0; position: absolute; right: 0; top: 100%; min-width: 180px; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.submenu a { padding: 10px 18px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .sub-toggle[aria-expanded="true"] + .submenu { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 1220px) {
  .topbar__contacts { display: none; }
  .topbar__mobile { display: flex; }
  .topbar__inner { min-height: 84px; }
  .logo img { width: 140px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; padding: 8px 0 14px; gap: 0; }
  .menu a, .sub-toggle { padding: 13px 4px; font-size: 16px; width: 100%; text-align: left; border-bottom: 1px solid #eef0f7; }
  .menu > li > a::after { display: none; }
  .submenu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 0 16px; }
  .sub-toggle[aria-expanded="true"] + .submenu { display: block; }
  .has-sub:hover .submenu { display: none; }
  .has-sub:hover .sub-toggle[aria-expanded="true"] + .submenu { display: block; }
}

/* ---------- Home hero slider ----------
   Matches the original Slider Revolution design. --slide-time controls how long each slide shows. Hovering pauses it. */
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.hero { --slide-time: 5s; position: relative; height: clamp(360px, 23.4vw, 520px); overflow: hidden; color: #fff; background: #212962; font-family: var(--font-ui); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide--1 { background: #505dba; }
.hero__slide--2 { background: #123282; }
.hero__slide--3 { background: #24509f; }
.hero__shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__watermark { position: absolute; left: 27%; top: -2%; width: 29%; max-width: none; opacity: .22; }
.hero__person { position: absolute; top: 3%; height: 100%; width: auto; max-width: none; }
.hero__slide--1 .hero__person { left: 19.5%; top: 1%; height: 104%; }
.hero__slide--2 .hero__person { left: 56%; height: 122%; }
.hero__slide--3 .hero__person { left: 56%; height: 160%; }
.hero__text { position: absolute; top: 50%; transform: translateY(-50%); left: 15.4%; width: 40%; }
.hero__slide--1 .hero__text { left: 55%; width: 32%; }
.hero__title { font-family: var(--font-ui); font-weight: 600; color: #fff; font-size: clamp(2.6rem, 4.1vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 .32em; }
.hero__title--bold { font-weight: 700; font-size: clamp(2.8rem, 4.6vw, 5rem); }
.hero__lead { font-weight: 300; font-size: clamp(.95rem, 1.05vw, 1.15rem); line-height: 1.75; opacity: .92; margin: 0 0 1.4em; max-width: 34em; }
.hero__btn { display: inline-block; background: #3b7cf0; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .06em; font-size: clamp(.95rem, 1.05vw, 1.15rem); padding: .75em 1.9em; border-radius: 40px; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.hero__btn:hover { background: #2f6be0; transform: translateY(-2px); }

/* Entrance animations: run each time a slide becomes active */
@keyframes heroFromLeft  { from { transform: translateX(-18%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroFromRight { from { transform: translateX(18%);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroRise      { from { transform: translateY(18%);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroDrop      { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroUp        { from { transform: translateY(36px);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroFade      { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: .22; } }
.hero__slide.is-active .hero__shape--left  { animation: heroFromLeft 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero__slide.is-active .hero__shape--right { animation: heroFromRight 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero__slide.is-active .hero__shape--hills { animation: heroRise 1.2s cubic-bezier(.2,.7,.2,1) both; }
.hero__slide.is-active .hero__watermark { animation: heroFade 1.4s .25s ease-out both; }
.hero__slide.is-active .hero__person { animation: heroDrop 1s .45s cubic-bezier(.2,.8,.25,1.1) both; }
.hero__slide.is-active .hero__title { animation: heroUp .9s .7s cubic-bezier(.2,.7,.2,1) both; }
.hero__slide.is-active .hero__lead  { animation: heroUp .9s .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__slide.is-active .hero__btn   { animation: heroUp .9s 1.1s cubic-bezier(.2,.7,.2,1) both; }

.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 64px; padding: 8px 10px; background: none; border: 0; color: #fff; cursor: pointer; opacity: .85; }
.hero__arrow:hover { opacity: 1; }
.hero__arrow svg { width: 100%; height: 100%; }
.hero__arrow--prev { left: 1.6%; }
.hero__arrow--next { right: 1.6%; }
.hero__bars { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero__bars button { width: 46px; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.hero__bars span { display: block; height: 2px; background: rgba(255,255,255,.4); overflow: hidden; }
.hero__bars span::after { content: ""; display: block; height: 100%; width: 0; background: #fff; }
.hero__bars button[aria-current="true"] span::after { animation: heroBar var(--slide-time) linear forwards; }
.hero:hover .hero__bars span::after, .hero:focus-within .hero__bars span::after { animation-play-state: paused; }
@keyframes heroBar { to { width: 100%; } }

@media (max-width: 800px) {
  .hero { height: 620px; }
  .hero__text, .hero__slide--1 .hero__text { top: 34px; transform: none; left: 20px; right: 20px; width: auto; text-align: center; }
  .hero__title, .hero__title--bold { font-size: 2.3rem; }
  .hero__lead { margin-inline: auto; font-size: 1rem; }
  .hero__person, .hero__slide--1 .hero__person, .hero__slide--2 .hero__person, .hero__slide--3 .hero__person { top: auto; bottom: -2px; left: 50%; height: 46%; transform: translateX(-50%); }
  .hero__slide--3 .hero__person { height: 52%; bottom: -16%; }
  .hero__slide.is-active .hero__person { animation-name: heroDropCentred; }
  @keyframes heroDropCentred { from { transform: translate(-50%, -70px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
  .hero__watermark { display: none; }
  .hero__arrow { display: none; }
  .hero__shape { height: 55%; top: auto; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bars button[aria-current="true"] span::after { animation: none; width: 100%; }
}

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--blue); color: #fff; padding: 22px 0 90px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -8%; top: -60%; width: 75%; height: 220%; background: var(--blue-mid); border-radius: 0 0 0 60%; transform: rotate(-6deg); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 26px 0 0; }
.as-h2 { font-size: clamp(2.2rem, 4.45vw, 4rem); }
.breadcrumb { font-size: var(--fs-small); }
.breadcrumb a { color: #fff; }
.wave { position: absolute; left: 0; width: 100%; height: 60px; display: block; }
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; transform: rotate(180deg); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 80px 0; overflow: hidden; }
.section--tight { padding: 50px 0; }
.section--soft { background: var(--soft); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2, .section--blue h3, .section--blue strong { color: #fff; }
.section--blue a:not(.btn) { color: #fff; }
.section--waves { padding-top: 120px; padding-bottom: 120px; }
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob--br { right: -200px; bottom: -260px; width: 820px; opacity: .55; }
.blob--tl { left: -220px; top: -240px; width: 760px; opacity: .55; transform: rotate(180deg); }
.blob--soft { filter: brightness(0) invert(.96); opacity: 1; } /* turns white blob into pale grey-blue */
.section > .container { position: relative; z-index: 1; }
.lead { font-size: var(--fs-body); }
.prose { max-width: 860px; }
.prose ul { padding-left: 1.2em; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.split--img-left { grid-template-columns: .8fr 1.2fr; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--wide-img { grid-template-columns: 1fr 1.3fr; }
.split--img-left.split--wide-img { grid-template-columns: 1.3fr 1fr; }
.split img { margin-inline: auto; }
/* Image sizes: each illustration sets its own width with style="--w:500px" (matched to the old site).
   On wide screens an image may run past its column into the page margin, like the original layout. */
.split__img { display: flex; justify-content: center; min-width: 0; }
.split__img img { width: var(--w, auto); max-width: 100%; margin: 0; }
@media (min-width: 901px) {
  .split__img img { max-width: calc(100% + (100vw - min(100vw - 40px, 1140px)) / 2 - 20px); flex: none; }
  .split > .split__img:last-child { justify-content: flex-start; }
  .split > .split__img:first-child { justify-content: flex-end; }
}
@media (max-width: 900px) {
  .split, .split--img-left, .split--even, .split--wide-img, .split--img-left.split--wide-img, .jobs-hero .split, .jobs-hero--night .split { grid-template-columns: 1fr; gap: 30px; }
  .split .split__img { max-width: 380px; margin-inline: auto; }
  .split--img-left .split__img { order: 2; }
}

/* Service cards (home) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 30px; }
.card { background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; display: flex; flex-direction: column; }
.card h3 { color: var(--blue); text-align: center; font-size: 1.4rem; margin-bottom: .7em; }
.card .btn { font-size: 1.2rem; }
.card .btn { align-self: center; margin-top: auto; }
.card p { line-height: var(--lh-body); }
.stat { text-align: center; margin: 4px 0 18px; line-height: 1.3; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--blue); }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; gap: 28px; } }

/* Testimonials */
.testimonials { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial { margin: 0 0 42px; }
.testimonial blockquote { margin: 0 0 12px; font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }
.testimonial figcaption { font-family: var(--font-ui); font-size: var(--fs-small); line-height: 1.4; color: var(--sky); font-weight: 600; }
.testimonial figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

/* Logo strips */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 50px; }
.logos img { width: 260px; height: auto; }
.logos--home img { width: 360px; }
.logos img.wide { width: 360px; }

/* Ticks / numbered lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 4px; line-height: var(--lh-body); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.2' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.section--blue .ticks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%234054b2' stroke-width='3.2' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ticks--2col { columns: 2; column-gap: 40px; }
.ticks--2col li { break-inside: avoid; }
@media (max-width: 600px) { .ticks--2col { columns: 1; } }

.service-list > div { margin-bottom: 30px; }
.values li { margin-bottom: 8px; }

/* Funding boxes */
.funding { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.funding .box { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.funding .box h3 { color: var(--blue); font-size: 1.8rem; }
@media (max-width: 800px) { .funding { grid-template-columns: 1fr; } }

/* People */
.person { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; padding: 36px 0; border-top: 1px solid #e3e6f3; }
.person:first-of-type { border-top: 0; }
.person img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 250px; box-shadow: var(--shadow); }
.person h3 { color: var(--blue); }
@media (max-width: 700px) { .person { grid-template-columns: 1fr; gap: 18px; } .person img { width: 160px; } }

/* Offices (contact page) */
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 30px 0 50px; }
.office h2 { margin-bottom: .3em; }
.office h3 { font-size: 1.1rem; color: var(--dark); font-family: var(--font-body); font-weight: 700; margin: 0 0 8px; }
.office__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--blue-pale); }
.office__list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--blue-pale); line-height: var(--lh-body); }
.office__list .icon { color: var(--blue); width: 24px; height: 24px; margin-top: 2px; }
.office__list b { display: block; color: var(--dark); }
.office__list a { color: var(--text); }
.office__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); background: var(--input); }
.map-consent { display: grid; place-items: center; text-align: center; padding: 20px; }
@media (max-width: 800px) { .office { grid-template-columns: 1fr; gap: 20px; } }

/* Policies / downloads */
.downloads { list-style: none; margin: 0; padding: 0; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #e3e6f3; }
.downloads li:first-child { border-top: 1px solid #e3e6f3; }
.downloads h3 { color: var(--blue); font-size: 1.6rem; margin: 0; }
@media (max-width: 600px) { .downloads li { flex-direction: column; align-items: flex-start; } }

.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.certs img { box-shadow: var(--shadow); }
@media (max-width: 600px) { .certs { grid-template-columns: 1fr; } }

/* Jobs hero */
.jobs-hero { position: relative; background: #85d0ea url("../img/jobs-hero-bg.webp") center bottom / cover no-repeat; padding: 60px 0 0; overflow: hidden; }
.jobs-hero .split { align-items: end; grid-template-columns: 1.35fr .65fr; }
.jobs-hero__text { background: rgba(255,255,255,.88); border-radius: 12px; padding: 30px 34px; margin-bottom: 60px; color: #333; }
.jobs-hero__text h1 { font-size: clamp(2.2rem, 4.45vw, 4rem); }
.jobs-hero__text p { line-height: var(--lh-body); }
.jobs-hero__note { font-weight: 700; color: var(--dark); margin: 14px 0 0; }
.jobs-hero .split__img img { max-height: none; }
/* Bedford variant: night-time scene, text straight on the dark background like the original */
.jobs-hero--night { background: #2b3270; padding: 70px 0 50px; }
.jobs-hero--night .split { align-items: center; grid-template-columns: 1fr 1.1fr; }
.jobs-hero--night .jobs-hero__text { background: none; padding: 0; margin: 0; color: #fff; }
.jobs-hero--night h1 { color: #6ec1e4; }
.jobs-hero--night .jobs-hero__note { color: #fff; font-weight: 400; }
.jobs-hero--night .btn { background: #6ec1e4; border-color: #6ec1e4; padding-inline: 2.6em; }
.jobs-hero--night .btn:hover { background: #fff; border-color: #fff; color: var(--blue); }
@media (max-width: 900px) { .jobs-hero .split, .jobs-hero--night .split { grid-template-columns: 1fr; } .jobs-hero__text { margin-bottom: 0; padding: 24px; } .jobs-hero .split__img img { max-height: 340px; width: auto; } }

/* Full-width illustration sitting on a blue wave (reablement page) */
.wave-feature { position: relative; display: flex; justify-content: flex-end; margin-top: 10px; }
.wave-feature img { position: relative; z-index: 1; width: 800px; max-width: 100%; }
.wave-band { position: relative; height: 0; }
.wave-band svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 200px; display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: var(--fs-body); line-height: 1.3; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; background: #fff; color: var(--dark); }
.form textarea { resize: vertical; min-height: 110px; }
.form--light input[type=text], .form--light input[type=email], .form--light input[type=tel], .form--light textarea { background: var(--input); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64,84,178,.25); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: var(--fs-body); line-height: 1.4; margin-bottom: 6px; color: var(--dark); }
.form .check { display: flex; gap: 10px; align-items: center; }
.form .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.form__note { font-size: var(--fs-small); line-height: 1.5; margin: 0; opacity: .85; }
.form__error { background: #fde8ee; color: #8a1235; border-radius: 6px; padding: 10px 14px; margin: 0; line-height: 1.5; }
.section--blue .form .btn { background: var(--blue-mid); border-color: #fff; }
.section--blue .form .btn:hover { background: #fff; color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.form-panel { max-width: 640px; margin-inline: auto; }
.office-hours { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: rgba(255,255,255,.88); font-family: var(--font-ui); font-size: 14.4px; font-weight: 300; line-height: 1.7; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 60px 0 40px; }
.site-footer h2 { color: #fff; font-family: var(--font-ui); font-weight: 400; font-size: 22.4px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__logo img { width: 173px; margin-bottom: 18px; }
.footer__contact li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.footer__contact .icon { width: 18px; height: 18px; color: #fff; margin-top: 3px; }
.footer__bottom { background: var(--footer-bottom); color: rgba(255,255,255,.6); font-size: 13px; padding: 18px 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Simple pages ---------- */
.thanks { text-align: center; padding: 90px 0; }
.thanks img { max-width: 520px; margin: 30px auto 0; }
.news-date { color: var(--muted); font-size: var(--fs-small); margin-top: -8px; }
@media (max-width: 600px) { .justify p { text-align: left; } :root { --fs-body: 17.5px; --fs-small: 14px; } }

/* CQC rating widgets (homepage). The widget content and styling come from CQC's own script. */
.help-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.cqc-widgets { display: grid; gap: 24px; justify-items: center; }
.cqc-widgets .cqc-widget { width: 100%; max-width: 340px; }
@media (max-width: 1000px) { .help-grid { grid-template-columns: 1fr; gap: 30px; } }
