/* ============================================
   FOOTER ENHANCED - Ouse Saber
   Otimizado para SEO, Conversão, UX e Performance
   Layout 100% CSS Grid/Flexbox - Sem dependência do Bootstrap
   ============================================ */

/* Variáveis de Cores do Footer */
:root {
    --footer-bg-primary: #0f0f0f;
    --footer-bg-secondary: #1a1a1a;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: rgba(255, 255, 255, 0.8);
    --footer-text-muted: rgba(255, 255, 255, 0.6);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-accent: #d16633; /* Secundário do tenant */
}

/* Usar cores do tenant se disponíveis */
.page-low.block-footer {
    --footer-bg-primary: var(--principal, #0f0f0f);
    --footer-accent: var(--secundario, #d16633);
}

/* Page Low Block Footer - Container Principal */
.page-low.block-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Newsletter Section - Destaque para Conversão */
.footer-newsletter {
    background: linear-gradient(135deg, var(--footer-accent, #d16633) 0%, #c15a29 100%);
    padding: 40px 0;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(209, 102, 51, 0.95) 0%, rgba(193, 90, 41, 0.95) 100%);
    z-index: 0;
}

.footer-newsletter > * {
    position: relative;
    z-index: 1;
}

.newsletter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
}

.newsletter-wrapper {
    width: 100%;
    padding: 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-icon {
    flex: 0 0 auto;
}

.newsletter-icon i {
    font-size: 48px;
    color: #fff;
    opacity: 0.9;
}

.newsletter-text {
    flex: 1 1 300px;
    min-width: 250px;
}

.newsletter-text h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.newsletter-form {
    flex: 1 1 400px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1 1 200px;
    min-width: 180px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.form-input.has-error {
    border-color: #ff4444;
    background: rgba(255, 255, 255, 1);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-newsletter {
    flex: 0 0 auto;
    padding: 14px 32px;
    background: #fff;
    color: var(--footer-accent, #d16633);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-newsletter:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: var(--footer-accent, #d16633);
}

.btn-newsletter:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-newsletter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.btn-newsletter i {
    font-size: 14px;
}

/* Alerts */
.footer-newsletter .alert {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.footer-newsletter .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.footer-newsletter .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer-newsletter .alert i {
    font-size: 20px;
}

.footer-newsletter .btn-link {
    color: inherit;
    text-decoration: underline;
    margin-left: auto;
    font-weight: 600;
}

/* Main Footer Content */
.footer-enhanced {
    background: var(--footer-bg-primary, #0f0f0f);
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.8));
    padding: 60px 0 40px;
    width: 100%;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    position: relative;
}


.footer-content {
    width: 100%;
}

/* CSS Grid Moderno - Layout Fluido e Responsivo */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 50px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 0;
}

.footer-col {
    margin-bottom: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

.footer-title {
    color: var(--footer-text-primary, #ffffff);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--footer-border, rgba(255, 255, 255, 0.1));
    line-height: 1.4;
}

.footer-nav {
    margin: 0;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.8));
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-menu a:hover {
    color: var(--footer-accent, #d16633);
    padding-left: 5px;
}

/* Contact Info */
.contact-info {
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-item i {
    color: var(--footer-accent, #d16633);
    font-size: 20px;
    margin-top: 3px;
    flex: 0 0 auto;
    width: 24px;
    text-align: center;
}

.contact-item > div {
    flex: 1;
}

.contact-item strong {
    display: block;
    color: var(--footer-text-primary, #ffffff);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a,
.contact-item span {
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 15px;
    line-height: 1.7;
    display: inline-block;
    padding: 0;
}

.contact-item a:hover {
    color: var(--footer-accent, #d16633);
}

/* Social Icons */
.social-links {
    margin-bottom: 30px;
}

.social-icons {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Trust Badges */
.trust-badges {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.1));
}

.trust-badges h4 {
    color: var(--footer-text-primary, #ffffff);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badges-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.trust-badge i {
    color: var(--footer-accent, #d16633);
    font-size: 18px;
}

.trust-badge span {
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.9));
    font-size: 12px;
    font-weight: 500;
}

/* Footer Bottom - Centralizado (Melhor Prática Moderna) */
.footer-bottom {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.15));
    width: 100%;
    clear: both;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 40px;
}

.footer-bottom .copyright {
    color: var(--footer-text-secondary, rgba(255, 255, 255, 0.75));
    font-size: 15px;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    text-align: center;
    width: 100%;
}

.footer-bottom .copyright strong {
    color: var(--footer-text-primary, #ffffff);
    font-weight: 600;
}

.footer-bottom .powered-by {
    color: var(--footer-text-muted, rgba(255, 255, 255, 0.35));
    font-size: 12px;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.6;
    width: 100%;
    opacity: 0.7;
}

.footer-bottom .powered-by i {
    color: var(--footer-text-muted, rgba(255, 255, 255, 0.35));
    margin: 0 4px;
    opacity: 0.7;
}

.footer-bottom .powered-by a {
    color: var(--footer-text-muted, rgba(255, 255, 255, 0.4));
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom .powered-by a:hover {
    color: var(--footer-text-muted, rgba(255, 255, 255, 0.5));
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 22px;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.whatsapp-label {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.whatsapp-subtitle {
    font-size: 11px;
    opacity: 0.9;
    display: block;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .newsletter-container,
    .footer-container {
        max-width: 1200px;
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 1200px) {
    .newsletter-container,
    .footer-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }
}

@media (max-width: 979px) {
    .newsletter-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .footer-bottom-content {
        gap: 10px;
    }
    
    .footer-bottom .powered-by {
        white-space: normal;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text,
    .newsletter-form {
        flex: 1 1 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .btn-newsletter {
        width: 100%;
        justify-content: center;
    }
    
    .footer-col {
        margin-bottom: 40px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .newsletter-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-newsletter {
        padding: 35px 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-icon {
        margin: 0 auto;
    }
    
    .newsletter-icon i {
        font-size: 40px;
    }
    
    .newsletter-text {
        flex: 1 1 auto;
        min-width: 100%;
    }
    
    .newsletter-text h3 {
        font-size: 22px;
    }
    
    .newsletter-text p {
        font-size: 15px;
    }
    
    .newsletter-form {
        flex: 1 1 auto;
        min-width: 100%;
        flex-direction: column;
    }
    
    .form-group {
        flex: 1 1 auto;
        min-width: 100%;
    }
    
    .btn-newsletter {
        width: 100%;
        justify-content: center;
    }
    
    .footer-enhanced {
        padding: 45px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 10px 0;
    }
    
    .footer-col {
        padding: 0;
    }
    
    .footer-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    
    .footer-menu li {
        margin-bottom: 10px;
    }
    
    .contact-item {
        margin-bottom: 18px;
    }
    
    .social-icons {
        justify-content: flex-start;
        margin-bottom: 28px;
    }
    
    .trust-badges {
        text-align: left;
        margin-top: 28px;
        padding-top: 20px;
    }
    
    .badges-grid {
        align-items: stretch;
    }
    
    .footer-bottom {
        margin-top: 35px;
        padding-top: 30px;
    }
    
    .footer-bottom-content {
        padding: 20px 25px;
    }
    
    .footer-bottom .copyright {
        font-size: 14px;
    }
    
    .footer-bottom .powered-by {
        font-size: 12px;
    }
    
    /* WhatsApp Float Mobile */
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
    }
    
    .whatsapp-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .whatsapp-label {
        font-size: 12px;
    }
    
    .whatsapp-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        padding: 8px;
        border-radius: 50%;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
}