/* ===============================
   GLASSMORPHISM STYLES
   =============================== */

.services--glass {
    background: linear-gradient(135deg, 
        rgba(214, 32, 39, 0.05) 0%, 
        rgba(214, 32, 39, 0.03) 50%,
        rgba(214, 32, 39, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

.services--glass .services__background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(214, 32, 39, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(214, 32, 39, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(214, 32, 39, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.services--glass .services__container {
    position: relative;
    z-index: 1;
}

.services--glass .services__header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .services--glass .services__header {
        margin-bottom: 3rem;
    }
}

.services--glass .services__subtitle {
    display: inline-block;
    color: #D62027;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(214, 32, 39, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(214, 32, 39, 0.2);
}

.services--glass h2 {
    font-size: 2.8rem;
    color: #212529;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .services--glass h2 {
        font-size: 2rem;
    }
}

.services--glass .services__header p {
    color: #495057;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services__grid--glass {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .services__grid--glass {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services__grid--glass {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.service-card-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Brilho sutil na borda superior */
.service-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent
    );
}

/* Efeito de luz ao passar o mouse */
.service-card-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(214, 32, 39, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
}

.service-card-glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(214, 32, 39, 0.3);
    box-shadow: 
        0 16px 48px rgba(214, 32, 39, 0.12),
        0 0 0 1px rgba(214, 32, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.service-card-glass:hover::after {
    left: 100%;
}

.service-card-glass:hover .service-card-glass__number {
    background: linear-gradient(135deg, #D62027, darken(#D62027, 10%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}

.service-card-glass:hover .service-card-glass__icon {
    background: #D62027;
    box-shadow: 0 8px 24px rgba(214, 32, 39, 0.3);
    transform: translateY(-4px) scale(1.05);
}

.service-card-glass:hover .service-card-glass__icon i {
    color: #212529;
    transform: scale(1.1);
}

.service-card-glass:hover .service-card-glass__link {
    opacity: 1;
    transform: translateY(0);
    color: #D62027;
}

.service-card-glass:hover .service-card-glass__link i {
    transform: translateX(4px);
}

/* Cards destacados */
.service-card-glass--highlight {
    background: linear-gradient(135deg, 
        rgba(214, 32, 39, 0.15) 0%, 
        rgba(214, 32, 39, 0.1) 100%
    );
    border-color: rgba(214, 32, 39, 0.3);
}

.service-card-glass--highlight:hover {
    background: linear-gradient(135deg, 
        rgba(214, 32, 39, 0.25) 0%, 
        rgba(214, 32, 39, 0.15) 100%
    );
}

.service-card-glass--highlight .service-card-glass__number {
    color: #D62027;
    font-size: 4rem;
}

.service-card-glass__number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(214, 32, 39, 0.08);
    line-height: 1;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card-glass__icon {
    width: 70px;
    height: 70px;
    background: rgba(214, 32, 39, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(214, 32, 39, 0.1);
}

.service-card-glass__icon i {
    font-size: 2rem;
    color: #D62027;
    transition: all 0.3s ease;
}

.service-card-glass h3 {
    font-size: 1.4rem;
    color: #212529;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.service-card-glass p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card-glass__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.7;
    transform: translateY(4px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card-glass__link span {
    position: relative;
}

.service-card-glass__link span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D62027;
    transition: width 0.3s ease;
}

.service-card-glass__link:hover span::after {
    width: 100%;
}

.service-card-glass__link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-glass {
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card-glass:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card-glass:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card-glass:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card-glass:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card-glass:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card-glass:nth-child(6) {
    animation-delay: 0.6s;
}

