/* ===== POPUP DE OFERTA ===== */
.offer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.offer-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 52, 64, 0.8);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(1, 52, 64, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
    border: 3px solid #D98E04;
}

.popup-header {
    position: relative;
    padding: 1rem 1.5rem 0;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #f8f9fa;
    color: #dc3545;
    transform: rotate(90deg);
}

.popup-body {
    padding: 1.5rem;
    text-align: center;
}

.offer-icon {
    margin-bottom: 1rem;
}

.offer-icon i {
    font-size: 3rem;
    color: #D98E04;
    animation: bounce 2s infinite;
}

.offer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #013440;
    margin-bottom: 1rem;
}

.offer-message {
    font-size: 1.2rem;
    color: #013440;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.offer-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.offer-features {
    margin-bottom: 2rem;
}

.offer-features .feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.offer-features .feature-item i {
    color: #198754;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp-popup {
    background: linear-gradient(135deg, #25D366, #20ba5a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-popup:hover {
    background: linear-gradient(135deg, #20ba5a, #1da851);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-secondary-popup {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-popup:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .popup-body {
        padding: 1rem;
    }
    
    .offer-title {
        font-size: 1.5rem;
    }
    
    .offer-message {
        font-size: 1.1rem;
    }
    
    .offer-icon i {
        font-size: 2.5rem;
    }
    
    .popup-actions {
        gap: 0.8rem;
    }
    
    .btn-whatsapp-popup,
    .btn-secondary-popup {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .offer-title {
        font-size: 1.3rem;
    }
    
    .offer-message {
        font-size: 1rem;
    }
    
    .offer-description {
        font-size: 0.9rem;
    }
}

/* ===== GALERIA DE FOTOS HERO ===== */
.hero-gallery {
    position: relative;
    padding: 2rem 0;
}

.gallery-container {
    position: relative;
    max-width: 100%;
}

.main-photo {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(1, 52, 64, 0.3);
}

.main-photo img {
    width: 100%;
    height: 300px; /* Altura fixa para formato paisagem */
    object-fit: cover; /* Mantém proporção e preenche o espaço */
    transition: all 0.3s ease;
}

.main-photo:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 52, 64, 0.8), rgba(4, 217, 217, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.main-photo:hover .photo-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.overlay-content h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1rem;
    margin: 0;
}

.secondary-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(1, 52, 64, 0.2);
}

.photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(217, 142, 4, 0.9);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(217, 142, 4, 0.3);
}

.quality-indicators {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quality-indicators .indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.quality-indicators .indicator i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #D98E04;
}

.quality-indicators .indicator span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Animações para a galeria */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividade da galeria */
@media (max-width: 768px) {
    .hero-gallery {
        padding: 1rem 0;
    }
    
    .main-photo {
        margin-bottom: 1rem;
    }
    
    .main-photo img {
        height: 250px; /* Altura reduzida para tablet */
    }
    
    .secondary-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .photo-item img {
        height: 100px;
    }
    
    .photo-badge {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .quality-indicators {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .quality-indicators .indicator {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .quality-indicators .indicator i {
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    .overlay-content h5 {
        font-size: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-photo img {
        height: 200px; /* Altura ainda menor para mobile */
    }
    
    .secondary-photos {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .photo-item img {
        height: 80px;
    }
    
    .quality-indicators .indicator span {
        font-size: 0.8rem;
    }
}
