/*
 * CP CONT — FOOTER 2.2
 * Regras consolidadas para a estrutura original modernizada:
 * logo | localização | fale conosco | faixa de créditos.
 */

.cp-footer {
    position: relative;
    padding: 22px 0 0;
    color: #e7eff5;
    background: #123e60;
    border-top: 4px solid #1f5989;
}
.cp-footer__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: 150px;
    padding: 10px 0 24px;
}
.cp-footer__brand {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}
.cp-footer__brand a {
    display: inline-block;
    max-width: 190px;
}
.cp-footer__brand img {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
}
.cp-footer__details { display: contents; }

.cp-footer__location {
    display: flex;
    grid-column: 2;
    justify-self: center;
    align-items: flex-start;
    gap: 13px;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 0;
}
.cp-footer__icon {
    display: inline-flex;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 7px;
    font-size: 17px;
}
.cp-footer__text strong,
.cp-footer__contact > strong {
    display: block;
    margin: 1px 0 9px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.cp-footer__text p {
    margin: 0;
    color: #d8e5ee;
    font-size: 12px;
    line-height: 1.75;
}
.cp-footer__map-link {
    display: inline-block;
    margin-top: 7px;
    color: #a9cce3 !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}
.cp-footer__map-link:hover { color: #fff !important; }
.cp-footer__map-link .fa { margin-left: 4px; }

.cp-footer__contact {
    display: flex;
    grid-column: 3;
    justify-self: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    width: max-content;
    max-width: calc(100% - 24px);
    min-width: 0;
    margin: 0;
    padding: 0;
}
.cp-footer__contact > strong {
    width: 100%;
    margin: 1px 0 9px;
    text-align: left;
}
.cp-footer__contact a {
    display: grid !important;
    grid-template-columns: 16px max-content;
    align-items: center;
    justify-content: start;
    justify-items: start;
    column-gap: 9px;
    width: max-content;
    max-width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0;
    color: #d8e5ee !important;
    font-size: 11px;
    text-align: left;
    text-decoration: none !important;
}
.cp-footer__contact a .fa {
    display: inline-block;
    width: 16px;
    min-width: 16px;
    margin: 0;
    padding: 0;
    color: #9fc4dd;
    font-size: 13px;
    text-align: center;
}
.cp-footer__contact a > span {
    display: inline-block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
}
.cp-footer__contact a:hover { color: #fff !important; }

.cp-footer__bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    min-height: 52px;
    padding: 13px 0 15px;
    color: #c4d5e1;
    border-top: 1px solid rgba(255,255,255,.16);
    font-size: 10px;
    line-height: 1.5;
}
.cp-footer__bottom > span:first-child,
.cp-footer__credit {
    justify-self: center;
    text-align: center;
}
.cp-footer__credit a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}
.cp-footer__credit a:hover { text-decoration: underline !important; }

/* WhatsApp flutuante. */
.cp-whatsapp-float {
    position: fixed;
    right: 26px;
    bottom: 25px;
    z-index: 1200;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: #25d366;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,.20);
    font-size: 27px;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cp-whatsapp-float:hover,
.cp-whatsapp-float:focus {
    color: #fff !important;
    box-shadow: 0 7px 20px rgba(0,0,0,.24);
    transform: translateY(-3px);
}

/* Aviso de cookies. */
.cp-cookie-consent[hidden] { display: none !important; }
.cp-cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    display: flex;
    width: min(560px, calc(100% - 48px));
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 22px;
    color: #eaf0f5;
    background: rgba(20,43,61,.97);
    border: 1px solid rgba(255,255,255,.12);
    border-left: 4px solid #4d8bb8;
    border-radius: 7px;
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease;
}
.cp-cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cp-cookie-consent__content { min-width: 0; }
.cp-cookie-consent__title {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.cp-cookie-consent__content p {
    margin: 0;
    color: #e0e8ef;
    font-size: 12px;
    line-height: 1.65;
}
.cp-cookie-consent__content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cp-cookie-consent__button {
    flex: 0 0 auto;
    min-height: 39px;
    padding: 9px 15px;
    color: #123e60;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.cp-cookie-consent__button:hover,
.cp-cookie-consent__button:focus {
    color: #fff;
    background: #1f5989;
    border-color: #1f5989;
}

@media (min-width: 768px) and (max-width: 991px) {
    .cp-footer__top { grid-template-columns: 30% 35% 35%; }
    .cp-footer__brand { padding: 0 10px; }
    .cp-footer__brand img { max-width: 160px; }
    .cp-footer__location { gap: 9px; }
    .cp-footer__text p,
    .cp-footer__contact a { font-size: 10px; }
}

@media (max-width: 767px) {
    .cp-footer { padding-top: 24px; }
    .cp-footer__top {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0 0 23px;
    }
    .cp-footer__brand {
        flex: 0 0 auto;
        justify-content: center;
        padding: 0;
    }
    .cp-footer__details {
        display: flex;
        width: 100%;
        max-width: 430px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 22px;
    }
    .cp-footer__location { width: 100%; }
    .cp-footer__contact {
        display: flex;
        width: max-content;
        max-width: 100%;
        align-self: center;
        align-items: flex-start;
        margin: 0 auto;
    }
    .cp-footer__contact > strong {
        width: 100%;
        text-align: left;
    }
    .cp-footer__contact a { justify-self: start; }
    .cp-footer__bottom {
        display: flex;
        min-height: 0;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 14px 0 17px;
        text-align: center;
    }
    .cp-footer__credit { text-align: center; }
    .cp-whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 25px;
    }
    .cp-cookie-consent {
        right: 12px;
        bottom: 78px;
        width: calc(100% - 24px);
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 17px;
    }
    .cp-cookie-consent__button { width: 100%; }
}
@media (max-width: 380px) {
    .cp-footer__contact { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cp-footer__map-link,
    .cp-footer__contact a,
    .cp-whatsapp-float,
    .cp-cookie-consent {
        transition: none !important;
    }
}
