:root {
    --brand: #1f4e5f;
    --brand-dark: #143640;
    --accent: #c9a14a;
    --accent-soft: #e8d9b5;
    --ink: #1d2733;
    --muted: #5d6b78;
    --bg: #f7f4ee;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 54, 64, .12);
    --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
.corner-logo {
    position: absolute;
    top: 0.75in;
    left: 0.5in;
    width: 44px;
    height: 44px;
    object-fit: contain;
    z-index: 60;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 10px;
}
.brand-logo2 {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 10px;
    position: relative;
    top: 0.75in;
    left: -0.5in;
}
.brand-mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--brand);
    color: var(--accent-soft);
    border-radius: 50%;
    font-size: 22px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--brand); font-size: 18px; }
.brand-text small { color: var(--muted); font-size: 12px; letter-spacing: .3px; }

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a {
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}
.main-nav a.is-active,
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.main-nav a.is-active::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 3px; background: var(--accent); border-radius: 3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--brand); border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--brand-dark); }
.btn-primary:hover { background: #b88e3c; }
.btn-light { background: var(--white); color: var(--brand); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(20,54,64,.92), rgba(31,78,95,.82)),
        url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 120px 0 130px;
    text-align: center;
}
.hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    margin: 0 0 16px;
    line-height: 1.1;
}
.hero p {
    font-size: clamp(16px, 2.4vw, 21px);
    max-width: 640px; margin: 0 auto 30px;
    color: var(--accent-soft);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .eyebrow {
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); font-weight: 700; font-size: 13px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; color: var(--brand); }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.card:hover { transform: translateY(-6px); }
.card .icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--brand);
    display: grid; place-items: center;
    font-size: 26px; margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; color: var(--brand); }
.card p { color: var(--muted); margin: 0; }

/* ---------- Services / schedule ---------- */
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.schedule-item {
    background: var(--white);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.schedule-item .day { font-weight: 700; color: var(--brand); }
.schedule-item .time { font-size: 20px; font-weight: 700; display: block; margin: 6px 0; }
.schedule-item .title { color: var(--muted); }

/* ---------- Events ---------- */
.events { display: grid; gap: 20px; }
.event-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 22px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 24px;
    box-shadow: var(--shadow);
}
.event-date {
    text-align: center;
    background: var(--brand);
    color: var(--white);
    border-radius: 12px;
    padding: 12px 8px;
}
.event-date .mon { text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.event-date .num { font-size: 28px; font-weight: 800; line-height: 1; }
.event-row h3 { margin: 0 0 4px; color: var(--brand); }
.event-row p { margin: 0; color: var(--muted); }

/* ---------- Sermons ---------- */
.sermon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.sermon {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.sermon .thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: grid; place-items: center; color: var(--accent-soft); font-size: 40px;
}
.sermon .body { padding: 22px 24px; }
.sermon h3 { margin: 0 0 6px; color: var(--brand); }
.sermon .meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

/* ---------- Contact / forms ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d2c6;
    border-radius: 10px;
    font: inherit;
    background: var(--white);
    color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }
.alert {
    padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600;
}
.alert-success { background: #e7f6ea; color: #1c6b34; }
.alert-error { background: #fbe6e6; color: #a12b2b; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.info-list li:last-child { border-bottom: none; }
.info-list strong { color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    color: var(--white);
    text-align: center;
    padding: 64px 0;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; color: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #cdd9dd; padding: 56px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-col h3, .footer-col h4 { color: var(--white); margin: 0 0 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 4px 0; }
.footer-list a { color: var(--accent-soft); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 18px 20px; text-align: center; font-size: 14px; color: #9fb1b6;
}

/* ---------- Two column feature ---------- */
.split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.split .media {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    min-height: 320px;
    background: url('https://images.unsplash.com/photo-150769204979-de58290a4334?auto=format&fit=crop&w=900&q=80') center/cover;
}
.split h2 { color: var(--brand); margin-top: 0; }

/* ---------- Utilities ---------- */
.bg-white { background: var(--white); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white);
        box-shadow: 0 12px 24px rgba(0,0,0,.1);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 420px; }
    .main-nav a { padding: 16px 24px; border-top: 1px solid #eee; }
    .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .split .media { min-height: 240px; }
    .event-row { grid-template-columns: 80px 1fr; }
    .event-row .btn { grid-column: 1 / -1; }
}
