/* ==========================================================================================
   ||   LEANDRO ESTÉTICA AUTOMOTIVA - ESTILOS CUSTOMIZADOS                                ||
   ========================================================================================== */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
}

.hero-bg {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 1) 100%), url('https://images.pexels.com/photos/3802510/pexels-photo-3802510.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
}

.section-glow {
     background-image: radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0) 40%);
}

.filter-btn.active {
    background-color: #DC2626; /* red-600 */
    color: white;
    border-color: #DC2626;
}

@keyframes scale-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-scale-in {
    animation: scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-container {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(20, 20, 20, 0.9) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Responsividade para telas menores */
@media (max-width: 1024px) {
    .modal-container {
        max-width: 90vw !important;
        max-height: 90vh !important;
    }
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 90vw !important;
        max-height: var(--mobile-height, 85vh) !important;
        flex-direction: column;
        margin: var(--mobile-margin, 2vh) auto !important;
    }
    
    .modal-container > div {
        width: 100% !important;
    }
    
    .comparison-slider {
        aspect-ratio: 3/4 !important;
        border-radius: 16px 16px 0 0 !important;
        background: #000000 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .comparison-slider img {
        object-fit: cover !important;
    }
    
    .content-section {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 0.75rem 0.5rem !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Ajustar espaçamento do header no mobile */
    .content-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }
    
    /* Container da imagem no mobile */
    .mobile-image-container {
        padding: 0 !important;
        flex: 0 0 auto;
    }
    
    .mobile-image-container .comparison-slider {
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    /* Tipografia mobile simplificada */
    .service-title {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-description {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    .premium-button {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
    
    /* Esconder descrição no mobile */
    .service-description {
        display: none !important;
    }
    
    /* Hide the add to cart button in main modal on mobile */
    #modal-add-to-cart-btn {
        display: none !important;
    }
    
    /* Make info button full width */
    .button-group {
        gap: 0 !important;
    }
    
    .info-button {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    /* Adjust content footer spacing */
    .content-footer {
        padding: 0.25rem 0;
    }
}

/* Adaptação para diferentes navegadores mobile */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .modal-container {
            max-height: 80dvh !important;
        }
    }
}

/* Safari mobile específico */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .modal-container {
            max-height: 80vh !important;
            margin: 5vh auto !important;
        }
    }
}

/* Chrome mobile específico */
@media (max-width: 768px) and (min-height: 600px) {
    .modal-container {
        max-height: 82vh !important;
        margin: 3vh auto !important;
    }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
    .modal-container {
        max-width: 95vw !important;
        max-height: 80vh !important;
        margin: 2vh auto !important;
    }
    
    .content-section {
        padding: 1rem 0.75rem !important;
    }
    
    .service-title {
        font-size: 1.25rem !important;
    }
    
    .service-description {
        font-size: 12px !important;
    }
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: auto 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.comparison-slider .img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.comparison-slider .img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider .img-before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(220, 38, 38, 0.8) 0%, 
        rgba(239, 68, 68, 0.9) 50%, 
        rgba(220, 38, 38, 0.8) 100%);
    transform: translateX(-50%);
    z-index: 4;
    cursor: col-resize;
    box-shadow: 
        0 0 30px rgba(220, 38, 38, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.comparison-slider .slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 
        0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 0 4px rgba(220, 38, 38, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.comparison-slider .slider-handle:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
        0 6px 25px rgba(220, 38, 38, 0.5),
        0 0 0 6px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.comparison-slider .slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.comparison-slider .labels {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 5;
    pointer-events: none;
}

.comparison-slider .label {
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.comparison-slider .label.before {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.9) 0%, 
        rgba(185, 28, 28, 0.8) 100%);
}

.comparison-slider .label.after {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.9) 0%, 
        rgba(22, 163, 74, 0.8) 100%);
}

.comparison-slider .label:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes fade-in-out {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.toast {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: fade-in-out 3s forwards;
    z-index: 200;
}

.toast.show {
    display: block;
}

.service-card .details {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.service-card:hover .details {
    transform: translateY(0);
}

/* ==========================================================================================
   ||   ELEMENTOS PREMIUM DO MODAL                                                         ||
   ========================================================================================== */

.content-section {
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(20, 20, 20, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.service-badge {
    display: inline-block;
}

.badge-text {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.service-description {
    color: #d1d5db;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
}

.premium-button {
    position: relative;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.premium-button:active {
    transform: translateY(0);
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.premium-button:hover .button-glow {
    left: 100%;
}

/* ==========================================================================================
   ||   BOTÃO DE INFORMAÇÕES E GRUPO DE BOTÕES                                            ||
   ========================================================================================== */

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-button {
    position: relative;
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(55, 65, 81, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(55, 65, 81, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.info-button:active {
    transform: translateY(0);
}

.info-button .button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-button .button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.info-button:hover .button-glow {
    left: 100%;
}

/* ==========================================================================================
   ||   MODAL DE DETALHES                                                                  ||
   ========================================================================================== */

.details-modal-container {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(20, 20, 20, 0.9) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.details-header {
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(20, 20, 20, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.details-content {
    background: linear-gradient(135deg, 
        rgba(5, 5, 5, 0.8) 0%, 
        rgba(15, 15, 15, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.details-footer {
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.8) 0%, 
        rgba(20, 20, 20, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.steps-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 
        0 4px 15px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.step-content {
    flex: 1;
}

.step-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}
