/**
 * FOOTER RESPONSIVO MOBILE-FIRST
 * Sebo & Livraria O Alfarrábio
 * Background: var(--bg-footer)
 */

/* ========================================== */
/* FOOTER - BASE MOBILE */
/* ========================================== */

.footer {
    background: var(--bg-footer) !important;
    color: var(--text-light);
    padding: 80px 20px 40px;
    font-family: 'Merriweather', serif;
    border-top: 1px solid var(--border-accent);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    transition: background 0.4s ease;
}

.container-footer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* ========================================== */
/* LOGO E NOME */
/* ========================================== */

.footer-nome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-footer {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--border-accent);
}

.footer-nome h3 {
    font-size: 24px;
    color: var(--text-light);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ========================================== */
/* LINKS RÁPIDOS */
/* ========================================== */

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.links h4 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links ul li {
    margin: 0;
}

.links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.links a:hover {
    color: var(--accent-gold);
    background: rgba(212, 165, 116, 0.1);
    transform: translateX(5px);
}

/* ========================================== */
/* SEÇÃO ENTRE EM CONTATO */
/* ========================================== */

.footer-section {
    width: 100%;
}

.footer-section h4 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    margin: 12px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.6;
}

.footer-section p i {
    color: var(--accent-gold);
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

/* ========================================== */
/* REDES SOCIAIS */
/* ========================================== */

.footer-redes {
    width: 100%;
    text-align: center;
}

.footer-redes h4 {
    margin-bottom: 25px;
}

.social-icons-wrapper {
    display: block !important;
    text-align: center !important;
    width: 100%;
    margin-top: 15px;
}

.footer-redes a {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    margin: 0 8px !important;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    vertical-align: middle;
}

.footer-redes a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: none !important;
}

[data-theme="dark"] .footer-redes a img {
    filter: brightness(0) invert(1) !important;
}

.footer-redes a:hover {
    transform: translateY(-5px);
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.footer-redes a:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1) !important;
}

.footer-redes a:hover::before {
    transform: scale(1);
}

.footer-redes a:hover img {
    filter: brightness(0) invert(1);
    /* White icons on gold background */
}

/* ========================================== */
/* FOOTER BOTTOM */
/* ========================================== */

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-gold);
}

/* ========================================== */
/* TABLET - 768px+ */
/* ========================================== */

@media (min-width: 768px) {
    .footer {
        padding: 60px 40px 30px;
    }

    .container-footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-nome {
        flex-direction: row;
        align-items: center;
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-nome h3 {
        font-size: 28px;
    }

    .links,
    .footer-section {
        flex: 1 1 calc(50% - 20px);
        align-items: flex-start;
    }

    .footer-section p {
        justify-content: flex-start;
    }

    .footer-redes {
        flex: 1 1 100%;
        margin-top: 20px;
    }
}

/* ========================================== */
/* DESKTOP - 1024px+ */
/* ========================================== */

@media (min-width: 1024px) {
    .footer {
        padding: 70px 60px 40px;
    }

    .footer-nome {
        flex: 0 0 auto;
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .logo-footer {
        width: 90px;
        height: 90px;
    }

    .links,
    .footer-section {
        flex: 1 1 auto;
    }

    .footer-redes {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .container-footer {
        flex-wrap: nowrap;
        gap: 60px;
    }
}

/**
 * ========================================
 * ESTILOS DA SEÇÃO DE AVALIAÇÕES
 * Depoimentos dos clientes na página principal
 * ========================================
 */

/* Container principal */
.depoimentos {
    background: var(--bg-secondary) !important;
    color: var(--text-primary);
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.depoimentos::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 120px;
    color: rgba(212, 165, 116, 0.1);
    /* Dourado muito transparente */
    font-family: Georgia, serif;
    line-height: 1;
}

/* Título */
.depoimento-titulo {
    text-align: center;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'Merriweather', serif;
}

/* Slider container */
.depoimento-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Track do slider */
.depoimento-track {
    display: flex;
    gap: 20px;
    position: relative;
    min-height: 280px;
    align-items: center;
    justify-content: center;
}

/* Card de avaliação - MOBILE */
.depoimento-card {
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    position: absolute;
    width: calc(100% - 40px);
    max-width: 600px;
    pointer-events: none;
    border: 1px solid var(--border-accent);
}

.depoimento-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
    z-index: 3;
}

.depoimento-card.prev,
.depoimento-card.next {
    opacity: 0;
    pointer-events: none;
}

/* Header do card */
.depoimento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.depoimento-usuario {
    display: flex;
    align-items: center;
    gap: 12px;
}

.depoimento-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.depoimento-foto-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #a67c52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid #e8d5b7;
}

.depoimento-info {
    flex: 1;
}

.depoimento-nome {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.depoimento-estrelas {
    color: #FFD700;
    font-size: 14px;
}

.depoimento-estrelas i {
    margin-right: 2px;
}

.depoimento-data {
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

/* Corpo do card */
.depoimento-corpo {
    margin: 16px 0;
}

.depoimento-comentario {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--accent-gold);
}

/* Footer do card */
.depoimento-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.depoimento-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.depoimento-item-info i {
    color: var(--accent-gold);
}

/* Botões de navegação - MOBILE */
.depoimento-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.depoimento-nav:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.depoimento-nav-prev {
    left: 0;
}

.depoimento-nav-next {
    right: 0;
}

/* Indicadores */
.depoimento-indicadores {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.depoimento-indicador,
.depoimento-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 6px;
    box-sizing: content-box;
}

.depoimento-indicador.active,
.depoimento-dot.active {
    background: var(--accent-gold);
    width: 8px;
    /* Mantém redondo */
    border-radius: 50%;
    transform: scale(1.3);
    /* Destaque pelo tamanho levemente maior */
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.4);
}

/* Estados especiais */
.depoimento-loading {
    width: 100%;
    max-width: 600px;
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

.depoimento-vazio,
.depoimento-erro {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.depoimento-vazio i,
.depoimento-erro i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
    color: var(--accent-gold);
}

.depoimento-erro .btn-retry {
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--accent-gold);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.depoimento-erro .btn-retry:hover {
    background: #a67c52;
    transform: translateY(-2px);
}

/* Animações */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========================================== */
/* TABLET - Depoimentos */
/* ========================================== */

@media (min-width: 768px) {
    .depoimentos {
        padding: 80px 40px;
    }

    .depoimentos::before {
        font-size: 180px;
        left: 40px;
    }

    .depoimento-titulo {
        font-size: 36px;
        margin-bottom: 60px;
    }

    .depoimento-slider {
        padding: 0 60px;
    }

    .depoimento-track {
        min-height: 300px;
        gap: 30px;
    }

    .depoimento-card {
        padding: 30px;
        border-radius: 16px;
        width: calc(100% - 120px);
        max-width: 700px;
    }

    .depoimento-card.prev {
        opacity: 0.3;
        transform: translateX(-120px) scale(0.85);
        z-index: 1;
        pointer-events: all;
    }

    .depoimento-card.next {
        opacity: 0.3;
        transform: translateX(120px) scale(0.85);
        z-index: 1;
        pointer-events: all;
    }

    .depoimento-foto,
    .depoimento-foto-placeholder {
        width: 60px;
        height: 60px;
        border-width: 3px;
    }

    .depoimento-foto-placeholder {
        font-size: 22px;
    }

    .depoimento-nome {
        font-size: 18px;
    }

    .depoimento-estrelas {
        font-size: 16px;
    }

    .depoimento-comentario {
        font-size: 16px;
        padding-left: 20px;
    }

    .depoimento-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .depoimento-indicadores {
        gap: 10px;
        margin-top: 40px;
    }

    .depoimento-indicador {
        width: 12px;
        height: 12px;
    }

    .depoimento-indicador.active {
        width: 30px;
        border-radius: 6px;
    }

    .depoimento-loading {
        height: 250px;
        max-width: 700px;
    }
}