/* =========================================================
   Hands In Harmony – redesign mockup
   Friendly, polished, accessible. One signature element (the house-and-hand frame),
   everything else quiet. Motion: one hero entrance + press feedback only.
   ========================================================= */

@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: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Palette */
  --blue: #3346a8;      /* brand blue, deepened slightly for contrast (7:1 on white) */
  --ink: #1b2245;       /* headings and strong text */
  --text: #333a5c;      /* body text */
  --sky: #eef1fb;       /* alternate section wash */
  --mist: #dbe2f8;      /* house frame fill */
  --blue-light: #4b5fc0; /* house frame on the blue hero */
  --sky-strong: #c9d3f4; /* soft accent on blue: ticks, stats */
  --navy: #26348a;       /* second blue: depth behind hero art */
  --white: #fff;

  /* Type */
  --display: "Averia Sans Libre", "Trebuchet MS", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --fs-body: 1.1875rem;  /* 19px */
  --fs-small: 1rem;
  --lh: 1.6;

  /* Motion (Emil Kowalski's curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: var(--fs-body); line-height: var(--lh); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
/* Phone numbers in the display face: Atkinson's slashed zero reads as technical in "01908" */
a[href^="tel:"] { font-family: var(--display); letter-spacing: .01em; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0 0 .45em; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 1.45rem; line-height: 1.2; }
.rd-h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.1; }
.rd-wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.rd-small { font-size: var(--fs-small); }
.rd-skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.rd-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #8fa3ea; outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons: one primary colour, press feedback ---------- */
.rd-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1.05rem/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.rd-btn:active { transform: scale(0.97); }
.rd-btn--white { background: var(--white); color: var(--blue); }
.rd-btn--blue { background: var(--blue); color: var(--white); }
.rd-btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.rd-btn--outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
@media (hover: hover) {
  .rd-btn--white:hover { background: var(--sky); }
  .rd-btn--blue:hover { background: #2a3b92; }
  .rd-btn--outline:hover { background: var(--sky); }
  .rd-btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
}
.rd-link { font-weight: 700; }
.rd-link--light { color: var(--white); }

/* ---------- Utility strip + header ---------- */
.rd-utility { background: var(--ink); color: rgba(255,255,255,.8); font-size: .9rem; }
.rd-utility__inner { display: flex; justify-content: flex-end; gap: 28px; padding: 8px 0; }
.rd-utility a { color: var(--white); text-decoration: none; font-weight: 700; }
.rd-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #e6e9f5; }
.rd-header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.rd-logo img { width: 150px; }
.rd-nav { margin-left: auto; }
.rd-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rd-nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 1.02rem; transition: background-color 200ms ease; }
@media (hover: hover) { .rd-nav a:hover { background: var(--sky); } }
.rd-header__call { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.rd-menu { display: none; width: 46px; height: 46px; border: 0; background: var(--sky); border-radius: 50%; padding: 15px 12px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.rd-menu span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 200ms var(--ease-out); }
.rd-menu[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.rd-menu[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.rd-hero { position: relative; padding: 64px 0; overflow: hidden; background: var(--blue); color: rgba(255,255,255,.9); isolation: isolate; }
.rd-hero__depth { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 52%; height: 100%; fill: var(--navy); }
.rd-hero h1 { color: var(--white); font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1.02; margin-bottom: .35em; }
.rd-hero .rd-btn--outline { border-color: rgba(255,255,255,.75); color: var(--white); }
@media (hover: hover) { .rd-hero .rd-btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); } }
.rd-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rd-hero__copy { padding: 8px 0; }
.rd-hero__lead { font-size: 1.3rem; line-height: 1.55; max-width: 31em; color: rgba(255,255,255,.9); }
.rd-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 32px; }
.rd-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 1.02rem; }
.rd-trust li { position: relative; padding-left: 30px; }
.rd-trust li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233346a8' stroke-width='3' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.rd-trust a { color: inherit; text-decoration: none; }
.rd-trust a:hover strong { text-decoration: underline; }
.rd-trust strong { color: var(--white); }
.rd-hero__jobs { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 1rem; color: rgba(255,255,255,.8); max-width: 34em; }
.rd-hero__jobs a { color: var(--white); }

/* Art: the characters, centred, in front of a faint watermark of the real logo icon */
.rd-hero__art { position: relative; width: 100%; max-width: 660px; aspect-ratio: 1; justify-self: center; align-self: center; margin: -24px 0; }
@media (min-width: 1300px) { .rd-hero__art { width: 112%; margin-right: -6%; } }
.rd-hero__mark { position: absolute; left: 6%; top: 2%; width: 88%; opacity: .1; }
.rd-hero__people { position: absolute; left: 6%; bottom: 6%; width: 88%; }
.rd-hero__ground { position: absolute; left: 14%; right: 14%; bottom: 5%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(8,14,58,.45), rgba(8,14,58,0)); }

/* The one orchestrated moment: hero entrance on load */
@keyframes rdUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rdPeople { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rd-in { animation: rdUp 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes rdFromRight { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rdMark { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: .1; } }
.rd-hero__depth { animation: rdFromRight 900ms var(--ease-out) both; }
.rd-hero__mark { animation: rdMark 900ms var(--ease-out) 200ms both; }
.rd-hero__ground { animation: rdUp 600ms var(--ease-out) 300ms both; }
.rd-hero__people { animation: rdPeople 700ms var(--ease-out) 300ms both; }

/* ---------- Services: two equal cards with identical structure, so headings and links line up ---------- */
.rd-services { padding: 96px 0; background: var(--sky); }
.rd-services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; align-items: stretch; }
.rd-service { display: flex; flex-direction: column; border-radius: 28px; padding: 36px 40px 40px; }
.rd-service__art { height: 170px; margin-bottom: 24px; display: flex; align-items: flex-end; }
.rd-service__art img { height: 100%; width: auto; }
.rd-service h3 { font-size: 1.55rem; margin-bottom: .4em; }
.rd-service--home { background: var(--white); }
.rd-service--reable { background: var(--blue); color: rgba(255,255,255,.9); }
.rd-service--reable h3 { color: var(--white); }
.rd-service .rd-link { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.rd-stat { margin: 6px 0 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); line-height: 1.35; }
.rd-stat strong { display: block; font-family: var(--display); font-size: 3.6rem; line-height: 1; color: var(--white); margin-bottom: 6px; }
.rd-list { padding-left: 1.1em; margin: 0 0 24px; }
.rd-list li { margin-bottom: 6px; }
.rd-list li::marker { color: var(--blue); }

/* ---------- Steps ---------- */
.rd-steps { padding: 96px 0; }
.rd-steps__list { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 36px 0 0; }
.rd-steps__list li { counter-increment: step; position: relative; padding: 0 28px 0 0; }
.rd-steps__list li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); font: 700 1.4rem/1 var(--display); margin-bottom: 20px; position: relative; z-index: 1; }
.rd-steps__list li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--mist) 0 8px, transparent 8px 14px); }
.rd-steps__list h3 { font-size: 1.35rem; }
.rd-steps__list p { margin: 0; }

/* ---------- Areas ---------- */
.rd-areas { padding: 0 0 96px; }
.rd-areas__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; background: var(--ink); color: rgba(255,255,255,.85); border-radius: 32px; padding: 56px; }
.rd-areas h2 { color: var(--white); }
.rd-areas .rd-btn--blue { background: var(--white); color: var(--blue); }
.rd-areas__offices { display: grid; gap: 18px; }
.rd-office { background: rgba(255,255,255,.06); border-radius: 18px; padding: 24px 26px; }
.rd-office h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .3em; }
.rd-towns { margin: 0; }

/* ---------- Voices ---------- */
.rd-voices { padding: 96px 0; background: var(--sky); }
.rd-quote { margin: 0; }
.rd-quote blockquote { margin: 0 0 14px; }
.rd-quote figcaption { font-weight: 700; color: var(--ink); font-size: var(--fs-small); }
.rd-quote--feature { position: relative; max-width: 900px; margin: 36px 0 48px; padding-left: 64px; }
.rd-quote--feature::before { content: "\201C"; position: absolute; left: 0; top: -18px; font: 700 7rem/1 var(--display); color: var(--blue); }
.rd-quote--feature blockquote { font-family: var(--display); font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.35; color: var(--ink); }
.rd-voices__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rd-voices__pair .rd-quote { background: var(--white); border-radius: 20px; padding: 28px 30px; }

/* ---------- Proof ---------- */
.rd-proof { padding: 96px 0; }
.rd-proof__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.rd-logos { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 18px; }
.rd-logos img { width: 120px; }
.rd-cqc { display: grid; gap: 18px; justify-items: center; }

/* ---------- Jobs: a contained panel, image balanced left, facts in a row ---------- */
.rd-jobs { padding: 0 0 96px; }
.rd-jobs__panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; background: var(--blue); color: rgba(255,255,255,.9); border-radius: 32px; padding: 56px 64px 56px 40px; }
.rd-jobs__depth { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 40%; height: 100%; fill: var(--navy); }
.rd-jobs__art { position: relative; aspect-ratio: 716 / 982; max-height: 440px; justify-self: center; height: 100%; }
.rd-jobs__art img { position: relative; height: 100%; width: auto; max-width: none; }
.rd-jobs__ground { position: absolute; left: 6%; right: 6%; bottom: 0; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(8,14,58,.45), rgba(8,14,58,0)); }
.rd-jobs h2 { color: var(--white); margin-bottom: .3em; }
.rd-jobs__lead { font-size: 1.2rem; margin-bottom: 28px; }
.rd-facts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin: 0 0 22px; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.rd-facts div { padding: 18px 20px 18px 0; }
.rd-facts div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22); }
.rd-facts dt { font-size: .95rem; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.rd-facts dd { margin: 0; font: 700 1.2rem/1.3 var(--display); color: var(--white); }
/* Narrower screens: facts become label / value rows so nothing wraps awkwardly */
@media (max-width: 1180px) {
  .rd-facts { grid-template-columns: 1fr; }
  .rd-facts div, .rd-facts div + div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-left: 0; }
  .rd-facts div + div { border-top: 1px solid rgba(255,255,255,.22); }
  .rd-facts dt { margin: 0; }
  .rd-facts dd { text-align: right; }
}
.rd-jobs__note { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 26px; }
.rd-jobs__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Enquiry ---------- */
.rd-enquire { padding: 96px 0; background: var(--sky); }
.rd-enquire__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.rd-enquire__phone { margin-top: 30px; padding: 24px 26px; border-radius: 20px; background: var(--white); }
.rd-enquire__phone p { margin: 0; }
.rd-enquire__phone a { display: inline-block; font: 700 2rem/1.3 var(--display); text-decoration: none; margin: 4px 0; }
.rd-enquire__form { background: var(--white); border-radius: 28px; padding: 36px; }
/* restyle the shared form partial */
.rd .form { display: grid; gap: 16px; }
.rd .form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.rd .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rd .form input[type=text], .rd .form input[type=email], .rd .form input[type=tel], .rd .form textarea { width: 100%; font: 400 1.1rem var(--body); padding: 13px 15px; border: 1.5px solid #c9d0ea; border-radius: 12px; background: var(--white); color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.rd .form textarea { min-height: 120px; resize: vertical; }
.rd .form input:focus, .rd .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(51,70,168,.15); }
.rd .form .btn { display: flex; justify-content: center; align-items: center; min-height: 54px; border: 0; border-radius: 999px; background: var(--blue); color: var(--white); font: 700 1.1rem var(--body); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.rd .form .btn:active { transform: scale(0.97); }
.rd .form__note { font-size: .92rem; margin: 0; color: var(--text); }
.rd .form__error { background: #fde8ee; color: #8a1235; border-radius: 10px; padding: 12px 14px; margin: 0; }
.rd .hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.rd-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: 1rem; padding: 64px 0 0; }
.rd-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .9fr; gap: 40px; }
.rd-footer__logo { width: 150px; margin-bottom: 16px; }
.rd-footer h2 { font-family: var(--body); font-size: 1.05rem; color: var(--white); margin-bottom: 12px; letter-spacing: 0; }
.rd-footer a { color: rgba(255,255,255,.9); }
.rd-footer ul { list-style: none; padding: 0; margin: 0; }
.rd-footer li { margin-bottom: 6px; }
.rd-footer__base { margin-top: 48px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* ---------- Mobile call bar ---------- */
.rd-callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .rd-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid #e6e9f5; display: none; }
  .rd-nav.is-open { display: block; }
  .rd-nav ul { flex-direction: column; padding: 10px 24px 18px; }
  .rd-nav a { padding: 12px 6px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid #eef0f8; }
  .rd-menu { display: flex; }
  .rd-header__call { margin-left: auto; }
  .rd-steps__list { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .rd-steps__list li:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .rd-hero__grid, .rd-services__grid, .rd-areas__grid, .rd-proof__grid, .rd-enquire__grid { grid-template-columns: 1fr; }
  /* Phones and small tablets: text and actions only, so the call button is on screen straight away */
  .rd-hero__art, .rd-hero__depth { display: none; }
  .rd-hero { padding: 44px 0 40px; }
  .rd-hero { padding-top: 28px; }
  .rd-service__art { height: 140px; }
  .rd-areas__grid { padding: 36px 28px; border-radius: 24px; }
  .rd-voices__pair { grid-template-columns: 1fr; }
  .rd-quote--feature { padding-left: 0; padding-top: 48px; }
  .rd-jobs__panel { grid-template-columns: 1fr; gap: 28px; padding: 40px 32px; border-radius: 24px; }
  .rd-jobs__depth { display: none; }
  .rd-jobs__art { max-height: 260px; }
  .rd-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --fs-body: 1.09rem; }
  .rd-wrap { width: min(100% - 36px, var(--wrap)); }
  .rd-utility { display: none; }
  .rd-header__inner { min-height: 70px; gap: 12px; }
  .rd-logo img { width: 118px; }
  .rd-header__call { display: none; }
  .rd-menu { margin-left: auto; }
  .rd-hero h1 { font-size: 2.45rem; }
  .rd-hero__lead { font-size: 1.15rem; }
  .rd-hero__actions .rd-btn { width: 100%; justify-content: center; }
  .rd-services, .rd-steps, .rd-voices, .rd-proof, .rd-enquire { padding: 64px 0; }
  .rd-areas, .rd-jobs { padding-bottom: 64px; }
  .rd-jobs__panel { padding: 32px 22px; }
  .rd-jobs__actions .rd-btn { width: 100%; justify-content: center; }
  .rd-service { padding: 28px 24px; border-radius: 22px; }
  .rd-steps__list { grid-template-columns: 1fr; }
  .rd-steps__list li { padding: 0 0 0 72px; min-height: 52px; }
  .rd-steps__list li::before { position: absolute; left: 0; top: 0; }
  .rd-steps__list li::after { display: none; }
  .rd .form__row { grid-template-columns: 1fr; }
  .rd-enquire__form { padding: 24px 20px; }
  .rd-footer__grid { grid-template-columns: 1fr; }
  .rd-footer { padding-bottom: 76px; }
  /* Fixed contact bar: the two things people come to do */
  .rd-callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid #e6e9f5; }
  .rd-callbar a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 160ms var(--ease-out); }
  .rd-callbar a:active { transform: scale(0.97); }
  .rd-callbar a:first-child { background: var(--blue); color: var(--white); }
  .rd-callbar a:last-child { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rd-in, .rd-hero__depth, .rd-hero__mark, .rd-hero__ground, .rd-hero__people { animation: none; }
  .rd-btn, .rd .form .btn, .rd-callbar a { transition: none; }
}
