/* ===================================================
   UNITED IN GRACE MINISTRIES
   CLEAN PROFESSIONAL STYLESHEET
=================================================== */


/* ==========================================
   VARIABLES
========================================== */

:root{

    --burgundy:#7A1E2C;
    --blue:#1C4F8A;
    --gold:#D6B24A;

    --white:#ffffff;
    --offwhite:#fafafa;
    --light:#f5f7fa;
    --gray:#666;
    --dark:#222;

    --shadow:0 12px 30px rgba(0,0,0,.12);

    --radius:18px;

    --transition:.3s ease;

}


/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Arial, Helvetica, sans-serif;

    background:var(--offwhite);

    color:var(--dark);

    line-height:1.7;

    overflow-x:hidden;

}


/* ==========================================
   GLOBAL
========================================== */

img{

    max-width:100%;

    display:block;

}

a{

    text-decoration:none;

    transition:var(--transition);

}

.container{

    width:min(92%,1200px);

    margin:auto;

}

/* ==========================================
   GET INVOLVED
========================================== */

.involved-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    margin-top:45px;
}

.involved-card{
    background:#fff;
    border-radius:18px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 12px 28px rgba(0,0,0,.12);
    border-top:6px solid var(--gold);
    transition:.35s ease;

    display:flex;
    flex-direction:column;
}

.involved-card:hover{
    transform:translateY(-10px);
    box-shadow:0 24px 45px rgba(0,0,0,.20);
}

.involved-card span{
    font-size:3rem;
    margin-bottom:15px;
}

.involved-card h3{
    color:var(--burgundy);
    margin-bottom:15px;
}

.involved-card p{
    flex:1;
    color:#555;
    line-height:1.7;
}

.card-button{
    display:inline-block;
    margin-top:25px;
    padding:14px 28px;
    background:var(--gold);
    color:#222;
    font-weight:bold;
    border-radius:40px;
    text-decoration:none;
    transition:.3s;
}

.card-button:hover{
    background:var(--burgundy);
    color:#fff;
}

/* Mobile */

@media (max-width:900px){

    .involved-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:600px){

    .involved-grid{
        grid-template-columns:1fr;
    }

}
/* ==========================================
   TYPOGRAPHY
========================================== */

h1,
h2,
h3{

    color:var(--burgundy);

    font-weight:700;

    line-height:1.25;

}

h1{

    font-size:3rem;

}

h2{

    font-size:2.4rem;

    margin-bottom:20px;

    text-align:center;

}

h3{

    font-size:1.35rem;

}

p{

    color:#444;

    font-size:1.05rem;

    margin-bottom:20px;

}

.section-text{

    max-width:850px;

    margin:0 auto 45px;

    text-align:center;

    color:#555;

}


/* ==========================================
   SPACING
========================================== */

section{

    padding:80px 0;

}

.dark-section{

    background:#eef3f8;

}


/* ==========================================
   BUTTONS
========================================== */

.button{
    display:inline-block;
    padding:16px 36px;
    background:var(--gold);
    color:var(--dark);
    font-weight:700;
    border-radius:50px;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.button:hover{
    background:#fff;
    color:var(--burgundy);
    transform:translateY(-4px);
}


/* ==========================================
   CARD GRID
========================================== */

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


/* ==========================================
   CARDS
========================================== */

.card{
    background:var(--white);
    border-radius:var(--radius);
    padding:35px 28px;
    text-align:center;
    border-top:5px solid var(--gold);
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.card span{
    display:block;
    font-size:3rem;
    margin-bottom:18px;
}

.card h3{
    color:var(--burgundy);
    margin-bottom:14px;
}

.card p{
    margin:0;
    color:#555;
    line-height:1.7;
}
/* ==========================================
   HEADER
========================================== */

header{
    background:linear-gradient(135deg,#7A1E2C,#1C4F8A);
    color:#fff;
    text-align:center;
    padding:50px 20px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}

header h1{
    color:#ffffff;
    font-size:3rem;
    margin:20px 0 10px;
}

header .tagline{
    color:#f5f5f5;
    font-size:1.2rem;
    margin-bottom:30px;
}

.logo{
    width:170px;
    margin:auto;
    display:block;
    border-radius:50%;
    border:6px solid #fff;
    box-shadow:0 10px 30px rgba(0,0,0,.30);
}

nav{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-top:20px;
}

nav a{
    color:#ffffff;
    font-weight:700;
    padding:12px 20px;
    border-radius:40px;
    transition:.3s;
}

nav a:hover{
    background:#D6B24A;
    color:#222;
}
/* ==========================================
   ANNOUNCEMENT BAR
========================================== */

.season-banner{

    background:var(--gold);

    color:#222;

    text-align:center;

    font-weight:bold;

    padding:14px;

}


.hero-image{
    height:430px;
    overflow:hidden;
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;

    /* Move the crop UP or DOWN */
    object-position:center 28%;
}
/* ==========================================
   INTRO
========================================== */

.intro{

    background:linear-gradient(135deg,var(--blue),var(--burgundy));

    color:white;

    text-align:center;

    padding:90px 20px;

}

.intro h2{

    color:white;

    font-size:2.6rem;

}

.intro p{

    color:white;

    max-width:850px;

    margin:0 auto 35px;

}


/* ==========================================
   QUICK LINKS
========================================== */

.quick-links{

    background:white;

}

.quick-links .cards{

    margin-top:45px;

}



.gallery{
    background:#f6f4ef;
}

.polaroid-gallery{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:35px;
    margin-top:50px;
}

.polaroid{
    background:#fff;
    padding:12px 12px 55px;
    width:260px;
    box-shadow:0 12px 28px rgba(0,0,0,.18);
    transition:.35s ease;
}

.polaroid img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.polaroid:nth-child(6n+1){transform:rotate(-5deg);}
.polaroid:nth-child(6n+2){transform:rotate(3deg);}
.polaroid:nth-child(6n+3){transform:rotate(-2deg);}
.polaroid:nth-child(6n+4){transform:rotate(5deg);}
.polaroid:nth-child(6n+5){transform:rotate(-4deg);}
.polaroid:nth-child(6n){transform:rotate(2deg);}

.polaroid:hover{
    transform:scale(1.08) rotate(0deg);
    z-index:50;
    box-shadow:0 24px 45px rgba(0,0,0,.35);
}
/* ==========================================
   LIGHTBOX
========================================== */

.gallery-modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.gallery-modal img{

    max-width:90%;

    max-height:85%;

    border-radius:12px;

}

.gallery-close{

    position:absolute;

    top:25px;

    right:40px;

    color:white;

    font-size:50px;

    cursor:pointer;

}

.gallery-prev,
.gallery-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    color:white;

    font-size:60px;

    padding:20px;

    cursor:pointer;

    user-select:none;

}

.gallery-prev{

    left:20px;

}

.gallery-next{

    right:20px;

}


/* ==========================================
   IFRAME
========================================== */

iframe{

    width:100%;

    border:none;

    border-radius:20px;

    box-shadow:var(--shadow);

}


/* ==========================================
   FOOTER
========================================== */

footer{

    background:linear-gradient(135deg,var(--burgundy),var(--blue));

    color:white;

    text-align:center;

    padding:70px 20px;

}

footer h2,
footer p{

    color:white;

}

footer hr{

    width:120px;

    margin:25px auto;

    border:none;

    height:2px;

    background:rgba(255,255,255,.35);

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px){

    header{

        padding:30px 15px;

    }

    .logo{

        width:120px;

    }

    h1{

        font-size:2rem;

    }

    h2{

        font-size:1.9rem;

    }

    nav{

        flex-direction:column;

    }

    nav a{

        width:100%;

        text-align:center;

    }

    .hero-image img{

        height:280px;

    }

    .intro{

        padding:60px 20px;

    }

    .intro h2{

        font-size:2rem;

    }

    .cards{

        grid-template-columns:1fr;

    }

  .polaroid-gallery{
    grid-template-columns:1fr;
}

.polaroid{
    width:90%;
    max-width:300px;
}

.polaroid img{
    height:260px;
}
