/* Configurações Gerais do Footer */
.main-footer {
    background-color: #7b0404; /* Vermelho do seu header, mude para #0d3b7a se quiser azul */
    color: white;
    padding-top: 60px;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
}

.footer-container {
    max-width: 100%;
    padding: 0 5% 60px 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Coluna de Texto (Esquerda) */
.footer-info {
    flex: 1;
    min-width: 320px;
}

.footer-title {
    font-family: 'Sorts Mill Goudy', serif;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 1.1rem;
    max-width: 350px;
    margin-bottom: 20px;
}

.yellow-bar {
    width: 65px;
    height: 8px;
    background-color: #e0c218;
    margin-bottom: 40px;
}

.contact-details h3 {
    font-size: 1rem;
    text-decoration: underline;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-details p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Formulário (Centro) */
.footer-form {
    flex: 1.3;
    min-width: 350px;
}

.footer-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Resolve o problema do campo de telefone fugindo */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
    width: 0; /* Garante que o flex-grow funcione sem estourar */
    min-width: 0;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box; /* Fundamental para o preenchimento correto */
}

textarea {
    height: 130px;
    resize: none;
}

.btn-submit {
    background-color: #e0c218;
    color: #000;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: transform 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
    transform: scale(1.05);
}

/* Mapa (Direita) */
.footer-map {
    flex: 0.8;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.map-box {
    width: 100%;
    max-width: 400px;
    height: 350px;
    border: 2px solid white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Barra Inferior */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15); /* Um tom levemente mais escuro */
    padding: 25px 0;
}

.footer-bottom-content {
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 45px;
}

.logo-text-footer {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: Goudy;
    text-transform: uppercase;
}

.logo-title { font-weight: 700; font-size: 0.9rem; }
.logo-sub { font-size: 0.75rem; }

.footer-credits {
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials img {
    width: 28px;
    filter: brightness(0) invert(1); /* Deixa os ícones brancos */
}

/* Responsividade */
@media (max-width: 1024px) {
    .footer-map {
        justify-content: center;
        flex: 1 1 100%;
    }
    .map-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 40px 5%;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }
    
    .form-row input {
        width: 100%;
    }
}
