/* Estilos da Seção de Áreas */
.areas {
    padding: var(--spacing-section);
    background: var(--bg-light);
    position: relative;
}

.areas__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 2rem;
}

.section__title {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.section__subtitle {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.areas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1.5rem; 
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.area__card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.area__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.area__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.area__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.area__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinha os itens na parte inferior */
    align-items: flex-start;
    gap: 0.25rem;
    transform: translateY(60px);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}


.area__title {
    color: var(--text-light);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem; 
    position: relative;
    padding-bottom: 0.75rem;
}

.area__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.6s ease;
}

.area__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.4; /* Garante legibilidade */
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    margin: 0; /* Remove margens que poderiam causar desalinhamento */
}

/* Efeitos de Hover */
.area__card:hover {
    transform: translateY(-16px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.area__card:hover .area__image {
    transform: scale(1);
}

.area__card:hover .area__overlay {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.8) 60%,
            rgba(0, 0, 0, 0.95) 100%);
}

.area__card:hover .area__content {
    transform: translateY(0);
}

.area__card:hover .area__title::after {
    width: 60px;
}

.area__card:hover .area__description {
    opacity: 1;
    transform: translateY(0);
}

/* Lista de Serviços */
.areas__services {
    margin-top: 3rem; /* Reduced from 4rem */
    padding: 1.5rem; /* Reduced from 2rem */
    background: white;
    border-radius: 16px; /* Slightly reduced */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.areas__services-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem; /* Slightly reduced */
}

.areas__services-item {
    color: var(--text-dark);
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 500;
    position: relative;
    padding-left: 1.25rem;
    transition: color 0.3s ease;
}

.areas__services-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.areas__services-item:hover {
    color: var(--primary-color);
}

.areas__services-item:hover::before {
    transform: translateX(5px);
}

/* Responsividade */
@media (max-width: 1200px) {
    .areas__grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .section__title {
        font-size: 2rem;
    }

    .area__content {
        gap: 1.2rem;
    }

    .section__subtitle {
        font-size: 1.1rem;
    }

    .area__card {
        aspect-ratio: 16/9;
    }

    .areas__services-list {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}