.site-brand>span>img.brand-wordmark,.home-page .site-brand>span>img.brand-wordmark{display:block;width:184px;height:auto;max-width:100%;aspect-ratio:136100/16500;object-fit:contain;object-position:left center;flex-shrink:1;margin:0 0 5px}
.site-header .site-brand>img,.home-page .site-header .site-brand>img{width:120px;height:120px}
.site-header .site-brand,.home-page .site-header .site-brand{gap:8px;align-items:center}
.site-header .brand-row,.home-page .site-header .brand-row{min-height:132px;padding:6px 0}
.site-brand>span>small{font-family:Arial,sans-serif;font-size:13px;font-weight:400;letter-spacing:0;line-height:1.3;color:#3d5770;max-width:184px}
.site-footer .brand-wordmark{filter:none}
.site-footer .site-brand>span>img.brand-wordmark,.home-page .home-footer .site-brand>span>img.brand-wordmark{width:172px;height:auto}
.site-footer .site-brand>img,.home-page .home-footer .site-brand>img{width:104px;height:104px}
.site-footer .site-brand>span>small{color:#c7d6e6}
.site-footer .site-brand>span>small,.home-page .home-footer .site-brand>span>small{font-size:12px;max-width:172px}
.home-page .home-footer .site-brand>span>small{color:#3d5770}
@media(min-width:601px) and (max-width:900px){
 .site-header .site-brand>img,.home-page .site-header .site-brand>img{width:104px;height:104px}
 .site-header .site-brand>span>img.brand-wordmark,.home-page .site-header .site-brand>span>img.brand-wordmark{width:172px}
 .site-header .site-brand>span>small{max-width:172px}
 .site-header .brand-row,.home-page .site-header .brand-row{min-height:116px;gap:20px}
}
@media(max-width:600px){
 .site-header .brand-row,.home-page .site-header .brand-row{min-height:108px;flex-wrap:wrap;padding:6px 0;gap:8px 10px}
 .site-header .site-brand,.home-page .site-header .site-brand{flex:0 0 auto;max-width:100%;gap:8px}
 .site-header .header-contact{margin-left:auto}
 .site-header .header-email{display:none}
 .site-header .header-phone,.home-page .site-header .header-phone{font-size:14px}
 .site-header .site-brand>img,.home-page .site-header .site-brand>img{width:96px;height:96px}
 .site-brand>span>img.brand-wordmark,.home-page .site-brand>span>img.brand-wordmark{width:152px;height:auto;margin-bottom:4px}
 .site-brand>span>small,.home-page .site-brand>span>small{font-size:12px;max-width:152px;letter-spacing:0}
 .site-footer .site-brand>img,.home-page .home-footer .site-brand>img{width:88px;height:88px}
 .site-footer .site-brand>span>img.brand-wordmark,.home-page .home-footer .site-brand>span>img.brand-wordmark{width:152px;height:auto}
}
.site-footer .site-brand,.home-page .home-footer .site-brand{display:inline-flex;background:#fff;border-radius:10px;padding:12px 14px;max-width:100%;box-sizing:border-box;color:#12335e}.site-footer .site-brand>span>small,.home-page .home-footer .site-brand>span>small{color:#3d5770}.site-footer .site-brand img,.home-page .home-footer .site-brand img{filter:none}
.site-brand>span{display:block;min-width:0}

/* Compact desktop masthead: preserve the wordmark without a tall empty band. */
@media(min-width:1001px){
 .site-header .brand-row,.home-page .site-header .brand-row{min-height:88px;padding:4px 0;gap:24px}
 .site-header .site-brand>img,.home-page .site-header .site-brand>img{width:80px;height:80px}
 .site-header .site-brand>span>img.brand-wordmark,.home-page .site-header .site-brand>span>img.brand-wordmark{width:184px}
 .site-header .site-brand>span>small,.home-page .site-header .site-brand>span>small{font-size:14px;max-width:230px}
 .site-header .site-nav,.home-page .site-header .site-nav{min-height:42px;padding-block:8px}
}

/* Keep service photographs within their cards. */
.core-service-photo{display:block;max-width:100%;width:100%;height:auto;aspect-ratio:12/5;object-fit:cover;object-position:center;border-radius:6px;margin-bottom:12px;}

.core-service-photo[src="/assets/results/foundation-plan.png"]{object-fit:contain;background:#f1f2ef;}
