/* ==========================================================================
   The Visible Church – Transformation House
   ========================================================================== */

:root {
    --ink: #16130f;
    --ink-2: #221d17;
    --ink-3: #2e2720;
    --cream: #fbf8f3;
    --sand: #f3ece1;
    --sand-2: #e8dccb;
    --brand: #e8641b;
    --brand-deep: #c24f0e;
    --brand-soft: #fde9dc;
    --text: #2a241d;
    --muted: #6b6155;
    --on-dark: #f5efe6;
    --on-dark-muted: #b9ad9d;
    --line: rgba(42, 36, 29, .12);
    --line-dark: rgba(245, 239, 230, .14);

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(22, 19, 15, .06), 0 12px 32px -12px rgba(22, 19, 15, .18);
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--brand); }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--text); }
.lead strong { color: var(--ink); }

/* Buttons & links ------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 700 .95rem/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.btn-sm { padding: .7rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .95rem;
    color: var(--brand-deep);
    text-decoration: none;
}
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* Header ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(251, 248, 243, .9);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
/* The frosted blur lives on a pseudo-element: a backdrop-filter on the header itself would
   trap the full-screen mobile menu (position: fixed) inside the header's 76px height. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.has-overlay-header .site-header:not(.is-scrolled)::before { display: none; }
.has-overlay-header .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; color: #fff; }
.has-overlay-header .site-header.is-scrolled { background: rgba(22, 19, 15, .92); border-color: var(--line-dark); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a {
    display: block;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
    opacity: .85;
    transition: opacity .2s, background .2s;
}
.site-nav ul a:hover { opacity: 1; background: rgba(127, 110, 90, .12); }
.site-nav ul a[aria-current="page"] { opacity: 1; color: var(--brand); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
    .nav-toggle { display: block; position: relative; z-index: 2; }
    .site-nav {
        position: fixed;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-start;
        gap: 28px;
        padding: calc(var(--header-h) + 16px) 24px 40px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--ink);
        color: var(--on-dark);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--ease), visibility .3s;
    }
    /* Auto margins centre the menu when it fits, and let it scroll from the top when it doesn't. */
    .site-nav ul { flex-direction: column; align-items: center; gap: 4px; margin-top: auto; }
    .site-nav > .btn { margin-bottom: auto; flex: none; }
    .site-nav ul a { font-family: var(--font-display); font-size: clamp(1.4rem, 6vw, 1.75rem); font-weight: 400; }
    .nav-open .site-nav { opacity: 1; visibility: visible; }
    .nav-open .site-header { color: var(--on-dark); }
    .nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: min(100svh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: var(--ink);
    isolation: isolate;
}
.hero-media, .page-hero-media, .declaration-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img, .page-hero-media img, .declaration-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 60% 30%; animation: slowzoom 18s ease-out both; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 19, 15, .92) 0%, rgba(22, 19, 15, .6) 50%, rgba(22, 19, 15, .25) 100%),
        linear-gradient(0deg, rgba(22, 19, 15, .95) 0%, transparent 45%);
}
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-content { padding-top: calc(var(--header-h) + 80px); padding-bottom: 64px; max-width: var(--container); }
.hero-content > * { max-width: 760px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { color: #ffb27d; }
.hero .eyebrow { color: #ffb27d; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255, 255, 255, .85); font-family: var(--font-display); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-bar { border-top: 1px solid var(--line-dark); background: rgba(22, 19, 15, .55); backdrop-filter: blur(10px); }
.hero-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-bar-item { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.hero-bar-item + .hero-bar-item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero-bar-item span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 700; }
.hero-bar-item strong { font-weight: 600; }
.hero-bar-item a { text-decoration: none; }
.hero-bar-item a:hover { color: #ffb27d; }
@media (max-width: 760px) {
    .hero-bar-inner { grid-template-columns: 1fr; }
    .hero-bar-item, .hero-bar-item + .hero-bar-item { padding: 14px 0; border-left: 0; }
    .hero-bar-item + .hero-bar-item { border-top: 1px solid var(--line-dark); }
}

/* Page hero ------------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); padding: 120px 0 88px; }
.page-hero-compact { padding: 88px 0 64px; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 19, 15, .94), rgba(22, 19, 15, .6)); }
.page-hero .eyebrow, .page-hero h1 em { color: #ffb27d; }
.page-hero h1 { max-width: 16ch; margin-bottom: .3em; }
.page-hero .hero-lead { max-width: 56ch; margin: 0; }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-top { padding-top: clamp(48px, 7vw, 88px); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin: 0; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-reverse > :first-child { order: 2; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split-reverse > :first-child { order: 0; }
}

.scripture { margin: 1.75rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--brand); }
.scripture p { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.55; margin-bottom: .4rem; color: var(--ink); }
.scripture cite { font-style: normal; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Collage */
.collage { position: relative; aspect-ratio: 1 / 1.05; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage-a { width: 78%; height: 68%; top: 0; right: 0; }
.collage-b { width: 62%; height: 52%; bottom: 0; left: 0; border: 6px solid var(--cream); }
.collage-badge {
    position: absolute;
    right: 6%;
    bottom: 10%;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.collage-badge strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.collage-badge span { font-size: .8rem; font-weight: 600; opacity: .9; }

/* Pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    margin-bottom: 20px;
}
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: .35em; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Vision */
.vision .eyebrow { color: #ffb27d; }
.vision-statement { font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.25; }
.vision-statement em { color: #ffb27d; }
.vision-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.vision-item { padding: 36px 28px 8px 0; }
.vision-item + .vision-item { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.vision-item p { color: var(--on-dark-muted); font-size: .98rem; margin-bottom: .6em; }
.vision-num { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--brand); margin-bottom: 1.25rem; font-weight: 600; }
@media (max-width: 900px) {
    .vision-grid { grid-template-columns: 1fr 1fr; }
    .vision-item:nth-child(3) { padding-left: 0; border-left: 0; }
    .vision-item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) {
    .vision-grid { grid-template-columns: 1fr; }
    .vision-item, .vision-item + .vision-item { padding: 28px 0 8px; border-left: 0; }
    .vision-item + .vision-item { border-top: 1px solid var(--line-dark); }
}

/* Declaration */
.declaration { position: relative; isolation: isolate; color: #fff; padding: clamp(96px, 14vw, 180px) 0; text-align: center; overflow: hidden; }
.declaration-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(194, 79, 14, .88), rgba(120, 45, 8, .92)); }
.declaration .eyebrow { justify-content: center; color: #ffe0c8; }
.declaration .eyebrow::before { display: none; }
.declaration-lines { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.2; margin: 0 auto 2.5rem; max-width: 26ch; }
.declaration-lines span { display: block; }
.declaration-lines span:nth-child(even) { font-style: italic; font-weight: 400; }

.declaration-full .section-head { margin-inline: auto; text-align: center; }
.declaration-full .eyebrow { justify-content: center; }
.declaration-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--cream);
    border-radius: var(--radius);
    padding: clamp(32px, 6vw, 64px);
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    line-height: 1.55;
    box-shadow: var(--shadow);
}
.declaration-card p:last-child { margin: 0; }
.declaration-card p + p { padding-top: 1.1em; border-top: 1px solid var(--line); }
.declaration-card strong { color: var(--brand-deep); font-weight: 600; }

/* Pastor */
.pastor-photo { position: relative; }
.pastor-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; }
.pastor-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--brand); border-radius: var(--radius); z-index: -1; }
.pastor-photo { isolation: isolate; }
.pastor-photo-natural img { aspect-ratio: auto; }
@media (max-width: 560px) { .pastor-photo::before { inset: 14px -10px -14px 10px; } }
.pastor-intro h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }

.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.role p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 1000px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }

.credentials { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.credentials li { padding: .4rem .9rem; border-radius: 999px; background: var(--sand); font-size: .85rem; font-weight: 700; color: var(--ink-3); }

/* GraceLand */
.graceland-banner { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 8vw, 88px) 0; }
.graceland-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.graceland-banner h2 { max-width: 22ch; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.graceland-banner p:last-child { color: var(--on-dark-muted); margin: 0; }
.graceland-banner .eyebrow { color: #ffb27d; }

.account-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 28px; margin: 2rem 0; box-shadow: var(--shadow); }
.account-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #ffb27d; margin-bottom: 1rem; }
.account-card dl { margin: 0; display: grid; gap: 14px; }
.account-card dl > div { display: grid; gap: 2px; }
.account-card dt { font-size: .85rem; color: var(--on-dark-muted); }
.account-card dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.account-number { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.account-number span#acct-no { font-family: var(--font-display); font-size: 2rem; letter-spacing: .06em; font-weight: 600; }
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: .45rem .9rem; border-radius: 999px;
    border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06); color: var(--on-dark);
    font: 600 .85rem var(--font-body); cursor: pointer;
}
.copy-btn:hover { border-color: #ffb27d; }
.copy-btn.is-copied { background: var(--brand); border-color: var(--brand); }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Meetings */
.meetings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.meetings-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.meetings-card h3 { display: flex; align-items: center; gap: 10px; }
.meetings-card h3 .icon { color: var(--brand); }
.meetings-card ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.meetings-card li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.meetings-card li span { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.meetings-card li em { font-style: normal; color: var(--brand-deep); font-weight: 700; }
@media (max-width: 800px) { .meetings-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .meetings-card li { grid-template-columns: 1fr auto; } .meetings-card li span { grid-column: 1 / -1; } }

/* Visit & contact */
.visit { background: var(--sand); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }
.meeting-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 12px; }
.meeting-list li {
    display: grid;
    grid-template-columns: 7rem 1fr auto;
    align-items: center;
    gap: 12px;
    background: var(--cream);
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}
.meeting-day { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meeting-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.meeting-time { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-deep); }
@media (max-width: 480px) { .meeting-list li { grid-template-columns: 1fr auto; } .meeting-day { grid-column: 1 / -1; } }

.address-card { display: flex; gap: 14px; margin-bottom: 20px; }
.address-card > .icon { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.address-card p { margin: 4px 0 8px; }
.address-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--sand-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-card { background: var(--cream); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.contact-card > p { color: var(--muted); }
.contact-form { display: grid; gap: 16px; margin-top: 1.5rem; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .88rem; font-weight: 700; }
.field input, .field textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--sand-2);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.success { background: #e5f4e8; color: #1f5b2c; }
.form-status.error { background: #fbe4e1; color: #8a2a1c; }

/* Blog ------------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-media.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
.post-card-media.is-empty img { width: 45%; height: auto; object-fit: contain; border-radius: 8px; opacity: .9; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.tag { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.post-card h3 { font-size: 1.4rem; text-transform: capitalize; }
.post-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.section-sand .post-card { background: var(--cream); }

.blog-toolbar { display: grid; gap: 20px; margin-bottom: 40px; }
.search { position: relative; max-width: 460px; }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
    width: 100%; font: inherit; padding: .9rem 1.2rem .9rem 3rem;
    border-radius: 999px; border: 1.5px solid var(--sand-2); background: #fff;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
    text-decoration: none; border: 1px solid var(--line); background: #fff; transition: all .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.chip.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.result-count { color: var(--muted); font-size: .92rem; font-weight: 600; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.page-link { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid var(--line); background: #fff; }
.page-link:hover { border-color: var(--brand); }
.page-link.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-gap { display: grid; place-items: center; padding: 0 4px; color: var(--muted); }

.empty-state { text-align: center; padding: 64px 0; max-width: 560px; margin: 0 auto; }
.empty-state p { color: var(--muted); }

/* Article */
.article-head { max-width: 780px; padding-bottom: 32px; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: capitalize; margin: .2em 0 .3em; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; font-size: .92rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--brand-deep); }
.byline { color: var(--muted); font-weight: 600; }
.prose { max-width: 780px; font-size: 1.125rem; line-height: 1.85; padding-top: 32px; border-top: 1px solid var(--line); }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .6em; }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-family: var(--font-body); font-size: 1.1rem; }
.prose a { color: var(--brand-deep); }
.prose blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--brand); background: var(--sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-sm); margin: 2rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.article-foot { max-width: 780px; margin-top: 56px; padding: 28px 0 clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.article-foot p { margin: 0; font-weight: 700; }
.article-foot .socials a { background: var(--sand); color: var(--ink); }

/* Events ---------------------------------------------------------------- */
.event-list { display: grid; gap: 24px; }
.event-card { display: grid; grid-template-columns: minmax(0, 340px) 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.event-card-media { display: block; background: var(--ink-2); min-height: 220px; }
.event-card-media img { width: 100%; height: 100%; object-fit: cover; }
.event-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); }
.event-card-placeholder img { width: 45% !important; height: auto !important; border-radius: 8px; }
.event-card-body { display: flex; gap: 24px; padding: clamp(24px, 3vw, 36px); align-items: flex-start; }
.event-card-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .4em; }
.event-card-body h3 a { text-decoration: none; }
.event-card-body h3 a:hover { color: var(--brand-deep); }
.event-card-body p { color: var(--muted); }
.event-date { flex: none; width: 72px; text-align: center; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.event-date span { display: block; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 0; }
.event-date strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.4; color: var(--ink); }
.event-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 6px; color: var(--text); font-weight: 600; font-size: .95rem; }
.event-facts li { display: flex; gap: 8px; align-items: flex-start; }
.event-facts .icon { color: var(--brand); margin-top: 4px; }
.event-facts-lg { font-size: 1.05rem; margin: 1rem 0 1.5rem; }
@media (max-width: 800px) {
    .event-card { grid-template-columns: 1fr; }
    .event-card-media { aspect-ratio: 16 / 10; min-height: 0; }
}
@media (max-width: 480px) { .event-card-body { flex-direction: column; gap: 16px; } }
.event-empty { background: #fff; border: 1px dashed var(--sand-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); max-width: 760px; }
.event-empty p:last-child { margin: 0; }

.past-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .past-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .past-grid { grid-template-columns: 1fr; } }
.past-event { display: grid; gap: 4px; text-decoration: none; background: var(--cream); border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.past-event img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.past-event span { font-size: .85rem; font-weight: 600; }
.past-event strong { font-family: var(--font-display); font-size: 1.15rem; }
.past-event:hover strong { color: var(--brand-deep); }

.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.event-detail-media { position: sticky; top: calc(var(--header-h) + 24px); }
.event-detail-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.event-detail-media .event-card-placeholder { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.event-detail h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-top: .3em; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 2rem; }
.event-description { border-top: 1px solid var(--line); padding-top: 24px; font-size: 1.05rem; }
.event-share { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.event-share p { margin: 0; font-weight: 700; }
.event-share .socials a { background: var(--sand); color: var(--ink); }
@media (max-width: 860px) {
    .event-detail { grid-template-columns: 1fr; }
    .event-detail-media { position: static; max-width: 520px; }
}

.article-cover { margin: 0 0 2.5rem; }
.article-cover img { width: 100%; margin: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: clamp(56px, 8vw, 96px); font-size: .97rem; }
.site-footer h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1.1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--brand-deep), var(--brand));
    color: #fff; border-radius: calc(var(--radius) + 6px);
    padding: clamp(32px, 5vw, 56px);
    margin-bottom: clamp(56px, 8vw, 88px);
}
.footer-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .3em; }
.footer-cta p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 52ch; }
.footer-cta .eyebrow { color: #ffe0c8; }
.footer-cta .btn-primary { background: #fff; color: var(--brand-deep); }
.footer-cta .btn-primary:hover { background: var(--ink); color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr .9fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--on-dark); margin-bottom: 18px; }
.footer-brand > p { font-family: var(--font-display); font-style: italic; max-width: 34ch; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list strong { color: var(--on-dark); font-weight: 600; margin-right: 4px; }
.site-footer .text-link { color: #ffb27d; }

.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-3); color: var(--on-dark); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark); }

/* Motion ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Editable rich-text blocks keep the "lead" look for their first paragraph. */
.pastor-intro-text > p:first-child, .lead-first > p:first-child { font-size: 1.2rem; line-height: 1.65; }
.pastor-intro-text strong, .lead-first strong { color: var(--ink); }

/* Shortcut for signed-in staff */
.edit-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); }
.edit-fab:hover { background: var(--brand); }
