/* =====================================================================
   First Baptist Church of Wright City — multi-band church theme
   Inspired by the Planet Shakers layout language, recolored to the
   2026 WC logo: blue #1578bb + emerald #199767 (no orange/gold).
   CloneShop standard: WCAG AA, mobile-first, no external font CDN,
   reduced-motion aware. Script accents use a system handwriting stack
   (Segoe Script on Windows) — self-hosted font swapped in for the build.
   ===================================================================== */

:root {
  --cream:        #ffffff;   /* page background — clean white */
  --cream-2:      #eef3f8;   /* cool light band (was cream) */
  --card:         #ffffff;
  --ink:          #21262c;   /* cool near-black text (AAA) */
  --muted:        #51606e;   /* cool muted — AA on white */
  --blue:         #1578bb;   /* EXACT logo cross blue */
  --blue-dark:    #135f93;   /* dark blue bands + links (white text AA) */
  --blue-night:   #103e5e;   /* deepest blue band */
  --green:        #199767;   /* EXACT logo emerald (script + accents) */
  --green-btn:    #0f7a54;   /* green buttons — white text AA (5.0:1) */
  --green-deep:   #0d6748;   /* footer + deep green text */
  --mint:         #a7e8c8;   /* light green on dark bands */
  --line:         #dde4ec;
  --radius:       16px;
  --radius-sm:    11px;
  --maxw:         1140px;
  --shadow:       0 8px 26px rgba(60, 45, 20, 0.10);
  --shadow-lg:    0 18px 44px rgba(60, 45, 20, 0.18);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --script: "Segoe Script", "Bradley Hand", "Brush Script MT", "Snell Roundhand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.14; color: var(--ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 760px; }

/* ---------- Script accent (the signature label) ---------- */
.script, .eyebrow {
  font-family: var(--script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--green);
  margin-bottom: .1rem;
  line-height: 1;
}
.on-dark .script, .on-dark .eyebrow, .band .eyebrow, .band .script { color: var(--mint); }

/* ---------- Skip link & focus ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--green-deep); color: #fff; padding: .65rem 1rem; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.7rem;
  font: 700 1.02rem/1 var(--sans);
  border-radius: 50px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
/* primary accent (green) — replaces the reference's orange */
.btn-gold, .btn-accent { background: var(--green-btn); color: #fff; box-shadow: 0 8px 18px rgba(15,122,84,.30); }
.btn-gold:hover, .btn-accent:hover { background: #0c6a49; color: #fff; }
.btn-blue { background: var(--blue-dark); color: #fff; }
.btn-blue:hover { background: #0f5081; color: #fff; }
.btn-green { background: var(--green-deep); color: #fff; }
.btn-green:hover { background: #0a553a; color: #fff; }
.btn-outline { background: transparent; color: var(--blue-dark); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost-light:hover { background: #fff; color: var(--blue-night); }
/* solid white button for use on colored bands — stays visible on hover */
.btn-cream { background: #fff; color: var(--blue-night); border-color: #fff; }
.btn-cream:hover { background: var(--blue-night); color: #fff; border-color: var(--blue-night); }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-night); color: #fff; font-size: .92rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .tb-group { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.topbar svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: .3rem; fill: currentColor; }
.topbar .motto { font-family: var(--script); font-size: 1.05rem; color: var(--mint); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,241,230,.94); backdrop-filter: saturate(1.1) blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .55rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-text { font-family: var(--serif); line-height: 1.05; }
.brand-text .b1 { display: block; font-weight: 700; color: var(--ink); font-size: 1.12rem; }
.brand-text .b2 { display: block; color: var(--green-deep); font-size: .85rem; font-style: italic; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--blue-night); }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem; align-items: center; }
.primary-nav a { display: block; padding: .55rem .8rem; border-radius: 50px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.primary-nav a:hover { color: var(--green-deep); }
.primary-nav a[aria-current="page"] { color: var(--green-deep); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav-cta { margin-left: .5rem; }
.nav-cta .btn { color: #fff; font-size: 1.12rem; padding: .7rem 1.7rem; }
.nav-cta .btn:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-photo { position: relative; min-height: clamp(460px, 68vh, 660px); display: flex; align-items: center; overflow: hidden; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,62,94,.55) 0%, rgba(16,62,94,.45) 40%, rgba(16,62,94,.72) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; text-align: center; color: #fff; padding-block: 3.5rem; }
.hero-inner .script { color: var(--mint); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hero-inner h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.4); margin: .2rem 0 .6rem; }
.hero-inner p { color: #eef4f9; font-size: 1.18rem; margin: 0 auto 1.5rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* keep .hero-card available for interior reuse */
.hero-card { position: relative; z-index: 2; background: var(--cream); border-radius: var(--radius); padding: 2rem; max-width: 560px; box-shadow: var(--shadow-lg); }

/* ---------- Wave dividers ---------- */
.wave { display: block; width: 100%; height: 44px; color: var(--cream); margin: 0; }
.wave--alt { color: var(--cream-2); }
.wave--blue { color: var(--blue-dark); }
.wave--green { color: var(--green-deep); }

/* ---------- Sections & bands ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section--alt { background: var(--cream-2); }
.band { background: var(--blue-dark); color: #fff; padding-block: clamp(2.75rem, 6vw, 4.5rem); position: relative; }
.band h2, .band h3 { color: #fff; }
.band--night { background: var(--blue-night); }
.band--green { background: var(--green-deep); }
.section--green { background: var(--green-deep); color: #fff; }
.section--green h2, .section--green h3, .section--green .eyebrow { color: #fff; }
.section--green .eyebrow { color: var(--mint); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead-big { font-size: 1.2rem; color: var(--muted); }
.band .lead-big { color: #dbe8f2; }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; }
.photo-tilt { transform: rotate(-1.3deg); }
.photo-tilt:nth-child(even) { transform: rotate(1.3deg); }

/* ---------- New Here / acquaint band form ---------- */
.acquaint-form { display: grid; gap: .8rem; max-width: 520px; }
.acquaint-form input { width: 100%; padding: .85rem 1rem; font: inherit; border: 0; border-radius: 50px; background: #fff; color: var(--ink); }
.acquaint-form input:focus { outline: 3px solid var(--mint); }
.acquaint-form .btn { justify-content: center; }

/* ---------- Feature columns (3) ---------- */
.feature-cols { display: grid; gap: 1.5rem; }
.feature { text-align: center; }
.feature .ico { width: 76px; height: 76px; margin: 0 auto .9rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.feature .ico svg { width: 38px; height: 38px; fill: var(--green); }
.feature h3 { color: var(--blue-night); }
.feature p { color: var(--muted); }

/* ---------- Mission split + callout ---------- */
.mission-split { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.mission-media { position: relative; min-height: 260px; }
.mission-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mission-media .play-badge { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.mission-media .play-badge svg { width: 28px; height: 28px; fill: var(--green-deep); margin-left: 3px; }
.mission-media .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(16,62,94,.82)); color: #fff; padding: 1.2rem 1.2rem .9rem; font-size: .95rem; }
.callout { background: var(--green-deep); color: #fff; padding: clamp(1.6rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.callout .script { color: var(--mint); }
.callout h2 { color: #fff; }
.callout p { color: #e6f3ec; }

/* ---------- Ministries image cards ---------- */
.min-cards { display: grid; gap: 1.5rem; }
.min-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.min-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.min-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.min-card h3 { margin: 0; color: var(--blue-night); }
.min-card .btn { align-self: flex-start; margin-top: .4rem; }

/* ---------- Donations "thank you" band ---------- */
.thanks { display: grid; gap: 1.5rem; align-items: center; }
.thanks .big-script { font-family: var(--script); color: var(--mint); font-size: clamp(3.2rem, 11vw, 6.4rem); line-height: 1.15; text-align: center; padding-bottom: .25em; overflow: visible; }

/* ---------- Two-column CTA ---------- */
.twocol { display: grid; gap: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.twocol > div { padding: clamp(1.5rem, 3.5vw, 2.4rem); text-align: center; }
.twocol > div + div { border-top: 1px solid var(--line); }

/* ---------- Events spotlight ---------- */
.events { display: grid; gap: 1rem; }
.event-row { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.date-badge { background: var(--blue-dark); color: #fff; border-radius: 12px; padding: .6rem .8rem; text-align: center; min-width: 86px; font-family: var(--serif); }
.date-badge .d { display: block; font-size: 1.1rem; font-weight: 700; }
.date-badge .m { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }
.event-row h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.event-row .when { color: var(--muted); font-size: .95rem; }
.this-week { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.this-week .script { color: var(--mint); }
.this-week h3 { color: #fff; }

/* ---------- Service times strip (under hero) ---------- */
.times-strip { display: grid; gap: 1.25rem; }
.time-card { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.time-card .tc-day { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--blue-night); margin: 0 0 .5rem; }
@media (min-width: 700px) { .times-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- News & Events + Bulletin ---------- */
.newsevents { display: grid; gap: 1.5rem; align-items: start; }
.event-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.event-flyer { margin: 0; position: relative; background: var(--cream-2); }
.event-flyer img { width: 100%; display: block; max-height: 460px; object-fit: contain; background: #fff; }
.event-flyer .flyer-missing { display: none; }
.event-flyer.missing { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.event-flyer.missing .flyer-missing { display: block; text-align: center; color: var(--muted); padding: 1.5rem; }
.event-flyer.missing code { background: #fff; padding: .1rem .35rem; border-radius: 4px; }
.event-card .ev-body { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.4rem 1.5rem; }
.event-card .date-badge { align-self: start; }
.event-card .ev-title { font-family: var(--serif); font-size: 1.35rem; color: var(--blue-night); margin: 0 0 .15rem; }
.event-card .ev-sub { color: var(--green-deep); font-weight: 700; margin: 0 0 .5rem; }
.event-card .ev-meta { color: var(--muted); font-size: .95rem; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.event-card .ev-meta svg { width: 16px; height: 16px; fill: var(--green); vertical-align: -3px; margin-right: .25rem; }
.event-empty { border: 1px dashed #bda878; background: var(--cream-2); border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--muted); font-size: .95rem; }
.bulletin-card { background: var(--blue-night); color: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.bulletin-card .script { color: var(--mint); }
.bulletin-card h3 { color: #fff; margin: 0 0 .4rem; }
.bulletin-card p { color: #dbe8f2; }
.bulletin-card .doc { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.10); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.bulletin-card .doc svg { width: 30px; height: 30px; fill: var(--mint); flex: none; }
.bulletin-card .doc .meta { font-size: .9rem; color: #cfe0ee; }
.bulletin-card .archive { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid rgba(255,255,255,.18); font-size: .92rem; }
.bulletin-card .archive li { margin-bottom: .45rem; }
.bulletin-card .archive a { color: #fff; }
@media (min-width: 880px) { .newsevents { grid-template-columns: 1.55fr 1fr; } }

/* ---------- Cards / times (reused on interior) ---------- */
.card-grid { display: grid; gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; color: var(--blue-night); }
.card .tag { display: inline-block; background: var(--cream-2); color: var(--green-deep); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 50px; margin-bottom: .6rem; }
.times-list { list-style: none; margin: 0; padding: 0; }
.times-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.times-list li:last-child { border-bottom: 0; }
.times-list .day { font-weight: 600; }
.times-list .time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Interior page header ---------- */
.page-head { position: relative; background: var(--blue-dark); color: #fff; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 150% at 100% 0%, rgba(25,151,103,.55), rgba(19,95,147,0) 60%); }
.page-head .container { position: relative; z-index: 1; padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-head h1 { color: #fff; margin: 0; }
.breadcrumbs { font-size: .92rem; margin-bottom: .5rem; color: #d4e7f4; }
.breadcrumbs a { color: #fff; }
.breadcrumbs [aria-current="page"] { color: #d4e7f4; }

/* ---------- Beliefs ---------- */
.beliefs { display: grid; gap: 1.25rem; }
.belief { background: var(--card); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.belief h2 { font-size: 1.4rem; color: var(--green-deep); margin-top: 0; display: flex; align-items: center; gap: .6rem; }
.belief h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: none; }
.belief p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .beliefs { grid-template-columns: 1fr 1fr; } .belief--wide { grid-column: 1 / -1; } }

/* ---------- Staff ---------- */
.staff-grid { display: grid; gap: 1.5rem; }
.staff-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.staff-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: .9rem; }
.staff-card .role { color: var(--green-deep); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.staff-card h2 { font-size: 1.45rem; margin: .15rem 0 .6rem; }
.staff-card p:last-child { margin-bottom: 0; }

/* ---------- Youth ---------- */
.youth-banner { display: inline-flex; align-items: center; gap: .6rem; background: var(--green-btn); color: #fff; font-weight: 700; padding: .55rem 1.1rem; border-radius: 50px; }
.youth-grid { display: grid; gap: 1.25rem; }
.youth-card { background: var(--card); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 6px solid var(--blue); }
.youth-card:nth-child(2) { border-top-color: var(--green); }
.youth-card:nth-child(3) { border-top-color: var(--blue-night); }
.youth-card .acro { font-family: var(--serif); font-size: 1.9rem; color: var(--green-deep); margin: 0; }
.youth-card .full { color: var(--blue-dark); font-weight: 700; font-style: italic; }

/* ---------- Sermons ---------- */
.sermon-list { display: grid; gap: .9rem; }
.sermon { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.05rem 1.3rem; box-shadow: var(--shadow); }
.sermon .play { width: 40px; height: 40px; border-radius: 50%; background: var(--green-btn); flex: none; display: flex; align-items: center; justify-content: center; }
.sermon .play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.sermon .title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 700; flex: 1 1 auto; }
.sermon .date { color: var(--muted); font-size: .92rem; }

/* ---------- Gallery (scrapbook) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.gallery figure { margin: 0; background: #fff; padding: .5rem .5rem 0; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(var(--r, 0deg)); transition: transform .2s ease; }
.gallery figure:hover { transform: rotate(0deg) scale(1.02); z-index: 2; }
.gallery figure a { display: block; border-radius: 6px; overflow: hidden; }
.gallery figure a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.gallery img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding: .4rem; }

/* ---------- Give ---------- */
.give-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; }
.give-card .give-body { padding: clamp(1.6rem, 4vw, 2.6rem); }
.give-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .req { color: #b3261e; }
.field input, .field textarea { width: 100%; padding: .75rem .85rem; font: inherit; color: var(--ink); border: 1px solid #c7bba2; border-radius: 12px; background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(21,120,187,.28); }
.field textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.info-card address { font-style: normal; line-height: 1.9; }
.info-card .label { font-weight: 700; color: var(--green-deep); }
.map-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: var(--cream-2); border: 1px dashed #bda878; border-radius: var(--radius); color: var(--muted); aspect-ratio: 16/10; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-night); color: #d6e3ee; padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #eaf2f8; }
.site-footer .brand-text .b1 { color: #fff; }
.site-footer .brand-text .b2 { color: var(--mint); }
.site-footer .brand img { background: #fff; border-radius: 12px; padding: 4px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.social-row { display: flex; gap: .6rem; margin-top: .9rem; }
.social-row a { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); align-items: center; justify-content: center; }
.social-row a:hover { background: var(--green-btn); }
.social-row svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 2.2rem; padding-top: 1.25rem; font-size: .88rem; color: #aabfd0; }
.footer-bottom a { color: #d6e3ee; }

/* ---------- Reveal (screen-reader safe) ---------- */
.reveal { clip-path: inset(0 0 16% 0); opacity: .001; transition: clip-path .6s ease, opacity .6s ease; }
.reveal.visible { clip-path: inset(0 0 0 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .25s ease; }
  .primary-nav.open { max-height: 84vh; visibility: visible; overflow: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1rem; }
  .primary-nav a { padding: .85rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); background: transparent; }
  .nav-cta { margin: .7rem 0 0; }
  .nav-cta a { width: 100%; justify-content: center; }
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) {
  .card-grid, .staff-grid, .youth-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cols { grid-template-columns: repeat(3, 1fr); }
  .min-cards { grid-template-columns: repeat(2, 1fr); }
  .twocol { grid-template-columns: 1fr 1fr; }
  .twocol > div + div { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .mission-split { grid-template-columns: 1.15fr 1fr; }
  .thanks { grid-template-columns: 1.1fr 1fr; }
  .give-card { grid-template-columns: 1.3fr 1fr; }
  .contact-grid { grid-template-columns: 1.05fr 1fr; }
  .events-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.5rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
@media (min-width: 901px) { .nav-toggle { display: none; } .primary-nav { position: static; max-height: none; visibility: visible; overflow: visible; box-shadow: none; border: 0; background: transparent; } }
@media (min-width: 980px) { .card-grid.cols-3, .youth-grid { grid-template-columns: repeat(3, 1fr); } .min-cards { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { clip-path: none; opacity: 1; }
  .btn:hover { transform: none; }
  .photo-tilt, .photo-tilt:nth-child(even), .gallery figure { transform: none; }
}

/* ---------- Contact form status banner (WP theme) ---------- */
.form-status { padding: .85rem 1.1rem; border-radius: 12px; font-weight: 600; margin: 0 0 1.25rem; }
.form-status--ok { background: #e3f3ea; color: #0c6043; border: 1px solid #aed8c1; }
.form-status--err { background: #fbe7e6; color: #8a1f17; border: 1px solid #e8b6b1; }
.entry-content h2 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.25rem; }
/* ---------- Click-to-load map ---------- */
.map-loader { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-loader iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-load-btn { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1.5rem; background: var(--cream-2); border: 0; cursor: pointer; color: var(--blue-dark); font: 700 1.05rem var(--sans); }
.map-load-btn:hover { background: #e4ecf4; }
.map-load-btn svg { width: 40px; height: 40px; fill: var(--green-deep); }
.map-load-btn span { font-weight: 400; color: var(--muted); font-size: .85rem; max-width: 30ch; }

/* ---------- Contact Form 7 styling (WP theme) ---------- */
.wpcf7-form p { margin: 0 0 1.1rem; }
.wpcf7-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="url"], .wpcf7-form textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; color: var(--ink); border: 1px solid #c7bba2; border-radius: 12px; background: #fff; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(21,120,187,.28); }
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input[type="submit"], .wpcf7-form .wpcf7-submit {
  display: inline-flex; align-items: center; min-height: 48px; padding: .8rem 1.7rem; cursor: pointer;
  font: 700 1.02rem var(--sans); border: 2px solid transparent; border-radius: 50px;
  background: var(--green-btn); color: #fff; box-shadow: 0 8px 18px rgba(15,122,84,.30); transition: background-color .2s, transform .15s; }
.wpcf7-form input[type="submit"]:hover { background: #0c6a49; transform: translateY(-2px); }
.wpcf7-form .wpcf7-not-valid-tip { color: #8a1f17; font-size: .9rem; }
.wpcf7 .wpcf7-response-output { border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0 0; }
/* ---------- Staff photos & featured pastor ---------- */
.staff-featured { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.5rem; }
.staff-featured img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; min-height: 320px; }
.staff-featured .sf-body { padding: clamp(1.5rem, 3.5vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.staff-featured .role { color: var(--green-deep); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.staff-featured h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .15rem 0 .6rem; }
@media (min-width: 760px) { .staff-featured { grid-template-columns: 0.85fr 1.15fr; } }
.staff-card .staff-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 22%; border-radius: 12px; margin-bottom: 1rem; }
.staff-ph { width: 100%; aspect-ratio: 4/3; border-radius: 12px; margin-bottom: 1rem; background: var(--cream-2); border: 2px dashed #c2d0de; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: var(--green-deep); text-align: center; }
.staff-ph .mono { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.staff-ph small { color: var(--muted); font-weight: 600; }

/* ---------- Embedded map ---------- */
.map-embed { width: 100%; aspect-ratio: 16/10; border: 0; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
