/* Visual system aligned to Rio Bravo Ministries–style nonprofit layout */
:root {
  --blue: #1f5f9a;
  --blue-deep: #163f6b;
  --blue-ink: #1a334d;
  --cyan: #3db5e6;
  --cyan-hover: #2aa3d4;
  --orange: #f07a2a;
  --orange-hover: #db6a1d;
  --gray: #5c6b7a;
  --gray-dark: #2d3a47;
  --line: #e6ebf0;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(22, 63, 107, 0.14);
  --radius: 18px;
  --radius-btn: 999px;
  --font: "Montserrat", system-ui, sans-serif;
  --max: 1140px;
  --header-h: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 500;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.2;
  font-weight: 800;
  color: var(--blue-ink);
  margin: 0 0 0.7em;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; color: var(--gray); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Top bar — orange like Rio Bravo */
.topbar {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
}
.topbar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.brand-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 11rem;
  line-height: 1.25;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav > a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 0.35rem 0;
}
.nav > a:not(.btn):hover,
.nav > a:not(.btn).active { color: var(--blue); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  margin: 5px auto;
}

/* Buttons — pill shaped like Rio Bravo */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-cyan {
  background: var(--cyan);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(61, 181, 230, 0.35);
}
.btn-cyan:hover { background: var(--cyan-hover); }

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-deep); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-hover); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue);
}

.nav-cta { padding: 0.7rem 1.35rem; margin-left: 0.25rem; }

/* Hero — full-bleed photo + left copy */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--blue-deep) center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 28, 48, 0.82) 0%, rgba(10, 28, 48, 0.45) 55%, rgba(10, 28, 48, 0.25) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4.5rem;
  max-width: 40rem;
  animation: rise 0.85s ease both;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  letter-spacing: 0.03em;
}
.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 36rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Inner page hero */
.page-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--blue) center / cover no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 28, 48, 0.88), rgba(22, 63, 107, 0.4));
}
.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.75rem;
}
.page-hero h1 {
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin-bottom: 0.4em;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  margin: 0;
}

/* Sections */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-blue {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}
.section-blue h2,
.section-blue h3 { color: var(--white); }
.section-blue p { color: rgba(255, 255, 255, 0.9); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-blue .eyebrow { color: var(--cyan); }

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}
.section-head h2 {
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--blue);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.media-rounded {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 340px;
}
.media-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.media-accent {
  position: relative;
}
.media-accent::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 12%;
  bottom: 12%;
  width: 18px;
  background: var(--cyan);
  border-radius: 10px;
  z-index: -1;
}

.split-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}
.split-title {
  text-transform: uppercase;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: var(--blue-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Program / ministry feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-copy h3 {
  text-transform: uppercase;
  font-size: 1.35rem;
  color: var(--gray-dark);
  margin-bottom: 0.6rem;
}

/* Cards with image */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(22, 63, 107, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body {
  padding: 1.35rem 1.4rem 1.55rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.card-body p {
  font-size: 0.95rem;
  flex: 1;
}
.card-body .link {
  margin-top: 1rem;
  color: var(--orange);
  font-weight: 750;
  font-size: 0.9rem;
}

/* FAQ */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.3rem 2.2rem 1.3rem 0;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-ink);
  cursor: pointer;
  position: relative;
}
.faq-item button::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 1.4rem;
}
.faq-item.open button::after { content: "–"; }
.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--gray);
}
.faq-item.open .faq-panel { display: block; }

/* Quote band */
.quote-band {
  background: var(--bg-soft);
  padding: 3.5rem 0;
  text-align: center;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-ink);
  line-height: 1.55;
}
.quote-band cite {
  display: block;
  margin-top: 1rem;
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Forms */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.85rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-ink);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--gray-dark);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 181, 230, 0.2);
}
textarea { min-height: 130px; resize: vertical; }

.contact-meta li { margin-bottom: 1rem; color: var(--gray); }
.contact-meta strong {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contact-meta a { color: var(--cyan); font-weight: 700; }

/* Newsletter strip */
.newsletter {
  background: var(--orange);
  color: var(--white);
  padding: 2.75rem 0;
}
.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.newsletter h2 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}
.newsletter p { margin: 0; color: rgba(255, 255, 255, 0.95); }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: min(100%, 440px);
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  border: 0;
}

/* Donate */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.amount {
  border: 2px solid var(--line);
  background: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue);
  cursor: pointer;
  border-radius: 12px;
  font-family: var(--font);
}
.amount:hover,
.amount.selected {
  border-color: var(--cyan);
  background: rgba(61, 181, 230, 0.12);
}
.donate-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.legal-note {
  font-size: 0.9rem;
  color: var(--gray);
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

/* Leadership */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.leader {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(22, 63, 107, 0.08);
}
.leader-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.leader .role {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Events */
.event-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.event-date {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .day {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}
.event-date .mon {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}
.event-row h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: 0;
}
.event-row p { margin: 0; font-size: 0.95rem; }
.meta {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  background: var(--blue-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.75rem;
}
.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.site-footer h4 {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a:hover { color: var(--cyan); }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer p { color: rgba(255, 255, 255, 0.75); }
.ein-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(61, 181, 230, 0.45);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 980px) {
  .grid-2, .grid-3, .feature-row, .contact-wrap, .donate-layout, .footer-grid, .leader-grid {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media { order: initial; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .event-row { grid-template-columns: 78px 1fr; }
  .event-row .btn { grid-column: 2; justify-self: start; }
  .media-accent::after { display: none; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.35rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-cta { width: 100%; margin: 0.4rem 0 0; }
}

@media (max-width: 640px) {
  .hero { min-height: 78vh; }
  .leader { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
