/* Living Water For Women - site stylesheet
   Brand: gold #fcb216, green #45c267, teal #0f907f, Raleway
   Lightweight, mobile-first, no framework.
*/

:root {
  --gold: #fcb216;
  --green: #45c267;
  --teal: #0f907f;
  --teal-dark: #0a5c52;
  --ink: #121212;
  --muted: #444444;
  --line: #e3ecea;
  --bg: #ffffff;
  --bg-soft: #f7fbfa;
  --max: 1120px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
}

img, video, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }

a { color: var(--teal-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container.narrow { width: min(100% - 2rem, 760px); }

.btn, .btn-learn, .btn-donate, .btn-light, a.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  border: 2px solid var(--gold);
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover, .btn-learn:hover, .btn-donate:hover, a.btn:hover {
  background: #e0a014;
  border-color: #e0a014;
  color: var(--ink);
}
.btn-light, a.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover, a.btn-light:hover { background: var(--gold); border-color: var(--gold); }

.site-header { border-bottom: 1px solid var(--line); }
.header-top { background: var(--ink); color: #fff; font-size: 0.92rem; }
.header-top a { color: #fff; text-decoration: none; }
.header-top a:hover { color: var(--gold); }
.header-top-inner, .header-main-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.header-top-inner { padding: 0.45rem 0; }
.nav-secondary ul, .nav-primary ul, .footer-col ul { list-style: none; margin: 0; padding: 0; }
.nav-secondary ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.header-top-actions { display: flex; align-items: center; gap: 1rem; }
.header-top .btn-donate { padding: 0.4rem 0.9rem; font-size: 0.9rem; }

.header-main { padding: 1rem 0 1.1rem; background: #fff; }
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.site-brand img { width: 200px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.site-title { font-weight: 700; font-size: 1.25rem; line-height: 1.25; color: var(--teal); letter-spacing: -0.01em; }
.site-tagline { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  content: "";
}
.nav-toggle-bars::before { top: -5px; position: absolute; }
.nav-toggle-bars::after { top: 5px; position: absolute; }

.nav-primary { width: 100%; }
.nav-primary ul { display: none; flex-direction: column; gap: 0; }
.nav-primary.is-open > ul { display: flex; }
.nav-primary a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { color: var(--teal); }
.nav-primary .has-sub > ul { display: none; padding-left: 1rem; }
.nav-primary.is-open .has-sub > ul,
.nav-primary .has-sub:focus-within > ul { display: flex; flex-direction: column; }
.nav-primary .has-sub > ul a { font-weight: 500; font-size: 0.95rem; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-primary { width: auto; }
  .nav-primary > ul {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem 1.1rem;
  }
  .nav-primary a { border-bottom: none; padding: 0.4rem 0; }
  .nav-primary .has-sub { position: relative; }
  .nav-primary .has-sub > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 0.4rem 0;
    z-index: 20;
  }
  .nav-primary .has-sub:hover > ul,
  .nav-primary .has-sub:focus-within > ul { display: flex; flex-direction: column; }
  .nav-primary .has-sub > ul a { padding: 0.45rem 0.9rem; }
  .site-brand img { width: 200px; }
  .site-title { font-size: 1.4rem; }
}

.site-footer { margin-top: 0; background: #1a1a1a; color: #f4f4f4; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer a.btn, .site-footer a.btn-light, .footer-cta a.btn, .footer-cta a.btn-light {
  color: var(--ink);
}
.site-footer a.btn:hover, .site-footer a.btn-light:hover {
  color: var(--ink);
}
.footer-cta {
  background: var(--teal) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 144, 127, 0.72);
}
.footer-cta .container { position: relative; }
.footer-cta-title {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 1.2rem;
  line-height: 1.3;
}
.footer-main { padding: 3.25rem 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.1fr 1.2fr 1fr 1fr; }
}
.footer-heading { font-size: 1.05rem; margin: 0 0 0.8rem; color: var(--gold); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-brand img { width: 200px; height: auto; background: #fff; padding: 0.4rem; border-radius: 4px; }
address { font-style: normal; }
.footer-seal img { background: #fff; border-radius: 50%; }
.footer-bottom { border-top: 1px solid #333; padding: 1rem 0; font-size: 0.9rem; color: #ccc; }
.footer-bottom p { margin: 0; }

.page-main { padding: 2.75rem 0 4rem; }
.home-main { padding: 0 0 4rem; }
.page-main h1, .entry h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin: 0 0 1.15rem;
}
.page-main h2, .entry h2 { color: var(--teal); font-weight: 700; line-height: 1.3; margin: 2rem 0 0.85rem; }
.page-main h3, .entry h3 { color: var(--ink); font-weight: 600; line-height: 1.35; }
.page-main p, .entry p { margin: 0 0 1.15rem; }
.entry img, .page-main img { border-radius: 2px; }
.entry figure { margin: 1.25rem 0; }
.entry figcaption { font-size: 0.9rem; color: var(--muted); }

.wp-block-media-text, .media-text {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin: 1.75rem 0;
}
@media (min-width: 700px) {
  .wp-block-media-text, .media-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .wp-block-media-text.has-media-on-the-right { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
}
.wp-block-button__link, .wp-block-buttons a.wp-block-button__link {
  display: inline-block;
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
}
.wp-block-spacer { display: none; }
blockquote, .wp-block-quote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--gold);
  font-size: 1.15rem;
}
.alignwide, .alignfull { width: 100%; }

.hero-slider { position: relative; background: #111; color: #fff; overflow: hidden; }
.slide { display: none; position: relative; min-height: 320px; }
.slide.is-active { display: block; }
.slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
@media (min-width: 800px) { .slide img { height: 520px; } }
.slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.slide-caption h2 { margin: 0 0 0.8rem; color: #fff; font-size: clamp(1.5rem, 4vw, 2.4rem); }
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
}
.slider-nav.prev { left: 0.6rem; }
.slider-nav.next { right: 0.6rem; }
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.slider-dots button {
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
}
.slider-dots button[aria-selected="true"] { background: var(--gold); }

.section { padding: 4.25rem 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-soft); }
.intro-text { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.intro-text h2 { color: var(--teal); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 0.85rem; }
.intro-text p { margin: 0; }
.card-row, .stat-row, .post-grid, .community-row { display: grid; gap: 1.75rem; }
@media (min-width: 700px) {
  .card-row, .community-row, .post-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.action-card, .community-card, .post-card, .stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 8px 24px rgba(16, 24, 32, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card, .community-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.post-card:hover, .community-card:hover {
  box-shadow: 0 2px 4px rgba(16, 24, 32, 0.05), 0 12px 28px rgba(16, 24, 32, 0.08);
}
.action-card { text-align: center; padding: 1.25rem 1rem 1.5rem; }
.action-card img { width: 96px; height: 96px; object-fit: cover; margin: 0 auto 0.8rem; border-radius: 50%; }
.action-card h3, .community-card h3, .post-card h2, .post-card h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.community-card img, .post-card img { width: 100%; height: 200px; object-fit: cover; display: block; background: #d0cfcf; }
.community-card .card-body, .post-card .card-body { padding: 1.25rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.community-card p, .post-card p { margin: 0 0 0.8rem; color: var(--muted); flex: 1; }
.post-card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.post-card .thumb-placeholder { height: 180px; background: linear-gradient(135deg, #d8efe9, #f3f3f3); }
.stat-card { padding: 1.5rem 1.2rem; text-align: center; border-top: 4px solid var(--gold); }
.stat-card .number { display: block; font-size: 2rem; font-weight: 700; color: var(--teal); line-height: 1.1; margin-bottom: 0.4rem; }
.stat-card span { font-size: 0.92rem; color: var(--muted); }

.home-cta-band {
  background: var(--teal) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4.5rem 1rem;
  position: relative;
  border-top: 1px solid var(--line);
}
.home-cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, 0.35); }
.home-cta-band .container { position: relative; }
.home-cta-band h2 { color: #fff; margin: 0 0 1.25rem; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }

.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
  .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c5d0cd;
  border-radius: 8px;
  font: inherit;
}
.form-group textarea { min-height: 10rem; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 0.8rem 1rem; border-radius: 3px; margin-bottom: 1rem; }
.form-alert.error { background: #fdeeee; border: 1px solid #cc3333; }
.form-alert.success { background: #eef9f1; border: 1px solid var(--green); }
.map-wrap iframe { width: 100%; min-height: 320px; }

.post-list { display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .post-list { grid-template-columns: 1fr 1fr; } }
.byline { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.article-hero { margin: 0 0 1.5rem; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }

.category-links { margin: 0 0 1.5rem; }
.category-links a {
  display: inline-block;
  margin: 0 0.4rem 0.4rem 0;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  text-decoration: none;
  border-radius: 99px;
  font-size: 0.9rem;
}
.category-links a[aria-current="page"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.board-member { margin-bottom: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide img { height: auto; }
}

/* Outline button, visually-hidden text, homepage hero typewriter */
.btn-outline, a.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal-dark);
}
.btn-outline:hover, a.btn-outline:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Homepage photo-banner hero.
   Switch photos by setting request.heroOption (and thus .hero-option-N) to 1, 2, or 3.
   1: /images/hero/living-water-house.jpg
      (web-sized from Living-Water-House-1.png / the 1024x536 site upload)
   2: /media/2016/05/7-1920x967-opt.jpg
   3: /media/2016/05/1402088_620683571308892_717517019_o-1920x967.jpg
*/
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 3rem 0 3.25rem;
  text-align: center;
  overflow: hidden;
  background: #06201e;
  color: #fff;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media { z-index: 0; }
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(6, 32, 30, 0.48) 0%,
      rgba(6, 36, 34, 0.70) 42%,
      rgba(5, 24, 22, 0.86) 100%
    );
  pointer-events: none;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: none;
}
.home-hero.hero-option-1 .hero-photo-1,
.home-hero.hero-option-2 .hero-photo-2,
.home-hero.hero-option-3 .hero-photo-3 { display: block; }
.home-hero.hero-option-1 .hero-photo-1 { object-position: 62% 42%; }
.home-hero.hero-option-2 .hero-photo-2 { object-position: center 55%; }
.home-hero.hero-option-3 .hero-photo-3 { object-position: center 38%; }
.home-hero .hero-inner {
  position: relative;
  z-index: 2;
}
.home-hero .hero-logo {
  width: 240px;
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
.home-hero h1 {
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-type {
  min-height: 3.6em;
  margin: 0 auto 1.35rem;
  max-width: 40rem;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  font-weight: 400;
  color: #f4f7f6;
}
.hero-type-fixed { color: #f4f7f6; }
.hero-type-phrase { color: #d8f3ee; font-weight: 600; }
.hero-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 0.15em;
  background: #fcb216;
  vertical-align: -0.08em;
  animation: caret-blink 1s steps(1, end) infinite;
}
.home-hero.is-static .hero-caret,
.hero-type.is-static .hero-caret { display: none; }
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-intro {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e7f0ee;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.home-hero .btn-outline,
.home-hero a.btn-outline {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.home-hero .btn-outline:hover,
.home-hero a.btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--teal-dark);
}
@media (max-width: 700px) {
  .home-hero {
    min-height: 60vh;
    padding: 2.25rem 0 2.5rem;
  }
  .home-hero .hero-logo { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-caret { animation: none; display: none; }
}

/* Community & Supporters */
.community-follow { margin: 0 0 2rem; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.news-list .news-meta { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.25rem; }
.news-list a { font-weight: 600; text-decoration: none; }
.news-list a:hover { text-decoration: underline; }
.news-list .news-kind { font-weight: 500; color: var(--muted); }
.community-card .card-body .meta { margin-bottom: 0.5rem; }
.community-card .caption { color: var(--ink); margin: 0 0 0.9rem; }
.home-community-teaser .post-grid { margin-bottom: 1.5rem; }

.community-thanks {
  margin: 0 0 2rem;
  max-width: 40rem;
}
.community-thanks p {
  margin: 0 0 1.25rem;
}
.community-cta-lead { font-weight: 700; margin: 0 0 0.75rem; color: var(--teal); }
.community-cta { justify-content: flex-start; margin: 0; }
.community-follow { margin-top: 0.25rem; }
.community-cta-bottom {
  margin: 2.5rem 0 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.community-cta-bottom p { margin: 0 0 1.15rem; }

/* WordPress "verse" blocks and other <pre>/<code> carried over from WordPress:
   use the normal body font and wrap on small screens instead of running off the edge. */
.entry-content pre,
.entry-content code,
.entry-content kbd,
.entry-content tt {
  font-family: inherit;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  max-width: 100%;
}
.entry-content pre { margin: 0 0 1.25rem; padding: 0; background: none; border: 0; }
