@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

:root {
  --navy-950: #071d2b;
  --navy-900: #0c293b;
  --navy-800: #123b50;
  --river-700: #176b73;
  --river-600: #21858b;
  --river-100: #dff2ef;
  --gold-500: #d89b35;
  --gold-400: #e7b85f;
  --cream: #f7f4ec;
  --paper: #fffdf9;
  --white: #ffffff;
  --ink: #17252e;
  --muted: #5d6b73;
  --line: #dce4e5;
  --shadow-sm: 0 8px 24px rgba(7, 29, 43, .08);
  --shadow-lg: 0 24px 60px rgba(7, 29, 43, .15);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --nav-height: 86px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--river-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,253,249,.96);
  border-bottom: 1px solid rgba(12,41,59,.08);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(7,29,43,.10); background: rgba(255,253,249,.99); }
.nav-shell { width: min(calc(100% - 36px), 1280px); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 210px; height: 58px; object-fit: contain; object-position: left center; border-radius: 0; }
.nav-toggle { display: none; position: relative; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; position: absolute; left: 11px; display: block; width: 22px; height: 2px; background: var(--navy-900); transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 21px; }
.nav-toggle::after { top: 28px; }
.nav-toggle[aria-expanded='true'] span { opacity: 0; }
.nav-toggle[aria-expanded='true']::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true']::after { top: 21px; transform: rotate(-45deg); }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-list { display: flex; align-items: center; list-style: none; gap: 2px; }
.nav-item { position: relative; }
.nav-parent { display: flex; align-items: center; }
.nav-parent .nav-link { padding-right: 4px; }
.nav-parent .nav-caret { width: 28px; padding: 12px 6px; justify-content: center; }
.nav-parent:has(.nav-link.active) { background: var(--river-100); border-radius: 12px; }
.nav-parent:has(.nav-link.active) .nav-link,
.nav-parent:has(.nav-link.active) .nav-caret { background: transparent; }
.nav-link, .nav-caret {
  color: var(--navy-900); font-size: .88rem; font-weight: 650; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover, .nav-link.active, .nav-caret:hover, .nav-caret.active { color: var(--river-700); background: var(--river-100); }
.nav-caret i { font-size: .68rem; transition: transform .2s ease; }
.nav-item.open .nav-caret i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 24px); left: 0; min-width: 230px; list-style: none;
  padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu, .nav-item.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 550; }
.dropdown-menu a:hover { background: var(--river-100); color: var(--river-700); }
.nav-give { margin-left: 8px; padding: 11px 17px; border-radius: 999px; color: var(--navy-950); background: var(--gold-400); font-weight: 750; text-decoration: none; white-space: nowrap; }
.nav-give:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-1px); }

/* Hero and page banners */
.hero, .page-header { position: relative; overflow: hidden; color: white; background: var(--navy-950); }
.hero { min-height: 720px; display: flex; align-items: center; padding: calc(var(--nav-height) + 78px) 0 92px; }
.hero-image, .page-header-image { position: absolute; inset: 0; }
.hero-image img, .page-header-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.page-header-image img { object-position: center 45%; }
.hero-image::after, .page-header-image::after { content: ''; position: absolute; inset: 0; }
.hero-image::after { background: linear-gradient(90deg, rgba(7,29,43,.94) 0%, rgba(7,29,43,.78) 43%, rgba(7,29,43,.18) 78%, rgba(7,29,43,.12) 100%), linear-gradient(0deg, rgba(7,29,43,.35), transparent 55%); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--container)); margin: auto; text-align: left; }
.hero-copy { max-width: 730px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--gold-400); font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: 'Source Serif 4', Georgia, serif; line-height: 1.1; color: var(--navy-950); }
.hero-title { color: white; font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -.045em; max-width: 820px; margin-bottom: 22px; }
.hero-subtitle { color: rgba(255,255,255,.9); font-size: clamp(1.08rem, 2vw, 1.32rem); max-width: 690px; line-height: 1.65; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px 28px; color: rgba(255,255,255,.82); font-size: .92rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 9px; }
.hero-note i { color: var(--gold-400); }
.page-header { min-height: 440px; margin-top: var(--nav-height); display: grid; place-items: center; padding: 88px 20px 74px; }
.page-header-image::after { background: linear-gradient(90deg, rgba(7,29,43,.9), rgba(7,29,43,.56) 58%, rgba(7,29,43,.34)), linear-gradient(0deg, rgba(7,29,43,.45), transparent); }
.page-header-content { position: relative; z-index: 2; width: min(100%, 900px); text-align: center; }
.page-header-content::before { content: 'Together for the Gospel'; display: block; color: var(--gold-400); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px; }
.page-header-content h1 { color: white; font-size: clamp(2.7rem, 5vw, 4.7rem); letter-spacing: -.035em; margin-bottom: 16px; }
.page-about .page-header-content h1 { font-size: clamp(2.55rem, 4.4vw, 4.15rem); max-width: 980px; margin-inline: auto; }
.page-header-content p { color: rgba(255,255,255,.88); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 720px; margin: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-400); color: var(--navy-950); box-shadow: 0 12px 26px rgba(216,155,53,.22); }
.btn-primary:hover { background: var(--gold-500); color: var(--navy-950); }
.btn-secondary { color: white; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.btn-secondary:hover { background: white; color: var(--navy-900); }
.btn-outline { color: var(--river-700); border-color: var(--river-600); background: transparent; }
.btn-outline:hover { background: var(--river-700); color: white; }
.btn-give { color: var(--navy-950); background: var(--gold-400); }

/* Home */
section { padding: 88px 0; }
.welcome { background: var(--paper); position: relative; }
.welcome::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 8% 20%, rgba(33,133,139,.08), transparent 28%); pointer-events: none; }
.section-kicker { color: var(--river-700); text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 750; margin-bottom: 12px; }
.section-heading { font-size: clamp(2.25rem, 4vw, 3.7rem); letter-spacing: -.035em; margin-bottom: 18px; }
.section-lead { font-size: 1.14rem; color: var(--muted); max-width: 720px; }
.welcome-content > h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); text-align: center; margin-bottom: 18px; }
.welcome-content > p { text-align: center; font-size: 1.15rem; color: var(--muted); max-width: 780px; margin: 0 auto 45px; }
.welcome-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 34px 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature::after { content: ''; position: absolute; inset: auto 28px 0; height: 3px; background: linear-gradient(90deg,var(--river-600),var(--gold-400)); border-radius: 5px 5px 0 0; }
.feature i { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; color: var(--river-700); background: var(--river-100); font-size: 1.35rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }
.welcome-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.welcome-cta .btn-secondary { color: var(--river-700); border-color: var(--river-600); background: transparent; }
.welcome-cta .btn-secondary:hover { color: white; background: var(--river-700); }
.home-pathways { background: var(--cream); }
.pathway-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 38px; }
.pathway-card { min-height: 250px; padding: 30px; border-radius: var(--radius); background: var(--navy-900); color: white; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; text-decoration: none; }
.pathway-card::before { content: ''; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; top: -70px; right: -50px; }
.pathway-card:nth-child(2) { background: var(--river-700); }
.pathway-card:nth-child(3) { background: #704d25; }
.pathway-card i { color: var(--gold-400); font-size: 1.5rem; margin-bottom: auto; }
.pathway-card h3 { color: white; font-size: 1.65rem; margin-bottom: 8px; }
.pathway-card p { color: rgba(255,255,255,.78); }
.pathway-card:hover { color: white; transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Shared content */
.about-content, .beliefs-content, .staff-content, .history-content, .churches-content, .ministries-content, .contact-content,
.find-us-content, .background-content, .job-content { padding: 84px 0; }
.about-intro, .beliefs-intro, .staff-intro, .history-intro, .churches-intro, .ministries-intro, .contact-intro,
.background-intro, .job-intro { max-width: 850px; margin: 0 auto 52px; text-align: center; }
.about-intro h2, .beliefs-intro h2, .staff-intro h2, .history-intro h2, .churches-intro h2, .ministries-intro h2,
.contact-intro h2, .background-intro h2, .job-intro h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 16px; letter-spacing: -.03em; }
.about-intro p, .beliefs-intro p, .staff-intro p, .history-intro p, .churches-intro p, .ministries-intro p,
.contact-intro p, .background-intro p, .job-intro p { color: var(--muted); font-size: 1.12rem; }
.about-grid, .beliefs-grid, .staff-grid, .ministries-grid, .contact-cards, .heritage-grid, .directions-grid, .church-plants-grid { display: grid; gap: 22px; }
.about-grid, .beliefs-grid, .ministries-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.page-about .about-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.page-about .about-card-image { height: 230px; }
.staff-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.about-card, .belief-item, .staff-card, .ministry-card, .church-card, .contact-card, .heritage-item, .job-item,
.direction-item, .process-step, .provider-item { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s ease; }
.about-card:hover, .belief-item:hover, .staff-card:hover, .ministry-card:hover, .church-card:hover, .contact-card:hover,
.heritage-item:hover, .job-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-card-image, .staff-image, .ministry-image, .church-image { height: 285px; overflow: hidden; }
.about-card-image img, .staff-image img, .ministry-image img, .church-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.about-card:hover img, .staff-card:hover img, .ministry-card:hover img, .church-card:hover img { transform: scale(1.035); }
.about-card-content, .staff-info, .ministry-content, .church-info { padding: 28px; }
.about-card h3, .staff-info h3, .ministry-content h3, .church-info h4 { font-size: 1.45rem; margin-bottom: 10px; color: var(--navy-900); }
.about-card p, .staff-info p, .ministry-content p, .church-info p { color: var(--muted); }
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px; margin: 48px 0; background: var(--cream); border-radius: var(--radius-lg); }
.mission, .vision { padding: 26px; background: white; border-radius: var(--radius); border: 1px solid var(--line); }
.mission h3, .vision h3 { font-size: 1.55rem; margin-bottom: 12px; }
.vision-statement { color: var(--river-700); font-family: 'Source Serif 4',serif; font-size: 1.25rem; }
.stats-section { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 45px 0; }
.stat-item { padding: 28px 18px; text-align: center; background: var(--navy-900); border-radius: var(--radius); }
.stat-item h3 { color: var(--gold-400); font-size: 2.3rem; }
.stat-item p { color: rgba(255,255,255,.8); font-weight: 600; }
.belief-item { padding: 30px; }
.belief-icon, .ministry-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--river-100); color: var(--river-700); font-size: 1.35rem; margin-bottom: 20px; }
.belief-item h3 { font-size: 1.35rem; margin-bottom: 10px; }
.belief-item p { color: var(--muted); }
.staff-image { height: auto; aspect-ratio: 1 / 1; background: #2b98ac; }
.staff-image img { object-fit: cover; object-position: center center; }
.staff-title { color: var(--river-700)!important; font-weight: 700; }
.staff-details, .staff-contact { margin-top: 18px; padding: 18px; background: var(--cream); border-radius: var(--radius-sm); }
.staff-contact p { display: flex; align-items: center; gap: 9px; }
.staff-contact i { color: var(--river-700); }
.about-cta, .staff-cta, .beliefs-cta, .ministries-cta { text-align: center; margin-top: 52px; padding: 46px 30px; background: var(--navy-900); border-radius: var(--radius-lg); color: white; }
.about-cta h3, .staff-cta h3, .beliefs-cta h3, .ministries-cta h3 { color: white; font-size: 2rem; margin-bottom: 10px; }
.about-cta p, .staff-cta p, .beliefs-cta p, .ministries-cta p { color: rgba(255,255,255,.78); margin-bottom: 22px; }

/* History */
.timeline { position: relative; max-width: 980px; margin: 50px auto; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline-item { width: 50%; padding: 0 45px 38px 0; position: relative; }
.timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 38px 45px; }
.timeline-date { position: absolute; top: 0; right: -38px; z-index: 2; background: var(--gold-400); color: var(--navy-950); font-weight: 750; padding: 7px 13px; border-radius: 999px; }
.timeline-item:nth-child(even) .timeline-date { left: -38px; right: auto; }
.timeline-content { width: 100%; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.timeline-content h3 { font-size: 1.35rem; margin-bottom: 8px; }
.timeline-content p { color: var(--muted); }
.timeline-image { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 18px; }
.timeline-image.timeline-portrait { max-height: none; aspect-ratio: 1 / 1; object-fit: cover; object-position: center center; background: #2b98ac; }
.heritage-grid { grid-template-columns: repeat(3,1fr); }
.heritage-item { padding: 28px; text-align: center; }
.heritage-item i { color: var(--river-700); font-size: 1.6rem; margin-bottom: 14px; }

/* Churches and ministries */
.city-section { margin: 44px 0; }
.city-section > h4, .church-section > h3 { font-size: 1.65rem; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid var(--gold-400); }
.church-plants-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.church-image { height: 220px; }
.church-location { color: var(--river-700)!important; font-weight: 700; }
.church-leader { color: var(--ink)!important; font-weight: 600; }
.church-website { display: inline-flex; margin-top: 8px; font-weight: 700; }
.church-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.church-links a { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--river-700); background: var(--paper); font-size: .84rem; font-weight: 700; text-decoration: none; }
.church-links a:hover { color: white; background: var(--river-700); border-color: var(--river-700); }
.church-links .facebook-link:hover { background: #1877f2; border-color: #1877f2; }
.church-links .youtube-link:hover { background: #ff0000; border-color: #ff0000; }
.church-contact a { color: inherit; text-decoration: none; }
.church-contact a:hover { color: var(--river-700); text-decoration: underline; }
.church-directory-download { text-align: center; margin: 45px 0; padding: 36px; background: var(--cream); border-radius: var(--radius); }
.directory-tools { max-width: 760px; margin: 0 auto 48px; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.directory-tools label { display: block; margin-bottom: 9px; color: var(--navy-900); font-weight: 750; }
.directory-tools label i { margin-right: 7px; color: var(--river-700); }
.directory-tools input { width: 100%; padding: 13px 16px; border: 1px solid #cbd6d8; border-radius: 12px; background: white; color: var(--ink); }
.directory-tools input:focus { outline: 3px solid rgba(33,133,139,.16); border-color: var(--river-600); }
.directory-tools p { margin-top: 9px; color: var(--muted); font-size: .9rem; }
.church-email { overflow-wrap: anywhere; font-size: .88rem!important; }
.church-card[hidden], .city-section[hidden] { display: none!important; }
.ministries-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.ministry-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ministry-details h4 { font-family: 'DM Sans',sans-serif; font-size: 1rem; margin: 12px 0 6px; }
.ministry-details ul { padding-left: 20px; color: var(--muted); }

/* Contact / forms / utility pages */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item > i { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--river-100); color: var(--river-700); }
.contact-item h4 { font-family: 'DM Sans',sans-serif; margin-bottom: 2px; }
.contact-item p { color: var(--muted); }
.contact-form-section { padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form-section h3 { font-size: 1.8rem; margin-bottom: 8px; }
.form-note { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd6d8; border-radius: 11px; color: var(--ink); background: white; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 3px solid rgba(33,133,139,.16); border-color: var(--river-600); }
.form-status { min-height: 28px; margin-top: 12px; color: var(--river-700); font-weight: 700; }
.form-status.is-success { color: #176b47; }
.form-status.is-error { color: #a12b2b; }
.hp-field { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.contact-form button[disabled] { opacity: .68; cursor: wait; }
.map-section { margin-top: 55px; }
.map-section > h3 { font-size: 2rem; text-align: center; margin-bottom: 22px; }
.map-container { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-container iframe { display: block; width: 100%; border: 0; }
.map-info { padding: 24px; text-align: center; background: var(--cream); border-radius: 0 0 var(--radius) var(--radius); }
.contact-cards { grid-template-columns: repeat(4,1fr); margin-top: 45px; }
.contact-card { padding: 26px 20px; text-align: center; }
.contact-card i { color: var(--river-700); font-size: 1.5rem; margin-bottom: 12px; }
.contact-card h4 { font-family: 'DM Sans',sans-serif; margin-bottom: 8px; }
.contact-card p { color: var(--muted); }
.social-media { margin-top: 28px; }
.social-media .social-links a { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.address-info, .office-details, .background-process, .alternative-providers, .background-contact, .job-listings, .job-application { margin: 34px auto; padding: 30px; max-width: 980px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.address-info h2, .office-details h3, .background-process h2, .alternative-providers h3, .background-contact h3, .job-listings h2, .job-application h3 { margin-bottom: 14px; }
.directions-grid { grid-template-columns: repeat(3,1fr); margin: 30px 0; }
.direction-item { padding: 24px; }
.direction-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.job-item { padding: 26px; margin-bottom: 18px; }
.form-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.76); padding: 68px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 44px; }
.footer-brand img { width: 220px; height: 62px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); margin-bottom: 18px; border-radius: 0; }
.footer-brand p { max-width: 340px; }
.site-footer h3 { color: white; font-family: 'DM Sans',sans-serif; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-contact p { margin-bottom: 10px; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.footer-social a:hover { background: var(--gold-400); color: var(--navy-950); border-color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }

/* Motion and utility */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--river-700); box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 1100px) {
  .brand img { width: 180px; }
  .nav-link, .nav-caret { padding-inline: 7px; font-size: .82rem; }
  .contact-cards { grid-template-columns: repeat(2,1fr); }
  .church-plants-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  :root { --nav-height: 76px; }
  .nav-shell { width: min(calc(100% - 28px),1280px); }
  .brand img { width: 178px; height: 52px; }
  .nav-toggle { display: grid; }
  .primary-nav { position: fixed; top: var(--nav-height); left: 14px; right: 14px; max-height: calc(100vh - var(--nav-height) - 18px); overflow-y: auto; display: block; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s var(--ease); }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { display: block; }
  .nav-parent { display: grid; grid-template-columns: minmax(0,1fr) 46px; }
  .nav-parent .nav-link { padding-right: 12px; }
  .nav-parent .nav-caret { width: 46px; padding: 12px; }
  .nav-link, .nav-caret { width: 100%; justify-content: space-between; padding: 12px; font-size: .95rem; }
  .dropdown-menu { position: static; min-width: 0; display: none; margin: 3px 0 7px 14px; padding: 5px; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--cream); }
  .nav-item.open .dropdown-menu { display: block; }
  .nav-give { display: flex; justify-content: center; margin: 10px 0 2px; }
  .hero { min-height: 660px; }
  .hero-image::after { background: linear-gradient(90deg,rgba(7,29,43,.92),rgba(7,29,43,.64)),linear-gradient(0deg,rgba(7,29,43,.4),transparent); }
  .welcome-features, .pathway-grid, .heritage-grid, .directions-grid { grid-template-columns: 1fr; }
  .about-grid, .beliefs-grid, .staff-grid, .ministries-grid, .contact-grid, .mission-vision { grid-template-columns: 1fr; }
  .page-about .about-grid { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .timeline::before { left: 12px; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 28px 46px; }
  .timeline-date, .timeline-item:nth-child(even) .timeline-date { left: 0; right: auto; transform: translateX(-30%); position: relative; display: inline-flex; margin-bottom: 12px; }
}

@media (max-width: 620px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .container { width: min(calc(100% - 28px),var(--container)); }
  section, .about-content, .beliefs-content, .staff-content, .history-content, .churches-content, .ministries-content, .contact-content, .find-us-content, .background-content, .job-content { padding: 64px 0; }
  .hero { min-height: 620px; padding-top: calc(var(--nav-height) + 50px); }
  .hero-content { width: 100%; max-width: 100%; padding: 0 20px; }
  .hero-copy { width: 100%; max-width: 100%; min-width: 0; }
  .hero-title { max-width: 100%; font-size: clamp(2.35rem,11vw,3rem); overflow-wrap: break-word; word-break: normal; }
  .hero-subtitle { max-width: 100%; font-size: 1rem; line-height: 1.55; overflow-wrap: break-word; }
  .hero-buttons { width: 100%; }
  .hero-buttons .btn { width: 100%; max-width: 100%; padding-inline: 14px; }
  .hero-note { display: none; }
  .page-header { min-height: 370px; padding-inline: 14px; }
  .page-header-content h1 { font-size: 2.65rem; overflow-wrap: break-word; }
  .stats-section, .contact-cards, .church-plants-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-card-image, .ministry-image, .church-image { height: 235px; }
  .staff-image { height: 285px; }
  .about-card-content, .staff-info, .ministry-content, .church-info, .contact-form-section { padding: 22px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
}

@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 { opacity: 1; transform: none; }
}
