/* Estilos responsivos para o site Arena */

/* Tablets e dispositivos médios (até 992px) */
@media screen and (max-width: 992px) {
    /* Header e navegação */
    .header-container {
        padding: 10px 20px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    /* Hero section */
    .slide-content h1 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    /* Serviços */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Sobre */
    .about-container {
        flex-direction: column;
    }
    
    .about-img, .about-content {
        flex: none;
        width: 100%;
    }
    
    /* Contato */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* Galeria lateral */
    .side-gallery {
        display: none; /* Ocultar em tablets */
    }
    
    /* Avaliações do Google */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-rating {
        margin-top: 10px;
    }
}

/* Dispositivos móveis (até 768px) */
@media screen and (max-width: 768px) {
    /* Header e navegação */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .header-container {
        padding: 5px 15px;
        width: 100%;
    }
    
    .logo img {
        width: 250px;
        margin: -45px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        padding: 10px;
        z-index: 1001;
    }
    
    /* Menu mobile no formato drawer lateral */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    nav ul {
        display: block;
        position: fixed;
        top: 0;
        left: -280px; /* Inicialmente fora da tela */
        width: 280px;
        height: 100%;
        background-color: white;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    nav ul.active {
        left: 0; /* Desliza para dentro da tela */
    }
    
    nav ul li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 25px;
        text-align: left;
        font-size: 16px;
    }
    
    /* Hero section - ajuste para ficar abaixo do menu */
    .hero {
        margin-top: 70px; /* Altura do header fixo */
        height: calc(100vh - 70px);
        max-height: 700px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    /* Serviços */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    /* Projetos */
    .projects-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    /* Avaliações do Google */
    .testimonial {
        padding: 15px;
    }
    
    .review-author {
        flex-direction: column;
    }
    
    .author-photo {
        margin-bottom: 10px;
    }
    
    /* Modal de avaliações */
    .reviews-modal-content {
        width: 95%;
        padding: 15px;
    }
}

/* Dispositivos móveis pequenos (até 480px) */
@media screen and (max-width: 480px) {
    /* Header */
    .logo img {
        width: 200px;
        margin: -35px 0;
    }
    
    /* Hero section */
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Controles do slideshow */
    .prev, .next {
        padding: 10px;
        font-size: 18px;
    }
    
    /* Seções */
    .section-title h2 {
        font-size: 24px;
    }
    
    /* Avaliações */
    .testimonial-text {
        font-size: 16px;
    }
}

/* Estilos específicos para avaliações do Google */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    align-items: center;
}

.author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    color: var(--primary);
}

.review-date {
    font-size: 14px;
    color: var(--gray);
}

.review-rating {
    color: #FFD700;
}

.review-text {
    line-height: 1.6;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.review-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.loading-reviews {
    text-align: center;
    padding: 30px;
    color: var(--gray);
}

.review-error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
}

/* Modal de avaliações */
.reviews-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.reviews-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray);
}

.close-modal:hover {
    color: var(--primary);
}

.all-reviews-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.show-all-reviews {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.show-all-reviews:hover {
    background-color: #0055aa;
}

/* Animação para o menu lateral */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { left: -280px; }
    to { left: 0; }
}

.mobile-menu-overlay.active {
    animation: fadeIn 0.3s forwards;
}

nav ul.active {
    animation: slideIn 0.3s forwards;
}
