*{
    box-sizing:border-box}

html{
    scroll-behavior:smooth}

body {
    margin: 0;
    font-family: Poppins,sans-serif;
    background: #f5f6f3;
    color: #333;
    display: flex;
    flex-direction: column;}

.hero {
    position: relative;
    height: 85vh;
    min-height:785px;
    background: linear-gradient(rgba(28,67,59,.25),rgba(28,67,59,.45)),url('https://files.ecatholic.com/17428/slideshows/homeLarge/IMG_3556.JPG?t=1502157316000') center/cover fixed}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(250,250,250,.65),rgba(250,240,0,.35))}

nav,.heroContent{
    position:relative;
    z-index:2}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 6%;
    backdrop-filter:blur(12px);
    background:rgba(255,255,255,.08)}

nav ul{
    display:flex;
    gap:25px;
    list-style:none}

nav a{
    color:#fff;
    text-decoration:none}

.brand .church{
    font-size:.85rem;
    color:#fff;
    letter-spacing:2px}

.brand .family{
    font-size:2.2rem;
    font-weight:700;
    color:#fff}

.heroContent{
    height:78vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    padding:0px}

.heroContent h1{
    font-size:4.5rem;
    margin:0}

.heroContent p{
    font-size:1.4rem}

#countdown{
    margin-top:25px;
    padding:12px 20px;
    border-radius:40px;
    background:rgba(255,255,255,.18)}

.btn{
    background:#d4a43a;
    color:#fff;
    padding:12px 24px;
    border-radius:30px;
    text-decoration:none;
    border:none;
    cursor:pointer}

section{
    padding:30px 6%}

h2 {
    text-align: center;
    font-size: 2.3rem;
    color: #FF6D2C;}

.alt{
    background:#eef4ef}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(400px,1fr));
    gap:28px;}

.card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
    cursor:pointer;transition:.35s}

.card:hover{
    transform:translateY(-10px)}

.card img{
    width:100%;
    height:220px;
    object-fit:cover}

.info{
    padding:20px}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 16px}

    .gallery img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        border-radius: 16px;
        cursor: pointer;
        display: block;
        transition: transform .25s ease;}
        
        .gallery img:hover {
            transform: scale(1.03);}

.leaders{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;gap:30px}

.leader{
    text-align:center}

.leader img{
    width:150px;
    height:150px;
    border-radius:50%}

.contact{
    max-width:700px;
    margin:auto;
    display:grid;
    gap:15px}

input,textarea{
    padding:14px;
    border-radius:10px;
    border:1px solid #ccc}

textarea{height:130px}

footer{
    background:#2f5d50;
    color:#fff;
    text-align:center;
    padding:30px}

.modalWrap{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    justify-content:center;
    align-items:center;
    padding:20px}

.modal{
    background:#fff;
    max-width:760px;
    border-radius:20px;
    overflow:hidden}

.modal img{
    width:100%;
    height:340px;
    object-fit:cover}

.content{
    padding:24px}

.modal button{
    position:absolute;
    margin:15px}

.actions{
    display:flex;
    gap:20px}

.heroLogo{
    width:min(700px,80vw);
    margin-top:0px;
    filter:drop-shadow(0 10px 20px rgba(0,0,0,.25));}

.heroContent h2{
    font-size:2rem;
    font-weight:600;
    max-width:700px;
    line-height:1.4;
    margin:0 0 2rem}

.heroButtons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    justify-content:center;margin-bottom:2rem}

.secondary{
    background:rgba(255,255,255,.18);
    border:2px solid #fff}

.secondary:hover{
    background:rgba(255,255,255,.28)}

.modal-gallery {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    justify-content: center;
    align-items: center;
    padding: 40px;
    cursor: pointer;}

.modal-gallery-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.6);
    cursor: default;}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    user-select: none;}

    .close-gallery:hover {
        color: #ddd;    }



@media(max-width:800px) {
    nav ul, .btn {
        display: none
    }

    .heroContent h1 {
        font-size: 2.8rem
    }
}

@media(max-width:780px) {
    .cards {
        grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    }

    .hero {
        height: 55vh;
        min-height: 485px;
    }
    .heroContent {
        height: 45vh;
    }

    .heroContent h2 {
        font-size: 1rem;
        padding-top:20px;
    }
}


@media(max-width:520px) {
    .hero {
        height: 45vh;
        min-height: 385px;
    }
    .heroContent {
        height: 35vh;
    }

}


@media(max-height:350px) {
    .hero {
        min-height: 90px;
        height: 90px;
    }
    .heroContent {
        display: none
    }
    #featured {
        padding: 0px 6%;    
    }
}
