/* ======================
GENERAL
====================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
}

body {
    display: flex;
    flex-direction: column;
    background: #fff;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.section-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.section-container.narrow {
    width: min(800px, calc(100% - 40px));
}

/* ======================
HEADER
====================== */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.logo-link img {
    width: 100px;
    margin-bottom: 8px;
}

.site-header h2 {
    margin: 5px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 10px;
}

.site-nav a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #2f855a;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #2f855a;
    transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

/* ======================
HERO / PAGE HERO
====================== */
.hero,
.page-hero {
    padding: 45px 20px;
    background: #000;
    color: #fff;
    text-align: center;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p,
.page-hero p {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ======================
BUTTONS
====================== */
.primary-btn,
.outline-btn,
.event-link {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.primary-btn,
.event-link {
    background: #2f855a;
    color: #fff;
    border: 1.5px solid #2f855a;
}

.primary-btn:hover,
.event-link:hover {
    background: #276749;
    border-color: #276749;
}

.outline-btn {
    background: transparent;
    color: #2f855a;
    border: 1.5px solid #2f855a;
}

.outline-btn:hover {
    background: #2f855a;
    color: #fff;
}

/* ======================
BELIEFS
====================== */
.beliefs {
    padding: 45px 20px;
    background: #fff;
    text-align: center;
}

.beliefs h2 {
    margin-top: 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.belief-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 30px;
}

.belief-item {
    text-align: center;
}

.belief-item h4 {
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.belief-item p {
    color: #555;
    font-style: italic;
    line-height: 1.7;
}

.belief-item::after,
.event-card::after,
.core-item::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    margin: 14px auto 0;
    background: #2f855a;
}

/* ======================
WATCH SECTION
====================== */
.watch-section {
    padding: 45px 20px;
    background: linear-gradient(to bottom, #f5f5f5, #eaeaea);
    text-align: center;
}

.watch-title {
    margin: 0 0 12px;
    font-size: clamp(3rem, 8vw, 5rem);
    text-transform: uppercase;
}

.watch-text {
    margin: 0 auto 10px;
    line-height: 1.6;
}

/* ======================
EVENTS
====================== */
.events-section {
    padding: 50px 20px;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.event-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    padding: 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.event-card h3 {
    margin: 0 0 10px;
}

.event-time {
    color: #2f855a;
    font-weight: 700;
}

.event-location {
    margin-top: auto;
    font-weight: 600;
    line-height: 1.5;
}

/* ======================
ABOUT
====================== */
.about-section {
    padding: 50px 20px;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px;
}

.about-column h3 {
    color: #2f855a;
    text-align: center;
    font-size: 1.35rem;
}

.about-column p {
    line-height: 1.75;
    text-align: justify;
}

.about-column strong {
    color: #2f855a;
}

/* ======================
CORE VALUES
====================== */
.core-values {
    padding: 60px 20px;
    background: #f2f2f2;
    text-align: center;
}

.core-values h2 {
    margin-top: 0;
    margin-bottom: 35px;
    font-size: 2.5rem;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 60px;
}

.core-item {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ======================
CONTACT
====================== */
.contact-section {
    padding: 50px 20px;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info,
.contact-form,
.pastor-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.contact-info h3 {
    margin-top: 0;
    color: #2f855a;
}

.contact-form form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    font-weight: 700;
    text-align: left;
}

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

.contact-form button {
    padding: 12px 22px;
    border: 0;
    border-radius: 5px;
    background: #2f855a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
}

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

/* ======================
PASTOR'S CORNER
====================== */
.pastor-section {
    padding: 50px 20px;
    background: #fff;
}

.pastor-card {
    max-width: 760px;
    margin: 0 auto 30px;
}

.pastor-card h3 {
    margin: 5px 0 12px;
    color: #2f855a;
}

.pastor-date {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pastor-summary {
    line-height: 1.7;
}

/* ======================
SUMMARY POPUP MODAL
====================== */
.summary-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.summary-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-modal-content {
    position: relative;
    width: min(1000px, 96vw);
    max-height: 92vh;
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    overflow: auto;
}

.summary-modal-content h2 {
    margin: 0 48px 18px 0;
    color: #2f855a;
}

.summary-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f2;
    color: #222;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.summary-modal-close:hover {
    background: #2f855a;
    color: #fff;
}

#summaryPdfFrame {
    width: 100%;
    height: 70vh;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f7f7f7;
}

.summary-modal-note {
    margin: 14px 0 0;
    color: #555;
    font-size: 0.95rem;
}

.summary-modal-note a {
    color: #2f855a;
    font-weight: 700;
}

body.modal-open {
    overflow: hidden;
}

/* ======================
REDIRECT PAGE
====================== */
.redirect-page {
    min-height: 100vh;
    display: grid;
    place-content: center;
    padding: 30px;
    text-align: center;
}

.redirect-page a {
    color: #2f855a;
    font-weight: 700;
}

/* ======================
FOOTER
====================== */
.site-footer {
    padding: 20px;
    background: #111;
    color: #fff;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

/* ======================
ANIMATION
====================== */
.fade {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade.show {
    opacity: 1;
    transform: none;
}

/* ======================
MOBILE
====================== */
@media (max-width: 1100px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .belief-grid,
    .about-grid,
    .core-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .summary-modal {
        padding: 12px;
    }

    .summary-modal-content {
        padding: 22px 16px;
    }

    #summaryPdfFrame {
        height: 65vh;
    }
}
