/*
|--------------------------------------------------------------------------
| SAN NICODEMO ABATE
|--------------------------------------------------------------------------
| CHURCH PAGE
|--------------------------------------------------------------------------
|
| Page-specific presentation for:
|
| - Church hero
| - Main church image and introduction
| - Photographic archive
| - Church gallery cards
| - Community memory panel
| - Church responsive behaviour
|
| Shared typography, buttons, header and footer remain in site.css.
|
|--------------------------------------------------------------------------
*/


/* ================================================================
   PAGE SHELL
================================================================ */

.church-page {
    width: 100%;
    padding: 44px 0 0;
}


/* ================================================================
   HERO
================================================================ */

.church-hero {
    width: min(88%, 1320px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(212, 175, 55, 0.14),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0d1b2a 0%,
            #102235 58%,
            #142b42 100%
        );
    box-shadow:
        0 24px 60px rgba(25, 37, 56, 0.10);
}

.church-hero-copy {
    max-width: 980px;
    padding: clamp(52px, 6vw, 88px);
}

.church-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 5.8vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.church-hero-description {
    max-width: 780px;
    margin: 24px 0 0;
    color: #d5dfe8;
    font-size: 1.08rem;
    line-height: 1.8;
}


/* ================================================================
   INTRODUCTION
================================================================ */

.church-intro {
    width: min(88%, 1320px);
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(38px, 5vw, 74px);
    align-items: center;
}

.church-intro-image {
    margin: 0;
    overflow: hidden;
    border-radius: 26px;
    background: #ece7dc;
    box-shadow:
        0 22px 56px rgba(25, 37, 56, 0.12);
}

.church-intro-image img {
    display: block;
    width: 100%;
    height: clamp(520px, 55vw, 680px);
    object-fit: cover;
    object-position: center 30%;
}

.church-intro-copy {
    max-width: 650px;
}

.church-intro-copy h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.church-intro-copy > p:not(.eyebrow) {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
}


/* ================================================================
   PHOTOGRAPHIC ARCHIVE
================================================================ */

.church-archive {
    width: min(88%, 1320px);
    margin: 110px auto 0;
}

.church-section-heading {
    max-width: 860px;
}

.church-section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 3.5vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.church-section-heading > p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.8;
}


/* ================================================================
   GALLERY
================================================================ */

.church-gallery {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.church-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(13, 27, 42, 0.10);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow:
        0 16px 42px rgba(25, 37, 56, 0.08);
}

.church-card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ebe6dc;
}

.church-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.28s ease;
}

.church-card:hover .church-card-image img {
    transform: scale(1.025);
}

.church-card-content {
    padding: 24px;
}

.church-card-content h3 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.2;
}

.church-card-content p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.church-empty-state {
    margin-top: 34px;
    padding: 34px;
    border: 1px dashed rgba(13, 27, 42, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.60);
}

.church-empty-state p {
    margin: 0;
    color: var(--muted);
}


/* ================================================================
   COMMUNITY MEMORY
================================================================ */

.church-memory-panel {
    width: min(88%, 1320px);
    margin: 90px auto 110px;
    padding: clamp(42px, 5vw, 70px);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(212, 175, 55, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fffdf8 0%,
            #fbf7ee 100%
        );
    box-shadow:
        0 20px 55px rgba(25, 37, 56, 0.08);
}

.church-memory-content {
    max-width: 800px;
}

.church-memory-panel h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.church-memory-panel p:not(.eyebrow) {
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1050px) {

    .church-intro {
        grid-template-columns: 1fr;
    }

    .church-intro-image {
        max-width: 760px;
    }

    .church-intro-image img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-position: center 25%;
    }

    .church-intro-copy {
        max-width: 760px;
    }

    .church-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 760px) {

    .church-page {
        padding-top: 24px;
    }

    .church-hero,
    .church-intro,
    .church-archive,
    .church-memory-panel {
        width: calc(100% - 24px);
    }

    .church-hero {
        border-radius: 22px;
    }

    .church-hero-copy {
        padding: 42px 26px;
    }

    .church-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    .church-hero-description {
        font-size: 1rem;
    }

    .church-intro {
        margin-top: 24px;
        gap: 32px;
    }

    .church-intro-image {
        border-radius: 20px;
    }

    .church-intro-image img {
        aspect-ratio: 4 / 5;
    }

    .church-intro-copy h2 {
        font-size: clamp(2.25rem, 11vw, 3.6rem);
    }

    .church-archive {
        margin-top: 78px;
    }

    .church-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 28px;
    }

    .church-card-image {
        aspect-ratio: 4 / 5;
    }

    .church-memory-panel {
        margin-top: 70px;
        margin-bottom: 80px;
        padding: 34px 24px;
        border-radius: 22px;
    }

    .church-memory-panel .btn {
        width: 100%;
    }

}


/* ================================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {

    .church-card-image img {
        transition: none;
    }

    .church-card:hover .church-card-image img {
        transform: none;
    }

}
