/*
Theme Name: The Grace Commission
Theme URI: https://thegracecommission.org
Author: The Grace Commission
Author URI: https://thegracecommission.org
Description: A custom WordPress theme for The Grace Commission, supporting new U.S. Greater Grace churches in their first three years.
Version: 3.0.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: grace-commission
*/

:root {
  --tgc-navy: #214f7b;
  --tgc-navy-deep: #163858;
  --tgc-blue: #3f76a9;
  --tgc-sky: #e4f0f9;
  --tgc-pale: #f5f9fc;
  --tgc-red: #b73840;
  --tgc-red-dark: #92272f;
  --tgc-ink: #172536;
  --tgc-muted: #5e6f80;
  --tgc-cream: #fffdf8;
  --tgc-white: #ffffff;
  --tgc-border: #d8e3ed;
  --tgc-gold: #c69b52;
  --tgc-shadow: 0 22px 55px rgba(31, 70, 108, .13);
  --tgc-radius: 24px;
  --tgc-radius-sm: 15px;
  --tgc-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tgc-ink);
  background: var(--tgc-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--tgc-blue); }
a:hover { color: var(--tgc-red-dark); }
button, input, textarea, select { font: inherit; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid var(--tgc-border); border-radius: 12px; background: #fff; color: var(--tgc-ink); }
textarea { min-height: 130px; resize: vertical; }
label { display: block; margin-bottom: 7px; font-weight: 750; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: min(calc(100% - 36px), var(--tgc-max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 36px), 820px); margin: 0 auto; }
.section { position: relative; padding: 92px 0; }
.section-tight { padding: 60px 0; }
.section-white { background: var(--tgc-white); }
.section-pale { background: var(--tgc-pale); }
.section-sky { background: linear-gradient(180deg, #eff7fc 0%, #dfedf8 100%); }
.section-navy { background: var(--tgc-navy); color: var(--tgc-white); }
.section-red { background: var(--tgc-red); color: var(--tgc-white); }
.anchor-offset { scroll-margin-top: 90px; }

.kicker { margin: 0 0 12px; color: var(--tgc-red); font-size: .79rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.kicker.light { color: #ffd8dc; }
.section-title { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 5vw, 4.45rem); line-height: 1.02; letter-spacing: -.04em; }
.section-copy { max-width: 780px; margin: 0; color: var(--tgc-muted); font-size: 1.08rem; }
.section-navy .section-copy, .section-red .section-copy { color: rgba(255,255,255,.84); }
.text-center { text-align: center; }
.text-center .section-copy { margin-left: auto; margin-right: auto; }

.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(33,79,123,.11); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--tgc-ink); }
.site-branding:hover { color: var(--tgc-ink); }
.brand-mark { position: relative; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: linear-gradient(145deg, var(--tgc-blue), var(--tgc-navy)); color: #fff; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 700; box-shadow: 0 8px 24px rgba(33,79,123,.2); }
.brand-mark::after { content: "3"; position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--tgc-red); color: #fff; font-family: Inter, sans-serif; font-size: .66rem; font-weight: 900; border: 3px solid #fff; }
.brand-text strong { display: block; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.05; }
.brand-text span { display: block; margin-top: 4px; color: var(--tgc-muted); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--tgc-ink); text-decoration: none; font-size: .9rem; font-weight: 750; }
.site-nav a:hover { color: var(--tgc-red); }
.site-nav .menu-item-cta > a { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 17px; border-radius: 999px; background: var(--tgc-red); color: #fff; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; color: var(--tgc-ink); }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 21px; border: 2px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 850; line-height: 1; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--tgc-red); color: #fff; box-shadow: 0 12px 28px rgba(183,56,64,.22); }
.btn-primary:hover { background: var(--tgc-red-dark); color: #fff; }
.btn-secondary { background: var(--tgc-white); border-color: var(--tgc-border); color: var(--tgc-navy); }
.btn-secondary:hover { border-color: var(--tgc-blue); color: var(--tgc-blue); }
.btn-navy { background: var(--tgc-navy); color: #fff; }
.btn-navy:hover { background: var(--tgc-navy-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-small { min-height: 40px; padding: 9px 15px; font-size: .86rem; }

.hero { position: relative; overflow: hidden; padding: 78px 0 68px; background: radial-gradient(circle at 88% 10%, rgba(183,56,64,.1), transparent 23%), radial-gradient(circle at 15% 18%, rgba(63,118,169,.13), transparent 31%), linear-gradient(180deg, #fbfdff 0%, #eaf4fb 100%); }
.hero::before { content: "3"; position: absolute; right: -38px; bottom: -195px; color: rgba(63,118,169,.05); font-family: Georgia, serif; font-size: min(54vw, 690px); line-height: 1; font-weight: 700; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr); align-items: center; gap: 50px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.84); border: 1px solid rgba(63,118,169,.2); color: var(--tgc-navy); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero-badge strong { color: var(--tgc-red); font-size: 1rem; }
.hero h1 { max-width: 860px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7.1vw, 6.25rem); line-height: .96; letter-spacing: -.057em; color: var(--tgc-navy); }
.hero h1 em { color: var(--tgc-red); font-style: normal; }
.hero-lead { max-width: 760px; margin: 26px 0 0; color: #40586e; font-size: clamp(1.08rem, 2vw, 1.34rem); line-height: 1.55; }
.hero-rhythm { margin-top: 24px; color: var(--tgc-navy); font-size: 1.03rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.hero-rhythm span { color: var(--tgc-red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--tgc-muted); font-size: .9rem; }
.hero-panel { padding: 30px; border: 1px solid rgba(63,118,169,.18); border-radius: 30px; background: rgba(255,255,255,.92); box-shadow: var(--tgc-shadow); }
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-panel-label { color: var(--tgc-muted); font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.big-three { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 24px; background: linear-gradient(145deg, var(--tgc-red), #d75960); color: #fff; font-family: Georgia, serif; font-size: 4.25rem; font-weight: 700; line-height: 1; box-shadow: 0 16px 32px rgba(183,56,64,.22); }
.hero-panel h2 { margin: 22px 0 8px; font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; color: var(--tgc-navy); }
.hero-panel p { margin: 0; color: var(--tgc-muted); }
.mini-rhythm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.mini-rhythm div { padding: 13px 8px; border-radius: 13px; background: var(--tgc-pale); color: var(--tgc-navy); text-align: center; font-size: .78rem; font-weight: 850; text-transform: uppercase; }

.stats-band { background: #fff; border-top: 1px solid var(--tgc-border); border-bottom: 1px solid var(--tgc-border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 32px 26px; text-align: center; border-right: 1px solid var(--tgc-border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--tgc-navy); font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--tgc-muted); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.callout { padding: 32px; border-radius: var(--tgc-radius); background: #fff; border: 1px solid var(--tgc-border); box-shadow: var(--tgc-shadow); }
.callout h3 { margin: 0 0 12px; font-family: Georgia, serif; color: var(--tgc-navy); font-size: 2rem; }
.callout p { margin: 0; color: var(--tgc-muted); }
.quote-card { position: relative; padding: 36px; border-radius: var(--tgc-radius); background: var(--tgc-navy); color: #fff; overflow: hidden; }
.quote-card::before { content: "3"; position: absolute; right: -10px; bottom: -70px; color: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 210px; line-height: 1; }
.quote-card blockquote { position: relative; z-index: 1; margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.55rem); line-height: 1.2; }
.quote-card cite { position: relative; z-index: 1; display: block; margin-top: 18px; color: rgba(255,255,255,.72); font-style: normal; font-size: .85rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { padding: 28px; border-radius: var(--tgc-radius); background: #fff; border: 1px solid var(--tgc-border); box-shadow: 0 14px 38px rgba(31,70,108,.08); }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--tgc-sky); color: var(--tgc-navy); font-size: 1.35rem; font-weight: 900; }
.card h3 { margin: 20px 0 10px; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.65rem; line-height: 1.15; }
.card p { margin: 0; color: var(--tgc-muted); }
.card ul { margin: 16px 0 0; padding-left: 19px; color: var(--tgc-muted); }
.card li + li { margin-top: 7px; }
.card-link { display: inline-flex; margin-top: 18px; font-weight: 850; text-decoration: none; }

.church-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.church-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 430px; border-radius: 26px; background: #fff; border: 1px solid var(--tgc-border); box-shadow: var(--tgc-shadow); }
.church-image { position: relative; min-height: 195px; background: linear-gradient(135deg, #d8e9f6 0%, #f7f2e8 100%); overflow: hidden; }
.church-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.church-image-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(33,79,123,.72); font-family: Georgia, serif; font-size: 1.6rem; text-align: center; padding: 24px; }
.church-image-placeholder::after { content: "3"; position: absolute; right: 15px; bottom: -34px; color: rgba(33,79,123,.08); font-size: 150px; }
.status-badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--tgc-red); color: #fff; font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.church-body { display: flex; flex-direction: column; flex: 1; padding: 25px; }
.church-location { color: var(--tgc-red); font-size: .77rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.church-card h3 { margin: 9px 0 8px; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.72rem; line-height: 1.15; }
.church-pastor { margin: 0 0 12px; color: var(--tgc-ink); font-weight: 750; }
.church-excerpt { margin: 0; color: var(--tgc-muted); }
.church-rhythm { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.church-rhythm span { flex: 1; padding: 8px 5px; border-radius: 10px; background: var(--tgc-pale); color: var(--tgc-navy); text-align: center; font-size: .69rem; font-weight: 850; text-transform: uppercase; }
.church-actions { display: flex; gap: 10px; margin-top: 18px; }

.adopt-panel { position: relative; overflow: hidden; padding: 46px; border-radius: 32px; background: linear-gradient(135deg, var(--tgc-navy) 0%, #2e6596 100%); color: #fff; }
.adopt-panel::after { content: "3"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.065); font-family: Georgia, serif; font-size: 280px; line-height: 1; }
.adopt-panel-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.adopt-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1; }
.adopt-panel p { color: rgba(255,255,255,.84); }
.adopt-list { display: grid; gap: 13px; }
.adopt-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); }
.adopt-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--tgc-red); color: #fff; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 700; }
.adopt-item strong { display: block; margin-bottom: 3px; }
.adopt-item span { color: rgba(255,255,255,.78); font-size: .94rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.value { padding: 30px; border-top: 4px solid var(--tgc-red); border-radius: 0 0 20px 20px; background: #fff; box-shadow: 0 15px 38px rgba(31,70,108,.08); }
.value strong { display: block; color: var(--tgc-red); font-size: .77rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.value h3 { margin: 11px 0; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.7rem; line-height: 1.15; }
.value p { margin: 0; color: var(--tgc-muted); }

.about-network { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch; }
.founder-card { display: grid; grid-template-columns: 155px 1fr; gap: 24px; align-items: center; padding: 26px; border-radius: var(--tgc-radius); background: #fff; border: 1px solid var(--tgc-border); }
.founder-photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 20px; background: linear-gradient(145deg, var(--tgc-sky), #f6eee0); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 3.2rem; font-weight: 700; }
.founder-card h3 { margin: 0 0 5px; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.8rem; }
.founder-card p { margin: 0; color: var(--tgc-muted); }
.network-links { display: grid; gap: 16px; }
.network-link { display: block; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--tgc-border); color: var(--tgc-ink); text-decoration: none; }
.network-link:hover { border-color: var(--tgc-blue); color: var(--tgc-ink); transform: translateY(-2px); }
.network-link strong { display: block; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.35rem; }
.network-link span { display: block; margin-top: 5px; color: var(--tgc-muted); font-size: .91rem; }

.logo-strip { margin-top: 42px; padding: 25px; border-radius: 20px; background: #fff; border: 1px solid var(--tgc-border); }
.logo-strip-label { margin-bottom: 16px; color: var(--tgc-muted); text-align: center; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-placeholder { display: grid; place-items: center; min-height: 70px; padding: 12px; border-radius: 12px; background: #f4f5f7; color: #7d858e; text-align: center; font-family: Georgia, serif; filter: grayscale(1); }

.newsletter-box { display: grid; grid-template-columns: 1fr .9fr; gap: 42px; align-items: center; padding: 46px; border-radius: 32px; background: linear-gradient(145deg, #fff 0%, #edf6fc 100%); border: 1px solid var(--tgc-border); box-shadow: var(--tgc-shadow); }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.inline-form input { min-height: 50px; }
.form-note { margin-top: 10px; color: var(--tgc-muted); font-size: .82rem; }

.faq-list { display: grid; gap: 12px; margin-top: 36px; }
.faq-item { border: 1px solid var(--tgc-border); border-radius: 16px; background: #fff; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 0; background: #fff; color: var(--tgc-navy); text-align: left; font-weight: 850; cursor: pointer; }
.faq-question::after { content: "+"; color: var(--tgc-red); font-size: 1.45rem; }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { display: none; padding: 0 22px 22px; color: var(--tgc-muted); }
.faq-item.open .faq-answer { display: block; }
.faq-answer p:first-child { margin-top: 0; }
.faq-answer p:last-child { margin-bottom: 0; }

.page-hero { padding: 70px 0; background: linear-gradient(180deg, #fbfdff, #eaf4fb); border-bottom: 1px solid var(--tgc-border); }
.page-hero h1 { max-width: 900px; margin: 0; color: var(--tgc-navy); font-family: Georgia, serif; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.05em; }
.page-hero p { max-width: 760px; margin: 22px 0 0; color: var(--tgc-muted); font-size: 1.18rem; }
.page-content { padding: 80px 0; }
.prose { max-width: 820px; }
.prose h2, .prose h3 { color: var(--tgc-navy); font-family: Georgia, serif; line-height: 1.15; }
.prose h2 { margin-top: 2.2em; font-size: 2.15rem; }
.prose h3 { margin-top: 1.8em; font-size: 1.45rem; }
.prose p, .prose li { color: #46596c; }
.prose a { font-weight: 750; }

.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.give-card { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--tgc-border); }
.give-card.featured { border: 2px solid var(--tgc-red); box-shadow: var(--tgc-shadow); }
.give-card h3 { margin: 0 0 8px; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.7rem; }
.give-card p { color: var(--tgc-muted); }
.give-detail { display: inline-block; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--tgc-pale); color: var(--tgc-navy); font-weight: 850; }

.form-card { padding: 34px; border-radius: 24px; background: #fff; border: 1px solid var(--tgc-border); box-shadow: var(--tgc-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--tgc-border); border-radius: 12px; font-weight: 650; }
.checkbox-label input { width: auto; margin-top: 4px; }
.honeypot { position: absolute !important; left: -9999px !important; }
.notice { margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; background: #eaf7ed; border: 1px solid #b7dec0; color: #275d32; }
.notice.error { background: #fff0f0; border-color: #edb8bb; color: #8b2b31; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 35px; }
.timeline-step { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--tgc-border); }
.timeline-step .year { display: inline-grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; background: var(--tgc-red); color: #fff; font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; }
.timeline-step h3 { margin: 17px 0 8px; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.55rem; }
.timeline-step p { margin: 0; color: var(--tgc-muted); }

.single-church-hero { position: relative; padding: 80px 0; background: linear-gradient(180deg, #f9fcff, #e7f2fa); }
.single-church-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 46px; align-items: center; }
.single-church-image { min-height: 430px; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, var(--tgc-sky), #f7efe1); box-shadow: var(--tgc-shadow); }
.single-church-image img { width: 100%; height: 100%; object-fit: cover; }

.update-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.update-card { overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--tgc-border); }
.update-card-image { aspect-ratio: 16 / 9; background: var(--tgc-sky); }
.update-card-image img { width: 100%; height: 100%; object-fit: cover; }
.update-card-body { padding: 22px; }
.update-card time { color: var(--tgc-red); font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.update-card h3 { margin: 8px 0; color: var(--tgc-navy); font-family: Georgia, serif; font-size: 1.45rem; }
.update-card p { color: var(--tgc-muted); }

.site-footer { background: var(--tgc-navy-deep); color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 46px; padding: 64px 0 45px; }
.footer-brand { max-width: 470px; }
.footer-brand h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 2rem; }
.footer-brand p { color: rgba(255,255,255,.7); }
.footer-rhythm { margin-top: 20px; color: #fff; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-rhythm span { color: #ffbbc0; }
.footer-column h3 { margin: 0 0 15px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li + li { margin-top: 9px; }
.footer-column a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-bottom { padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); font-size: .82rem; }
.footer-bottom p { margin: 4px 0; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; padding: 18px; background: #fff; border-bottom: 1px solid var(--tgc-border); box-shadow: 0 18px 36px rgba(31,70,108,.12); }
  .site-nav.open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 11px 9px; }
  .hero-grid, .split, .about-network, .newsletter-box, .adopt-panel-inner, .single-church-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-panel { max-width: 600px; }
  .three-grid, .church-grid, .value-grid, .update-grid { grid-template-columns: repeat(2, 1fr); }
  .church-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 580px; width: 100%; justify-self: center; }
  .footer-top { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 700px) {
  .container, .narrow { width: min(calc(100% - 26px), var(--tgc-max)); }
  .section { padding: 68px 0; }
  .brand-text span { display: none; }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.6rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-panel { padding: 23px; border-radius: 22px; }
  .hero-panel-top { align-items: flex-start; }
  .big-three { width: 67px; height: 67px; font-size: 3.4rem; }
  .mini-rhythm { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--tgc-border); }
  .stat:last-child { border-bottom: 0; }
  .three-grid, .church-grid, .value-grid, .update-grid, .give-grid, .timeline, .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
  .church-grid > :last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .adopt-panel { padding: 30px 22px; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { max-width: 190px; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .newsletter-box { padding: 30px 22px; }
  .inline-form { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 54px 0; }
  .church-actions, .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

@media (max-width: 480px) {
  .site-header .container { width: min(calc(100% - 20px), var(--tgc-max)); }
  .header-inner { min-height: 70px; }
  .site-nav { top: 70px; }
  .brand-mark { width: 43px; height: 43px; }
  .brand-text strong { font-size: .98rem; }
  .hero-badge { font-size: .67rem; }
  .section-title { font-size: 2.35rem; }
  .callout, .card, .form-card { padding: 23px; }
}

.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 54px; width: auto; }
.logo-placeholder { text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.logo-placeholder:hover { transform: translateY(-2px); color: #6d747c; }
.logo-placeholder img { display: block; max-width: 170px; max-height: 54px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; }
