/* 
* AD Betel - Correções de Responsividade para o Footer
* Este arquivo foca exclusivamente em melhorar a visualização do footer em todos os tamanhos de tela
*/

/* ===== CORREÇÕES BÁSICAS PARA O FOOTER ===== */

/* Melhorar a estrutura básica do footer */
.footer {
    position: relative;
    background-color: var(--dark-color);
    color: var(--light-color);
    width: 100%;
    overflow: hidden; /* Previne vazamentos de conteúdo */
}

.footer-top {
    padding: 80px 0 50px;
}

/* Melhorar a estrutura do grid dos widgets */
.footer-widgets {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr);
}

/* Ajustes no widget about */
.footer-widget.about-widget {
    grid-column: span 1;
}

/* Ajustes no logo do footer */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    max-width: 100%; /* Garante que não ultrapasse o contêiner */
}

/* Melhorar a legibilidade do slogan */
.footer-slogan {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

/* Ajustes nos títulos dos widgets */
.footer-widget h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Ajustes na lista de links */
.footer-links li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links li a {
    display: block;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links li a i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--primary-color);
}

.footer-links li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Ajustes na lista de horários */
.schedule-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.schedule-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.schedule-list .day {
    font-weight: 600;
}

.schedule-list .time {
    color: var(--primary-color);
}

/* Ajustes nos ícones sociais */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-social a img {
    width: 18px;
    height: 18px;
}

/* Melhorar o formulário de newsletter */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 100%;
    border: none;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-btn:hover {
    background-color: var(--secondary-color);
}

.newsletter-btn i {
    transition: all 0.3s ease;
}

.newsletter-btn:hover i {
    transform: translateX(5px);
}

/* Ajustes no footer bottom */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== CORREÇÕES PARA TELAS GRANDES (TVs, Monitores ultrawide) ===== */
@media screen and (min-width: 1921px) {
    .footer-top {
        padding: 100px 0 70px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
        max-width: 1800px;
        margin: 0 auto;
    }
    
    .footer-widget h4 {
        font-size: 24px;
    }
    
    .footer-widget p,
    .footer-links li a,
    .schedule-list li {
        font-size: 18px;
    }
    
    .footer-logo img {
        height: 80px;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
    }
    
    .footer-social a img {
        width: 22px;
        height: 22px;
    }
    
    .newsletter-form .form-control,
    .newsletter-btn {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .copyright {
        font-size: 16px;
    }
}

/* ===== CORREÇÕES PARA DESKTOP NORMAL ===== */
@media screen and (min-width: 1200px) and (max-width: 1920px) {
    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== CORREÇÕES PARA TABLETS ===== */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .footer-top {
        padding: 70px 0 40px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    /* Reorganizar os widgets para melhor visualização */
    .footer-widget.about-widget {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-widget.about-widget p {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-widget h4::after {
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 70px;
    }
    
    /* Ajustes para o segundo widget na primeira linha */
    .footer-widgets > div:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    /* Ajustes para o terceiro widget na primeira linha */
    .footer-widgets > div:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Ajustes para o quarto widget na segunda linha */
    .footer-widgets > div:nth-child(4) {
        grid-column: span 2;
        grid-row: 3;
    }
    
    .newsletter-form {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== CORREÇÕES PARA SMARTPHONES GRANDES ===== */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li a i {
        position: static;
        margin-right: 8px;
    }
    
    .footer-links li {
        padding-left: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .schedule-list li {
        justify-content: space-around;
        flex-wrap: wrap;
    }
    
    .schedule-list .day {
        margin-right: 15px;
    }
}

/* ===== CORREÇÕES PARA SMARTPHONES PEQUENOS ===== */
@media screen and (max-width: 480px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .footer-widget h4 {
        font-size: 18px;
    }
    
    .footer-widget h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .footer-links {
        margin: 0 auto;
        max-width: 250px;
    }
    
    .footer-links li a i {
        position: static;
        margin-right: 8px;
    }
    
    .footer-links li {
        padding-left: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .schedule-list {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .schedule-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 15px;
    }
    
    .schedule-list .day {
        margin-bottom: 5px;
        font-weight: 700;
        color: var(--primary-color);
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* ===== OTIMIZAÇÕES PARA MELHOR PERFORMANCE VISUAL ===== */

/* Reduzir uso de memória com animações mais eficientes */
.footer-links li a:hover,
.footer-social a:hover,
.newsletter-btn:hover {
    transition: all 0.2s ease;
}

/* Prevenção contra layout shift durante carregamento de fontes */
.footer {
    font-display: swap;
}

/* Melhoria visual em telas de alta resolução */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Cor de placeholder mais legível em diferentes navegadores */
.newsletter-form .form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Melhoria em cores de foco para acessibilidade */
.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 2px rgba(241, 90, 41, 0.4);
}

/* Melhorar espaçamento entre widgets em dispositivos de largura média */
@media screen and (min-width: 500px) and (max-width: 767px) {
    .footer-widget {
        padding: 0 20px;
    }
}

/* Ajuste específico para o Safari */
@supports (-webkit-touch-callout: none) {
    .footer-widgets {
        display: flex;
        flex-wrap: wrap;
    }
    
    @media screen and (min-width: 1200px) {
        .footer-widget {
            flex: 0 0 25%;
        }
    }
    
    @media screen and (min-width: 768px) and (max-width: 1199px) {
        .footer-widget.about-widget {
            flex: 0 0 100%;
        }
        
        .footer-widget:not(.about-widget) {
            flex: 0 0 50%;
        }
        
        .footer-widget:last-child {
            flex: 0 0 100%;
        }
    }
    
    @media screen and (max-width: 767px) {
        .footer-widget {
            flex: 0 0 100%;
        }
    }
}