/* Paragraphs: readable in dark/light (override CMS inline colors on <p> and children) */
html[color-scheme="dark"] p,
html[color-scheme=dark] p,
html[color-scheme="dark"] p *,
html[color-scheme=dark] p * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

html[color-scheme="light"] p,
html[color-scheme=light] p,
html[color-scheme="light"] p *,
html[color-scheme=light] p * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

/* Footer fullwidth: logo instead of site name text */
.mxd-footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.mxd-footer__logo-img {
    display: block;
    max-height: clamp(3.5rem, 11vw, 6rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Footer info boxes: remove fixed column height + tighten card padding (menu + services) */
#mxd-footer .footer-blocks__column {
    gap: 1.5rem;
}

@media only screen and (min-width: 1200px) {
    #mxd-footer .footer-blocks__column {
        height: auto;
        min-height: 0;
    }
}

#mxd-footer .footer-blocks__card {
    gap: 1.25rem;
    padding: 2rem !important;
}

@media only screen and (min-width: 768px) {
    #mxd-footer .footer-blocks__card {
        padding: 2.25rem !important;
    }
}

#mxd-footer .footer-blocks__card.fullheight-card {
    height: auto;
    min-height: 0;
    -webkit-box-pack: start;
    -moz-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

#mxd-footer .footer-blocks__block {
    gap: 1.25rem;
}

/* Floating phone / WhatsApp buttons */
.social-icon {
    position: fixed !important;
    bottom: 6.5rem !important;
    inset-inline-end: 1.25rem !important;
    margin-inline-end: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 998;
    width: fit-content;
    height: auto;
    pointer-events: none;
}

.social-icon__btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--accent, #e81d13);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    font-size: 1.45rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.social-icon__btn--whatsapp {
    background: #25d366;
}

.social-icon__btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.social-icon__btn--whatsapp:hover {
    background: #1ebe57;
}

@media only screen and (min-width: 768px) {
    .social-icon {
        bottom: 7.5rem !important;
        inset-inline-end: 2rem !important;
    }

    .social-icon__btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.55rem;
    }
}

@media only screen and (min-width: 1600px) {
    .social-icon {
        inset-inline-end: 3.5rem !important;
    }
}
