/* ============================
   IPC Grace Worship Center
   style.css
============================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Header */
header {
    background: #1E3A8A;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h2 {
    font-size: 24px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #D4AF37;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url("https://images.unsplash.com/photo-1438232992991-995b7058bbb3?w=1600") center center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    background: rgba(0, 0, 0, 0.55);
    padding: 35px;
    border-radius: 10px;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 28px;
    background: #D4AF37;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: #b89222;
}

/* Sections */
section {
    padding: 70px 10%;
  scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    color: #1E3A8A;
    margin-bottom: 35px;
    font-size: 32px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.card h3 {
    color: #1E3A8A;
    margin-bottom: 10px;
}

/* Sermons */
iframe {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: 0.4s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background: #1E3A8A;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #152d6b;
}

#contact h3 {
    margin-top: 30px;
    color: #1E3A8A;
}

#contact p {
    margin-top: 8px;
}

/* Footer */
footer {
    background: #111827;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 60px 7%;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        display: block;
        margin: 12px auto;
        width: 220px;
    }

   
}

    .section-title {
        font-size: 28px;
    }
}
