/* ====================================
   MELHORIAS - PACOTE COMPLETO
   ==================================== */

/* 1. SLIDER ANTES/DEPOIS - Comparação de Restauro */
.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.before-after-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.before-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-img {
    z-index: 1;
}

.after-img {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--color-secondary);
    cursor: ew-resize;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border: 3px solid var(--color-light);
    border-radius: 50%;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.slider-button svg {
    width: 24px;
    height: 24px;
    fill: var(--color-light);
}

.before-after-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
    pointer-events: none;
}

.label {
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 2. WHATSAPP BUTTON FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 30px;
    z-index: 9998;
    animation: floatPulse 3s ease-in-out infinite;
}

.whatsapp-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes floatPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 3. ANIMAÇÕES DE SCROLL */
.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

/* 4. CONTROLES DE ACESSIBILIDADE */
.accessibility-bar {
    position: fixed;
    top: 100px;
    right: -200px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 12px 0 0 12px;
    z-index: 9997;
    transition: right 0.3s ease;
    backdrop-filter: blur(10px);
}

.accessibility-bar.open {
    right: 0;
}

.accessibility-toggle {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border: none;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: var(--color-primary);
}

.accessibility-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.accessibility-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-secondary);
}

.accessibility-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modo Alto Contraste */
body.high-contrast {
    filter: contrast(150%) brightness(110%);
}

body.high-contrast .navbar,
body.high-contrast .footer {
    background: #000;
}

body.high-contrast .principle-card,
body.high-contrast .service-card,
body.high-contrast .portfolio-item {
    border: 2px solid #fff;
}

/* Tamanhos de Fonte */
body.font-large {
    font-size: 18px;
}

body.font-large h1 {
    font-size: 72px;
}

body.font-large h2 {
    font-size: 48px;
}

body.font-large h3 {
    font-size: 32px;
}

body.font-extra-large {
    font-size: 20px;
}

body.font-extra-large h1 {
    font-size: 80px;
}

body.font-extra-large h2 {
    font-size: 56px;
}

body.font-extra-large h3 {
    font-size: 36px;
}

/* 5. DEPOIMENTOS */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    position: relative;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark);
}

.author-info h4 {
    margin: 0;
    color: var(--color-secondary);
    font-size: 16px;
}

.author-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-rating {
    color: var(--color-secondary);
    font-size: 18px;
    margin-top: 10px;
}

/* 6. FILTROS DE PORTFÓLIO */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-light);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-secondary);
    color: var(--color-dark);
    border-color: var(--color-secondary);
}

.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-item.hidden {
    display: none;
}

/* 7. GOOGLE MAPS */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.3) contrast(1.1);
}

/* 8. FORMULÁRIO APRIMORADO */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--color-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--color-light);
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ff6b6b;
}

.form-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.form-success.show {
    display: block;
}

/* 9. LAZY LOADING PLACEHOLDER */
img[loading="lazy"] {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: shimmerLoading 1.5s infinite;
}

@keyframes shimmerLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* RESPONSIVO - Melhorias Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 95px;
        right: 30px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .accessibility-bar {
        top: auto;
        bottom: 80px;
        right: -180px;
    }
    
    .before-after-slider {
        margin: 20px auto;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}
