/* Solace Education Center — warm, church-appropriate, dynamic styling */

:root {
  --solace-navy: #1a365d;
  --solace-teal: #2c7a7b;
  --solace-teal-dark: #236666;
  --solace-gold: #c9a227;
  --solace-cream: #faf6f0;
  --solace-warm: #8b4513;
  --solace-soft: #f7fafc;
  --solace-border: #e2e8f0;
  --solace-muted: #4a5568;
  --solace-lift: 0 12px 28px rgba(26, 54, 93, 0.12);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1a365d 0%, #2c7a7b 55%, #319795 100%);
  background-size: 200% 200%;
  color: #fff;
  padding: 3.5rem 2rem;
  border-radius: 0.65rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--solace-lift);
}

.hero.hero-animated {
  animation: heroGradient 14s ease-in-out infinite alternate;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: #fff !important;
  border-bottom: none;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.hero .location {
  font-size: 1rem;
  opacity: 0.85;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ---------- Callouts ---------- */
.need-callout {
  background: #fff8e6;
  border-left: 5px solid var(--solace-gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.35rem 0.35rem 0;
}

.need-callout h3 {
  margin-top: 0;
  color: var(--solace-navy);
}

.gospel-callout {
  background: var(--solace-cream);
  border-left: 5px solid var(--solace-teal);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.35rem 0.35rem 0;
  font-style: italic;
}

.sources-note {
  background: #f8fafc;
  border: 1px solid var(--solace-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 2rem 0 1rem;
  font-size: 0.9rem;
  color: var(--solace-muted);
}

.sources-note h3,
.sources-note h4 {
  margin-top: 0;
  color: var(--solace-navy);
  font-size: 1rem;
}

.sources-note ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

/* ---------- Stats / counters ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.stat-card {
  background: var(--solace-soft);
  border: 1px solid var(--solace-border);
  border-radius: 0.65rem;
  padding: 1.35rem 1.5rem;
  text-align: center;
  min-width: 140px;
  flex: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--solace-lift);
}

.stat-card .num,
.stat-card [data-count] {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--solace-teal);
  display: block;
  line-height: 1.2;
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--solace-muted);
  margin-top: 0.35rem;
  display: block;
}

.stat-card .hint {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 0.25rem;
  display: block;
}

/* ---------- CTA ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.cta-row a {
  display: inline-block;
  padding: 0.7rem 1.45rem;
  border-radius: 0.4rem;
  text-decoration: none !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary {
  background: var(--solace-teal);
  color: #fff !important;
  box-shadow: 0 0 0 0 rgba(44, 122, 123, 0.45);
  animation: ctaPulse 2.8s ease-in-out infinite;
}

.cta-primary:hover {
  background: var(--solace-teal-dark);
  color: #fff !important;
  transform: translateY(-2px);
}

.cta-secondary {
  background: transparent;
  border: 2px solid var(--solace-navy);
  color: var(--solace-navy) !important;
}

.cta-secondary:hover {
  background: var(--solace-navy);
  color: #fff !important;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(44, 122, 123, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(44, 122, 123, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-animated { animation: none; }
  .cta-primary { animation: none; }
}

/* ---------- Teaser / impact cards ---------- */
.teaser-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin: 1.5rem 0 2rem;
}

.teaser-card,
.impact-card {
  background: #fff;
  border: 1px solid var(--solace-border);
  border-radius: 0.75rem;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.teaser-card:hover,
.impact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--solace-lift);
  border-color: #cbd5e0;
}

.teaser-card h3,
.impact-card h3 {
  margin-top: 0;
  color: var(--solace-navy);
  font-size: 1.15rem;
}

.teaser-card .year-tag,
.impact-card .year-tag {
  display: inline-block;
  background: rgba(44, 122, 123, 0.12);
  color: var(--solace-teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.teaser-card a.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--solace-teal) !important;
  text-decoration: none !important;
}

.teaser-card a.card-link:hover {
  text-decoration: underline !important;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin: 2rem 0 2.5rem;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 3px;
  background: linear-gradient(180deg, var(--solace-navy), var(--solace-teal), var(--solace-gold));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--solace-border);
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;
  margin-bottom: 1.1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.42rem;
  top: 1.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--solace-teal);
  box-shadow: 0 0 0 3px rgba(44, 122, 123, 0.15);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.timeline-item.is-active {
  border-color: var(--solace-teal);
  box-shadow: var(--solace-lift);
  transform: translateX(4px);
}

.timeline-item.is-active::before {
  background: var(--solace-teal);
  border-color: var(--solace-navy);
}

.timeline-item .tl-year {
  font-weight: 700;
  color: var(--solace-teal);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  margin: 0 0 0.4rem;
  color: var(--solace-navy);
  font-size: 1.15rem;
}

.timeline-item p {
  margin-bottom: 0.35rem;
  color: #2d3748;
}

.timeline-item .tl-note {
  font-size: 0.85rem;
  color: var(--solace-muted);
  font-style: italic;
}

/* ---------- Impact tabs ---------- */
.impact-tabs {
  margin: 1.5rem 0 2rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-list button {
  border: 1px solid var(--solace-border);
  background: #fff;
  color: var(--solace-navy);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-list button.is-active,
.tab-list button:hover {
  background: var(--solace-navy);
  color: #fff;
  border-color: var(--solace-navy);
}

.highlight-panel {
  display: none;
  background: var(--solace-cream);
  border: 1px solid #edd9b0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
}

.highlight-panel.is-active {
  display: block;
}

.highlight-panel h3 {
  margin-top: 0;
  color: var(--solace-navy);
}

/* ---------- Reveal animations ---------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-ready.reveal-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Image captions ---------- */
.figure-caption, figcaption, .quarto-figure figcaption {
  font-size: 0.85rem;
  color: #718096;
  font-style: italic;
}

/* ---------- Proposal / summary headers ---------- */
.proposal-cover {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border-bottom: 3px solid var(--solace-gold);
  margin-bottom: 2rem;
}

.proposal-cover h1 {
  color: var(--solace-navy);
  border-bottom: none;
}

.proposal-meta {
  color: var(--solace-muted);
  font-size: 1.05rem;
}

.briefing-header {
  background: var(--solace-navy);
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.35rem;
  margin-bottom: 1.5rem;
}

.briefing-header h1 {
  color: #fff !important;
  border: none;
  margin: 0;
  font-size: 1.6rem;
}

.briefing-header p {
  margin: 0.35rem 0 0;
  opacity: 0.9;
}

.track-record {
  background: #f0faf9;
  border: 1px solid #b2e0dc;
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}

.track-record h3 {
  margin-top: 0;
  color: var(--solace-navy);
}

.table {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .hero { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 1.85rem; }
  .timeline { padding-left: 1.4rem; }
}

@media print {
  .hero { background: #1a365d !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .navbar, .page-footer, nav, .toc { display: none !important; }
  .cta-primary { animation: none; }
  .reveal-ready { opacity: 1 !important; transform: none !important; }
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin: 1.5rem 0 2rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--solace-border);
  border-radius: 0.75rem;
  padding: 1.4rem 1.45rem;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.04);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--solace-lift);
}

.testimonial-card.coming-soon {
  background: linear-gradient(180deg, #fffef9 0%, #faf6f0 100%);
  border-style: dashed;
  border-color: #d6c39a;
}

.testimonial-card .quote-mark {
  font-size: 2rem;
  line-height: 1;
  color: var(--solace-gold);
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.testimonial-card h3 {
  margin-top: 0;
  color: var(--solace-navy);
  font-size: 1.1rem;
}

.testimonial-card .attribution {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--solace-teal);
  font-size: 0.95rem;
}

.testimonial-card .role {
  display: block;
  font-weight: 400;
  color: var(--solace-muted);
  font-size: 0.85rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.photo-grid .quarto-figure,
.photo-grid figure {
  margin: 0;
}
