/* =========================================================
   RODAPÉ — APÓSTOLA PATRICIA SANTANA
   DESKTOP + TABLET + MOBILE
========================================================= */

.footer-premium,
.footer-premium * {
    box-sizing: border-box;
}

.footer-premium {
    position: relative;
    width: 100%;
    margin: 0;
    color: #0b3158;
    font-family: "Montserrat", Arial, sans-serif;
    overflow: hidden;
}


/* =========================================================
   ÁREA PRINCIPAL — PRATA METÁLICO
========================================================= */

.footer-metal {
    position: relative;
    width: 100%;

    padding: 48px 0 40px;

    border-top: 3px solid #0b6fae;
    border-bottom: 2px solid #0b6fae;

    background:
        radial-gradient(
            circle at 48% 38%,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.46) 25%,
            transparent 50%
        ),
        linear-gradient(
            105deg,
            #c8d2d8 0%,
            #f9fafb 15%,
            #b9c5cc 32%,
            #f4f6f7 51%,
            #aebbc4 69%,
            #eef2f4 86%,
            #b9c6cd 100%
        );
}


/* TEXTURA METÁLICA */

.footer-metal::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.35;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.12) 0,
            rgba(255, 255, 255, 0.12) 1px,
            rgba(20, 54, 76, 0.035) 2px,
            transparent 3px
        );
}


/* BARRA SUPERIOR */

.footer-metal::after {
    content: "";

    position: absolute;

    top: -2px;
    left: 0;
    right: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            #073d72 0%,
            #0b86cc 12%,
            #d9f1ff 25%,
            #ffffff 36%,
            #0b86cc 50%,
            #ffffff 64%,
            #9fdcff 76%,
            #0b86cc 88%,
            #073d72 100%
        );

    box-shadow:
        0 0 8px rgba(20, 153, 222, 0.65),
        0 2px 8px rgba(4, 65, 108, 0.30);
}


/* =========================================================
   CONTAINER
========================================================= */

.footer-premium .wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   GRID DESKTOP
========================================================= */

.footer-premium-grid {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        0.85fr
        1.65fr
        0.85fr
        1fr;

    align-items: stretch;
}


/* =========================================================
   COLUNAS
========================================================= */

.footer-col {
    min-width: 0;

    padding: 12px 36px;

    border-right:
        1px solid rgba(8, 63, 107, 0.55);
}

.footer-nav {
    padding-left: 0;
}

.footer-social {
    padding-right: 0;
    border-right: 0;
}


/* =========================================================
   TÍTULOS
========================================================= */

.footer-col h4 {
    margin: 0;

    color: #073d72;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 3px;
}

.footer-title-line {
    display: block;

    width: 50px;
    height: 3px;

    margin: 15px 0 18px;

    background:
        linear-gradient(
            90deg,
            #087fc6,
            #073d72
        );
}


/* =========================================================
   LINKS
========================================================= */

.footer-col > a {
    display: block;

    width: fit-content;

    margin: 0 0 11px;

    color: #102f4b;

    font-size: 12px;

    line-height: 1.3;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-col > a:hover {
    color: #0786d1;

    transform: translateX(3px);
}


/* =========================================================
   LOGO
========================================================= */

.footer-logo-area {
    min-width: 0;

    padding: 0 38px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-right:
        1px solid rgba(8, 63, 107, 0.55);
}

.footer-logo-area img {
    display: block;

    width: 100%;
    max-width: 430px;

    height: auto;
    max-height: 190px;

    object-fit: contain;
}


/* =========================================================
   PILARES
========================================================= */

.footer-pillars {
    margin: 11px 0 0;

    color: #073d72;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;

    line-height: 1.5;

    text-align: center;
}

.footer-pillars span {
    margin: 0 4px;

    color: #087fc6;
}


/* =========================================================
   FRASE
========================================================= */

.footer-purpose {
    margin: 8px 0 0;

    color: #34566e;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 17px;
    font-style: italic;

    line-height: 1.4;
}


/* =========================================================
   REDES SOCIAIS
========================================================= */

.social-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 0 0 19px;
}

.social-buttons a {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #91a8b7;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 25%,
            #168cd1,
            #06477e 55%,
            #032c52
        );

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.28),
        0 6px 12px rgba(4, 53, 89, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.social-buttons a:hover {
    transform: translateY(-3px);

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.35),
        0 9px 17px rgba(4, 53, 89, 0.26);
}


/* =========================================================
   TEXTO REDES
========================================================= */

.footer-social > p {
    max-width: 260px;

    margin: 0 0 20px;

    color: #49677d;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.65;
}


/* =========================================================
   BOTÃO WHATSAPP
========================================================= */

.footer-social .footer-whatsapp {
    width: 100%;
    max-width: 245px;

    min-height: 48px;

    margin: 0;

    padding: 0 18px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    border: 1px solid #6bb8e5;

    border-radius: 30px;

    background:
        linear-gradient(
            105deg,
            #073d72 0%,
            #087fc6 52%,
            #064a80 100%
        );

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 10px 22px rgba(4, 65, 108, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.footer-social .footer-whatsapp:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 13px 25px rgba(4, 65, 108, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}


/* =========================================================
   ÍCONE WHATSAPP
========================================================= */

.footer-social .footer-whatsapp .wa-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.footer-social .footer-whatsapp .wa-icon svg {
    display: block;

    width: 22px !important;
    height: 22px !important;

    fill: #ffffff !important;
}

.footer-social .footer-whatsapp .wa-icon svg path {
    fill: #ffffff !important;
}

.footer-whatsapp strong {
    color: #ffffff !important;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.3px;
}

.wa-arrow {
    color: #ffffff;

    font-size: 19px;

    line-height: 1;
}


/* =========================================================
   FAIXA INFERIOR
========================================================= */

.footer-bottom-premium {
    position: relative;

    width: 100%;
    min-height: 94px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(30, 131, 200, 0.32),
            transparent 45%
        ),
        linear-gradient(
            105deg,
            #031b35 0%,
            #0a3f72 46%,
            #031b35 100%
        );

    border-bottom:
        1px solid #1c83c0;
}

.footer-bottom-premium::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.16;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            115deg,
            transparent 0,
            transparent 5px,
            rgba(255, 255, 255, 0.1) 6px
        );
}


/* =========================================================
   CONTEÚDO INFERIOR
========================================================= */

.footer-bottom-content {
    position: relative;

    z-index: 2;

    min-height: 94px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 25px;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.footer-premium .footer-copyright {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 5px;
}

.footer-premium
.footer-bottom-premium
.footer-copyright p {
    margin: 0 !important;

    color: #dcecf5 !important;

    font-size: 10px;

    font-weight: 400;

    line-height: 1.4;
}

.footer-premium
.footer-bottom-premium
.footer-copyright
.footer-developer {
    color: #a9dcf6 !important;
}

.footer-premium
.footer-bottom-premium
.footer-copyright
.footer-developer strong {
    color: #ffffff !important;

    font-weight: 700;
}


/* =========================================================
   LOSANGO
========================================================= */

.footer-diamond {
    position: relative;

    color: #a9dcf6;

    font-size: 27px;

    line-height: 1;
}

.footer-diamond::before,
.footer-diamond::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 145px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(214, 236, 248, 0.75)
        );
}

.footer-diamond::before {
    right: 32px;
}

.footer-diamond::after {
    left: 32px;

    transform: rotate(180deg);
}


/* =========================================================
   LINKS LEGAIS
========================================================= */

.footer-premium .footer-legal {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 17px;
}

.footer-premium .footer-legal a {
    color: #dcecf5 !important;

    font-size: 10px;

    text-decoration: none;
}

.footer-premium .footer-legal a:hover {
    color: #ffffff !important;
}

.footer-premium .footer-legal i {
    width: 1px;
    height: 13px;

    background:
        rgba(198, 214, 224, 0.55);
}


/* =========================================================
   NOTEBOOK / TABLET GRANDE
========================================================= */

@media (max-width: 1150px) and (min-width: 651px) {

    .footer-premium-grid {
        grid-template-columns:
            1fr
            1.4fr;
    }

    .footer-col,
    .footer-logo-area {
        border-bottom:
            1px solid rgba(8, 63, 107, 0.35);
    }

    .footer-logo-area {
        border-right: 0;
    }

    .footer-ministerio {
        padding-left: 0;

        border-bottom: 0;
    }

    .footer-social {
        border-bottom: 0;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) and (min-width: 651px) {

    .footer-premium .wrap {
        width: calc(100% - 34px);
    }

    .footer-premium-grid {
        grid-template-columns:
            1fr
            1fr;
    }

    .footer-col,
    .footer-logo-area {
        padding: 28px 24px;
    }

    .footer-nav {
        padding-left: 0;
    }

    .footer-logo-area {
        padding-right: 0;
    }

    .footer-logo-area img {
        max-width: 360px;
    }

    .footer-bottom-content {
        grid-template-columns:
            1fr
            auto
            1fr;
    }

    .footer-diamond::before,
    .footer-diamond::after {
        width: 70px;
    }
}


/* =========================================================
   CELULAR
   NOVO LAYOUT COMPACTO
========================================================= */

@media (max-width: 650px) {

    .footer-premium {
        display: block !important;

        visibility: visible !important;

        width: 100%;

        overflow: hidden;
    }


    /* =====================================================
       FUNDO
    ====================================================== */

    .footer-metal {
        padding: 28px 0 24px;
    }

    .footer-premium .wrap {
        width: calc(100% - 32px);

        max-width: 520px;
    }


    /* =====================================================
       GRID MOBILE
    ====================================================== */

    .footer-premium-grid {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        column-gap: 0;

        row-gap: 0;

        align-items: start;
    }


    /* =====================================================
       LOGO — PRIMEIRA LINHA
    ====================================================== */

    .footer-logo-area {
        grid-column: 1 / -1;
        grid-row: 1;

        width: 100%;

        min-height: auto;

        padding: 0 10px 25px;

        margin: 0 0 24px;

        border-right: 0;

        border-bottom:
            1px solid rgba(7, 61, 114, 0.25);
    }

    .footer-logo-area img {
        width: 100%;

        max-width: 315px;

        max-height: none;

        margin: 0 auto;

        object-fit: contain;
    }


    /* PILARES */

    .footer-pillars {
        margin-top: 10px;

        font-size: 9px;

        font-weight: 800;

        letter-spacing: 0.8px;

        line-height: 1.7;

        white-space: normal;
    }

    .footer-pillars span {
        margin: 0 3px;
    }


    /* FRASE */

    .footer-purpose {
        margin-top: 8px;

        font-size: 16px;

        line-height: 1.4;
    }


    /* =====================================================
       NAVEGAÇÃO E SEMINÁRIOS LADO A LADO
    ====================================================== */

    .footer-nav {
        grid-column: 1;
        grid-row: 2;

        width: 100%;

        padding: 0 16px 22px 2px;

        border-right:
            1px solid rgba(7, 61, 114, 0.24);

        border-bottom: 0;
    }

    .footer-ministerio {
        grid-column: 2;
        grid-row: 2;

        width: 100%;

        padding: 0 2px 22px 20px;

        border-right: 0;
        border-bottom: 0;
    }


    /* =====================================================
       TÍTULOS MOBILE
    ====================================================== */

    .footer-col h4 {
        margin: 0;

        color: #073d72;

        font-size: 15px;

        font-weight: 600;

        line-height: 1.25;

        letter-spacing: 1.5px;

        white-space: nowrap;
    }

    .footer-title-line {
        width: 38px;

        height: 3px;

        margin: 10px 0 13px;
    }


    /* =====================================================
       LINKS MOBILE
    ====================================================== */

    .footer-col > a {
        margin: 0 0 9px;

        color: #143c5c;

        font-size: 11px;

        line-height: 1.35;
    }


    /* =====================================================
       REDES SOCIAIS — LINHA INTEIRA
    ====================================================== */

    .footer-social {
        grid-column: 1 / -1;
        grid-row: 3;

        width: 100%;

        margin-top: 2px;

        padding: 23px 0 0;

        display: flex;

        flex-direction: column;

        align-items: center;

        border-top:
            1px solid rgba(7, 61, 114, 0.25);

        border-right: 0;
        border-bottom: 0;

        text-align: center;
    }

    .footer-social h4 {
        font-size: 17px;

        letter-spacing: 2px;

        text-align: center;
    }

    .footer-social .footer-title-line {
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       ÍCONES MOBILE
    ====================================================== */

    .social-buttons {
        justify-content: center;

        gap: 14px;

        margin: 2px auto 16px;
    }

    .social-buttons a {
        width: 44px;
        height: 44px;

        flex: 0 0 44px;

        font-size: 13px;
    }


    /* =====================================================
       TEXTO REDES
    ====================================================== */

    .footer-social > p {
        width: 100%;

        max-width: 310px;

        margin: 0 auto 17px;

        color: #3e617a;

        font-size: 11px;

        font-weight: 600;

        line-height: 1.55;

        text-align: center;
    }


    /* =====================================================
       WHATSAPP MOBILE
    ====================================================== */

    .footer-social .footer-whatsapp {
        width: 100%;

        max-width: 330px;

        min-height: 48px;

        margin: 0 auto;

        padding: 0 18px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        border-radius: 26px;
    }

    .footer-social
    .footer-whatsapp
    .wa-icon {
        width: 21px;
        height: 21px;

        flex-basis: 21px;
    }

    .footer-social
    .footer-whatsapp
    .wa-icon svg {
        width: 21px !important;
        height: 21px !important;
    }

    .footer-whatsapp strong {
        font-size: 10px;

        letter-spacing: 0.4px;
    }


    /* =====================================================
       FAIXA INFERIOR MOBILE
    ====================================================== */

    .footer-bottom-premium {
        min-height: auto;
    }

    .footer-bottom-content {
        width: calc(100% - 32px);

        min-height: auto;

        padding: 20px 0 18px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 11px;

        text-align: center;
    }


    /* COPYRIGHT */

    .footer-premium
    .footer-copyright {
        width: 100%;

        align-items: center;

        gap: 4px;

        text-align: center;
    }

    .footer-premium
    .footer-bottom-premium
    .footer-copyright p {
        font-size: 9px;

        line-height: 1.45;

        text-align: center;
    }

    .footer-premium
    .footer-bottom-premium
    .footer-copyright
    .footer-developer {
        color: #9ed8f5 !important;
    }

    .footer-premium
    .footer-bottom-premium
    .footer-copyright
    .footer-developer strong {
        color: #ffffff !important;
    }


    /* ESCONDE LOSANGO NO CELULAR */

    .footer-diamond {
        display: none;
    }


    /* LINKS INFERIORES */

    .footer-premium .footer-legal {
        width: 100%;

        justify-content: center;

        gap: 12px;

        flex-wrap: wrap;
    }

    .footer-premium .footer-legal a {
        font-size: 9px;
    }
}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 390px) {

    .footer-premium .wrap {
        width: calc(100% - 24px);
    }

    .footer-logo-area img {
        max-width: 285px;
    }

    .footer-pillars {
        font-size: 8px;

        letter-spacing: 0.5px;
    }

    .footer-purpose {
        font-size: 15px;
    }


    /* DUAS COLUNAS CONTINUAM */

    .footer-nav {
        padding-right: 10px;
    }

    .footer-ministerio {
        padding-left: 14px;
    }

    .footer-col h4 {
        font-size: 13px;

        letter-spacing: 1px;
    }

    .footer-col > a {
        font-size: 10px;
    }


    /* REDES */

    .footer-social h4 {
        font-size: 16px;

        letter-spacing: 1.5px;
    }

    .social-buttons a {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .footer-social .footer-whatsapp {
        max-width: 100%;
    }


    /* PARTE INFERIOR */

    .footer-bottom-content {
        width: calc(100% - 24px);
    }

    .footer-premium
    .footer-bottom-premium
    .footer-copyright p,
    .footer-premium
    .footer-legal a {
        font-size: 8px;
    }
}
