/* ==========================================================================
   Fitzgerald Plant - footer band: accreditation logos, social / cookie icons
   Loaded from inside <footer> by chunk "footer" (6), so the WordPress documents
   site (which copies the footer from /footer-extras) loads it as well.
   Layout is Bootstrap 5 (row / col / order / spacing classes in chunks "footer"
   and "footerLogoTpl"); only what Bootstrap has no class for is in this file.
   Moved out of the inline <style> in chunk "footerShared", 17 Nov 2026.
   ========================================================================== */

/* Logo grid: 18px gutters (the theme fixes .row gutters at 30px) */
footer .fp-foot-accred>.row{margin-left:-9px;margin-right:-9px}
footer .fp-foot-accred>.row>.col{padding-left:9px;padding-right:9px}

/* Every logo sits in an identical box, 96x56px at full size. To resize all five, change max-width. */
footer .fp-foot-logo{max-width:96px;aspect-ratio:96/56}
/* a logo without a crop rule below (new or replaced file) is shown whole, fitted inside the box */
footer .fp-foot-logo>img{width:100%;height:100%;max-width:none;object-fit:contain}
/* Crop rules, keyed on the gallery image id (resource 20): BSI 18, FORS 21, RPA 22, ISO 9001 1402, RISQS 1407.
   Each file is cropped to the mark (the files have white space round it), centred, and scaled so the mark
   covers the same area as the FORS mark at full box width. width and both margins must be recalculated together. */
footer .fp-foot-logo--18>img,footer .fp-foot-logo--21>img,footer .fp-foot-logo--22>img,footer .fp-foot-logo--1402>img,footer .fp-foot-logo--1407>img{height:auto;object-fit:fill}
footer .fp-foot-logo--18>img{width:176.31%;margin:-11.31% 0 0 -38.56%}
footer .fp-foot-logo--21>img{width:146.67%;margin:-4.83% 0 0 -23.33%}
footer .fp-foot-logo--22>img{width:122.01%;margin:.33% 0 0 -10.73%}
footer .fp-foot-logo--1402>img{width:83.75%;margin:-2.66% 0 0 8.79%}
footer .fp-foot-logo--1407>img{width:89.29%;margin:-2.8% 0 0 5.71%}

/* Cookie-settings icon: hidden unless the cookie script is running (chunk cookieConsent shows it) */
footer .fp-soc-col>a.fp-cookie-ico{display:none}

/* Phones / tablets: logos first with a rule beneath, then company details, then icons + credit */
@media (max-width:991px){
footer .fp-foot-accred{margin-bottom:16px;border-bottom:1px solid #ececec}
footer .row.justify-content-center.align-items-center.pt-5>.order-2.order-lg-1{order:1!important}
footer .row.justify-content-center.align-items-center.pt-5>.order-1.order-lg-2{order:2!important;padding-top:0!important;padding-bottom:28px!important}
}
/* Phones: keep the logos and the last line clear of the contact rail */
@media (max-width:767px){
footer .fp-foot-accred{padding-right:80px}
footer .row.justify-content-center.align-items-center.pt-5>.order-1.order-lg-2{padding-bottom:96px!important}
}
