/* assets/css/responsive.css - LINHA VERMELHA CENTRALIZADA */

/* ==================== TELAS MÉDIAS (768px a 992px) ==================== */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header {
        padding: 4rem 0 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ==================== TELAS PEQUENAS (até 768px) - MOBILE ==================== */
@media (max-width: 768px) {
    /* Ajuste geral */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header responsivo */
    .header-main {
        padding: 10px 0;
    }
    
    .logo-main {
        font-size: 1.5rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
        margin-right: 8px;
    }
    
    .header-links {
        gap: 8px;
    }
    
    .header-links a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    /* Page Header ajustado */
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    /* ========== FOOTER MOBILE - TUDO CENTRALIZADO ========== */
    footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* TÍTULOS CENTRALIZADOS */
    .footer-column h3 {
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 15px;
        font-size: 1.3rem;
        position: relative;
        display: inline-block;
    }
    
    /* LINHA VERMELHA PERFEITAMENTE CENTRALIZADA */
    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background-color: var(--latam-red);
        border-radius: 2px;
    }
    
    /* LINKS PERFEITAMENTE CENTRALIZADOS */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .footer-links li {
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
    .footer-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #b0c4e0;
        text-decoration: none;
        font-size: 1rem;
        padding: 10px 25px;
        border-radius: 8px;
        transition: all var(--transition-normal);
        width: auto;
        min-width: 220px;
        max-width: 280px;
        text-align: center;
    }
    
    .footer-links a:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    /* TEXTOS CENTRALIZADOS */
    .footer-column p {
        text-align: center;
        max-width: 320px;
        margin: 0 auto 15px;
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .disclaimer {
        text-align: center;
        max-width: 320px;
        margin: 20px auto 0;
        font-size: 0.85rem;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border-left: 3px solid var(--latam-red);
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom p {
        text-align: center;
        margin: 8px 0;
    }
    
    /* Back to top menor */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 14px;
    }
}

/* ==================== TELAS MUITO PEQUENAS (até 480px) ==================== */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    /* FOOTER - TELAS MUITO PEQUENAS */
    .footer-content {
        gap: 35px;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .footer-column h3::after {
        width: 50px;
        height: 3px;
    }
    
    .footer-links a {
        min-width: 200px;
        max-width: 250px;
        padding: 9px 20px;
        font-size: 0.95rem;
    }
    
    .footer-column p {
        max-width: 280px;
        font-size: 0.9rem;
    }
    
    .disclaimer {
        max-width: 280px;
        font-size: 0.82rem;
        padding: 10px 12px;
    }
}

/* ==================== TELAS EXTREMAMENTE PEQUENAS (até 360px) ==================== */
@media (max-width: 360px) {
    .footer-column h3 {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        min-width: 180px;
        max-width: 220px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .footer-column p {
        max-width: 250px;
    }
    
    .disclaimer {
        max-width: 250px;
        font-size: 0.8rem;
    }
}

/* ==================== ORIENTAÇÃO LANDSCAPE ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .page-header {
        padding: 2rem 0 1.5rem;
    }
}

/* ANIMAÇÕES PARA DISPOSITIVOS TÁTEIS */
@media (hover: none) and (pointer: coarse) {
    .footer-links a,
    .header-links a {
        min-height: 44px;
    }
    
    .footer-links a {
        padding: 14px 25px !important;
    }
}

/* ==================== DESKTOP ACIMA DE 768px ==================== */
@media (min-width: 769px) {
    /* Garantir que desktop fique alinhado à esquerda */
    .footer-content {
        text-align: left;
    }
    
    .footer-column {
        align-items: flex-start;
    }
    
    .footer-links {
        align-items: flex-start;
    }
    
    .footer-links li {
        justify-content: flex-start;
    }
    
    .footer-links a {
        justify-content: flex-start;
        width: auto;
        min-width: auto;
        max-width: none;
    }
    
    .footer-column p {
        text-align: left;
        margin: 0 0 15px 0;
    }
    
    .disclaimer {
        margin: 15px 0 0 0;
        text-align: left;
    }
}