/**
 * PAGES.CSS
 * Page-specific styles
 *
 * This file contains styles that are specific to individual pages.
 * Unlike components.css (reusable UI patterns), these styles are
 * used on single pages and customize layouts for specific content.
 *
 * Sections:
 * 1. Page Hero (generic hero for inner pages)
 * 2. Donate Page (donation form, impact cards)
 * 3. About Page (values grid, intro section)
 * 4. Where We Work (stats, challenges grid)
 * 5. Programs Page (program details, future cards)
 * 6. Get Involved (involvement cards, spread list)
 * 7. Contact Page (form, contact info cards)
 * 8. Placeholder/Coming Soon
 *
 * When to add styles here vs. components.css:
 * - If a style is used on multiple pages → components.css
 * - If a style is specific to one page → pages.css
 */

/* =============================
   PAGE HERO (Generic)
   ============================= */

.hero-page {
  text-align: center;
  background: linear-gradient(135deg, var(--sun-glow), var(--sun-pale));
}

.hero-page .hero-text {
  margin: 0 auto;
}

.hero-page-short {
  padding: var(--space-lg) var(--space-md);
}

/* =============================
   DONATE PAGE
   ============================= */

/* Impact Cards */

.impact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

/* Giving Grid */
.giving-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .giving-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Giving Cards */
.giving-card {
  padding: var(--space-md);
}

.giving-amount {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

/* Donate Form Centered */
.donate-form-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.donate-form-centered h2 {
  margin-bottom: var(--space-sm);
}

.donate-form-centered .lead {
  margin-bottom: var(--space-md);
}

/* Donorbox Widget */
.donate-form-centered dbox-widget,
dbox-widget {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: var(--space-md) auto 0;
}

/* =============================
   ABOUT PAGE
   ============================= */

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

.value-item h3 {
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.value-item p {
  font-size: 0.95rem;
}

/* =============================
   WHERE WE WORK PAGE
   ============================= */

.stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .stats-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Challenges Grid */
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.challenge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.challenge-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.challenge-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* =============================
   PROGRAMS PAGE
   ============================= */

/* Program Detail */
.program-detail {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.program-detail:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.program-detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 900px) {
  .program-detail-content {
    grid-template-columns: 1fr 1fr;
  }
}

.program-detail-text h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.program-detail-text .lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.program-detail-text h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.program-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

.program-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--sun);
  border-radius: 50%;
}

/* Program Detail Reverse */
@media (min-width: 900px) {
  .program-detail-reverse .program-detail-text {
    order: 2;
  }

  .program-detail-reverse .program-detail-image {
    order: 1;
  }
}

/* Future Programs */
.future-card {
  border-left: 3px solid var(--sun);
}

.future-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

/* =============================
   GET INVOLVED PAGE
   ============================= */

.involvement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .involvement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.involvement-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.involvement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.involvement-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.involvement-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.involvement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.involvement-list li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.involvement-list li:last-child {
  border-bottom: none;
}

.involvement-card .btn {
  display: block;
  margin: auto auto 0;
  width: fit-content;
}

/* Spread List */
.spread-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0 0;
}

.spread-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.spread-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sun);
  font-weight: 700;
}

/* =============================
   CONTACT PAGE
   ============================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.required {
  color: var(--terracotta);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun-pale);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
}

.form-success {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.form-success h3 {
  color: var(--success);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--text);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.contact-info-card-highlight {
  background: linear-gradient(135deg, var(--sun-pale), var(--sun-glow));
  border: none;
  text-align: center;
}

.contact-method {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--sun-pale);
  color: var(--sun);
  border-radius: var(--radius-sm);
}

.contact-method strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.contact-method p {
  margin: 0;
  font-size: 0.9rem;
}

/* =============================
   PLACEHOLDER / COMING SOON
   ============================= */

.page-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  max-width: 500px;
}

.placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--sun-pale);
  border-radius: 50%;
  margin-bottom: var(--space-md);
  color: var(--sun);
}

.placeholder-content h1 {
  margin-bottom: var(--space-sm);
}

.placeholder-content p {
  margin-bottom: var(--space-sm);
}

.placeholder-content .btn {
  margin-top: var(--space-md);
}
