.services-section {
    position: relative;
    padding: 100px 8%;
    background-color: #DBCBB6;
    opacity: 0.9;
    height: auto;
    min-height: 70vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--color-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch; /* Garante que todos os cards na mesma linha tenham a mesma altura */
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 40px 40px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 300px; 
    min-height: 300px; 
    position: relative;
    overflow: hidden; 
    box-sizing: border-box; 
}

.service-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(42, 92, 85, 0.08);
    border-color: var(--color-gold);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-gold);
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--color-green);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 30px;
    flex-grow: 1; 
}

.card-link {
    display: block;
    width: calc(100% + 80px); 
    margin-left: -40px;
    margin-right: -40px;
    margin-top: auto;
    padding: 18px 0;
    background-color: transparent;
    border-top: 1px solid var(--color-gold);
    color: var(--color-green);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link:hover {
    background-color: var(--color-gold);
    color: white;
}

.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-100%) rotate(180deg);
    z-index: 10;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100%;
}

.section-divider .shape-fill {
    fill: var(--color-gold-light);
}


.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.waves-svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 100%;
}

.wave-path {
    animation: wave-move 360s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
    transform-origin: center bottom;
}

.wave-1 { animation-duration: 115s; animation-delay: -2s; }
.wave-2 { animation-duration: 110s; animation-delay: -5s; }
.wave-3 { animation-duration: 107s; }

/* Responsivo */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 40px 30px 0 30px; /* Padding reduzido para mobile */
        min-height: auto;
    }

    .card-link {
        width: calc(100% + 60px); /* Ajuste dinâmico para o novo padding de 30px */
        margin-left: -30px;
        margin-right: -30px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-divider, .wave-container {
        height: 60px;
    }
}