/* ============================================================================
   FLEXECARE COMPONENTS: buttons, cards, hero, list-blocks, steps, accordion,
   forms, testimonials, trust strips, CTA bands.
   Anatomy follows Primary Careers (pills, 10px navy cards, exact shadows)
   with stolen modules from GoodOaks / Caremark / Helping Hands / Care UK.
   ========================================================================== */

/* ---- Buttons (pill system) ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: none; }

/* Primary Careers size ladder: S 8×18/13, M 12×24/15, L 16×30 */
.btn--lg { padding: 16px 30px; font-size: 1.0625rem; }
.btn--sm { padding: 8px 18px; font-size: 0.8125rem; }

/* Care-intent / default action: logo green fill.
   Primary Careers hover behaviour: background HOLDS, label shifts to navy. */
.btn--primary {
  background: var(--fc-cyan);
  color: var(--fc-white);
}

.btn--primary:hover {
  background: var(--fc-cyan);
  color: var(--fc-navy);
}

/* Authority / about: navy fill */
.btn--navy {
  background: var(--fc-navy);
  color: var(--fc-white);
}

/* Cyan fill — same as nav / phone pill */
.btn--green {
  background: var(--fc-green);
  color: var(--fc-white);
}

.btn--green:hover {
  background: var(--fc-green);
  color: var(--fc-navy);
}

.btn--navy:hover {
  background: var(--fc-navy-deep);
  color: var(--fc-cyan);
}

/* Careers-intent: navy fill */
.btn--careers {
  background: var(--fc-navy);
  border-color: var(--fc-navy);
  color: var(--fc-white);
}

.btn--careers:hover {
  background: var(--fc-cyan);
  border-color: var(--fc-cyan);
  color: var(--fc-navy);
}

/* Hollow on light grounds */
.btn--hollow {
  background: transparent;
  border-color: var(--fc-cyan);
  color: var(--fc-navy);
}

.btn--hollow:hover {
  background: var(--fc-cyan);
  color: var(--fc-white);
}

/* Hollow on navy grounds */
.btn--hollow-light {
  background: transparent;
  border-color: rgba(240, 247, 253, 0.65);
  color: var(--fc-white);
}

.btn--hollow-light:hover {
  background: var(--fc-white);
  border-color: var(--fc-white);
  color: var(--fc-navy);
}

/* Phone pill (header + CTA bands) */
.btn--phone {
  font-weight: 700;
  white-space: nowrap;
  background: var(--fc-green);
  color: var(--fc-white);
}

.btn--phone:hover {
  background: var(--fc-green);
  color: var(--fc-navy);
}

/* Logo green fill — use when the default cyan phone pill sits next to a cyan button */
.btn--phone.btn--phone-green {
  background: var(--fc-cyan);
  color: var(--fc-white);
}

.btn--phone.btn--phone-green:hover {
  background: var(--fc-cyan);
  color: var(--fc-navy);
}

.btn--phone svg { width: 15px; height: 15px; }

/* ---- Chips ------------------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fc-navy);
  background: var(--fc-white);
  border: 1.5px solid var(--fc-line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.chip--outline { background: transparent; border: 1.5px solid var(--fc-line); }

.chip svg { width: 14px; height: 14px; color: var(--fc-cyan-deep); flex: none; }

/* Honest trust chips strip (Caremark stats pattern, no fake metrics) */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-chips .chip {
  background: var(--fc-white);
  border: 1.5px solid var(--fc-line);
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* ---- Hero (homepage) ----------------------------------------------------------- */

.hero {
  position: relative;
  background: #163824;
  color: var(--fc-white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  /* Mirror so the photo's subjects sit on the right, clear of the text. */
  transform: scaleX(-1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Soft forest wash on the left for type only — photo stays visible. */
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 58%,
      rgba(16, 52, 32, 0.18) 100%
    ),
    linear-gradient(
      94deg,
      rgba(16, 52, 32, 0.82) 0%,
      rgba(16, 52, 32, 0.55) 28%,
      rgba(16, 52, 32, 0.18) 58%,
      rgba(16, 52, 32, 0) 100%
    );
}

.hero .container { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 84px); }

.hero__wordmark {
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fc-white);
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--fc-white);
  font-size: var(--fs-hero);
  font-weight: 700;
  max-width: 13em;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--fc-green); }

.hero__support {
  max-width: 560px;
  font-size: 1.0625rem;
  color: var(--fc-on-dark);
  margin-bottom: 28px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }

/* Rotating supporting line (Care UK Morphext).
   Accent bar is absolutely positioned so the text can wrap on narrow screens
   without flex anonymous-item overflow. */
.rotator {
  position: relative;
  width: 100%;
  max-width: min(34em, 100%);
  min-height: 1.5em;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: clamp(0.9375rem, 0.88rem + 0.35vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fc-white);
}

.rotator span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: block;
  padding-left: 36px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
  white-space: normal;
  overflow-wrap: break-word;
}

.rotator span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--fc-white);
}

.rotator span.is-active { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
.rotator span.is-exiting { opacity: 0; visibility: visible; transform: translateY(-12px); z-index: 1; }
.rotator span:first-child { opacity: 1; visibility: visible; transform: none; }
html.js .rotator span:first-child:not(.is-active):not(.is-exiting) { opacity: 0; visibility: hidden; }

/* Hero entrance sequence (page-load animation) */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

html.js .hero [data-hero-seq] {
  animation: hero-in 0.8s var(--ease) both;
  animation-delay: calc(var(--seq, 0) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero [data-hero-seq] { animation: none; }
}

/* Intent cards — white with cyan + green accents */
.intent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.intent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-top: 5px solid var(--fc-cyan);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 34px 26px 30px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.intent-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
  border-top-color: var(--fc-green);
}

.intent-card__icon { margin-bottom: 20px; }

.intent-card__icon svg { width: 66px; height: 66px; color: var(--fc-green); }

.intent-card h2, .intent-card h3 {
  color: var(--fc-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.intent-card p {
  color: var(--fc-muted);
  font-size: var(--fs-small);
  line-height: 1.8;
  max-width: 300px;
  margin: 0 auto 20px;
}

.intent-card .btn { margin-top: auto; }

/* Mid-page service cards — white with cyan/green accent bar */
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-top: 10px solid var(--fc-cyan);
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-top-color: var(--fc-green);
}

.service-card h3 {
  color: var(--fc-navy);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card p { color: var(--fc-muted); font-size: var(--fs-small); margin-bottom: 20px; }

.service-card .btn { margin-top: auto; }

.section--clock .service-card h3 { color: var(--fc-navy); }
.section--clock .service-card p { color: var(--fc-muted); }

.section--clock .feature-tile h3 { color: var(--fc-navy); }
.section--clock .feature-tile p { color: var(--fc-muted); }

/* ---- Feature tiles (icon + copy) ------------------------------------------------ */

.feature-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.feature-tile {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.feature-tile__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-card);
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-tile__icon svg { width: 24px; height: 24px; color: var(--fc-cyan-deep); }

.feature-tile h3 { font-size: 1.0625rem; margin-bottom: 6px; }

.feature-tile p { font-size: var(--fs-small); color: var(--fc-muted); margin: 0; }

/* ---- Pillars (three-up icon columns) --------------------------------------------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }

.pillar { text-align: center; padding: 0 8px; }

.pillar__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--fc-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(3, 27, 78, 0.22);
}

.pillar__icon svg { width: 32px; height: 32px; color: var(--fc-cyan); }

.pillar h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar p { font-size: var(--fs-small); color: var(--fc-muted); margin: 0; }

.section--navy .pillar h3, .section--deep .pillar h3 { color: var(--fc-navy); }
.section--navy .pillar p, .section--deep .pillar p { color: var(--fc-muted); }
.section--navy .pillar__icon { background: var(--fc-white); border: 1px solid var(--fc-line); }
.section--navy .pillar__icon svg { color: var(--fc-green); }
.section--navy .pillar p, .section--deep .pillar p { color: var(--fc-ice-text); }
.section--navy .pillar__icon, .section--deep .pillar__icon { background: var(--fc-white); }

.section--clock .pillar h3,
.section--clock .pillar p { color: var(--fc-white); }
.section--clock .pillar__icon {
  background: var(--fc-white);
  border: none;
  box-shadow: 0 8px 22px rgba(3, 27, 78, 0.18);
}
.section--clock .pillar__icon svg { color: var(--fc-cyan); }

/* ---- 3-step organiser (GoodOaks module 1:1: white cards with oversized
        light step numerals floating at the top-right) ----------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-top: 34px; /* room for the floating numerals */
}

.step {
  position: relative;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 34px 26px 26px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.step:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.step__num {
  position: absolute;
  top: -44px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 104px;
  font-weight: 300;
  line-height: 1;
  color: var(--fc-cyan);
  pointer-events: none;
}

.step h3 { font-size: 1.125rem; margin-bottom: 8px; position: relative; }

.step p { font-size: var(--fs-small); color: var(--fc-muted); margin: 0 0 14px; }

.step .text-link { margin-top: 2px; }

/* ---- Content / teaser cards -------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--fc-white);
  border-radius: var(--radius-card);
  border: 1px solid var(--fc-line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.card__media { aspect-ratio: 3 / 2; overflow: hidden; }

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.045); }

.card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 24px;
}

.card__body h3 { font-size: 1.125rem; margin-bottom: 8px; }

.card__body p { font-size: var(--fs-small); color: var(--fc-muted); margin-bottom: 18px; }

.card__body .btn, .card__body .text-link { margin-top: auto; }

/* Cyan text link with arrow ("Find out more") */
.text-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--fc-cyan-deep);
  text-decoration: none;
}

.text-link svg { width: 15px; height: 15px; flex: none; transition: transform var(--dur) var(--ease); }

.text-link:hover { color: var(--fc-blue); }
.text-link:hover svg { transform: translateX(5px); }

/* ---- Expertise list-block (GoodOaks 1:1 module: sticky intro column +
        stacked white card rows whose titles carry a 2px accent underline;
        hover throws an offset accent shadow) --------------------------------- */

.list-block { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

.list-block__intro { position: sticky; top: calc(var(--h-sticky) + 28px); }

.list-block__rows { list-style: none; margin: 0; padding: 0; }

.list-block__rows li { margin: 0 0 16px; }

.list-block__rows a {
  display: block;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-card);
  padding: 22px 24px 18px;
  text-decoration: none;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.list-block__rows a:hover {
  box-shadow: -4px 4px 0 4px rgba(79, 187, 112, 0.18);
  transform: translateY(-2px);
}

.list-block__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fc-navy);
  border-bottom: 2px solid var(--fc-cyan);
  padding-bottom: 10px;
  margin-bottom: 10px;
  transition: color var(--dur) var(--ease);
}

.list-block__hint { display: block; font-size: 0.875rem; color: var(--fc-muted); font-family: var(--font-display); font-weight: 400; }

.list-block__rows a:hover .list-block__label { color: var(--fc-blue); }

/* ---- Testimonials --------------------------------------------------------------------- */

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial {
  display: flex;
  flex-direction: column;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
}

.testimonial__quote-mark {
  width: 34px;
  height: 34px;
  color: var(--fc-cyan);
  margin-bottom: 14px;
}

.testimonial blockquote {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  color: var(--fc-body-text);
  font-size: var(--fs-body);
}

.testimonial footer {
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--fc-navy);
}

.testimonial footer span {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-tiny);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin-top: 3px;
}

/* Compact Google-review boxes (testimonials page) */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-box {
  display: flex;
  flex-direction: column;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 12px;
  min-height: 0;
}

.review-box blockquote {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  color: var(--fc-body-text);
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-box footer {
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fc-navy);
}

.review-box footer span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin-top: 2px;
}

.privacy-notice-band {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.privacy-notice-band .lead { margin-bottom: 22px; }

/* Quote-on-photo (Caremark module 1:1: full-width photo ≤620px tall with a
   white quote card floated over it). Stacks on tablet/phone so the card is
   never clipped by the image frame. */
.photo-quote {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 100%;
}

.photo-quote > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center center;
}

/* Homepage quote photo: faces sit high in frame — anchor near top so heads aren't cropped */
.photo-quote > img.photo-quote__img--lower {
  object-position: center 22%;
}

.photo-quote__card {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(20px, 9%, 64px);
  width: min(500px, 86%);
  max-width: calc(100% - 40px);
  box-sizing: border-box;
  background: var(--fc-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  padding: 26px 56px 24px 28px;
}

.photo-quote__card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 18px;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--fc-cyan);
  pointer-events: none;
}

.photo-quote__card blockquote {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  color: var(--fc-navy);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.45;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.photo-quote__card cite {
  display: block;
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-cyan-deep);
  overflow-wrap: anywhere;
}

/* ---- Signpost band (Care UK 3-zone: copy | image | copy) -------------------------------- */

.signpost {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
}

.signpost__media { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); }

.signpost__media img { width: 100%; height: 100%; object-fit: cover; }

.signpost__cell h3 { margin-bottom: 10px; }

.signpost__cell p { font-size: var(--fs-small); color: var(--fc-muted); }

/* ---- Feature rows (alternating landscape, Care UK) ---------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-row + .feature-row { margin-top: clamp(48px, 6vw, 80px); }

.feature-row__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }

.feature-row--flip .feature-row__media { order: 2; }

.feature-row h2, .feature-row h3 { margin-bottom: 14px; }

/* ---- Accordion (GoodOaks FAQ module) -------------------------------------------------------- */

.accordion { border-top: 1.5px solid var(--fc-line); }

.accordion__item { border-bottom: 1.5px solid var(--fc-line); }

.accordion__heading { margin: 0; font-size: inherit; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 4px;
  font-family: var(--font-ui);
  font-size: 1.0313rem;
  font-weight: 600;
  color: var(--fc-navy);
  transition: color var(--dur) var(--ease);
}

.accordion__trigger:hover { color: var(--fc-blue); }

.accordion__trigger::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a8fbf' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.accordion__trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
  background-color: var(--fc-cyan);
  border-color: var(--fc-cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
}

.accordion__panel {
  transition: max-height 0.4s var(--ease);
}

.accordion__panel > .accordion__content { padding: 2px 44px 20px 4px; }

.accordion__panel p, .accordion__panel li { font-size: var(--fs-small); color: var(--fc-body-text); }

/* ---- Forms -------------------------------------------------------------------------------------- */

.form-panel {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 4vw, 44px);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-ui);
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--fc-navy);
}

.form-field .req { color: var(--fc-cyan-deep); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--fs-small);
  color: var(--fc-navy);
  background: var(--fc-white);
  border: 1.5px solid var(--fc-line);
  border-radius: var(--radius-small);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-field input[type="file"] {
  padding: 10px 12px;
  font-family: var(--font-ui);
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fc-cyan);
  box-shadow: 0 0 0 3px rgba(79, 187, 112, 0.22);
}

.form-field .hint { font-size: var(--fs-tiny); color: var(--fc-muted); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-actions .form-note { font-size: var(--fs-tiny); color: var(--fc-muted); margin: 0; }

/* Honeypot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  background: var(--fc-ice);
  border-left: 4px solid var(--fc-cyan);
  border-radius: var(--radius-small);
  padding: 24px 26px;
}

.form-success h3 { margin-bottom: 8px; }

.form-success p { font-size: var(--fs-small); margin-bottom: 6px; }

.form-error {
  background: #fdecea;
  border-left: 4px solid #c0392b;
  border-radius: var(--radius-small);
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: var(--fs-small);
  color: var(--fc-navy);
}

/* Formspree @formspree/ajax: hide until the library sets data-fs-active */
[data-fs-success]:not([data-fs-active]),
[data-fs-error]:not([data-fs-active]) {
  display: none;
}

[data-fs-success][data-fs-active],
[data-fs-error][data-fs-active] {
  display: block;
}

.form-panel:has([data-fs-success][data-fs-active]) form {
  display: none;
}

[data-fs-field][aria-invalid="true"] {
  border-color: #c0392b;
}

/* ---- Accreditation / partner logo strip ------------------------------------------------------------ */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.logo-strip li { margin: 0; list-style: none; }

.logo-strip .logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-card);
  padding: 14px 22px;
  min-height: 76px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.logo-strip .logo-tile:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }

.logo-strip img {
  display: block;
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ---- CTA band (mid/end of page) ----------------------------------------------------------------
   Logo cyan — same as hero “round the clock”. Incoming wave path is forced
   to this fill so WAVE:*-navy tokens still join cleanly. */

.cta-band {
  background: var(--fc-green);
  color: var(--fc-white);
  text-align: center;
  padding-block: clamp(52px, 6vw, 84px);
  border: 0;
}

/* Wave + CTA read as one band: seal the join, drop any inherited top edge */
.wave + .cta-band {
  margin-top: 0;
  border-top: 0;
  box-shadow: none;
}

.wave:has(+ .cta-band) svg path { fill: var(--fc-green); }

.cta-band h2 {
  color: var(--fc-white);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--fc-white);
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.cta-band .btn--phone {
  background: var(--fc-white);
  color: var(--fc-navy);
}

.cta-band .btn--phone:hover {
  background: var(--fc-white);
  color: var(--fc-cyan-deep);
}

.cta-band .btn--phone.btn--phone-green {
  background: var(--fc-cyan);
  color: var(--fc-white);
}

.cta-band .btn--phone.btn--phone-green:hover {
  background: var(--fc-cyan);
  color: var(--fc-navy);
}

/* White pills on the cyan band */
.cta-band .btn--hollow-light {
  background: var(--fc-white);
  border-color: var(--fc-white);
  color: var(--fc-navy);
}
.cta-band .btn--hollow-light:hover {
  background: var(--fc-cyan);
  border-color: var(--fc-cyan);
  color: var(--fc-white);
}

/* ---- Vacancy board (Primary Careers WP Job Manager list pattern 1:1:
        hairline-bordered rows, muted location, bold coloured job type,
        subtle hover wash) --------------------------------------------------- */

.vacancy-list { border-top: 1px solid var(--fc-line); }

.vacancy-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) auto;
  gap: 14px 28px;
  align-items: center;
  border-bottom: 1px solid var(--fc-line);
  padding: 24px 16px 24px 10px;
  transition: background 0.3s var(--ease);
}

.vacancy-row:hover { background: rgba(3, 27, 78, 0.04); }

.vacancy-row__title { font-size: 1.1875rem; margin-bottom: 6px; }

.vacancy-row__summary { font-size: var(--fs-small); color: var(--fc-muted); margin: 0; }

.vacancy-row__meta { font-size: var(--fs-small); color: var(--fc-muted); }

.vacancy-row__meta .job-type {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fc-cyan-deep);
  margin-top: 4px;
}

.vacancy-row__cta { margin: 0; }

.vacancy-empty {
  background: var(--fc-ice);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}

/* ---- Team cards -------------------------------------------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.team-card {
  background: var(--fc-white);
  border: 1px solid var(--fc-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.team-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.team-card__photo { aspect-ratio: 1 / 1.02; overflow: hidden; background: var(--fc-ice); }

.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__photo--placeholder svg { width: 72px; height: 72px; color: rgba(3, 27, 78, 0.25); }

.team-card__body { padding: 22px 24px 26px; }

.team-card__body h3 { font-size: 1.125rem; margin-bottom: 3px; }

.team-card__role {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fc-cyan-deep);
  margin-bottom: 12px;
}

.team-card__body p { font-size: var(--fs-small); color: var(--fc-muted); margin-bottom: 14px; }

/* ---- Article / blog cards -------------------------------------------------------------------------------------- */

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fc-muted);
  margin-bottom: 10px;
}

.article-card__meta .cat { color: var(--fc-cyan-deep); }

.article-card__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fc-line); }

/* ---- Icon list (checklist bullets) ---------------------------------------------------------------------------------- */

.icon-list { list-style: none; margin: 0 0 1.1em; padding: 0; }

.icon-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.icon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fc-cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.section--navy .icon-list li, .section--deep .icon-list li { color: var(--fc-ice-text); }

/* ---- Info / notice panels --------------------------------------------------------------------------------------------- */

.note-panel {
  background: var(--fc-ice);
  border-left: 4px solid var(--fc-cyan);
  border-radius: var(--radius-small);
  padding: 20px 24px;
  font-size: var(--fs-small);
}

.note-panel--navy {
  background: var(--fc-green);
  border-left-color: var(--fc-white);
  color: var(--fc-white);
}

.note-panel--navy strong, .note-panel--navy a { color: var(--fc-white); }

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

/* ---- FAQ split (GoodOaks service-page anatomy: heading column | accordion) -- */

.faq-split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 4vw, 64px); align-items: start; }

.faq-split__intro { position: sticky; top: calc(var(--h-sticky) + 28px); }

/* ---- Responsive ------------------------------------------------------------------------------------------------------------ */

/* Stack quote-on-photo before the overlay card can clip on narrow viewports */
@media (max-width: 900px) {
  .photo-quote {
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .photo-quote > img {
    max-height: none;
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
  }

  .photo-quote > img.photo-quote__img--lower {
    object-position: center 18%;
  }

  .photo-quote__card {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 0;
    padding: 22px 20px 18px;
    box-shadow: var(--shadow-card);
  }

  .photo-quote__card::before {
    font-size: 48px;
    right: 14px;
    top: 6px;
  }
}

@media (max-width: 1024px) {
  .intent-cards, .pillars, .pillars--4, .steps, .steps--4,
  .testimonial-grid, .team-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .list-block { grid-template-columns: 1fr; }
  .list-block__intro { position: static; }
  .faq-split { grid-template-columns: 1fr; }
  .faq-split__intro { position: static; }
  .signpost { grid-template-columns: 1fr; }
  .signpost__media { order: -1; }
  .vacancy-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
  }
  .vacancy-row__meta { grid-column: 1; }
}

@media (max-width: 700px) {
  .intent-cards, .pillars, .pillars--4, .steps, .steps--4,
  .testimonial-grid, .team-grid, .review-grid,
  .card-grid, .card-grid--3, .card-grid--2, .feature-tiles,
  .service-cards { grid-template-columns: 1fr; }

  .intent-cards > *,
  .card-grid > *,
  .feature-row > *,
  .list-block > *,
  .signpost > *,
  .faq-split > * { min-width: 0; }

  .steps { padding-top: 28px; gap: 36px; }
  .step__num { top: -28px; font-size: 64px; opacity: 0.4; }

  .feature-row { grid-template-columns: 1fr; }
  .feature-row--flip .feature-row__media { order: 0; }

  .form-grid { grid-template-columns: 1fr; }

  .vacancy-row { grid-template-columns: 1fr; padding-inline: 0; gap: 12px; }
  .vacancy-row__cta .btn { width: 100%; }

  .hero__ctas,
  .cta-band__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn,
  .cta-band__actions .btn { width: 100%; justify-content: center; }

  .btn--phone {
    white-space: normal;
    max-width: 100%;
  }

  .list-block__label { overflow-wrap: anywhere; }
  .service-card h3,
  .intent-card h3 { overflow-wrap: anywhere; }
}

/* ---- Small phones (320–480) ------------------------------------------------ */

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --space-section: clamp(40px, 10vw, 56px);
    --space-section-sm: clamp(32px, 8vw, 48px);
  }

  .photo-quote > img { aspect-ratio: 5 / 4; }
  .photo-quote__card {
    margin-top: 12px;
    padding: 18px 16px 16px;
  }
  .photo-quote__card blockquote {
    font-size: 1.0625rem;
    margin-bottom: 10px;
  }
  .photo-quote__card cite {
    letter-spacing: 0.04em;
    font-size: 0.75rem;
  }

  .intent-cards { gap: 16px; }
  .intent-card { padding: 26px 18px 22px; }
  .intent-card__icon svg { width: 52px; height: 52px; }

  .service-card,
  .feature-tile,
  .card__body,
  .team-card__body,
  .testimonial,
  .form-panel,
  .step,
  .note-panel,
  .vacancy-empty,
  .form-success { padding: 18px; }

  .list-block__rows a { padding: 16px 14px 14px; }

  .accordion__trigger { padding: 16px 2px; font-size: 1rem; gap: 12px; }
  .accordion__trigger::after { width: 28px; height: 28px; }
  .accordion__panel > .accordion__content { padding: 2px 10px 18px 4px; }

  .btn { max-width: 100%; }
  .btn--lg { padding: 14px 18px; font-size: 1rem; }

  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero__media { background-position: center center; }
  .hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(16, 52, 32, 0.62) 0%,
        rgba(16, 52, 32, 0.32) 46%,
        rgba(16, 52, 32, 0.12) 100%
      );
  }
  .hero__support { font-size: 1rem; margin-bottom: 22px; }
  .hero__ctas { gap: 10px; margin-bottom: 36px; }
  .hero__wordmark {
    letter-spacing: 0.16em;
    font-size: 0.875rem;
  }
  .rotator {
    font-size: 0.9375rem;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .rotator span { padding-left: 30px; }
  .rotator span::before { width: 22px; top: 0.5em; }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .form-actions .btn { width: 100%; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 1rem; }

  .logo-strip { gap: 10px; }
  .logo-strip .logo-tile {
    padding: 10px 14px;
    min-height: 56px;
  }
  .logo-strip .logo-tile img { max-height: 36px; }

  .chip { max-width: 100%; white-space: normal; text-align: left; height: auto; }
  .trust-chips { gap: 8px; }
  .trust-chips .chip { padding: 8px 12px; font-size: 0.8125rem; }

  th, td { padding: 0.55em 0.65em; }
  .hours-table { font-size: 0.8125rem; }
  .hours-table th { width: auto; }

  .area-chips { gap: 8px; }

  .cta-band { padding-block: 44px; }
  .cta-band p { margin-bottom: 22px; }
  .pillars, .steps { gap: 20px; }
  .card-grid, .service-cards, .feature-tiles { gap: 16px; }

  .step__num { font-size: 56px; top: -24px; }
  .steps { padding-top: 24px; gap: 28px; }
}

/* ---- First-visit intro (enhancements; critical styles live in <head>) ---- */

.site-intro__curtain {
  background: var(--fc-white);
}

.site-intro__logo {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
}

.site-intro__bar {
  box-shadow: 0 0 16px rgba(79, 187, 112, 0.55);
}

/* ---- Back to top ------------------------------------------------------------ */

.to-top {
  position: fixed;
  right: max(16px, var(--gutter));
  bottom: max(16px, var(--gutter));
  z-index: var(--z-toast);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fc-cyan);
  color: var(--fc-navy);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s, background 0.3s var(--ease), color 0.3s var(--ease);
}

.to-top svg { width: 20px; height: 20px; }

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--fc-navy);
  color: var(--fc-cyan);
}

body.has-cookie-banner .to-top {
  bottom: calc(max(16px, var(--gutter)) + 96px);
}

/* ---- Cookie consent (demo) -------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-toast);
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(1, 13, 39, 0.96);
  color: var(--fc-on-dark);
  box-shadow: 0 -8px 28px rgba(1, 13, 39, 0.28);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  width: 100%;
  max-width: calc(var(--container) + (var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.cookie-banner p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  max-width: 52rem;
  color: var(--fc-on-dark);
}

.cookie-banner a {
  color: var(--fc-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cookie-banner a:hover { color: var(--fc-white); }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.cookie-banner .btn--hollow {
  border-color: rgba(240, 247, 253, 0.55);
  color: var(--fc-white);
}

.cookie-banner .btn--hollow:hover {
  background: var(--fc-white);
  border-color: var(--fc-white);
  color: var(--fc-navy);
}

@media (max-width: 700px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  body.has-cookie-banner .to-top {
    bottom: calc(max(16px, var(--gutter)) + 160px);
  }
}

@media (max-width: 480px) {
  .to-top {
    width: 44px;
    height: 44px;
    right: 14px;
  }
  .cookie-banner { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cookie-banner p { font-size: 0.875rem; }
}
