/* ===== from nav-hero.html ===== */
  :root {
    --pc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pc-nav-h: 113px;
    --pc-hero-shade: 31, 22, 51; /* clr-primary-800 #1F1633 */
  }

  /* ---------- Nav ---------- */
  .elementor.elementor .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background: transparent !important;
    pointer-events: none;
    transition: transform 0.5s var(--pc-ease), opacity 0.8s var(--pc-ease);
    will-change: transform;
  }
  .elementor.elementor .site-header [data-id="0576927"] {
    pointer-events: auto;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
  }
  .elementor.elementor .site-header.is-hidden { transform: translateY(calc(-100% - 8px)); }

  /* Top of page: transparent box, white elements */
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="0576927"] {
    background-color: transparent !important;
    box-shadow: none;
  }
  /* Scrolled: the rounded light box */
  .elementor.elementor .site-header.is-scrolled [data-id="0576927"] {
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(var(--pc-hero-shade), 0.06), 0 12px 32px rgba(var(--pc-hero-shade), 0.12);
  }

  /* Logo crossfade (colour + white stacked in one cell) */
  .elementor.elementor .site-header [data-id="7308eeb"] { display: grid !important; align-items: center; justify-items: start; }
  .elementor.elementor .site-header .pc-logo { grid-area: 1 / 1; margin: 0 !important; transition: opacity 0.35s ease; }
  .elementor.elementor .site-header .pc-logo--white { opacity: 1; }
  .elementor.elementor .site-header .pc-logo--colour { opacity: 0; }
  .elementor.elementor .site-header.is-scrolled .pc-logo--white { opacity: 0; pointer-events: none; }
  .elementor.elementor .site-header.is-scrolled .pc-logo--colour { opacity: 1; }

  /* Links, text button and burger go white at the top */
  .elementor.elementor .site-header .pmm-desktop-nav a,
  .elementor.elementor .site-header [data-id="52f1d4e"],
  .elementor.elementor .site-header [data-id="52f1d4e"] *,
  .elementor.elementor .site-header [data-id="9544057"] svg,
  .elementor.elementor .site-header [data-id="02301e5"] svg {
    transition: color 0.35s ease, fill 0.35s ease, opacity 0.2s ease;
  }
  .elementor.elementor .site-header:not(.is-scrolled) .pmm-desktop-nav a,
  .elementor.elementor .site-header:not(.is-scrolled) .pmm-desktop-nav a:link,
  .elementor.elementor .site-header:not(.is-scrolled) .pmm-desktop-nav a:visited,
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="52f1d4e"],
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="52f1d4e"] * { color: #fff !important; }
  .elementor.elementor .site-header:not(.is-scrolled) .pmm-desktop-nav a:hover,
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="52f1d4e"]:hover { opacity: 0.75; }
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="02301e5"] svg,
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="02301e5"] svg *,
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="9544057"] svg,
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="9544057"] svg * { fill: #fff !important; }

  /* Primary button flips to white-on-photo at the top */
  .elementor.elementor .site-header [data-id="e530488"] { transition: background-color 0.35s ease, color 0.35s ease; }
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="e530488"] { background-color: #fff !important; }
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="e530488"] * { color: var(--clr-primary) !important; }
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="e530488"] svg,
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="e530488"] svg * { fill: var(--clr-primary) !important; }
  .elementor.elementor .site-header:not(.is-scrolled) [data-id="e530488"]:hover { background-color: var(--clr-primary-100) !important; }

  /* Layout: logo and buttons take their natural width, the menu gets the rest and centres in it.
     (Elementor had logo and buttons at a fixed 25% each, which made the buttons wrap on narrower screens.) */
  .elementor.elementor .site-header [data-id="0576927"] { gap: clamp(16px, 2vw, 32px); }
  .elementor.elementor .site-header [data-id="7308eeb"],
  .elementor.elementor .site-header [data-id="dcff5be"] {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  .elementor.elementor .site-header [data-id="d888fd2"] {
    flex: 1 1 auto !important;
    min-width: 0;
    justify-content: center !important;
  }
  /* Tablet/mobile: this column holds the burger, which belongs on the right */
  @media (max-width: 1024px) {
    .elementor.elementor .site-header [data-id="d888fd2"] { justify-content: flex-end !important; }
  }
  .elementor.elementor .site-header [data-id="dcff5be"] { gap: clamp(12px, 1.4vw, 20px) !important; }
  .elementor.elementor .site-header [data-id="52f1d4e"],
  .elementor.elementor .site-header [data-id="e530488"],
  .elementor.elementor .site-header [data-id="52f1d4e"] *,
  .elementor.elementor .site-header [data-id="e530488"] *,
  .elementor.elementor .site-header .pmm-desktop-nav a {
    white-space: nowrap;
  }
  .elementor.elementor .site-header [data-id="52f1d4e"],
  .elementor.elementor .site-header [data-id="e530488"] { flex: 0 0 auto; width: auto !important; }
  .elementor.elementor .site-header .pmm-desktop-nav { gap: clamp(1rem, 2.2vw, 2rem) !important; }

  .elementor.elementor .site-header a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 999px;
  }

  /* ---------- Hero ---------- */
  .elementor.elementor [data-id="dc62ff1"] {
    padding: 0 !important;
    height: auto !important;
    max-width: none !important;
  }
  .elementor.elementor [data-id="e7e7b6a"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100% !important;
    max-width: none !important;
    height: 100svh !important;
    min-height: 640px !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: calc(var(--pc-nav-h) + 40px) 5vw clamp(96px, 18vh, 220px) !important;
    justify-content: flex-end !important;
    align-items: center !important;
    /* First hero image (carer in purple with resident); the loop's first slide inherits this */
    background-image: url("/wp-content/uploads/2026/06/pg-image14.jpg") !important;
    background-size: cover !important;
    background-position: 60% 30% !important;
  }
  /* Brand-tinted shade: darker at the foot for the copy, a touch at the top for the nav */
  .elementor.elementor [data-id="e7e7b6a"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(var(--pc-hero-shade), 0.5) 0%,
      rgba(var(--pc-hero-shade), 0.1) 22%,
      rgba(var(--pc-hero-shade), 0.45) 50%,
      rgba(var(--pc-hero-shade), 0.88) 100%
    );
  }
  /* Image layer added by the script so it can scale; inherits the wrapper's responsive background */
  .elementor.elementor .pc-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: no-repeat;
    transform-origin: 50% 60%;
    translate: 0 var(--pc-hero-py, 0px);
  }
  /* Hero image loop: each new image wipes up over the last and settles from a slow zoom */
  .elementor.elementor .pc-hero-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--pc-pos, center);
    clip-path: inset(100% 0 0 0);
    scale: 1.12;
  }
  .elementor.elementor .pc-hero-slide.is-first {
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
  }
  .elementor.elementor .pc-hero-slide.is-active {
    z-index: 2;
    clip-path: inset(0 0 0 0);
    scale: 1;
    transition: clip-path 1.5s var(--pc-ease), scale 9s cubic-bezier(0.2, 0.6, 0.3, 1);
  }
  .elementor.elementor .pc-hero-slide.is-prev { z-index: 1; clip-path: inset(0 0 0 0); scale: 1; }
  .elementor.elementor .pc-hero-slide.pc-noclip { clip-path: none; }
  @media (max-width: 767px) {
    .elementor.elementor .pc-hero-slide:not(.is-first) { background-position: var(--pc-pos-m, var(--pc-pos, center)); }
  }
  .elementor.elementor [data-id="6d8fed2"] {
    translate: 0 var(--pc-copy-py, 0px);
    opacity: var(--pc-copy-o, 1);
  }
  @media (prefers-reduced-motion: reduce) {
    .elementor.elementor .pc-hero-slide { scale: 1 !important; transition: none !important; }
  }

  .elementor.elementor [data-id="6d8fed2"] {
    position: relative;
    z-index: 2;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 1100px !important; /* room for the italic line at the 5rem cap: it needs ~13x its font size */
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    align-self: center !important;
    align-items: center;
    gap: 36px !important;
  }
  .elementor.elementor [data-id="d68ec9c"] { align-items: center; gap: 24px !important; }
  .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading {
    color: #fff;
    text-align: center;
    font-size: clamp(2.75rem, 5.6vw, 5rem); /* capped so "empowerment & enablement" always fits one line above mobile */
    line-height: 0.98;
    text-shadow: 0 2px 24px rgba(var(--pc-hero-shade), 0.35);
  }
  /* The animation's line wrappers are spans too, so reset them; only the brand's own span is italic */
  .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading .pc-line,
  .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading .pc-line-inner {
    font-style: normal;
    font-weight: 400;
    color: #fff;
  }
  .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading .pc-line-inner > span {
    font-style: italic;
    font-weight: 700;
    color: var(--clr-primary-100);
  }
  .elementor.elementor [data-id="796ed6b"] {
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    max-width: 58ch;
    margin-inline: auto;
    text-wrap: balance;
  }
  .elementor.elementor [data-id="7f98304"] { justify-content: center; }
  .elementor.elementor [data-id="63d1867"] { width: min(640px, 100%) !important; }
  /* Hero "Find a home" button in the brand teal (chosen over deep teal; contrast accepted for now) */
  .elementor.elementor [data-id="63d1867"] .phs-quick-search__btn {
    background: var(--clr-accent) !important;
    color: #fff !important;
  }
  .elementor.elementor [data-id="63d1867"] .phs-quick-search__btn:hover,
  .elementor.elementor [data-id="63d1867"] .phs-quick-search__btn:focus-visible {
    background: var(--clr-accent-500) !important;
    color: #fff !important;
  }
  .elementor.elementor [data-id="63d1867"] .phs-quick-search__form {
    background: #fff;
    box-shadow: 0 18px 40px rgba(var(--pc-hero-shade), 0.25) !important;
  }

  /* Second route + phone, under the search */
  .elementor.elementor [data-id="75b2ef01"] {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 28px;
    padding: 0 !important;
  }
  .elementor.elementor [data-id="75b2ef01"] p { margin: 0; color: inherit !important; font-size: 0.95rem; line-height: 1.2; }
  .elementor.elementor [data-id="70c16a0e"] {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff !important;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  .elementor.elementor [data-id="70c16a0e"]::after {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: translate 0.3s var(--pc-ease);
  }
  .elementor.elementor [data-id="70c16a0e"]:hover,
  .elementor.elementor [data-id="70c16a0e"]:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--clr-primary) !important;
  }
  .elementor.elementor [data-id="70c16a0e"]:hover::after { translate: 3px 0; }
  .elementor.elementor [data-id="3cd540ff"] {
    width: auto !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
  }
  .elementor.elementor [data-id="3cd540ff"] strong { color: #fff; font-weight: 600; }
  .elementor.elementor [data-id="3cd540ff"]:hover strong { text-decoration: underline; text-underline-offset: 4px; }

  @media (max-width: 767px) {
    /* Bigger logo in the mobile nav (Elementor had it at 120px) */
    .elementor.elementor .site-header .pc-logo img { width: 156px !important; max-width: none; }
    .elementor.elementor [data-id="75b2ef01"] { flex-direction: column !important; gap: 14px; }
    .elementor.elementor [data-id="e7e7b6a"] {
      /* Same first image as desktop/tablet (Elementor had a different mobile photo) */
      background-position: 72% 40% !important;
      min-height: 600px !important;
      padding: calc(var(--pc-nav-h) + 24px) 20px 32px !important;
    }
    .elementor.elementor [data-id="6d8fed2"] { gap: 24px !important; }
    .elementor.elementor [data-id="d68ec9c"] { gap: 16px !important; }
    .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading { font-size: clamp(2.2rem, 10vw, 2.6rem); }
  }

  /* Headline italic accents: PT Serif bold italic (700) */
  .elementor.elementor .pegasus-hero-heading-h2 > span:not(.pc-w),
  .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading .pc-line-inner > span {
    font-family: 'PT Serif', serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
  }

  /* ---------- Load sequence (motion allowed only) ---------- */
  .pc-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .pc-line-inner { display: block; }

  html.pc-motion .elementor.elementor .site-header:not(.pc-in) { opacity: 0; }

  /* Keep the headline hidden until it is split into lines (stops the flash on refresh).
     Failsafe: show it after 3s even if the script never runs. */
  @keyframes pc-failsafe-show { to { visibility: visible; } }
  html.pc-motion .elementor.elementor [data-id="e7e7b6a"] .pegasus-hero-heading:not(.pc-split) {
    visibility: hidden;
    animation: pc-failsafe-show 0s 3s forwards;
  }

  html.pc-motion .elementor.elementor [data-id="e7e7b6a"] {
    clip-path: inset(7% 5% 7% 5% round 40px);
    transition: clip-path 1.4s var(--pc-ease);
  }
  html.pc-motion .elementor.elementor .pc-hero-media {
    transform: scale(1.06); /* the slides add their own slow zoom on top */
    transition: transform 2.4s var(--pc-ease);
  }
  html.pc-motion .elementor.elementor .pc-line-inner {
    transform: translateY(105%);
    transition: transform 1.1s var(--pc-ease);
  }
  /* per-line delays are set by the script */
  html.pc-motion .elementor.elementor [data-id="796ed6b"] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s var(--pc-ease) 0.35s, transform 0.9s var(--pc-ease) 0.35s;
  }
  /* Search: invisible until its turn, then a small pill appears, lifts and stretches open; contents follow */
  html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form {
    opacity: 0;
    translate: 0 14px;
    clip-path: inset(0 42% 0 42% round 999px);
    transition:
      opacity 0.35s ease 0.45s,
      translate 0.9s var(--pc-ease) 0.45s,
      clip-path 1.1s var(--pc-ease) 0.6s;
  }
  html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form > * {
    opacity: 0;
    transition: opacity 0.6s ease 0.7s; /* field fades in as the pill opens, so it is never seen empty */
  }
  /* The button waits until the pill is fully open, then settles in from the left */
  html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form > .phs-quick-search__btn {
    translate: -10px 0;
    /* !important: the search plugin forces "transition: background .2s !important" on this button */
    transition: background 0.2s, opacity 0.5s ease 1.05s, translate 0.7s var(--pc-ease) 1.05s !important;
  }
  html.pc-motion .pc-hero-copy .elementor.elementor [data-id="63d1867"] .phs-quick-search__form > .phs-quick-search__btn { translate: none; }

  html.pc-motion .pc-hero-in .elementor.elementor [data-id="e7e7b6a"] { clip-path: inset(0 0 0 0 round 0px); }
  html.pc-motion .pc-hero-in .elementor.elementor .pc-hero-media { transform: scale(1); }
  html.pc-motion .pc-hero-copy .elementor.elementor .pc-line-inner { transform: translateY(0); }
  html.pc-motion .pc-hero-copy .elementor.elementor [data-id="796ed6b"] { opacity: 1; transform: none; }
  html.pc-motion .pc-hero-copy .elementor.elementor [data-id="63d1867"] .phs-quick-search__form {
    opacity: 1;
    translate: none;
    clip-path: inset(0 0 0 0 round 999px);
  }
  html.pc-motion .pc-hero-copy .elementor.elementor [data-id="63d1867"] .phs-quick-search__form > * { opacity: 1; }

  html.pc-motion .elementor.elementor [data-id="75b2ef01"] {
    opacity: 0;
    translate: 0 10px;
    transition: opacity 0.8s var(--pc-ease) 1.15s, translate 0.8s var(--pc-ease) 1.15s;
  }
  html.pc-motion .pc-hero-copy .elementor.elementor [data-id="75b2ef01"] { opacity: 1; translate: none; }

  /* The search stacks into a 15px-cornered card on small phones; match the mask to it */
  @media (max-width: 480px) {
    html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form { clip-path: inset(0 42% 0 42% round 15px); }
    html.pc-motion .pc-hero-copy .elementor.elementor [data-id="63d1867"] .phs-quick-search__form { clip-path: inset(0 0 0 0 round 15px); }
  }

/* ===== from scroll-reveal.html ===== */
  :root { --pc-ease: cubic-bezier(0.22, 1, 0.36, 1); }

  /* Headings: each word rises out of its own mask; words on the same line move together */
  .pc-w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 0.08em 0.16em 0;
    margin: 0 -0.08em -0.16em 0;
  }
  .pc-w,
  .pc-wi {
    font-style: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
  }
  .pc-wi { display: inline-block; }
  html.pc-motion .pc-rv--title .pc-wi {
    transition: translate 1.1s var(--pc-ease) var(--pc-d, 0s);
  }
  html.pc-motion .pc-rv--title:not(.pc-rv-in) .pc-wi { translate: 0 110%; }

  /* Copy, buttons, cards, blocks: fade up */
  html.pc-motion .pc-rv--fade {
    transition:
      opacity 0.9s var(--pc-ease) var(--pc-d, 0s),
      translate 1.1s var(--pc-ease) var(--pc-d, 0s);
  }
  html.pc-motion .pc-rv--fade:not(.pc-rv-in) { opacity: 0; translate: 0 28px; }
  /* Slider loop clones made after a reveal must never be left hidden */
  html.pc-motion .swiper-slide-duplicate.pc-rv--fade:not(.pc-rv-in) { opacity: 1; translate: none; }

  /* Photo cards with a background image: wipe up from the bottom edge */
  html.pc-motion .pc-rv--wipe {
    transition: clip-path 1.3s var(--pc-ease) var(--pc-d, 0s);
    clip-path: inset(0 0 0 0 round var(--pc-r, 0px));
  }
  html.pc-motion .pc-rv--wipe:not(.pc-rv-in) { clip-path: inset(100% 0 0 0 round var(--pc-r, 0px)); }

  /* Images: framed, settle from a zoom, then drift a little with the scroll */
  .pc-media {
    display: block;
    overflow: hidden;
    border-radius: var(--pc-r, 0px);
    width: 100%;
  }
  .pc-media > img {
    display: block;
    width: 100%;
    scale: 1.08;
    translate: 0 var(--pc-py, 0px);
  }
  html.pc-motion .pc-rv--img > img {
    transition: scale 1.6s var(--pc-ease) var(--pc-d, 0s), opacity 0.8s ease var(--pc-d, 0s) !important;
  }
  html.pc-motion .pc-rv--img:not(.pc-rv-in) > img { scale: 1.22; opacity: 0; }

  /* Photo cards: the background is redrawn on a taller layer behind the content so it can drift */
  .pc-par-host { position: relative; isolation: isolate; overflow: hidden; }
  .pc-par {
    position: absolute;
    inset: -8% 0;
    z-index: -1;
    pointer-events: none;
    background-image: inherit;
    background-size: cover;
    background-position: inherit;
    background-repeat: no-repeat;
    translate: 0 var(--pc-py, 0px);
    transition: scale 0.6s var(--pc-ease);
  }
  .image-zoom-card:hover > .pc-par { scale: 1.05; }

  @media (prefers-reduced-motion: reduce) {
    .pc-media > img { scale: 1; translate: none; }
  }

/* ===== from services-cards.html ===== */
  .elementor.elementor [data-id="09cb7d9"] .pic-card {
    --pc-card-h: clamp(380px, 33vw, 470px);
    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: column !important;
    height: var(--pc-card-h);
    overflow: hidden;
    background: #fff;
    border-radius: var(--border-radius-medium);
  }

  /* Image fills whatever the panel doesn't use */
  .elementor.elementor [data-id="09cb7d9"] .pic-card > .pc-media,
  .elementor.elementor [data-id="09cb7d9"] .pic-card > img {
    flex: 1 1 auto !important;
    min-height: 0;
    border-radius: 0 !important;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    border-radius: 0 !important;
  }

  /* Panel */
  .elementor.elementor [data-id="09cb7d9"] .pic-card > .e-con {
    position: static !important; /* so the link's click area spans the whole card */
    flex: 0 0 auto;
    gap: 0 !important;
    padding: 26px 30px 28px !important;
    background: #fff;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card h3 {
    font-family: 'PT Serif', serif !important;
    font-weight: 400 !important;
    font-size: clamp(1.6rem, 2.2vw, 2.1rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
    color: var(--clr-secondary) !important; /* brand slate, as "Care shaped around you" */
    min-height: 2.3em; /* every title holds two lines, so all panels share one depth */
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card h3 em { font-style: italic; font-weight: 700; }

  /* Intro + link: folded away until hover/focus */
  .elementor.elementor [data-id="09cb7d9"] .pic-card > .e-con > p,
  .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.55s var(--pc-ease, ease),
      margin-top 0.55s var(--pc-ease, ease),
      opacity 0.35s ease;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card:is(:hover, :focus-within) > .e-con > p {
    max-height: 9em;
    margin-top: 14px;
    opacity: 1;
    transition-delay: 0s, 0s, 0.12s;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card:is(:hover, :focus-within) .text-button {
    max-height: 3em;
    margin-top: 20px;
    opacity: 1;
    transition-delay: 0.05s, 0.05s, 0.2s;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card:is(:hover, :focus-within) .pc-media > img { scale: 1.14; }

  /* Text button with arrow; its link covers the whole card */
  .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button {
    position: static !important;
    display: inline-flex !important;
    align-self: flex-start !important;
    justify-content: flex-start !important;
    width: auto !important;
    align-items: center;
    gap: 10px;
    /* room for the arrow's hover nudge and its round edge: the fold animation clips overflow */
    padding: 2px 10px 2px 0 !important;
    color: var(--clr-primary) !important;
    text-decoration: none;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button p {
    font-family: var(--font-primary), sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: inherit !important;
    margin: 0;
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3; /* whole card is the click target */
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button::after {
    content: "";
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
      var(--clr-primary)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
      center / 14px no-repeat;
    transition: translate 0.35s var(--pc-ease, ease);
  }
  .elementor.elementor [data-id="09cb7d9"] .pic-card:hover .text-button::after { translate: 4px 0; }
  .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 4px;
    border-radius: 999px;
  }

  /* Touch screens can't hover: keep the cards short and show the link straight away */
  @media (hover: none) {
    .elementor.elementor [data-id="09cb7d9"] .pic-card .text-button {
      max-height: 3em;
      margin-top: 16px;
      opacity: 1;
    }
  }

  @media (min-width: 768px) and (max-width: 1024px) {
    .elementor.elementor [data-id="09cb7d9"] { --e-con-grid-template-columns: repeat(2, 1fr) !important; }
    .elementor.elementor [data-id="09cb7d9"] .pic-card { --pc-card-h: 440px; }
  }
  @media (max-width: 767px) {
    .elementor.elementor [data-id="09cb7d9"] .pic-card { --pc-card-h: auto; }
    .elementor.elementor [data-id="09cb7d9"] .pic-card > .pc-media,
    .elementor.elementor [data-id="09cb7d9"] .pic-card > img {
      flex: none !important;
      aspect-ratio: 4 / 3;
    }
    .elementor.elementor [data-id="09cb7d9"] .pic-card > .e-con { padding: 22px 22px 24px !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    .elementor.elementor [data-id="09cb7d9"] .pic-card * { transition: none !important; }
  }

/* ===== from proof-strip.html ===== */
  .elementor.elementor [data-id="412d2a96"] {
    background: var(--neutral-50);
    padding: clamp(56px, 7vw, 104px) 5vw !important;
  }
  .elementor.elementor [data-id="26357ca3"] {
    width: 100%;
    max-width: 1550px;
    margin-inline: auto;
    flex-direction: column !important;
    gap: clamp(36px, 4vw, 64px);
    padding: 0 !important;
  }
  .elementor.elementor [data-id="264f02c7"] {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px clamp(32px, 3vw, 44px); /* tighter: gives the label room so it does not leave a widow */
    padding: 0 !important;
  }

  /* The headline number */
  .elementor.elementor [data-id="245e46ab"] {
    flex: 1 1 340px;
    flex-direction: column !important;
    gap: 14px;
    padding: 0 !important;
  }
  .elementor.elementor [data-id="63bb14be"] {
    margin: 0;
    font-family: 'PT Serif', serif !important;
    font-size: clamp(4rem, 9vw, 8rem) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.035em;
    color: var(--clr-primary) !important;
    font-variant-numeric: tabular-nums;
  }
  .elementor.elementor [data-id="5f33b674"] {
    margin: 0;
    max-width: 40ch;
    text-wrap: balance;
    font-size: clamp(1.05rem, 1.35vw, 1.3rem) !important;
    line-height: 1.45 !important;
    color: var(--neutral-700) !important;
  }
  .elementor.elementor [data-id="5f33b674"] strong { color: var(--clr-primary); font-weight: 600; }

  /* Supporting facts */
  .elementor.elementor [data-id="669e0286"] {
    flex: 1.6 1 620px;
    flex-direction: row !important;
    gap: clamp(12px, 1.4vw, 18px);
    padding: 0 !important;
  }
  /* Supporting facts as tinted tiles (Lee's tint family): purple, teal, blush */
  .elementor.elementor [data-id="2f96098"],
  .elementor.elementor [data-id="4fcd578c"],
  .elementor.elementor [data-id="5d9442f7"] {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column !important;
    gap: 8px;
    padding: clamp(20px, 2vw, 26px) clamp(20px, 2vw, 26px) clamp(22px, 2.2vw, 28px) !important;
    border-radius: var(--border-radius-medium);
    background: var(--pf-bg);
  }
  .elementor.elementor [data-id="2f96098"] { --pf-bg: var(--clr-primary-100); --pf-ink: var(--clr-primary); }
  .elementor.elementor [data-id="4fcd578c"] { --pf-bg: var(--clr-accent-100); --pf-ink: var(--clr-accent-800); }
  .elementor.elementor [data-id="5d9442f7"] { --pf-bg: var(--clr-forth-100); --pf-ink: var(--clr-forth-800); }
  .elementor.elementor [data-id="54210523"],
  .elementor.elementor [data-id="3da0f456"],
  .elementor.elementor [data-id="58fad2b0"] {
    margin: 0;
    font-family: 'PT Serif', serif !important;
    font-size: clamp(2rem, 2.8vw, 2.6rem) !important;
    line-height: 1 !important;
    color: var(--pf-ink) !important;
  }
  .elementor.elementor [data-id="47e2191"],
  .elementor.elementor [data-id="67249bfd"],
  .elementor.elementor [data-id="3edd3649"] {
    margin: 0;
    max-width: 26ch;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    color: var(--neutral-900) !important;
  }

  /* The journey line: today -> ambition */
  .elementor.elementor [data-id="31a165"] {
    flex-direction: column !important;
    gap: 14px;
    padding: 0 !important;
  }
  .elementor.elementor [data-id="19710622"] {
    position: relative;
    height: 6px;
    padding: 0 !important;
    border-radius: 999px;
    background: rgba(66, 45, 109, 0.12);
  }
  .elementor.elementor [data-id="722cd695"] {
    position: relative;
    height: 100%;
    width: var(--pc-fill, 11%);
    padding: 0 !important;
    border-radius: 999px;
    background: var(--clr-primary);
  }
  .elementor.elementor [data-id="722cd695"]::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    width: 18px;
    height: 18px;
    translate: 0 -50%;
    border-radius: 50%;
    background: var(--clr-primary);
    box-shadow: 0 0 0 5px var(--neutral-50), 0 0 0 6px rgba(66, 45, 109, 0.25);
  }
  .elementor.elementor [data-id="19710622"]::after {
    /* the finish line */
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    translate: 0 -50%;
    border-radius: 50%;
    border: 2px solid var(--clr-primary);
    background: var(--neutral-50);
  }
  .elementor.elementor [data-id="6d62ac7f"] {
    flex-direction: row !important;
    justify-content: space-between;
    gap: 24px;
    padding: 0 !important;
  }
  .elementor.elementor [data-id="6d62ac7f"] p {
    margin: 0;
    font-size: 0.92rem !important;
    color: var(--neutral-700) !important;
  }
  .elementor.elementor [data-id="6d62ac7f"] strong { color: var(--clr-primary); font-weight: 600; }

  /* Motion (only when allowed) */
  html.pc-motion .elementor.elementor [data-id="722cd695"] { transition: width 2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
  html.pc-motion .elementor.elementor [data-id="412d2a96"]:not(.pc-proof-in) [data-id="722cd695"] { width: 0%; }

  @media (max-width: 1024px) {
    .elementor.elementor [data-id="669e0286"] { flex-basis: 100%; }
  }
  @media (max-width: 767px) {
    .elementor.elementor [data-id="669e0286"] { flex-direction: column !important; gap: 12px; }
    .elementor.elementor [data-id="2f96098"],
    .elementor.elementor [data-id="4fcd578c"],
    .elementor.elementor [data-id="5d9442f7"] {
      flex-direction: row !important;
      align-items: baseline;
      gap: 16px !important;
      padding: 18px 20px !important;
    }
    /* one number column wide enough for "7,500", so the labels line up and never touch the number */
    .elementor.elementor [data-id="54210523"],
    .elementor.elementor [data-id="3da0f456"],
    .elementor.elementor [data-id="58fad2b0"] { flex: 0 0 4.6ch; min-width: 4.6ch; }
  }

/* ===== from why-choose.html ===== */
  .elementor.elementor [data-id="1e15fd2"] .pic-card {
    --wc-bg: var(--neutral-100);
    --wc-ink: var(--neutral-900);
    --wc-body: var(--neutral-700);
    --wc-icon: var(--neutral-700);
    background-color: var(--wc-bg) !important;
  }
  .elementor.elementor [data-id="1e15fd2"] [data-id="8c412e9"] { --wc-bg: var(--clr-primary); --wc-ink: #fff; --wc-body: rgba(255, 255, 255, 0.85); --wc-icon: #fff; }
  .elementor.elementor [data-id="1e15fd2"] [data-id="f077c31"] { --wc-bg: var(--clr-primary-100); --wc-ink: var(--neutral-900); --wc-icon: var(--clr-primary); }
  .elementor.elementor [data-id="1e15fd2"] [data-id="6643b46"] { --wc-bg: var(--clr-accent-100); --wc-ink: var(--neutral-900); --wc-icon: var(--clr-accent-800); }
  .elementor.elementor [data-id="1e15fd2"] [data-id="278ec6e"] { --wc-bg: var(--clr-forth-100); --wc-ink: var(--neutral-900); --wc-icon: var(--clr-forth-800); }

  .elementor.elementor [data-id="1e15fd2"] .pic-card h3 {
    font-family: 'PT Serif', serif !important;
    font-weight: 400 !important;
    font-size: clamp(1.4rem, 1.7vw, 1.65rem) !important;
    line-height: 1.2 !important;
    color: var(--wc-ink) !important;
  }
  .elementor.elementor [data-id="1e15fd2"] .pic-card p { color: var(--wc-body) !important; }
  .elementor.elementor [data-id="1e15fd2"] .pic-card .elementor-icon { color: var(--wc-icon) !important; }
  .elementor.elementor [data-id="1e15fd2"] .pic-card .elementor-icon svg,
  .elementor.elementor [data-id="1e15fd2"] .pic-card .elementor-icon svg * { fill: var(--wc-icon) !important; }
  /* ---------- Services heading accent: light purple instead of red (section stays brand purple) ---------- */
  .elementor.elementor [data-id="4261a4b"] .pegasus-hero-heading-h2 span { color: var(--clr-primary-100) !important; }

  /* ---------- Services watermark: the wings, blended so they read as a soft lighter purple ---------- */
  .elementor.elementor [data-id="6d6eaec"] {
    opacity: 0.5 !important; /* tinted back: half strength */
    mix-blend-mode: screen !important;
    inset-inline-end: -14% !important; /* bleeds off the right edge */
  }
  .elementor.elementor [data-id="fdeecae"] { overflow-x: clip; } /* no sideways scroll from the bleed */

  /* ---------- Section order spacing (accreditations now sit under the testimonials) ---------- */
  .elementor.elementor [data-id="9d13264"] { padding-top: 90px !important; padding-bottom: 0 !important; }
  /* Faint divider under the logos, matching the page's other dividers (1px, neutral-300, content width) */
  .elementor.elementor [data-id="9d13264"]::after {
    content: "";
    display: block;
    align-self: center;
    width: min(95vw, 1550px);
    height: 1px;
    margin-top: clamp(80px, 9vw, 130px);
    background: var(--neutral-300);
  }
  /* About/Careers is now the last section before the footer card: no divider for the card to butt against */
  .elementor.elementor [data-id="0a92c26"] { display: none !important; }
  .elementor.elementor [data-id="88ee0f9"] { padding-bottom: clamp(48px, 6vw, 88px) !important; } /* matches the space above Careers */

  /* ---------- Testimonial tiles: same tint cycle, keyed to the slider index so loop clones match ---------- */
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item > .e-con {
    --tc-bg: var(--neutral-50);
    --tc-text: var(--neutral-900);
    --tc-name: var(--clr-primary);
    --tc-title: var(--neutral-700);
    background-color: var(--tc-bg) !important;
    transition: background-color 0.3s ease;
  }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item[data-pc-tint="0"] > .e-con {
    --tc-bg: var(--clr-primary); --tc-text: rgba(255, 255, 255, 0.92); --tc-name: var(--clr-primary-100); --tc-title: rgba(255, 255, 255, 0.72);
  }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item[data-pc-tint="1"] > .e-con {
    --tc-bg: var(--clr-primary-100);
  }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item[data-pc-tint="2"] > .e-con {
    --tc-bg: var(--clr-accent-100);
  }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item[data-pc-tint="3"] > .e-con {
    --tc-bg: var(--clr-forth-100);
  }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item > .e-con .testimonial-text { color: var(--tc-text) !important; }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item > .e-con .testimonial-name { color: var(--tc-name) !important; }
  .elementor.elementor .elementor-widget-loop-carousel .e-loop-item > .e-con .testimonial-title { color: var(--tc-title) !important; }

/* ===== from image-grade.html ===== */
  html.pc-grade {
    --pc-grade: contrast(1.04) saturate(0.86) sepia(0.07) brightness(1.03);
  }
  /* Photos: hero loop, card and section images, photo-card backgrounds, homes slider photos */
  html.pc-grade .elementor .pc-hero-slide,
  html.pc-grade .elementor .pc-par,
  html.pc-grade .elementor img:not([src$=".svg"]):not([src*=".svg?"]) {
    filter: var(--pc-grade);
  }
  /* Leave logos and decorative marks alone */
  html.pc-grade .elementor [data-id="7904ad0"] img,
  html.pc-grade .elementor [data-id="6d6eaec"],
  html.pc-grade .elementor .site-header img,
  html.pc-grade .elementor [data-id="9125685"] img,
  html.pc-grade .elementor [data-id="69ce1fe"] img {
    filter: none;
  }

/* ===== Site-wide additions (rollout) ===== */

/* ---------- Inner-page heroes (.hero-reveal) ---------- */
/* Retire the old intro (scale + rounded card) that lives in the global class */
.elementor.elementor .hero-reveal {
  animation: none !important;
  transform: none !important;
  border-radius: 0 !important;
  margin-block-start: 0 !important;
}
.elementor.elementor .hero-reveal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Photo-background heroes: full bleed, a little shorter than the homepage */
.elementor.elementor .hero-full-width-image {
  width: 100% !important;
  max-width: none !important;
  height: 82svh !important;
  min-height: 560px !important;
  max-height: none !important;
  padding: calc(var(--pc-nav-h) + 40px) 5vw clamp(64px, 12vh, 140px) !important;
  justify-content: flex-end !important;
}
/* The photo is redrawn on .pc-hero-media; the old brown overlay goes, the brand shade replaces it */
html.pc-motion .elementor.elementor .hero-full-width-image:not(.pc-hero-probe),
.elementor.elementor .hero-full-width-image.pc-hero--layered:not(.pc-hero-probe) { background-image: none !important; }
.elementor.elementor .hero-reveal:not(.hero-full-width-image) { background-image: none !important; } /* care homes: drop the flat black wash */

.elementor.elementor .hero-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--pc-hero-shade), 0.5) 0%,
    rgba(var(--pc-hero-shade), 0.12) 24%,
    rgba(var(--pc-hero-shade), 0.45) 55%,
    rgba(var(--pc-hero-shade), 0.88) 100%
  );
}
.elementor.elementor .hero-reveal > .wrapper-1550 { position: relative; z-index: 5; }
.elementor.elementor .hero-reveal .pc-hero-media { background-size: cover; }
/* Care home / job heroes: the photo widget scales and drifts like the homepage image */
.elementor.elementor .hero-reveal .pc-hero-photo { overflow: hidden; z-index: 0 !important; }
.elementor.elementor .hero-reveal .pc-hero-photo img {
  translate: 0 var(--pc-hero-py, 0px);
  transform-origin: 50% 60%;
}

/* Inner headline: white, PT Serif, accents in bold italic light purple */
.elementor.elementor .hero-reveal .pegasus-hero-heading,
.elementor.elementor .hero-reveal h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(var(--pc-hero-shade), 0.35);
}
.elementor.elementor .hero-full-width-image .pegasus-hero-heading {
  font-size: clamp(2.75rem, 5.8vw, 5.25rem);
  line-height: 1;
}
.elementor.elementor .hero-reveal .pegasus-hero-heading .pc-line,
.elementor.elementor .hero-reveal .pegasus-hero-heading .pc-line-inner { font-style: normal; font-weight: 400; color: #fff; }
.elementor.elementor .hero-reveal .pegasus-hero-heading .pc-line-inner > span {
  font-family: 'PT Serif', serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: var(--clr-primary-100);
}

/* Copy lifts and fades as you scroll away (all heroes) */
.elementor.elementor .pc-hero-copyblock {
  translate: 0 var(--pc-copy-py, 0px);
  opacity: var(--pc-copy-o, 1);
}

/* Inner intro: same sequence as the homepage, keyed off the body classes */
html.pc-motion .elementor.elementor .hero-reveal {
  clip-path: inset(7% 5% 7% 5% round 40px);
  transition: clip-path 1.4s var(--pc-ease);
}
html.pc-motion .pc-hero-in .elementor.elementor .hero-reveal { clip-path: inset(0 0 0 0 round 0px); }
html.pc-motion .elementor.elementor .hero-reveal .pc-hero-media,
html.pc-motion .elementor.elementor .hero-reveal .pc-hero-photo img {
  transform: scale(1.08);
  transition: transform 2.4s var(--pc-ease);
}
html.pc-motion .pc-hero-in .elementor.elementor .hero-reveal .pc-hero-media,
html.pc-motion .pc-hero-in .elementor.elementor .hero-reveal .pc-hero-photo img { transform: scale(1); }
/* Copy hidden until the script has split the headline (failsafe after 3s) */
html.pc-motion .elementor.elementor .hero-reveal > .wrapper-1550:not(.pc-hero-copyblock) {
  visibility: hidden;
  animation: pc-failsafe-show 0s 3s forwards;
}
/* The hidden start state applies instantly (no transition), so nothing shows and then fades out before it fades in;
   the transition only exists once the copy is told to come in */
html.pc-motion .elementor.elementor .hero-reveal .pc-hero-fade {
  opacity: 0;
  translate: 0 14px;
}
html.pc-motion .pc-hero-copy .elementor.elementor .hero-reveal .pc-hero-fade {
  opacity: 1;
  translate: none;
  transition: opacity 0.9s var(--pc-ease) var(--pc-hd, 0.35s), translate 0.9s var(--pc-ease) var(--pc-hd, 0.35s);
}

@media (max-width: 1024px) {
  .elementor.elementor .hero-full-width-image { height: 70svh !important; min-height: 480px !important; }
}
@media (max-width: 767px) {
  .elementor.elementor .hero-full-width-image {
    height: 78svh !important;
    min-height: 520px !important;
    padding: calc(var(--pc-nav-h) + 24px) 20px 48px !important;
  }
  .elementor.elementor .hero-full-width-image .pegasus-hero-heading { font-size: clamp(2.4rem, 11vw, 3rem); }
}

/* ---------- Title-only heroes (Care & support, About, Contact): about 60% of the screen so the page starts above the fold.
   Heroes with a search or main action (Home, Our Homes, Careers, home pages) stay full height. ---------- */
:is(body.page-id-961, body.page-id-1695, body.page-id-1121) .elementor.elementor .hero-full-width-image {
  height: 60svh !important;
  min-height: 460px !important;
  padding-bottom: clamp(48px, 9vh, 100px) !important;
}
@media (max-width: 1024px) {
  :is(body.page-id-961, body.page-id-1695, body.page-id-1121) .elementor.elementor .hero-full-width-image { height: 55svh !important; min-height: 420px !important; }
}
@media (max-width: 767px) {
  :is(body.page-id-961, body.page-id-1695, body.page-id-1121) .elementor.elementor .hero-full-width-image { height: 55svh !important; min-height: 400px !important; padding-bottom: 40px !important; }
}

/* Hero intro lines are set to 40% wide for desktop; give them a readable measure on tablets */
@media (max-width: 1024px) {
  .elementor.elementor :is([data-id="155d0f3"], [data-id="a91f3c7"]) { width: min(560px, 100%) !important; max-width: 100% !important; }
}

/* ---------- Pages with no hero (legal, jobs without a photo): solid nav, content clears it ---------- */
body:not(:has(.hero-reveal, [data-id="e7e7b6a"])) .elementor.elementor .site-header [data-id="0576927"],
.pc-nohero .elementor.elementor .site-header [data-id="0576927"] {
  background-color: #fff !important;
  box-shadow: 0 1px 2px rgba(var(--pc-hero-shade), 0.06), 0 12px 32px rgba(var(--pc-hero-shade), 0.12);
}

/* Photo grade on inner hero layers too */
html.pc-grade .elementor .pc-hero-media { filter: var(--pc-grade); }

/* Accents on dark sections read in light purple, not coral */
.elementor.elementor .pegasus-hero-heading-h2.pc-on-dark > span { color: var(--clr-primary-100) !important; }

/* Theme-rendered pages with no hero (404, search): clear the fixed nav */
body.error404 main, body.search main { padding-top: calc(var(--pc-nav-h, 113px) + 32px); }
body.error404 main { padding-bottom: 120px; }

/* ---------- Hero headlines and intro copy (all heroes) ---------- */
/* Accent part sits on the same line as the rest when it fits ("Our Care Homes") */
.elementor.elementor :is(.hero-reveal, [data-id="e7e7b6a"]) .pegasus-hero-heading .pc-line-inner > span { display: inline; }
/* Intro: larger, white, held to a comfortable measure */
.elementor.elementor :is(.hero-reveal, [data-id="e7e7b6a"]) :is(.intro-copy, [data-id="796ed6b"]) {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem) !important;
  line-height: 1.5 !important;
  color: #fff !important;
  max-width: 58ch !important;
  margin-inline: auto !important;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .elementor.elementor :is(.hero-reveal, [data-id="e7e7b6a"]) :is(.intro-copy, [data-id="796ed6b"]) { font-size: 1.05rem !important; }
}
/* Headline: words wrap freely; the widget may use the full hero width; lines are balanced */
.elementor.elementor :is(.hero-reveal, [data-id="e7e7b6a"]) .pegasus-hero-heading { text-wrap: balance; }
.elementor.elementor :is(.hero-reveal, [data-id="e7e7b6a"]) .pegasus-hero-heading .pc-line { margin-right: -0.04em; }
.elementor.elementor .hero-reveal .elementor-widget-html:has(.pegasus-hero-heading) { width: min(100%, 1100px) !important; max-width: none !important; }
.elementor.elementor .hero-reveal .pegasus-hero-heading { max-width: 13em; margin-inline: auto; }

/* ===================== Component rules (site-wide, from the Careers review) ===================== */

/* ---------- Icon cards (pic-card with an icon, no photo): Lee's tint cycle, serif headings ---------- */
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)) {
  --wc-bg: var(--neutral-100);
  --wc-ink: var(--neutral-900);
  --wc-body: var(--neutral-700);
  --wc-icon: var(--neutral-700);
  background-color: var(--wc-bg) !important;
}
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)):nth-child(4n+1 of .pic-card) { --wc-bg: var(--clr-primary); --wc-ink: #fff; --wc-body: rgba(255, 255, 255, 0.85); --wc-icon: #fff; }
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)):nth-child(4n+2 of .pic-card) { --wc-bg: var(--clr-primary-100); --wc-icon: var(--clr-primary); }
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)):nth-child(4n+3 of .pic-card) { --wc-bg: var(--clr-accent-100); --wc-icon: var(--clr-accent-800); }
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)):nth-child(4n+4 of .pic-card) { --wc-bg: var(--clr-forth-100); --wc-icon: var(--clr-forth-800); }
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)) :is(h2, h3, h4) {
  font-family: 'PT Serif', serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.4rem, 1.7vw, 1.65rem) !important;
  line-height: 1.2 !important;
  color: var(--wc-ink) !important;
}
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)) p { color: var(--wc-body) !important; }
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)) .elementor-icon { color: var(--wc-icon) !important; }
.elementor.elementor .pic-card:has(.elementor-widget-icon):not(:has(img)) .elementor-icon :is(svg, svg *) { fill: var(--wc-icon) !important; }

/* ---------- Card carousels (n-carousel): serif titles, held inside the page width (no bleed) ---------- */
.elementor.elementor .elementor-widget-n-carousel .swiper-slide :is(h3, h4).heading-h3 {
  font-family: 'PT Serif', serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.4rem, 1.7vw, 1.65rem) !important;
  line-height: 1.2 !important;
}
.elementor.elementor .e-con:has(> .elementor-widget-n-carousel) {
  padding-inline: max(2.5vw, calc((100% - 1550px) / 2)) !important;
}
.elementor.elementor .elementor-widget-n-carousel { width: 100% !important; max-width: 100% !important; }
@media (max-width: 1024px) {
  .elementor.elementor .e-con:has(> .elementor-widget-n-carousel) { padding-inline: 5vw !important; }
}

/* ---------- Copy + image rows: square image, centred against the copy (most sections have short copy) ---------- */
.elementor.elementor .wrapper-1550:has(> .e-con > .elementor-widget-image):has(> .e-con > .sub-heading-light) { align-items: center !important; }
.elementor.elementor .wrapper-1550:has(> .e-con > .sub-heading-light) > .e-con > .elementor-widget-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (max-width: 767px) {
  .elementor.elementor .wrapper-1550:has(> .e-con > .sub-heading-light) > .e-con > .elementor-widget-image img { aspect-ratio: 4 / 3; }
}

/* ---------- Coral (forth) text never sits on grey: the script swaps it, by background ---------- */
.elementor.elementor .pc-coral-on-dark { color: var(--clr-primary-100) !important; }
.elementor.elementor .pc-coral-on-light { color: var(--clr-primary) !important; }

/* Framed photos that filled their box keep filling it */
.pc-media.pc-media--fill { height: 100%; }
.pc-media.pc-media--fill > img { height: 100% !important; object-fit: cover; }

/* ---------- Home cards (Our Homes listing): the photo fills the whole card under a brand-purple fade; white copy sits
   straight on the image; "View care home" is a frosted purple bar. Cards keep 3:4 but grow if the copy needs it,
   always leaving some clear photo above the text. ---------- */
body .pegasus-homes-grid > * { min-width: 0; }
/* Every row the same height as the tallest card, so cards never go out of step on smaller screens */
body .pegasus-homes-grid { grid-auto-rows: 1fr !important; align-items: stretch !important; }
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 7 / 10; /* a little taller than 3:4 */
  align-self: stretch !important; /* fill the row, which is set by the tallest card */
  height: 100%;
  min-height: auto;
  overflow: clip !important; /* rounds the corners but lets the card grow to fit */
  min-width: 0;
  max-width: 100%;
  width: 100%;
  isolation: isolate;
  /* each home's own colour from the plugin (card_colour); brand teal homes use deep teal, as on the homepage */
  --pc-home: var(--phc-panel-bg, var(--clr-primary));
  background: color-mix(in srgb, var(--pc-home) 70%, #000) !important;
  box-shadow: 0 18px 40px rgba(31, 22, 51, 0.18) !important;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card[data-card-colour="phs-accent"] { --pc-home: #315F64; }
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card[data-card-colour="phs-accent-bright"] { --pc-home: var(--clr-accent, #53A9BA); }
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card::before {
  /* clear photo always left above the copy */
  content: "";
  display: block;
  flex: 1 0 var(--pc-card-photo-min, 170px);
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__media > :is(img, .pc-media) {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__media img {
  object-fit: cover;
  object-position: 50% 40%;
  transition: scale 0.9s var(--pc-ease, ease);
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card:hover .pegasus-home-card__media img { scale: 1.05; }
/* Purple wash over the whole photo, deepening behind the copy */
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--pc-home) 12%, transparent) 0%,
    color-mix(in srgb, var(--pc-home) 8%, transparent) 30%,
    color-mix(in srgb, color-mix(in srgb, var(--pc-home) 85%, #000) 55%, transparent) 55%,
    color-mix(in srgb, color-mix(in srgb, var(--pc-home) 78%, #000) 88%, transparent) 78%,
    color-mix(in srgb, color-mix(in srgb, var(--pc-home) 70%, #000) 95%, transparent) 100%
  );
}
/* Copy straight on the photo */
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__panel {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  margin: 0 !important;
  padding: 0 clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__title {
  font-family: 'PT Serif', serif !important;
  font-weight: 400 !important;
  font-size: clamp(1.5rem, 1.9vw, 1.85rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
  text-shadow: 0 2px 18px rgba(31, 22, 51, 0.35);
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__title a { color: #fff !important; text-decoration: none !important; }
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__address {
  color: #fff !important;
  font-size: 0.8rem !important;
  margin: 0 0 16px !important;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__excerpt {
  color: #fff !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  margin: 0 0 26px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}
/* Frosted purple bar with an arrow */
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__btn--primary {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  background: var(--clr-accent, #53A9BA) !important; /* brand teal, same as the hero Search button */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 0 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__btn--primary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate 0.3s var(--pc-ease, ease);
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__btn--primary:is(:hover, :focus-visible) {
  background: var(--clr-accent-500, #77BAC6) !important;
}
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__btn--primary:hover::after { translate: 4px 0; }
/* No contact link on these cards: the card leads to the home page */
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card__btn--secondary { display: none !important; }
body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
  body :is(.pegasus-homes-grid, .phc-wrap--cards) .pegasus-home-card { --pc-card-photo-min: 150px; }
}

/* ---------- Heroes that hold the homes search (Our Homes): full height, search card under the intro ---------- */
.elementor.elementor .hero-full-width-image:has(.pegasus-homes-filters) {
  height: auto !important;
  min-height: 100svh !important;
  max-height: none !important;
  padding-bottom: clamp(40px, 8vh, 96px) !important;
}
.elementor.elementor .hero-reveal .e-con:has(> .elementor-widget-shortcode .pegasus-homes-filters) {
  width: min(1100px, 100%) !important;
  max-width: 100% !important;
  margin-top: clamp(16px, 3.5vh, 40px);
  padding: 0 !important;
  background: transparent !important; /* it was the white panel in the old results section */
  box-shadow: none !important;
  border: 0 !important;
}
.elementor.elementor .hero-reveal .elementor-widget-shortcode:has(.pegasus-homes-filters) { width: 100% !important; }
/* Search sits straight on the photo: no card, see-through fields with white lines and text, brand-teal Search */
.elementor.elementor .hero-reveal .pegasus-homes-filters {
  text-align: left;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters :is(.pegasus-homes-filters__label, .pegasus-homes-filters__legend) { color: #fff !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters :is(.pegasus-homes-filters__input, .pegasus-homes-filters__select) {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__input::placeholder { color: rgba(255, 255, 255, 0.8) !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters :is(.pegasus-homes-filters__input, .pegasus-homes-filters__select):is(:hover, :focus) {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__select,
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__select:is(:hover, :active, :focus, :focus-visible) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23ffffff' d='M6 8L0 0h12z'/></svg>") !important;
}
/* The open list is drawn by the browser on white, so its options stay dark */
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__select option { color: #1F1633; background: #fff; }
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__geo {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__geo:hover:not(:disabled),
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__geo.is-active {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #fff !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__button {
  background: var(--clr-accent) !important;
  color: #fff !important;
  border: 0 !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__button:is(:hover, :focus-visible) { background: var(--clr-accent-500) !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters :is(.pegasus-homes-filters__status, .pegasus-homes-filters__reset) {
  color: #fff !important;
  background: transparent !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__reset { text-decoration-color: rgba(255, 255, 255, 0.5) !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters__attribution { display: none; }

/* Hero search: chunkier fields; no home count, and "Clear filters" only once something is filtered */
.elementor.elementor .hero-reveal .pegasus-homes-filters :is(.pegasus-homes-filters__input, .pegasus-homes-filters__select, .pegasus-homes-filters__button) {
  height: 66px !important;
  font-size: 1.05rem !important;
}
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__button { padding-inline: 2rem !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__geo { width: 46px !important; height: 46px !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__status { display: none !important; }
.elementor.elementor .hero-reveal .pegasus-homes-filters .pegasus-homes-filters__reset[hidden] { display: none !important; }

/* ---------- Homepage homes carousel, card version ([pegasus_homes_carousel card="grid"]): the Our Homes cards,
   3 across the content column exactly as on the listing, with the 4th peeking into the right margin ---------- */
.phc-wrap.phc-wrap--cards {
  --pc-col: min(95vw, 1550px);
  --phc-offset: max(2.5vw, calc((100vw - 1550px) / 2)) !important; /* line up with the content column */
  --phc-slide-gap: 32px;
  /* three whole cards plus ~40% of the 4th, measured from the content edge to the right of the screen */
  --phc-slide-w: calc((100vw - var(--phc-offset) - 3 * var(--phc-slide-gap)) / 3.4);
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* The section around the carousel pads its left side; drop that so the strip starts at the screen edge and the
   track's own offset lines the first card up with the heading */
.elementor.elementor .e-con:has(> .elementor-widget-shortcode .phc-wrap--cards) { padding-inline: 0 !important; }
.phc-wrap--cards .phc-track {
  gap: var(--phc-slide-gap) !important;
  padding: 0.5rem 0 2.5rem var(--phc-offset) !important; /* first card starts on the content column */
  scroll-padding-left: var(--phc-offset);
  height: auto !important; /* the plugin fixes the old slides at 680px on small screens */
}
.phc-wrap--cards .phc-slide.phc-slide--card { height: auto !important; }
.phc-wrap--cards .phc-slide.phc-slide--card {
  flex: 0 0 var(--phc-slide-w) !important;
  max-width: var(--phc-slide-w) !important;
  width: var(--phc-slide-w) !important;
  display: flex !important;
  flex-direction: column !important;
  aspect-ratio: auto !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}
.phc-wrap--cards .phc-slide.phc-slide--card:hover { box-shadow: none !important; }
.phc-wrap--cards .phc-slide--card > .pegasus-home-card { flex: 1 1 auto; height: auto !important; }
@media (max-width: 1024px) {
  .phc-wrap.phc-wrap--cards {
    --pc-col: 90vw;
    --phc-offset: 5vw !important;
    --phc-slide-w: calc((100vw - var(--phc-offset) - 2 * var(--phc-slide-gap)) / 2.4);
  }
}
@media (max-width: 767px) {
  .phc-wrap.phc-wrap--cards { --phc-slide-gap: 16px; --phc-slide-w: calc((100vw - var(--phc-offset) - var(--phc-slide-gap)) / 1.15); }
}

/* Logos (CQC, accreditation, partner marks) are never photo-graded */
html.pc-grade .elementor :is(img[src*="logo" i], img[src*="cqc" i]) { filter: none !important; }

/* ---------- Home pages: At a glance ([pegasus_home_glance]) ---------- */
.pcg { width: 100%; box-sizing: border-box; background: #fff; border-radius: var(--border-radius-medium, 20px); padding: clamp(24px, 3vw, 44px); display: grid; gap: clamp(22px, 2.5vw, 32px); box-shadow: 0 1px 2px rgba(31, 22, 51, 0.04); }
.pcg__eyebrow { font: 600 0.75rem/1.4 Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-primary); }
.elementor .pcg .pcg__title { font-family: 'PT Serif', serif; font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.15; color: var(--neutral-900); margin: 6px 0 0; }
.pcg__lead { font: 400 clamp(1rem, 1.2vw, 1.12rem)/1.6 Inter, sans-serif; color: var(--neutral-700); max-width: 68ch; margin: 14px 0 0; }
.pcg__rule { height: 1px; background: var(--neutral-100, #E3E7EC); }
.pcg__feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.pcg__feat { display: flex; gap: 14px; align-items: center; font: 400 0.98rem/1.4 Inter, sans-serif; color: var(--neutral-900); }
.pcg__feat[hidden] { display: none; }
.pcg__feat svg { flex: none; width: 24px; height: 24px; color: var(--clr-primary); }
.pcg__feat strong { font-weight: 600; }
.pcg .pcg__more { justify-self: start; font: 600 0.95rem Inter, sans-serif !important; color: var(--clr-primary) !important; background: transparent !important; border: 1.5px solid var(--clr-primary) !important; border-radius: 999px !important; padding: 12px 22px !important; cursor: pointer; box-shadow: none !important; text-transform: none !important; transition: background-color 0.25s ease, color 0.25s ease; }
.pcg .pcg__more:is(:hover, :focus, :active) { background: var(--clr-primary) !important; color: #fff !important; border-color: var(--clr-primary) !important; }
.pcg .pcg__more:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 3px; }
@media (max-width: 1024px) { .pcg__feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pcg__feats { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Home pages: live CQC rating in the side card ([pegasus_cqc_rating]) ---------- */
.elementor.elementor .e-con:has(> .elementor-widget-shortcode .pcq) { gap: 4px !important; }
.pcq { display: grid; gap: 4px; }
.pcq p { margin: 0; }
.pcq__eyebrow { font: 600 0.6rem/1.4 Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.pcq__rating { display: flex; align-items: center; gap: 8px; font: 600 1.05rem/1.25 Inter, sans-serif; color: #fff; }
.pcq__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #9AA5AE; }
.pcq__dot--outstanding { background: #3BB273; }
.pcq__dot--good { background: #7BC66A; }
.pcq__dot--requires-improvement { background: #F2A93B; }
.pcq__dot--inadequate { background: #E8574A; }
.pcq__meta { font: 400 0.78rem/1.4 Inter, sans-serif; color: rgba(255, 255, 255, 0.75); }
.pcq__meta a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.pcq__meta a:hover { text-decoration-color: #fff; }
.pcq__arrow { font-size: 0.7em; margin-left: 2px; vertical-align: 0.12em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1024px) { .pcq__sep { display: none; } .pcq__meta a { display: block; margin-top: 2px; } }
/* No CQC location ID on a home: hide the whole badge row, logo included */
.elementor.elementor [data-id="15c1f15"]:not(:has(.pcq)) { display: none !important; }
.elementor.elementor .elementor-widget-shortcode:has(.pcg) { width: 100% !important; max-width: 100% !important; flex: 1 1 100%; }

/* ---------- Homepage hero search: see-through with white lines and text, like the Our Homes hero; teal button ---------- */
.elementor.elementor [data-id="63d1867"] .phs-quick-search__form {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.elementor.elementor [data-id="63d1867"] .phs-quick-search__form:focus-within { background: rgba(255, 255, 255, 0.16) !important; border-color: #fff !important; }
.elementor.elementor [data-id="63d1867"] :is(.phs-quick-search__input-wrap, .phs-quick-search__input) { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.elementor.elementor [data-id="63d1867"] .phs-quick-search__input { color: #fff !important; }
.elementor.elementor [data-id="63d1867"] .phs-quick-search__input::placeholder { color: rgba(255, 255, 255, 0.82) !important; opacity: 1; }
.elementor.elementor [data-id="63d1867"] :is(.phs-quick-search__icon, .phs-quick-search__geo) { color: #fff !important; background: transparent !important; }
.elementor.elementor [data-id="63d1867"] .phs-quick-search__geo:hover { color: #fff !important; background: rgba(255, 255, 255, 0.18) !important; }

/* ---------- Hero routes: "Explore our services" as a plain text link with its arrow; phone icon on the call link ---------- */
.elementor.elementor [data-id="70c16a0e"] {
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.elementor.elementor [data-id="70c16a0e"]:is(:hover, :focus-visible) { background: none !important; color: #fff !important; }
.elementor.elementor [data-id="70c16a0e"]:is(:hover, :focus-visible) p { text-decoration: underline; text-underline-offset: 4px; }
.elementor.elementor [data-id="3cd540ff"] { display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important; }
.elementor.elementor [data-id="3cd540ff"]::before {
  content: "";
  position: static !important; /* Elementor uses ::before for overlays (absolute); keep the icon in the line */
  inset: auto !important;
  display: block !important;
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Homepage hero search entrance (see-through version): a calm fade and rise, no clip mask.
   The old "pill opens from the middle" mask cut through the white border and the blur as it animated. ---------- */
html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form {
  clip-path: none !important;
  opacity: 0;
  translate: 0 16px;
  scale: 0.985;
  transition: opacity 0.9s var(--pc-ease) 0.45s, translate 1.1s var(--pc-ease) 0.45s, scale 1.1s var(--pc-ease) 0.45s !important;
}
html.pc-motion .pc-hero-copy .elementor.elementor [data-id="63d1867"] .phs-quick-search__form {
  clip-path: none !important;
  opacity: 1;
  translate: none;
  scale: 1;
}
/* Contents arrive with the box rather than after it */
html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form > * { transition: opacity 0.7s ease 0.6s !important; }
html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form > .phs-quick-search__btn {
  translate: none !important;
  transition: background 0.2s, opacity 0.7s ease 0.6s !important;
}
@media (max-width: 480px) {
  html.pc-motion .elementor.elementor [data-id="63d1867"] .phs-quick-search__form,
  html.pc-motion .pc-hero-copy .elementor.elementor [data-id="63d1867"] .phs-quick-search__form { clip-path: none !important; }
}

/* ---------- CQC rating pill on home cards (top right of the photo) ---------- */
.pegasus-home-card__media .pcq-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 10px;
  border-radius: 999px;
  background: rgba(20, 16, 35, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 600 0.74rem/1 Inter, sans-serif;
  pointer-events: none;
  white-space: nowrap;
}
.pcq-pill__by { font-weight: 600; font-size: 0.62rem; letter-spacing: 0.1em; opacity: 0.8; padding-right: 7px; border-right: 1px solid rgba(255, 255, 255, 0.3); }
.pcq-pill .pcq__dot { width: 8px; height: 8px; }

/* ---------- Footer: regulated by CQC, under the Pegasus logo ---------- */
.pcq-reg { display: flex; align-items: center; gap: 14px; margin-top: 22px; max-width: 340px; text-decoration: none !important; color: rgba(255, 255, 255, 0.75) !important; }
.pcq-reg__logo { flex: none; width: 96px; height: auto; filter: none !important; }
.pcq-reg__text { font: 400 0.78rem/1.45 Inter, sans-serif; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.pcq-reg__link { display: block; margin-top: 3px; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.pcq-reg:hover .pcq-reg__link { text-decoration-color: #fff; }
@media (max-width: 1024px) { .pcq-reg { margin-top: 16px; } }
/* Careers hero search on phones: pair the two short dropdowns so Search stays near the first screen */
@media (max-width: 640px) {
  .elementor.elementor .hero-reveal .pegasus-jobs-filters .pegasus-homes-filters__row--main {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-flow: row dense;
    gap: 10px 12px !important;
  }
  .elementor.elementor .hero-reveal .pegasus-jobs-filters :is(.pegasus-homes-filters__field--location, .pegasus-homes-filters__field--submit) { grid-column: 1 / -1 !important; }
  .elementor.elementor .hero-reveal .pegasus-jobs-filters .pegasus-homes-filters__field:has([name="job_family"]) { grid-column: 1 / -1 !important; }
  .elementor.elementor .hero-reveal .pegasus-homes-filters :is(.pegasus-homes-filters__input, .pegasus-homes-filters__select, .pegasus-homes-filters__button) { height: 56px !important; font-size: 1rem !important; }
}

/* ---------- 50/50 copy box + photo rows (Our Services "The Pegasus way", About, home pages): on small laptops
   trim the box padding and ease the headline down so it keeps to three lines instead of orphaning a word ---------- */
@media (min-width: 1025px) and (max-width: 1365px) {
  .elementor.elementor :is([data-id="ef313af"], [data-id="b5fe01c"], [data-id="219632f"]) { padding: 40px; }
  .elementor.elementor :is([data-id="ef313af"], [data-id="b5fe01c"], [data-id="219632f"]) :is(h1, h2, h3) { font-size: clamp(2.25rem, 3.75vw, 3rem); }
}

/* ---------- Search-in-hero pages (Our Homes, Careers): the results follow the hero with the same gap ---------- */
.elementor.elementor :is([data-id="adcc85e"], [data-id="82c8c14"]) { padding-top: clamp(40px, 6vw, 88px); }

/* ---------- Vacancy counter above the jobs grid (italic serif, numbers in bold italic) ---------- */
.pc-jobs-count { margin: 0 0 clamp(20px, 2.4vw, 32px); font: italic 400 clamp(1.25rem, 1.6vw, 1.6rem)/1.3 "PT Serif", Georgia, serif; color: var(--clr-primary); }
.pc-jobs-count b { font-weight: 700; }

/* ---------- Homepage service cards: descriptions in the brand slate too, matching the titles ---------- */
.elementor.elementor [data-id="09cb7d9"] .pic-card > .e-con > p:not(.text-button) { color: var(--clr-secondary); }

/* ===== Homepage values: five coloured boxes, one row on desktop; icons shared with About ===== */
.pc-values { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3vw, 44px); width: 100%; }
.pc-values__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pc-values__card {
  --wc-bg: var(--clr-primary-100);
  --wc-ink: var(--neutral-900);
  --wc-body: var(--neutral-700);
  --wc-icon: var(--clr-primary);
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2vw, 32px) clamp(18px, 1.6vw, 28px) clamp(26px, 2.2vw, 36px);
  border-radius: 20px;
  background: var(--wc-bg);
}
.pc-values__card:nth-child(1) { --wc-bg: var(--clr-primary); --wc-ink: #fff; --wc-body: rgba(255, 255, 255, 0.85); --wc-icon: var(--clr-primary-100); }
.pc-values__card:nth-child(3) { --wc-bg: var(--clr-accent-100); --wc-icon: var(--clr-accent-800); }
.pc-values__card:nth-child(4) { --wc-bg: var(--clr-forth-100); --wc-icon: var(--clr-forth-800); }
.pc-values__card:nth-child(5) { --wc-bg: var(--clr-secondary); --wc-ink: #fff; --wc-body: rgba(255, 255, 255, 0.85); --wc-icon: var(--neutral-100); }
.pc-values__icon { color: var(--wc-icon); line-height: 0; }
.pc-values__icon svg { width: 40px; height: 40px; }
.elementor.elementor .pc-values__name {
  margin: clamp(28px, 3vw, 48px) 0 10px;
  font: 400 clamp(1.3rem, 1.55vw, 1.6rem)/1.2 "PT Serif", Georgia, serif;
  color: var(--wc-ink) !important;
  overflow-wrap: anywhere;
}
.pc-values__initial { font-style: italic; font-weight: 700; color: var(--wc-icon); }
.pc-values__text { margin: 0; color: var(--wc-body); line-height: 1.55; font-size: 0.95rem; }
.pc-values__more {
  font-family: var(--font-primary), sans-serif;
  font-weight: 500;
  color: var(--clr-primary) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.pc-values__more:hover { text-decoration-thickness: 2px; }
.pc-values__more:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 4px; border-radius: 2px; }

/* Tablet: 2 + 2, with Transformation across the bottom; phones stack */
@media (max-width: 1024px) {
  .pc-values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-values__card:nth-child(5) { grid-column: 1 / -1; }
  .elementor.elementor .pc-values__name { margin-top: 24px; }
}
@media (max-width: 600px) {
  .pc-values__list { grid-template-columns: 1fr; }
}

/* Homepage: About card removed (values now on the page), so Careers spans the row */
.elementor.elementor [data-id="e9e556f"] [data-id="f842eea"] { grid-column: 1 / -1; width: 100% !important; max-width: none !important; }
/* The grid kept an empty row where About was (phones stack the cards into rows) */
.elementor.elementor [data-id="e9e556f"] > .e-con-inner { grid-template-rows: auto !important; grid-auto-rows: auto !important; }
@media (min-width: 768px) { .elementor.elementor [data-id="e9e556f"] [data-id="f842eea"] { min-height: clamp(560px, 44vw, 680px) !important; } }
.elementor.elementor [data-id="e9e556f"] [data-id="a49be48"] { max-width: 620px !important; }

/* ===== About: HEART values. Heading pinned in the left third while the five values scroll past on the right;
   icon tiles use the homepage box colours ===== */
#our-values { scroll-margin-top: 140px; }
@media (min-width: 1025px) {
  .elementor.elementor [data-id="5c05633"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(48px, 6vw, 112px);
    align-items: start;
  }
  .elementor.elementor [data-id="99fcc64"] { position: sticky; top: 140px; }
}
/* body { overflow-x: hidden } (theme + search plugin) turns the body into a scroll box, which stops sticky
   from working. clip trims sideways overflow the same way without that side effect (older Safari keeps hidden). */
body, body:has(.phc-wrap, .ptc-wrap, .phg-wrap) { overflow-x: hidden !important; overflow-x: clip !important; }
/* Values section: bottom padding mirrors the top (the list used to sit in its own padded section) */
.elementor.elementor [data-id="d32c7dc"] { padding-bottom: 120px !important; }
@media (max-width: 1024px) { .elementor.elementor [data-id="d32c7dc"] { padding-bottom: 60px !important; } }
@media (max-width: 767px) { .elementor.elementor [data-id="d32c7dc"] { padding-bottom: 50px !important; } }
.pc-heart { width: 100%; margin: 0; padding: 0; list-style: none; }
.pc-heart__item {
  --v-bg: var(--clr-primary-100);
  --v-icon: var(--clr-primary);
  --v-ink: var(--clr-primary);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: clamp(20px, 2.4vw, 36px);
  row-gap: 8px;
  padding: clamp(24px, 2.6vw, 36px) 0;
  border-top: 1px solid rgba(66, 45, 109, 0.16);
}
.pc-heart__item:first-child { border-top: 0; padding-top: 0; }
.pc-heart__item:nth-child(1) { --v-bg: var(--clr-primary); --v-icon: #fff; --v-ink: var(--clr-primary); }
.pc-heart__item:nth-child(3) { --v-bg: var(--clr-accent-100); --v-icon: var(--clr-accent-800); --v-ink: var(--clr-accent-800); }
.pc-heart__item:nth-child(4) { --v-bg: var(--clr-forth-100); --v-icon: var(--clr-forth-800); --v-ink: var(--clr-forth-800); }
.pc-heart__item:nth-child(5) { --v-bg: var(--clr-secondary); --v-icon: #fff; --v-ink: var(--clr-secondary); }
.pc-heart__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--v-bg);
  color: var(--v-icon);
}
.pc-heart__icon svg { width: 34px; height: 34px; }
.elementor.elementor .pc-heart__name {
  align-self: end;
  margin: 0;
  font: 400 clamp(1.5rem, 2vw, 2rem)/1.15 "PT Serif", Georgia, serif;
  color: var(--clr-secondary);
}
.pc-heart__initial { font-style: italic; font-weight: 700; color: var(--v-ink); }
.pc-heart__text { margin: 0; max-width: 64ch; color: var(--neutral-700); line-height: 1.6; }

/* Tablet and phone: heading above the values */
@media (max-width: 1024px) {
  .elementor.elementor [data-id="5c05633"] { flex-direction: column !important; align-items: stretch !important; gap: clamp(36px, 6vw, 56px) !important; }
  .elementor.elementor [data-id="99fcc64"] { width: 100% !important; max-width: none !important; }
}
@media (max-width: 767px) {
  .pc-heart__item { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; row-gap: 12px; }
  .pc-heart__icon { grid-row: auto; width: 52px; height: 52px; border-radius: 14px; }
  .pc-heart__icon svg { width: 28px; height: 28px; }
  .elementor.elementor .pc-heart__name { align-self: center; }
  .pc-heart__text { grid-column: 1 / -1; }
}
.elementor.elementor [data-id="86682c6"] { max-width: 64ch; }
.elementor.elementor [data-id="7ae1d19"] a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 0.2em; }

/* ===== HERO TRIAL (25 Nov, Sammy's 16 Nov ask): three buttons replace the postcode search and phone line.
   To go back to the search: delete this whole block, and remove the c4e8a2f HTML widget from the hero
   (backup of the page before the change: ~/claude-backups/HERO-WITH-SEARCH-home-1984-20261125-141953.json). ===== */
.elementor.elementor [data-id="7f98304"],
.elementor.elementor [data-id="75b2ef01"] { display: none !important; }
.elementor.elementor [data-id="6d8fed2"] { gap: clamp(40px, 5vw, 64px) !important; }
.pc-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.elementor.elementor .pc-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff !important;
  font: 500 1rem/1 var(--font-primary), sans-serif;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.elementor.elementor .pc-hero-cta--main { background: #fff; border-color: #fff; color: var(--clr-primary) !important; }
.elementor.elementor .pc-hero-cta:hover,
.elementor.elementor .pc-hero-cta:focus-visible { background: #fff; border-color: #fff; color: var(--clr-primary) !important; }
.elementor.elementor .pc-hero-cta--main:hover,
.elementor.elementor .pc-hero-cta--main:focus-visible { background: var(--clr-primary-100); border-color: var(--clr-primary-100); }
.elementor.elementor .pc-hero-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html.pc-motion .elementor.elementor [data-id="c4e8a2f"] {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.8s var(--pc-ease) 0.9s, translate 0.8s var(--pc-ease) 0.9s;
}
html.pc-motion .pc-hero-copy .elementor.elementor [data-id="c4e8a2f"] { opacity: 1; translate: none; }
@media (max-width: 767px) {
  .elementor.elementor [data-id="c4e8a2f"] { width: 100% !important; }
  .pc-hero-ctas { flex-direction: column; align-items: stretch; width: min(320px, 100%); margin-inline: auto; gap: 12px; }
}
/* ===== end HERO TRIAL ===== */

/* Values section: no divider lines above or below it; subline tucked under the headline, more room before the boxes */
.elementor.elementor [data-id="9d13264"]::after { background: transparent; }
.elementor.elementor [data-id="32d822b"] { display: none !important; }
.elementor.elementor [data-id="4aa997f"] { margin-top: -21px !important; }
@media (max-width: 767px) { .elementor.elementor [data-id="4aa997f"] { margin-top: -16px !important; } }
.elementor.elementor [data-id="a7c3e51"] { margin-top: clamp(24px, 3.1vw, 46px) !important; }
/* The divider was what spaced Careers off the values panel; keep that room without the line */
.elementor.elementor [data-id="88ee0f9"] { padding-top: clamp(48px, 6vw, 88px) !important; }
