/* ============================================================
   Design tokens
   ============================================================ */

:root {
  --color-terracotta: #b5502f;
  --color-terracotta-dark: #93401f;
  --color-teal: #1f3a3d;
  --color-teal-light: #2c4a52;
  --color-cream: #faf6ef;
  --color-cream-alt: #f2ead9;
  --color-charcoal: #2a2420;
  --color-charcoal-muted: #6b5e52;
  --color-border: #e4d9c6;
  --color-white: #fffdfa;

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --max-width-narrow: 720px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ============================================================
   Reset / base
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-terracotta-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-6) 0;
}

.section--tight {
  padding: var(--space-5) 0;
}

.band {
  background: var(--color-cream-alt);
}

.band--dark {
  background: var(--color-teal);
  color: var(--color-cream);
}

.band--dark h2,
.band--dark h3 {
  color: var(--color-white);
}

/* Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.9rem, 2.5vw + 1rem, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta-dark);
  margin-bottom: 0.75rem;
}

.band--dark .eyebrow {
  color: #e8b79a;
}

.lede {
  font-size: 1.2rem;
  color: var(--color-charcoal-muted);
  max-width: 42rem;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2.1rem);
  line-height: 1.4;
  color: var(--color-teal);
  border-left: 3px solid var(--color-terracotta);
  padding-left: var(--space-3);
  margin: var(--space-5) 0;
}

.edit-me-inline {
  font-style: italic;
  opacity: 0.85;
  border-bottom: 1px dashed currentColor;
  text-decoration: none;
}

.edit-me {
  display: block;
  font-style: italic;
  color: var(--color-charcoal-muted);
  background: repeating-linear-gradient(
    -45deg,
    rgba(181, 80, 47, 0.06),
    rgba(181, 80, 47, 0.06) 10px,
    transparent 10px,
    transparent 20px
  );
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-terracotta);
  color: var(--color-white) !important;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-teal) !important;
  border: 1.5px solid var(--color-teal);
}

.btn--ghost:hover {
  background: var(--color-teal);
  color: var(--color-white) !important;
}

.band--dark .btn--ghost {
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.5);
}

.band--dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   Header / nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-terracotta-dark);
}

.site-nav .btn {
  padding: 0.55rem 1.3rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.3rem;
    font-family: var(--font-display);
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  overflow: hidden;
}

.hero .photo-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  aspect-ratio: auto;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 27, 21, 0.75) 0%, rgba(31, 27, 21, 0.15) 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-5) 1.5rem var(--space-5);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.hero .tagline {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero {
  padding: var(--space-6) 0 var(--space-4);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

/* ============================================================
   Photo placeholders
   ============================================================ */

.photo-placeholder {
  background: var(--color-cream-alt);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal-muted);
  text-align: center;
  font-size: 0.85rem;
  padding: 1rem;
  aspect-ratio: var(--aspect, 4 / 3);
}

.photo-placeholder svg {
  display: block;
  margin: 0 auto 0.5rem;
  opacity: 0.45;
}

/* Once a real <img> is dropped inside, drop the placeholder chrome and
   let the photo fill the box. */
.photo-placeholder:has(img) {
  border: none;
  background: none;
  padding: 0;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Split / editorial layout
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

@media (max-width: 780px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .split--reverse {
    direction: ltr;
  }
}

.stagger-photo {
  position: relative;
}

.stagger-photo .photo-placeholder:nth-child(2) {
  width: 55%;
  position: absolute;
  bottom: -10%;
  right: -10%;
  --aspect: 1 / 1;
  border: 4px solid var(--color-cream);
  box-shadow: 0 10px 30px rgba(42, 36, 32, 0.15);
}

@media (max-width: 780px) {
  .stagger-photo {
    margin-bottom: 3rem;
  }
}

/* ============================================================
   Carousel (What I Do)
   ============================================================ */

.carousel {
  margin-top: 2.5rem;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  display: block;
  color: var(--color-white);
  text-decoration: none !important;
  overflow: hidden;
}

.carousel-slide .photo-placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 27, 21, 0.78) 0%, rgba(31, 27, 21, 0.05) 55%);
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  z-index: 2;
}

.carousel-caption h3 {
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.carousel-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f0e6d6;
}

.carousel-slide:hover .carousel-cta {
  text-decoration: underline;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(250, 246, 239, 0.85);
  color: var(--color-charcoal);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--color-white);
}

.carousel-arrow--prev {
  left: 0.75rem;
}

.carousel-arrow--next {
  right: 0.75rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-terracotta);
}

@media (max-width: 640px) {
  .carousel-slide {
    aspect-ratio: 4 / 3;
  }

  .carousel-arrow {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.2rem;
  }
}

/* ============================================================
   Path cards (Give / Pray / Stay Connected)
   ============================================================ */

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.path-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-4);
  display: block;
  text-decoration: none;
  color: var(--color-charcoal);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.path-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-3px);
  text-decoration: none;
}

.path-card h3 {
  color: var(--color-terracotta-dark);
}

.path-card .arrow {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--color-teal);
}

/* ============================================================
   Stat cards (Support page budget)
   ============================================================ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: var(--space-4);
}

.stat-card .amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-terracotta-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-card .note {
  color: var(--color-charcoal-muted);
  font-size: 0.9rem;
}

.total-card {
  background: var(--color-teal);
  color: var(--color-white);
  border-radius: 10px;
  padding: var(--space-4) var(--space-5);
  text-align: center;
  margin: var(--space-4) 0;
}

.total-card .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* FAQ (native details/summary) */

.faq {
  border-top: 1px solid var(--color-border);
}

.faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-terracotta);
  margin-left: 1rem;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq p {
  margin-top: 0.75rem;
  color: var(--color-charcoal-muted);
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery .photo-placeholder {
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery .photo-placeholder:hover {
  transform: scale(1.02);
}

/* ============================================================
   Stories
   ============================================================ */

.story-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.story-entry {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.story-entry:last-child {
  border-bottom: none;
}

.story-date {
  color: var(--color-terracotta-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.story-entry h3 {
  margin-bottom: 0.75rem;
}

.story-excerpt {
  margin: 0;
}

.story-full {
  display: none;
}

.story-entry.is-expanded .story-full {
  display: block;
  margin-top: 0.75rem;
}

.story-entry.is-expanded .story-excerpt {
  display: none;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--color-teal);
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 0 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.read-more-btn:hover {
  color: var(--color-terracotta-dark);
}

@media (max-width: 700px) {
  .story-entry {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.pagination button {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination button:hover {
  background: var(--color-cream-alt);
}

.pagination button.active {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   Prayer lists
   ============================================================ */

.prayer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prayer-list li {
  background: var(--color-white);
  border-left: 3px solid var(--color-terracotta);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.4rem;
}

.prayer-list--praise li {
  border-left-color: var(--color-teal);
}

.prayer-list .prayer-date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-charcoal-muted);
  margin-bottom: 0.25rem;
}

/* ============================================================
   Forms
   ============================================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 34rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-charcoal);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-charcoal-muted);
}

.newsletter-inline {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter-inline input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-teal);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .logo {
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   Utility
   ============================================================ */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
