/* Badge para tipo Igreja */
.c-church-card__badge--blue {
    background-color: rgba(37, 99, 235, 0.13); /* azul claro */
    border-color: rgba(37, 99, 235, 0.5);
    color: #2563eb;
}
/* ==========================================================================
   Churches Section Styles - Paróquia São Gonçalo do Sapucaí
   Padronizado com o design system Mascouche-inspired
   ========================================================================== */

/* Churches section container */
.c-churches {
    background-color: rgb(var(--rgb-light-grey-2));
    padding: var(--x-80) 0;
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .c-churches {
        padding: 44px 0;
    }
}

/* Section header - igual às outras seções */
.c-churches__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 50px;
    padding: 24px 28px;
    border-radius: 26px;
    border: 1px solid rgba(var(--rgb-turquoise), 0.18);
    background: linear-gradient(130deg,
            rgba(var(--rgb-white), 0.98) 0%,
            rgba(var(--rgb-light-turquoise), 0.72) 58%,
            rgba(var(--rgb-light-yellow), 0.42) 100%);
    box-shadow: 0 18px 40px rgba(var(--rgb-black), 0.08);
    position: relative;
    overflow: hidden;
}

.c-churches__header::before {
    content: "";
    position: absolute;
    right: -55px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(var(--rgb-yellow), 0.26) 0%,
            rgba(var(--rgb-yellow), 0) 72%);
    pointer-events: none;
}

.c-churches__header>* {
    position: relative;
    z-index: 1;
}

.c-churches__title-container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.c-churches__icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,
            rgba(var(--rgb-white), 0.98) 0%,
            rgba(var(--rgb-light-turquoise), 0.74) 100%);
    border: 1px solid rgba(var(--rgb-turquoise), 0.25);
    border-radius: 50%;
    color: rgb(var(--rgb-turquoise));
    box-shadow: 0 10px 24px rgba(var(--rgb-turquoise), 0.16);
}

.c-churches__icon svg {
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
    width: 26px;
    height: 26px;
}

.c-churches__title {
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.c-churches__subtitle {
    font-size: 0.9rem;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-3));
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    max-width: 42ch;
}

/* Link "Ver todas" */
.c-churches__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-turquoise));
    text-decoration: none;
    transition: color 0.3s, gap 0.3s, transform 0.25s, box-shadow 0.25s, background-color 0.25s;
    white-space: nowrap;
    border: 1px solid rgba(var(--rgb-turquoise), 0.34);
    background: rgba(var(--rgb-white), 0.8);
    border-radius: 999px;
    padding: 11px 18px;
    box-shadow: 0 8px 18px rgba(var(--rgb-black), 0.06);
}

.c-churches__link:hover {
    color: rgb(var(--rgb-charcoal-1));
    gap: 12px;
    transform: translateY(-1px);
    background: rgb(var(--rgb-white));
    box-shadow: 0 11px 22px rgba(var(--rgb-black), 0.1);
}

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

.c-churches__link:hover svg {
    transform: translateX(4px);
}

/* Churches grid */
.c-churches__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
}

.c-churches__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* Church card */
.c-church-card {
    background-color: rgb(var(--rgb-white));
    border: 1px solid rgb(var(--rgb-light-grey-4));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.c-church-card:hover {
    background-color: rgb(var(--rgb-white));
    border-color: rgb(var(--rgb-turquoise));
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--rgb-black), 0.1);
}

/* Church card image container */
.c-church-card__image-container {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: rgb(var(--rgb-light-grey-3));
}

.c-church-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-church-card:hover .c-church-card__image {
    transform: scale(1.05);
}

/* Placeholder when no image */
.c-church-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--rgb-charcoal-3));
}

.c-church-card__placeholder svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 1.5px;
    fill: none;
    opacity: 0.5;
}

/* Church card content */
.c-church-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badge (Matriz/Capela) */
.c-church-card__badge-container {
    margin-bottom: 12px;
}

.c-church-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background-color: rgb(var(--rgb-light-grey-2));
    border: 1px solid rgb(var(--rgb-light-grey-4));
    color: rgb(var(--rgb-charcoal-3));
    transition: all 0.3s;
}

.c-church-card__badge--primary {
    background-color: rgba(var(--rgb-yellow), 0.2);
    border-color: rgba(var(--rgb-yellow), 0.5);
    color: rgb(var(--rgb-dark-yellow));
}

.c-church-card:hover .c-church-card__badge--primary {
    background-color: rgb(var(--rgb-yellow));
    color: rgb(var(--rgb-charcoal-1));
}

/* Church card title */
.c-church-card__title {
    font-size: 1.0625rem;
    font-weight: 500;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: color 0.3s;
}

.c-church-card:hover .c-church-card__title {
    color: rgb(var(--rgb-turquoise));
}

/* Church card address */
.c-church-card__address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-3));
    margin: 0;
    line-height: 1.5;
}

.c-church-card__address svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    stroke: rgb(var(--rgb-turquoise));
    stroke-width: 1.5px;
    fill: none;
}

@media screen and (max-width: 768px) {
    .c-churches__header {
        margin-bottom: 34px;
        padding: 18px 20px;
        border-radius: 22px;
    }

    .c-churches__title-container {
        gap: 14px;
    }

    .c-churches__icon {
        height: 52px;
        width: 52px;
    }

    .c-churches__title {
        font-size: 1.35rem;
    }

    .c-churches__subtitle {
        font-size: 0.84rem;
    }

    .c-churches__link {
        padding: 10px 16px;
    }

    .c-church-card__content {
        padding: 18px 16px;
    }

    .c-church-card__title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
}

@media screen and (max-width: 640px) {
    .c-churches__header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: left;
    }

    .c-churches__title-container {
        justify-content: flex-start;
    }

    .c-churches__link {
        justify-content: center;
        width: fit-content;
        align-self: flex-start;
    }
}

/* ==========================================================================
   Church Detail Gallery
   ========================================================================== */

.c-church-gallery {
    display: grid;
    gap: 16px;
}

.c-church-gallery__hero {
    border: 1px solid rgba(var(--rgb-turquoise), 0.2);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        rgba(var(--rgb-white), 1) 0%,
        rgba(var(--rgb-light-turquoise), 0.25) 100%
    );
    box-shadow: 0 18px 36px rgba(var(--rgb-black), 0.1);
}

.c-church-gallery__hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center center;
    background: #f8fafc;
    max-height: 420px;
}

.c-church-gallery__hero--placeholder {
    min-height: 260px;
}

.c-church-gallery__placeholder {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--rgb-charcoal-3), 0.45);
    background:
        radial-gradient(
            circle at 20% 18%,
            rgba(var(--rgb-turquoise), 0.1) 0%,
            rgba(var(--rgb-turquoise), 0) 52%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(var(--rgb-yellow), 0.15) 0%,
            rgba(var(--rgb-yellow), 0) 42%
        ),
        rgb(var(--rgb-light-grey-2));
}

.c-church-gallery__thumbs {
    border: 1px solid rgb(var(--rgb-light-grey-4));
    border-radius: 16px;
    background: rgb(var(--rgb-white));
    padding: 14px;
    box-shadow: 0 12px 28px rgba(var(--rgb-black), 0.06);
}

.c-church-gallery__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.c-church-gallery__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
    letter-spacing: 0.01em;
}

.c-church-gallery__meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(var(--rgb-turquoise), 0.26);
    background: rgba(var(--rgb-light-turquoise), 0.42);
    color: rgb(var(--rgb-dark-turquoise));
    padding: 5px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.c-church-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.c-church-gallery__thumb {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgb(var(--rgb-light-grey-4));
    background: rgb(var(--rgb-white));
    box-shadow: 0 6px 14px rgba(var(--rgb-black), 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.c-church-gallery__thumb:hover {
    border-color: rgba(var(--rgb-turquoise), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(var(--rgb-black), 0.12);
}

.c-church-gallery__thumb-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .c-church-gallery__hero {
        border-radius: 16px;
    }

    .c-church-gallery__thumbs {
        border-radius: 14px;
        padding: 12px;
    }

    .c-church-gallery__head {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    .c-church-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   Church Detail Content Cards
   ========================================================================== */

.c-church-detail-card {
    border: 1px solid rgb(var(--rgb-light-grey-4));
    border-radius: 18px;
    background: rgb(var(--rgb-white));
    box-shadow: 0 12px 30px rgba(var(--rgb-black), 0.07);
    overflow: hidden;
}

.c-church-detail-card__head {
    border-bottom: 1px solid rgba(var(--rgb-light-grey-4), 0.95);
    background: linear-gradient(
        120deg,
        rgba(var(--rgb-white), 0.98) 0%,
        rgba(var(--rgb-light-turquoise), 0.28) 100%
    );
    padding: 14px 18px;
}

.c-church-detail-card__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
}

.c-church-detail-card__title svg {
    flex-shrink: 0;
    color: rgb(var(--rgb-turquoise));
}

.c-church-detail-card__body {
    padding: 16px 18px;
}

.c-church-detail-card__body--text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-3));
}

.c-church-schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.c-church-schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgb(var(--rgb-light-grey-4));
    border-radius: 12px;
    background: rgb(var(--rgb-light-grey-2));
    padding: 10px 12px;
}

.c-church-schedule-item__day {
    min-width: 122px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
}

.c-church-schedule-item__times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.c-church-time-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--rgb-dark-yellow), 0.28);
    background: rgba(var(--rgb-yellow), 0.22);
    color: rgb(var(--rgb-dark-yellow));
    font-size: 0.75rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .c-church-detail-card {
        border-radius: 14px;
    }

    .c-church-detail-card__head {
        padding: 12px 14px;
    }

    .c-church-detail-card__title {
        font-size: 0.96rem;
    }

    .c-church-detail-card__body {
        padding: 12px 14px;
    }

    .c-church-schedule-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .c-church-schedule-item__day {
        min-width: 0;
    }
}

/* ==========================================================================
   Church Detail Sidebar
   ========================================================================== */

.c-church-sidebar {
    border: 1px solid rgb(var(--rgb-light-grey-4));
    border-radius: 18px;
    background: linear-gradient(
        165deg,
        rgba(var(--rgb-white), 0.98) 0%,
        rgba(var(--rgb-light-grey-2), 0.96) 100%
    );
    box-shadow: 0 14px 30px rgba(var(--rgb-black), 0.08);
    padding: 18px;
}

.c-church-sidebar__title {
    margin: 0 0 12px;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
}

.c-church-sidebar__block {
    margin-bottom: 12px;
}

.c-church-sidebar__address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.c-church-sidebar__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgb(var(--rgb-dark-yellow));
}

.c-church-sidebar__text-main {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
}

.c-church-sidebar__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-3));
}

.c-church-sidebar__text-meta {
    margin: 2px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-3));
}

.c-church-sidebar__map-btn,
.c-church-sidebar__back-btn {
    width: 100%;
    justify-content: center;
}

.c-church-sidebar__footer {
    padding-top: 12px;
    border-top: 1px solid rgb(var(--rgb-light-grey-4));
}

.c-church-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 0.74rem;
    line-height: 1;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.c-church-type-badge--matriz {
    color: rgb(var(--rgb-dark-yellow));
    background: rgba(var(--rgb-yellow), 0.25);
    border-color: rgba(var(--rgb-dark-yellow), 0.22);
}

.c-church-type-badge--capela {
    color: rgb(var(--rgb-charcoal-2));
    background: rgb(var(--rgb-light-grey-2));
    border-color: rgb(var(--rgb-light-grey-4));
}

.c-church-sidebar__back-wrap {
    margin-top: 12px;
}

@media screen and (max-width: 768px) {
    .c-church-sidebar {
        border-radius: 14px;
        padding: 14px;
    }

    .c-church-sidebar__title {
        margin-bottom: 10px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Church History Content
   ========================================================================== */

.c-church-history__content {
    font-size: 0.95rem;
    line-height: 1.75;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-2));
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.c-church-history__content p {
    margin: 0 0 1em;
}

.c-church-history__content p:last-child {
    margin-bottom: 0;
}

.c-church-history__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.c-church-history__content h2,
.c-church-history__content h3,
.c-church-history__content h4 {
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-charcoal-1));
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.c-church-history__content h2 { font-size: 1.4rem; }
.c-church-history__content h3 { font-size: 1.15rem; }
.c-church-history__content h4 { font-size: 1rem; }

.c-church-history__content blockquote {
    margin: 1em 0;
    padding: 12px 18px;
    border-left: 4px solid rgba(var(--rgb-turquoise), 0.5);
    background: rgba(var(--rgb-light-turquoise), 0.15);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: rgb(var(--rgb-charcoal-2));
}

/* ==========================================================================
   Church Historic Photos Gallery
   ========================================================================== */

.c-church-historic-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.c-church-historic-photo {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgb(var(--rgb-light-grey-4));
    background: rgb(var(--rgb-white));
    box-shadow: 0 8px 20px rgba(var(--rgb-black), 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.c-church-historic-photo:hover {
    border-color: rgba(var(--rgb-turquoise), 0.4);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(var(--rgb-black), 0.14);
}

.c-church-historic-photo__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-church-historic-photo:hover .c-church-historic-photo__image {
    transform: scale(1.04);
}

.c-church-historic-photo__caption {
    padding: 10px 14px;
    background: linear-gradient(
        to top,
        rgba(var(--rgb-charcoal-1), 0.92) 0%,
        rgba(var(--rgb-charcoal-1), 0.72) 100%
    );
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.c-church-historic-photo__legend {
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: Inter, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
}

.c-church-historic-photo__year {
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: Inter, system-ui, sans-serif;
    color: rgb(var(--rgb-yellow));
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .c-church-historic-photos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .c-church-historic-photo {
        border-radius: 10px;
    }

    .c-church-historic-photo__caption {
        padding: 8px 10px;
    }

    .c-church-historic-photo__legend {
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .c-church-historic-photos {
        grid-template-columns: 1fr;
    }
}
