/* Muzuukuke Mwake SDA Church — blue theme (muzupaministries.us) */

:root {
    --blue-dark: #0a4d8c;
    --blue: #0693e3;
    --blue-bright: #00acf8;
    --blue-light: #8ed1fc;
    --blue-pale: #ebf9ff;
    --blue-bg: #f5f9fc;
    --accent: #437df9;
    --text: #1e2a3a;
    --text-muted: #5a6c7d;
    --white: #ffffff;
    --shadow: 0 8px 28px rgba(6, 147, 227, 0.15);
    --radius: 12px;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--blue-bg);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--blue-dark);
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-bright) 100%);
    color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
}

.brand-text strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand-text small { display: block; font-size: 0.75rem; opacity: 0.92; font-style: italic; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Navigation */
.site-nav { flex: 1; min-width: 0; }

.nav-root {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.nav-caret { font-size: 0.65rem; opacity: 0.85; }

.nav-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 2000;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
    background: var(--blue-pale);
    color: var(--blue-dark);
}

.site-main { min-height: 50vh; }

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(10,77,140,0.95), rgba(6,147,227,0.9)),
        linear-gradient(180deg, var(--blue-pale), var(--blue-bg));
    color: #fff;
    padding: 72px 20px 80px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.85rem, 5vw, 2.6rem);
    margin: 0 0 12px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.15rem;
    font-style: italic;
    opacity: 0.95;
    margin: 0 0 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-dark);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.75);
}

.btn:hover { transform: translateY(-2px); }

.section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 56px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.85rem;
    color: var(--blue-dark);
    margin: 0 0 12px;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--blue);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-4px); }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--blue-pale);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card h3 { margin: 0 0 10px; color: var(--blue-dark); font-size: 1.15rem; }
.card p { margin: 0 0 16px; color: var(--text-muted); font-size: 0.95rem; }
.card a { color: var(--blue); font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }

.page-hero {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
    color: #fff;
    padding: 48px 20px;
    text-align: center;
}

.page-hero h1 { margin: 0; font-size: 2rem; }

.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.content-page h2 {
    color: var(--blue-dark);
    margin: 2em 0 0.6em;
    font-size: 1.35rem;
}

.content-page h2:first-of-type { margin-top: 0; }

.content-page p { margin: 0 0 1.1em; }

.content-page ul { margin: 0 0 1.2em; padding-left: 1.4em; }

.highlight-box {
    background: var(--blue-pale);
    border-left: 5px solid var(--blue);
    padding: 18px 22px;
    border-radius: 8px;
    margin: 24px 0;
}

/* Pastor cards */
.pastors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.pastor-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.pastor-card img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: top center;
}

.pastor-card-body { padding: 20px; }

.pastor-card h3 { margin: 0 0 6px; color: var(--blue-dark); font-size: 1.15rem; }

.pastor-role {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 12px;
}

.pastor-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); text-align: left; }

.pastor-contact { margin-top: 12px; font-size: 0.9rem; }
.pastor-contact a { color: var(--blue); }

/* Sabbath program tables */
.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.program-col {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--blue);
}

.program-col h2 {
    margin: 0 0 16px;
    color: var(--blue-dark);
    font-size: 1.25rem;
    text-align: center;
}

.program-col ul { margin: 0; padding-left: 1.2em; }

.events-embed {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.events-embed iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.giving-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 24px auto 48px;
    padding: 0 20px;
}

.giving-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--blue);
}

.giving-card h3 { margin: 0 0 12px; color: var(--blue-dark); }

.giving-mobile-page { max-width: 560px; margin: 0 auto 48px; padding: 0 20px; }

.giving-mobile-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.form-hint {
    font-size: 0.88rem;
    color: #555;
    margin: 6px 0 0;
}

.form-hint-warning {
    color: #8a5a00;
    background: #fff8e6;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #e6a800;
}

.form-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-status.error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin: 16px 0 6px;
    color: var(--blue-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.site-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.88);
    padding: 48px 20px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}

.footer-col h3, .footer-col h4 { margin: 0 0 12px; color: #fff; }
.footer-motto { font-style: italic; color: var(--blue-light); margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-col a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-copy {
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.75;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.radio-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lessons-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* Events calendar (public) */
.events-page-section {
    padding-top: 32px;
    padding-bottom: 56px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--blue);
    display: flex;
    flex-direction: column;
}

.event-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-card-image-link {
    display: block;
    line-height: 0;
}

.event-card-body {
    padding: 20px 22px 24px;
    flex: 1;
}

.event-card-date,
.event-card-time,
.event-card-location {
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 600;
    margin: 0 0 8px;
}

.event-card-date i,
.event-card-time i,
.event-card-location i {
    margin-right: 6px;
    width: 1em;
}

.event-card-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--blue-dark);
    line-height: 1.3;
}

.event-card-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        width: 100%;
        order: 3;
        background: var(--blue-dark);
        border-radius: 8px;
        padding: 12px;
        margin-top: 8px;
    }
    .site-nav.is-open { display: block; }
    .nav-root { flex-direction: column; align-items: stretch; }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        margin: 4px 0 8px 12px;
        display: none;
    }
    .nav-item.has-dropdown.is-open .nav-dropdown { display: block; }
    .nav-dropdown-link { color: #fff; }
    .nav-dropdown-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
    .program-grid { grid-template-columns: 1fr; }
}
