@import url("./photo-edges.css");

/* A light refinement of the existing interior layouts; homepage unchanged. */
.hc-interior .page-heading { padding-top:44px; padding-bottom:34px; }
.hc-interior .page-heading .hero-tagline { display:none; }
.hc-interior .page-heading h1 { margin:0; max-width:1050px; font-size:clamp(2.5rem,4.5vw,4rem); line-height:1.12; text-wrap:balance; }
.hc-interior .page-heading h1::after { content:""; display:block; width:56px; height:3px; margin-top:20px; background:#83c341; border-radius:3px; }
.hc-interior .page-nav { margin-top:28px; flex-wrap:wrap; }
.hc-interior .service-nav { gap:16px 28px; padding-block:18px; }
.hc-interior .service-nav a { padding-block:10px; }
.hc-interior .profile-back { padding-top:26px; padding-bottom:0; }
.hc-interior .profile-back+.page-heading { padding-top:24px; }
.hc-interior .button { border-radius:10px; min-height:50px; white-space:normal; text-align:center; }
.hc-interior .button-green { color:#fff; background:linear-gradient(135deg,#005b8c,#006da3); }
.hc-interior .button-green:hover { background:#004f79; }
.hc-interior .about-intro { gap:52px; }
.hc-interior .about-links { flex-wrap:wrap; gap:20px 36px; }
.hc-interior .about-links a { min-height:44px; max-width:100%; }
.hc-interior :is(.approach-card,.story-card,.staff-quote,.professional-quote,.contact-feedback) { border-radius:14px; }
.hc-interior .service-rows { padding-top:30px; }
.hc-interior .icon-service .service-row { gap:42px; }
.hc-interior .opportunity-row { padding-block:38px; }
.hc-interior .training-feature { padding-top:24px; }
.hc-interior .long-profile { gap:52px; }
.hc-interior .long-profile .original-copy { max-width:72ch; }
.hc-interior .person-card a[href^='mailto:'] { overflow-wrap:anywhere; }
.hc-interior .careers-intro .button { min-width:210px; min-height:58px; }
.hc-interior .contact-blue { border-radius:14px; }
.hc-interior .contact-blue a { overflow-wrap:anywhere; }
.hc-interior .contact-documents { gap:28px; }
@media(max-width:900px) {
 .hc-interior :is(.about-intro,.long-profile) { gap:35px; }
 .hc-interior .icon-service .service-row { gap:28px; }
}
@media(max-width:600px) {
 .hc-interior .page-heading { padding-top:30px; padding-bottom:28px; }
 .hc-interior .page-heading h1 { font-size:2.35rem; }
 .hc-interior .page-heading h1::after { width:46px; margin-top:17px; }
 .hc-interior .page-nav { margin-top:24px; }
 .hc-interior .service-nav { gap:7px 22px; padding-block:12px; }
 .hc-interior .profile-back { padding-top:20px; }
 .hc-interior .profile-back+.page-heading { padding-top:20px; }
 .hc-interior .about-intro { gap:26px; }
 .hc-interior .about-links { flex-direction:column; align-items:flex-start; gap:12px; }
 .hc-interior .service-rows { padding-top:22px; }
 .hc-interior .icon-service .service-row { gap:18px; }
 .hc-interior .opportunity-row { padding-block:28px; }
 .hc-interior .long-profile { gap:28px; }
 .hc-interior .careers-intro .button { width:100%; }
 .hc-interior .contact-documents { gap:24px; }
}

/* Keep the management team in its agreed rows, with pairs centred. */
.people-grid.hc-manager-rows{display:flex;flex-direction:column;gap:52px}
.hc-manager-row{display:flex;justify-content:center;flex-wrap:wrap;gap:52px 36px}
.hc-manager-row>.person-card{flex:0 0 calc((100% - 72px)/3)}
@media(max-width:900px){.hc-manager-row>.person-card{flex-basis:calc((100% - 36px)/2)}}
@media(max-width:600px){.people-grid.hc-manager-rows,.hc-manager-row{gap:40px}.hc-manager-row>.person-card{flex-basis:100%}}


/* Centre restored head-and-shoulders portraits within the existing frames. */
.people-grid .person-card img[src*="/assets/portraits/"]{object-position:50% 50%!important}

.people-grid .person-photo-link>img[src$="/carly-mccann-restored.webp"],.people-grid .person-photo-link>img[src$="/sheena-denton-restored.webp"]{transform:scale(1.15);transform-origin:50% 20%}

.people-grid .person-photo-link>img[src$="/amelia-boulton-restored.webp"]{transform:scale(1.9);transform-origin:51% 15%}

/* Balance Natalie's long title so the final word is not stranded. */
.people-grid .person-card:has(img[alt="Natalie Christie"]) .person-text>p{text-wrap:balance}

/* Balanced About-page photographs, using matching gallery proportions. */
.hc-interior .about-mosaic.hc-about-photos {
  display:grid;grid-template-columns:1.16fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));
  gap:14px;aspect-ratio:1.48;align-items:stretch;
}
.hc-about-photos > :first-child { grid-row:1 / span 2; }
.hc-interior .hc-about-photos > .hc-photo-edge { min-height:0; }
.hc-interior .about-mosaic.hc-about-photos img {
  display:block;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:cover;
}
.hc-interior .progress-grid { align-items:center; }
.hc-interior .progress-photos.hc-progress-photos {
  grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;
}
.hc-progress-photos > .hc-photo-edge:last-child { grid-column:auto; }
.hc-interior .progress-photos.hc-progress-photos img {
  display:block;width:100%;height:auto;aspect-ratio:3 / 4;object-fit:contain;
}
.hc-interior .progress-section h2 { margin-top:0;line-height:1.2;text-wrap:balance; }
.hc-interior .wellbeing-team .original-copy h2 { margin-top:0; }
.hc-interior .wellbeing-team .original-copy h3 { font-size:1.25rem;margin:30px 0 12px;color:var(--brand-blue,#006589); }
.hc-interior .wellbeing-team .original-copy li + li { margin-top:14px; }
@media(max-width:850px) {
  .hc-interior .about-mosaic.hc-about-photos { max-width:650px;width:100%;margin-inline:auto; }
  .hc-interior .progress-photos.hc-progress-photos { max-width:550px;width:100%;margin-inline:auto; }
}
@media(max-width:600px) {
  .hc-interior .about-mosaic.hc-about-photos { gap:10px; }
  .hc-interior .progress-photos.hc-progress-photos { gap:12px; }
}

/* About-page preview: one value at a time, with the homepage's movement. */
heroic-about-story { display:block;margin-top:32px;scroll-margin-top:80px; }
#hc-scroll-concept[data-story="about"] { --hc-stage-height:max(580px,min(760px,calc(100svh - var(--hc-header-height))));--hc-stride:900px; }
#hc-scroll-concept[data-story="about"] .hc-composition { grid-template-columns:minmax(0,1.85fr) minmax(0,1fr);gap:55px;padding-block:52px 96px; }
#hc-scroll-concept[data-story="about"] .hc-title { font-size:clamp(52px,6vw,84px); }
/* Allow for the descender in "caring" so the leaf has the same visual clearance as "safe". */
#hc-scroll-concept[data-story="about"] #about-value-0 .hc-marked { padding-bottom:.39em; }
#hc-scroll-concept[data-story="about"] .hc-subtext { font-size:clamp(18px,1.5vw,21px);line-height:1.6;max-width:680px;margin-top:28px;min-height:0; }
#hc-scroll-concept[data-story="about"] .hc-subtext p { font:inherit;line-height:inherit;margin:0; }
#hc-scroll-concept[data-story="about"] .hc-subtext p + p { margin-top:16px; }
#hc-scroll-concept[data-story="about"] .hc-value-icon { width:48%;height:48%;object-fit:contain;mix-blend-mode:multiply;position:relative;z-index:1; }
#hc-scroll-concept[data-story="about"] .hc-chapters { flex-wrap:wrap;gap:10px 25px; }
#hc-scroll-concept[data-story="about"][data-motion="reduced"] .hc-runway { height:auto!important; }
#hc-scroll-concept[data-story="about"][data-motion="reduced"] .hc-brand-watermark { display:none; }
@media(max-width:850px) and (min-width:601px) {
  #hc-scroll-concept[data-story="about"] .hc-composition { gap:20px;padding-inline:32px;grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
}
@media(max-width:600px) {
  #hc-scroll-concept[data-story="about"] { --hc-stage-height:max(610px,min(740px,calc(100svh - var(--hc-header-height))));--hc-stride:780px; }
  #hc-scroll-concept[data-story="about"] .hc-composition { display:flex;padding:28px 24px 88px;gap:0;justify-content:center; }
  #hc-scroll-concept[data-story="about"] .hc-art { width:76px;height:76px;margin:0 12px 18px auto; }
  #hc-scroll-concept[data-story="about"] .hc-title { font-size:clamp(38px,10vw,48px);line-height:1.05; }
  #hc-scroll-concept[data-story="about"] .hc-subtext { font-size:16px;line-height:1.5;margin-top:20px; }
  #hc-scroll-concept[data-story="about"] .hc-subtext p + p { margin-top:12px; }
  #hc-scroll-concept[data-story="about"] .hc-bottomline { left:24px;right:24px;bottom:12px; }
  #hc-scroll-concept[data-story="about"] .hc-chapters { gap:0 14px;justify-content:flex-start; }
  #hc-scroll-concept[data-story="about"] .hc-jump { font-size:10px;gap:5px;min-height:30px; }
}
@media(max-width:600px) and (max-height:740px), (max-width:360px) {
  #hc-scroll-concept[data-story="about"] { --hc-stage-height:max(580px,calc(100svh - var(--hc-header-height))); }
  #hc-scroll-concept[data-story="about"] .hc-art { display:none; }
  #hc-scroll-concept[data-story="about"] .hc-composition { padding:24px 20px 88px; }
  #hc-scroll-concept[data-story="about"] .hc-subtext { font-size:15px;line-height:1.45; }
}

/* Let the Supported Living introduction use the page width and wrap on smaller screens. */
.hc-interior .refine-lead.refine-lead-wide{max-width:none;text-wrap:wrap}

/* Keep service destinations available without covering the care story. */
.hc-service-bar {
  position:sticky;top:var(--hc-site-header-height,95px);z-index:20;
  background:#fafafa;border-block:1px solid var(--border);isolation:isolate;
}
.hc-interior .hc-service-bar .service-nav {
  border:0;flex-wrap:nowrap;gap:28px;padding-block:7px;
  overflow-x:auto;overscroll-behavior-inline:contain;
  scrollbar-width:none;
}
.hc-interior .hc-service-bar .service-nav a {
  flex:none;display:inline-flex;align-items:center;min-height:44px;
  white-space:nowrap;padding-block:10px;
}
.hc-service-bar .service-nav a:focus-visible { outline:2px solid #005b8c;outline-offset:-2px; }
heroic-about-story { scroll-margin-top:calc(var(--hc-site-header-height,95px) + var(--hc-service-bar-height,66px)); }
@media(max-width:1100px) { .hc-service-bar { top:var(--hc-site-header-height,82px); } }
@media(max-width:600px) {
  .hc-service-bar { top:var(--hc-site-header-height,76px); }
  .hc-interior .hc-service-bar .service-nav { gap:24px;padding-block:5px; }
}

/* Wrap service links on narrow desktop windows; retain swipe navigation on phones. */
.hc-interior .hc-service-bar .service-nav::-webkit-scrollbar { display:none; }
@media(min-width:601px) {
  .hc-interior .hc-service-bar .service-nav { flex-wrap:wrap;gap:0 28px;overflow:visible; }
}

/* Keep the garden-project portrait proportionate to its accompanying text. */
.opportunity-row:has(img[src$="/9233e242a192d8b1.webp"]) { grid-template-columns:1.2fr .8fr;gap:44px; }
.opportunity-row:has(img[src$="/9233e242a192d8b1.webp"]) > .hc-photo-edge { width:min(100%,340px);justify-self:center; }
.opportunity-row:has(img[src$="/9233e242a192d8b1.webp"]) .original-copy p+p { margin-top:12px; }
@media(max-width:600px) {
  .opportunity-row:has(img[src$="/9233e242a192d8b1.webp"]) { grid-template-columns:1fr;gap:24px; }
  .opportunity-row:has(img[src$="/9233e242a192d8b1.webp"]) > .hc-photo-edge { width:min(100%,280px); }
}

/* Keep the new portrait's headroom within Kacey's circular manager photo. */
.person-card .person-photo-link img[alt="Kacey Lake"]{object-position:50% 0%!important}
