/* ==========================================================================
   Services Section Styles - Paróquia São Gonçalo do Sapucaí
   ========================================================================== */

/* Services section container */
.c-services {
    background-color: rgb(var(--rgb-charcoal-1));
    padding: 80px var(--x-80);
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .c-services {
        padding: 60px 20px;
    }
}

/* Section header */
.c-services__header {
    text-align: center;
    margin-bottom: 60px;
}

.c-services__suptitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgb(var(--rgb-yellow));
    margin-bottom: 16px;
}

.c-services__title {
    font-size: 2.25rem;
    font-weight: 500;
    color: rgb(var(--rgb-white));
    margin: 0;
    line-height: 1.2;
}

@media screen and (max-width: 768px) {
    .c-services__title {
        font-size: 1.75rem;
    }
}

/* Services grid */
.c-services__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

@media screen and (max-width: 1024px) {
    .c-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .c-services__grid {
        grid-template-columns: 1fr;
    }
}

/* Service card */
.c-service-card {
    background-color: rgb(var(--rgb-charcoal-2));
    border: 1px solid rgb(var(--rgb-charcoal-3));
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-service-card:hover {
    background-color: #343538;
    border-color: rgb(var(--rgb-turquoise));
    transform: translateY(-4px);
}

/* Service card icon */
.c-service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgb(var(--rgb-charcoal-1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.c-service-card:hover .c-service-card__icon {
    background-color: rgb(var(--rgb-turquoise));
}

.c-service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: rgb(var(--rgb-turquoise));
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.c-service-card:hover .c-service-card__icon svg {
    stroke: rgb(var(--rgb-white));
}

/* Service card title */
.c-service-card__title {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgb(var(--rgb-white));
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Service card description */
.c-service-card__description {
    font-size: 0.8125rem;
    color: rgba(var(--rgb-white), 0.6);
    margin: 0;
    line-height: 1.5;
}

/* Featured service card (larger) */
.c-service-card--featured {
    grid-column: span 2;
    flex-direction: row;
    text-align: left;
    padding: 40px;
    gap: 32px;
}

@media screen and (max-width: 576px) {
    .c-service-card--featured {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
}

.c-service-card--featured .c-service-card__icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.c-service-card--featured .c-service-card__icon svg {
    width: 36px;
    height: 36px;
}

.c-service-card--featured .c-service-card__content {
    flex: 1;
}

.c-service-card--featured .c-service-card__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.c-service-card--featured .c-service-card__description {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* Service card link/button */
.c-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(var(--rgb-turquoise));
    transition: color 0.3s ease;
}

.c-service-card__link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.c-service-card:hover .c-service-card__link {
    color: rgb(var(--rgb-white));
}

.c-service-card:hover .c-service-card__link svg {
    transform: translateX(4px);
}

/* Alternative light theme for services */
.c-services--light {
    background-color: rgb(var(--rgb-light-blue));
}

.c-services--light .c-services__suptitle {
    color: rgb(var(--rgb-charcoal-1));
}

.c-services--light .c-services__title {
    color: rgb(var(--rgb-charcoal-1));
}

.c-services--light .c-service-card {
    background-color: rgb(var(--rgb-white));
    border-color: rgba(var(--rgb-charcoal-3), 0.2);
}

.c-services--light .c-service-card:hover {
    background-color: rgb(var(--rgb-white));
    box-shadow: 0 10px 40px rgba(var(--rgb-black), 0.1);
}

.c-services--light .c-service-card__icon {
    background-color: rgb(var(--rgb-light-blue));
}

.c-services--light .c-service-card:hover .c-service-card__icon {
    background-color: rgb(var(--rgb-turquoise));
}

.c-services--light .c-service-card__title {
    color: rgb(var(--rgb-charcoal-1));
}

.c-services--light .c-service-card__description {
    color: rgba(var(--rgb-charcoal-1), 0.6);
}

/* Quick links row (horizontal scroll on mobile) */
.c-services__quick-links {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .c-services__quick-links {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
}

.c-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: rgba(var(--rgb-white), 0.1);
    border: 1px solid rgba(var(--rgb-white), 0.2);
    border-radius: 50px;
    color: rgb(var(--rgb-white));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.c-quick-link:hover {
    background-color: rgb(var(--rgb-turquoise));
    border-color: rgb(var(--rgb-turquoise));
}

.c-quick-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

@media screen and (max-width: 768px) {
    .c-quick-link {
        font-size: 0.8125rem;
        padding: 10px 16px;
        scroll-snap-align: start;
    }
}

/* Services list (alternative layout) */
.c-services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.c-services-list__item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: rgb(var(--rgb-charcoal-2));
    border: 1px solid rgb(var(--rgb-charcoal-3));
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.c-services-list__item:hover {
    background-color: #343538;
    border-color: rgb(var(--rgb-turquoise));
}

.c-services-list__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgb(var(--rgb-charcoal-1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.c-services-list__item:hover .c-services-list__icon {
    background-color: rgb(var(--rgb-turquoise));
}

.c-services-list__icon svg {
    width: 24px;
    height: 24px;
    stroke: rgb(var(--rgb-turquoise));
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.c-services-list__item:hover .c-services-list__icon svg {
    stroke: rgb(var(--rgb-white));
}

.c-services-list__content {
    flex: 1;
}

.c-services-list__title {
    font-size: 1rem;
    font-weight: 500;
    color: rgb(var(--rgb-white));
    margin: 0 0 4px 0;
}

.c-services-list__description {
    font-size: 0.8125rem;
    color: rgba(var(--rgb-white), 0.6);
    margin: 0;
}

.c-services-list__arrow {
    width: 24px;
    height: 24px;
    stroke: rgba(var(--rgb-white), 0.4);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.c-services-list__item:hover .c-services-list__arrow {
    stroke: rgb(var(--rgb-turquoise));
    transform: translateX(4px);
}

@media screen and (max-width: 768px) {
    .c-services__header {
        margin-bottom: 36px;
    }

    .c-service-card {
        border-radius: 16px;
        padding: 24px 18px;
    }

    .c-service-card__icon {
        height: 56px;
        margin-bottom: 16px;
        width: 56px;
    }

    .c-service-card__title {
        font-size: 1rem;
    }

    .c-service-card__description {
        font-size: 0.78rem;
    }
}

@media screen and (max-width: 576px) {
    .c-services {
        padding: 48px 16px;
    }

    .c-services__title {
        font-size: 1.5rem;
    }

    .c-services__grid {
        gap: 14px;
    }

    .c-services__quick-links {
        margin-inline: -2px;
        margin-top: 28px;
        padding-inline: 2px;
    }
}
