:root {
    --secondary-color: #8AAE4F;
    --link-hover-color: #4F682F;
}

.page-title {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 3.5rem;
    color: #414040;
    margin-top: 5px;
}

p {
    font-size: 1rem;
    font-weight: 400;
    color: #4b4b4b;
    margin-top: 8px;
    max-width: 65%;
    text-align: center; /* Centralizado para combinar com o título */
}

/* --- CORREÇÃO DO CONTAINER PRINCIPAL --- */
#main_container {
    background-color: #F1EFFD;
    border-radius: 32px 32px 0 0;
    padding: 64px 8%;
    display: grid;
    column-gap: 40px;
    row-gap: 24px;
    /* Divide em duas colunas simétricas no desktop e deixa as linhas calculadas automaticamente */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto; 
    align-items: start; /* Evita que um bloco estique a altura do outro artificialmente */
}

/* Força a seção de título a ocupar as duas colunas inteiras do grid no topo */
.page-title {
    grid-column: 1 / -1;
}

#contacts_container {
    width: 100%;

    h3 {
        font-size: 2rem;
        font-weight: 500;
        color: #1F314C;
        margin-bottom: 10px;
    }

    p {
        font-size: 1rem;
        font-weight: 400;
        color: #010002;
        width: 100%;
        text-align: left;
    }

    h4 {
        font-size: 1.2rem;
        font-weight: 500;
        color: #010002;
        margin-top: 24px;
        text-transform: uppercase;
    }

    #cards_container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 24px 0;

        .contact_card {
            display: flex;
            align-items: center;
            gap: 16px;
            box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
            background-color: #FFFFFF;
            padding: 18px 16px;
            border-radius: 12px;
            text-decoration: none;
            transition: all .3s ease;
            border: 1px solid transparent;
            
            &:hover {
                box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
                transform: translateY(-2px);
            }
        
            .card_icon {
                display: flex;
                align-items: center;
                justify-content: center;
                min-width: 46px;
                min-height: 46px;
                border-radius: 100%;
                font-size: 1.3rem;
            }
            
            .card_infos {
                p {
                    font-size: 1rem;
                    font-weight: 600;
                    line-height: 1.2rem;
                    color: #1F314C;
                    margin: 0;
                }

                span {
                    font-size: .85rem;
                    font-weight: 500;
                    color: #64748B;
                    display: block;
                    margin-top: 2px;
                }
            }

            &.phone {
                &:hover { border-color: #CD9C4B; }
                .card_icon {
                    background-color: #FAF5ED;
                    color: #CD9C4B;
                }
            }

            &.location {
                &:hover { border-color: #3B82F6; }
                .card_icon {
                    background-color: #DBEAFE;
                    color: #3B82F6;
                }
            }

            &.email {
                &:hover { border-color: #8B5CF6; }
                .card_icon {
                    background-color: #EDE9FE;
                    color: #8B5CF6;
                }
            }

            &.whatsapp {
                &:hover { border-color: #16A34A; }
                .card_icon {
                    background-color: #DCFCE7;
                    color: #16A34A;
                }
            }
        }
    }

    #social_media_icons {
        display: flex;
        gap: 12px;
        margin-top: 12px;

        .icon-link {
            height: 44px;
            width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #FFFFFF;
            font-size: 1.3rem;
            border-radius: 100%;
            transition: all .3s ease;
            text-decoration: none;

            &:hover {
                transform: scale(1.1);
            }

            &.facebook {
                background-color: #3B5998;
                &:hover { background-color: #2d4373; }
            }

            &.instagram {
                background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
                &:hover { opacity: 0.9; }
            }

            &.youtube {
                background-color: rgb(221, 52, 52);
                &:hover { background-color: rgb(179, 39, 39); }
            }
        }
    }
}

#contact_supporte_container {
    width: 100%;
    margin-top: 45px; /* Alinha visualmente com o início do conteúdo da esquerda */
}

/* --- SEÇÃO DO PERSONAGEM (SUPORTE) --- */
.suporte-redirect-card {
    background: #fff;
    border: 2px solid #8AAE4F; 
    border-radius: 15px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(138, 174, 79, 0.1);
    gap: 20px;
}

.suporte-redirect-card .content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mini-char {
    width: 65px;
    height: 65px;
    background: #d4e3be;
    border-radius: 50%;
    padding: 5px;
    object-fit: contain;
    flex-shrink: 0;
}

.suporte-redirect-card h4 {
    color: #4F682F; 
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.suporte-redirect-card p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    text-align: left;
    max-width: 100%;
}

.btn-suporte {
    background: #8AAE4F;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-suporte:hover {
    background: #4F682F;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(79, 104, 47, 0.2);
}

/* --- INTERCEPTAÇÃO E RESPONSIVIDADE MOBILE --- */
@media (max-width: 900px) {
    #main_container {
        grid-template-columns: 1fr; /* Muda para uma coluna única */
        padding: 40px 5%;
        row-gap: 40px;
    }

    #contact_supporte_container {
        margin-top: 0; /* Remove o recuo no mobile */
    }

    .page-title p {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
        line-height: 2.6rem;
    }

    .suporte-redirect-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .suporte-redirect-card .content {
        flex-direction: column;
        gap: 12px;
    }

    .suporte-redirect-card p {
        text-align: center;
    }

    .btn-suporte {
        width: 100%;
        text-align: center;
    }
}