/* One shared footer on every MGM page, including the error page. */
/* One broad light source from the lower-right corner, fading before the top edge. */
body footer.footer{position:relative;isolation:isolate}
.footer .search-footer-contact{position:relative;isolation:isolate}
.footer::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/mgm-grain.svg') repeat;opacity:.035}
:root{--mgm-warm-glow-stops:#ffb58c70 0%,#ff986752 15%,#ff866c2e 32%,#ff866c0e 54%,#ff866c00 80%}
/* Blur only the light layer; tiny monochrome dithering breaks up dark colour bands. */
body :is(.ap-contact,.work-contact,.guide-contact).dark{--contact-glow-radius:clamp(280px,30vw,460px);--contact-glow-x:100%;position:relative;isolation:isolate;background-image:none}
body :is(.ap-contact,.work-contact,.guide-contact).dark::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle var(--contact-glow-radius) at var(--contact-glow-x) 50%,var(--mgm-warm-glow-stops));filter:blur(36px);mask-image:linear-gradient(to bottom,transparent,#000 24%,#000 76%,transparent)}
body :is(.ap-contact,.work-contact,.guide-contact).dark::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/mgm-grain.svg') repeat;opacity:.012;mask-image:radial-gradient(circle var(--contact-glow-radius) at var(--contact-glow-x) 50%,#000,transparent 80%)}
.footer .search-footer-contact a.footer-cta{box-shadow:none}
body footer.footer{padding:0 0 100px;background:radial-gradient(ellipse 80% 90% at 100% 100%,var(--mgm-warm-glow-stops)) var(--ink);color:var(--paper)}
@media(max-width:600px){body footer.footer{background-image:radial-gradient(ellipse 150% 560px at 100% 100%,var(--mgm-warm-glow-stops))}body :is(.ap-contact,.work-contact,.guide-contact).dark{--contact-glow-radius:320px;--contact-glow-x:100%}}
.footer .search-footer-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);gap:48px 64px;border-top:1px solid #ffffff26;padding-block:56px 48px;align-items:start}
.footer .search-footer-grid>*,.footer .search-footer-grid a{min-width:0}
.footer .search-footer-brand .brand{display:flex;width:fit-content;align-items:flex-start;text-decoration:none}
.footer .search-footer-brand .footer-logo{display:block;width:180px;max-width:100%;height:auto;aspect-ratio:82.4/33.45}
.footer .search-footer-tagline{margin:20px 0 12px;font-size:17px;line-height:1.6;color:#f5f2ed}
.footer .search-footer-description{margin:0;max-width:36ch;font-size:15px;line-height:1.8;color:#bfb3ac}
.footer .search-footer-heading{margin:0 0 18px;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#bfb3ac;line-height:1.5}
.footer .search-footer-pages,.footer .search-footer-contact{display:flex;flex-direction:column;align-items:flex-start;padding-top:0;gap:4px}
.footer .search-footer-pages a,.footer .search-footer-contact a{display:flex;align-items:center;gap:10px;min-height:44px;padding-block:9px;font-size:16px;line-height:1.6;color:#eee5df;text-decoration:none;overflow-wrap:anywhere}
.footer .search-footer-contact a.footer-cta{display:inline-flex;justify-content:center;max-width:100%;min-height:52px;margin-top:20px;padding:14px 20px;border:1px solid var(--primary);border-radius:var(--control-radius);background:var(--primary);color:var(--ink);font-weight:600;line-height:1.5;text-decoration:none;overflow-wrap:normal;transition:background .2s,border-color .2s}
@media (hover: hover) and (pointer: fine){
.footer .search-footer-contact a.footer-cta:hover{background:#FFA18D;border-color:#FFA18D;color:var(--ink);text-decoration:none}}
.footer .search-footer-contact a.footer-cta:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:var(--control-radius)}

@media (hover: hover) and (pointer: fine){

.footer .search-footer-grid a:hover{text-decoration:underline;text-underline-offset:5px;color:#ffac98}}
.footer .search-footer-grid a:focus-visible{outline:2px solid #ff866c;outline-offset:5px;border-radius:3px}
.footer .search-footer-bottom{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 24px;border-top:1px solid #ffffff1a;padding-top:24px;font-size:14px;line-height:1.6;color:#bfb3ac}
@media(max-width:1000px){.footer .search-footer-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px 48px}.footer .search-footer-brand{grid-column:1/-1}.footer .search-footer-description{max-width:56ch}}
@media(max-width:600px){.footer .search-footer-grid{grid-template-columns:minmax(0,1fr);gap:36px;padding-block:40px 36px}.footer .search-footer-brand{grid-column:auto}.footer .search-footer-description{max-width:38ch}.footer .search-footer-heading{margin-bottom:12px}.footer .search-footer-pages,.footer .search-footer-contact{padding-top:0}.footer .search-footer-bottom{padding-top:22px}}

.footer .search-footer-bottom>span{white-space:nowrap}.footer .search-footer-registration{display:contents}.footer .search-footer-registration span{white-space:nowrap}
@media(max-width:600px){.footer .search-footer-contact a.footer-cta{box-sizing:border-box;width:100%;text-align:center}}

/* Direct contact actions share CTA sizing, with a quiet secondary treatment. */
.footer .search-footer-contact a.footer-direct{width:100%;margin-bottom:6px;background:transparent;border:1px solid #ffffff4d;color:var(--paper);overflow-wrap:normal;text-decoration:none}
.footer .search-footer-contact a.footer-cta{width:100%}
.footer .footer-direct .whatsapp-icon{fill:currentColor;stroke:none}
.footer .footer-direct .footer-mail-icon{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){
 .footer .search-footer-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
 .footer .search-footer-contact .search-footer-heading,.footer .search-footer-contact a.footer-cta{grid-column:1/-1}
 html body .footer .search-footer-contact a.footer-direct{--button-font-size:14px;--button-padding:12px 8px;gap:6px!important;margin-bottom:0}
 html body .footer .search-footer-contact a.footer-direct svg{width:20px;height:20px}
 .footer .search-footer-contact a.footer-cta{margin-top:10px}
}
@media(hover:hover) and (pointer:fine){.footer .search-footer-contact a.footer-direct:hover{background:#ffffff08;border-color:#ffffff80;color:var(--paper);text-decoration:none}.footer .footer-direct:hover svg{transform:none}}
