/* ROUND 314 - client feedback on round 310, and the new office cards. See inc/round314.php. */

/* ---- 1. "Ready to take the first step?" banner, phones: the blue fade stops above the house.
        The fade was 170px deep and lay over the top of the gable. It is now a short blend of the blue band into the
        photo's own sky, ending above the roof. Only while the banner shows the round 310 photo. ---- */
@media (max-width:768px){
  /* ROUND 316 (AJ doc, 3 Dec 2026): the blue band above the photo (#63A3E3) and the photo's own sky (a lighter
     blue, about #76A7D9 along its top edge) met in a visible line. The band now eases from its own blue at the top
     to the sky's blue at the bottom, and the photo's top edge starts in that same blue and clears within 40px,
     above the roof. Both colours are the ones already there; only the join between them changes. */
  .footer-cta:has(.footer-cta__bg img[src*="/sentinel-r310/"]) .footer-cta__text{background:linear-gradient(180deg,#63A3E3 0%,#63A3E3 12%,#69A4E0 40%,#70A6DC 70%,#76A7D9 100%)}
  .footer-cta .footer-cta__bg:has(img[src*="/sentinel-r310/"])::after{height:40px;background:linear-gradient(180deg,#76A7D9 0%,rgba(118,167,217,.72) 30%,rgba(118,167,217,.34) 62%,rgba(118,167,217,0) 100%)}
}

/* ---- 5. FAQ sections, every page: the client's photo at full strength, white heading and intro.
        Keyed on the photo's own folder, so another image chosen in the CMS later is shown as FAQ images were before.
        Phones show no FAQ photo (the section is a plain cream band there), so nothing changes on phones. ---- */
@media (min-width:769px){
  .faq:has(.faq__bg img[src*="/sentinel-r314/"]){background:#2a2b2d}
  .faq .faq__bg img[src*="/sentinel-r314/"],
  .sh-r63:not(.sh-r63-home) .faq .faq__bg img[src*="/sentinel-r314/"],
  .sh-hl .faq .faq__bg img[src*="/sentinel-r314/"]{mix-blend-mode:normal;opacity:1;object-position:62% 50%;transform:none;width:100%}
  .faq .faq__bg:has(img[src*="/sentinel-r314/"]) + .faq__overlay{background:linear-gradient(90deg,rgba(22,23,25,.66) 0%,rgba(22,23,25,.52) 34%,rgba(22,23,25,.18) 58%,rgba(22,23,25,0) 74%)}
  .faq:has(.faq__bg img[src*="/sentinel-r314/"]) .faq__title,
  .faq:has(.faq__bg img[src*="/sentinel-r314/"]) .faq__sub{color:#fff}
}

/* ---- 6. Home, "Find an office near you": the office card ---- */
.local .o314__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.local .o314__tag{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin:0 0 6px;padding:4px 10px 4px 8px;border-radius:999px;background:var(--slate-green);color:#fff;font-family:var(--sans);font-weight:600;font-size:10px;line-height:14px;letter-spacing:1.2px;text-transform:uppercase}
.local .o314__tag[hidden]{display:none}
.local .o314__tag::before{content:"";width:12px;height:12px;flex:0 0 12px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.4l3.2 3.2L13 4.8' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%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 16 16' fill='none'%3E%3Cpath d='M3 8.4l3.2 3.2L13 4.8' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.local .office.is-auto .o314__tag{background:#fff;color:var(--charcoal);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.local .office.is-auto .o314__tag::before{display:none}
.local .office.is-auto .o314__tag{padding-left:10px}

/* the collapsed row of the local office says so too */
.local .office.is-local > .office__summary span::after,
.local .office.is-auto > .office__summary span::after{content:"Your local office";display:inline-block;margin-left:10px;padding:2px 8px;border-radius:999px;background:var(--slate-green);color:#fff;font-weight:600;font-size:10px;line-height:14px;letter-spacing:1.2px;text-transform:uppercase;vertical-align:2px}
.local .office.is-auto > .office__summary span::after{content:"Closest to you";background:var(--cream);color:var(--charcoal)}

.local .o314__links{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-top:8px}
.local .office__body .o314__link{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;border-bottom-color:var(--amber)}
@media (max-width:480px){.local .office__body .o314__link{font-size:11px;letter-spacing:.6px}}
.local .o314__link svg{width:14px;height:14px;flex:0 0 14px}

.local .o314__btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.local .o314__btns .btn{flex:1 1 200px;min-width:0;border:none;padding-left:14px;padding-right:14px}
.local .o314__set svg{width:14px;height:14px;flex:0 0 14px}
.local .o314__set .o314__tick{display:none}
.local .o314__team{background-color:var(--slate-green);--sweep:#55655a;color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.local .o314__team:hover,.local .o314__team:focus-visible{box-shadow:var(--lift-shadow)}
.local .o314__team:active{box-shadow:var(--lift-shadow-active)}
/* this office IS the visitor's local office: the button states it and no longer invites a press */
.local .o314__set.is-set{background-color:transparent;--sweep:transparent;box-shadow:inset 0 0 0 1px var(--slate-green);color:var(--slate-green);cursor:default}
.local .o314__set.is-set:hover,.local .o314__set.is-set:focus-visible,.local .o314__set.is-set:active{transform:none;box-shadow:inset 0 0 0 1px var(--slate-green)}
.local .o314__set.is-set .o314__pin{display:none}
.local .o314__set.is-set .o314__tick{display:block}
