/* Footer layout kept separate from global navigation and page styles. */
body footer{display:grid;grid-template-columns:230px minmax(230px,1fr) minmax(270px,1fr);gap:30px 48px;align-items:start;padding:48px max(5%,calc((100vw - 1350px)/2)) 70px;background:#173e31;color:#f5f4ec}
body footer>.brand{width:230px;max-width:100%;padding:14px 18px;align-self:start}body footer .brand img{display:block;width:194px;max-width:100%;height:auto}body footer .brand small{font-size:8px;line-height:1.5;letter-spacing:.6px}
body footer .footer-pages{width:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;font-size:13px;line-height:1.5}
body footer>div:not(.footer-pages):not(.footer-social){min-width:0;font-size:14px;line-height:1.6}body footer>div>a{overflow-wrap:anywhere}body footer>div>p{margin:12px 0 0}
body footer .company-address{grid-column:1/-1;width:100%;margin:0;padding:24px 0 0;font-size:13px;border-top:1px solid #ffffff30}
body footer .footer-social{grid-column:1/-1;width:100%;max-width:none;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:18px;visibility:visible!important;opacity:1!important;height:auto;overflow:visible;margin:0;padding:26px 0 0;border-top:1px solid #ffffff30;justify-content:stretch;align-items:stretch}
body footer .footer-social-link{display:flex!important;visibility:visible!important;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:92px;padding:18px 10px;border:1px solid #ffffff50;border-radius:8px;color:#f5f4ec;font-size:13px;line-height:1.4}
body footer .footer-social-link svg{display:block!important;width:25px;height:25px;flex-shrink:0}body footer .footer-social-link:hover{background:#ffffff14;border-color:#ffffff90}
@media(max-width:1000px){body footer{grid-template-columns:200px minmax(0,1fr);gap:26px}body footer>.brand{width:200px}body footer>div:not(.footer-pages):not(.footer-social){grid-column:1/-1}}
@media(max-width:600px){body footer{grid-template-columns:1fr;padding:32px 6% 104px;gap:28px}body footer>.brand{width:210px}body footer .footer-pages{gap:16px 30px}body footer .footer-social{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-top:26px}body footer .footer-social-link{min-height:92px;font-size:13px}body footer .company-address{font-size:12px;line-height:1.8}}

body footer .footer-social-link span{text-align:center} @media(max-width:1000px) and (min-width:601px){body footer .footer-social{grid-template-columns:repeat(4,minmax(0,1fr))}} @media(max-width:600px){body footer .footer-social-link:last-child{grid-column:1/-1;flex-direction:row;min-height:66px}}

/* Keep the existing small-screen grid, group the desktop contact column. */
body footer .footer-details{display:contents}body footer .footer-details>div{min-width:0;font-size:14px;line-height:1.6}body footer .footer-details>div>a{overflow-wrap:anywhere}body footer .footer-details>div>p{margin:12px 0 0}
@media(min-width:1001px){
body footer{grid-template-columns:230px minmax(220px,.9fr) minmax(320px,1.1fr);gap:32px 48px;padding-top:44px;padding-bottom:48px}
body footer .footer-pages{max-width:320px;width:100%;justify-self:center;gap:20px 32px;padding-top:4px}
body footer .footer-details{display:block;grid-column:3;grid-row:1;min-width:0}
body footer .footer-details .company-address{margin-top:22px;padding-top:18px;font-size:12px;line-height:1.7}
body footer .footer-details .company-address strong{display:block;margin-bottom:8px}
body footer .footer-details .company-address span{display:block}
body footer .footer-social{grid-row:2;gap:14px;padding-top:24px}
body footer .footer-social-link{min-height:82px;padding:14px 8px;gap:10px;font-size:12px}
}
