/* === FAITH SECTION: DARK SANCTUARY === */
/* Dark candlelit aesthetic for sacred Catholic testimony */
/* Warm liturgical gold accents, reverent feel, ancient not technological */

/* === FAITH-SPECIFIC VARIABLES === */
body.faith-section {
  /* Dark Sanctuary palette */
  --faith-gold: #d4af37;
  --faith-gold-dim: rgba(212, 175, 55, 0.6);
  --faith-gold-glow: rgba(212, 175, 55, 0.3);
  --faith-bg: #0a0a0a;
  --faith-surface: #111111;
  --faith-surface-elevated: #161616;
  --faith-text: #e8e8e8;
  --faith-muted: #888888;
  --faith-dim: #333333;
  --faith-border: #2a2a2a;
  --faith-border-light: #1a1a1a;

  /* Override green with gold for this page (nav/footer prompt) */
  --green: var(--faith-gold);

  /* Override defaults for dark theme */
  background-color: var(--faith-bg);
  color: var(--faith-text);
  font-family: var(--font-sans);
}

/* Subtle noise texture (warm, candlelit feel) */
body.faith-section::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

body.faith-section .container {
  position: relative;
  z-index: 1;
}

/* === ANIMATIONS === */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gentleGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes candleFlicker {
  0%, 100% { opacity: 0.8; filter: blur(12px); }
  25% { opacity: 0.6; filter: blur(14px); }
  50% { opacity: 0.9; filter: blur(10px); }
  75% { opacity: 0.7; filter: blur(13px); }
}

/* === HERO === */
.faith-hero {
  min-height: 50vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-bottom: 1px solid var(--faith-border-light);
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

/* Terminal-style marker with gold accent */
.hero-marker {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.marker-line {
  width: 8px;
  height: 8px;
  background: var(--faith-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--faith-gold-glow), 0 0 24px var(--faith-gold-glow);
}

.marker-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--faith-muted);
}

.faith-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-lg);
  color: var(--faith-text);
  text-transform: uppercase;
}

.hero-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--faith-muted);
  margin: 0 0 var(--spacing-md);
}

.hero-lead strong {
  color: var(--faith-text);
  font-weight: 500;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--faith-muted);
  margin: 0;
}

.hero-sub::before {
  content: '// ';
  color: var(--faith-gold);
}

/* === HERO VISUAL - Jerusalem Cross === */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.faith-symbol {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Jerusalem Cross - Gold with glow */
svg.jerusalem-cross {
  width: clamp(140px, 20vw, 200px);
  height: clamp(140px, 20vw, 200px);
  color: var(--faith-gold);
  opacity: 0.7;
  filter: drop-shadow(0 0 8px var(--faith-gold-glow));
}

.symbol-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--faith-gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: candleFlicker 6s ease-in-out infinite;
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-lg);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--faith-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--faith-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--faith-gold-glow);
}

/* === INVITATION CARDS === */
.invitation-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--faith-border-light);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.invitation-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-mono);
  border: 1px solid var(--faith-border);
  background: var(--faith-surface);
}

.invitation-card {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: var(--spacing-lg);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--faith-border-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  position: relative;
}

.invitation-card:last-child {
  border-bottom: none;
}

.invitation-card:hover {
  background: rgba(212, 175, 55, 0.03);
  text-decoration: none;
}

.invitation-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s ease;
}

.invitation-card:hover::before {
  background: var(--faith-gold);
  box-shadow: 0 0 8px var(--faith-gold-glow);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--faith-muted);
  padding-top: 4px;
  transition: color 0.15s ease;
}

.invitation-card:hover .card-number {
  color: var(--faith-gold);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-content h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--faith-text);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-content p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--faith-muted);
  line-height: 1.6;
  margin: 0;
}

.card-arrow {
  font-size: 1rem;
  color: var(--faith-muted);
  align-self: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.invitation-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--faith-gold);
}

/* === SCRIPTURE BLOCKQUOTE - Sacred Treatment === */
.scripture-section {
  padding: var(--spacing-2xl) 0;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.scripture {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-2xl);
  background: var(--faith-surface);
  border: 1px solid var(--faith-border);
  border-left: 4px solid var(--faith-gold);
  position: relative;
  text-align: center;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.05);
}

.scripture::before {
  content: '"';
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-lg);
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--faith-gold);
  opacity: 0.25;
  line-height: 1;
  text-shadow: 0 0 20px var(--faith-gold-glow);
}

.scripture::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--faith-gold);
  box-shadow: 0 0 12px var(--faith-gold-glow);
}

.scripture p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--faith-text);
  line-height: 1.7;
  margin: 0 0 var(--spacing-md);
}

.scripture cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faith-gold);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--faith-gold-glow);
}

/* === WHY SECTION === */
.why-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--faith-border-light);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.why-content {
  max-width: 700px;
}

.why-intro {
  margin-bottom: var(--spacing-xl);
}

.why-intro p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--faith-muted);
  margin: 0 0 var(--spacing-md);
}

.why-intro p:last-child {
  margin-bottom: 0;
}

/* Log-style points with gold accents */
.why-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-mono);
  border: 1px solid var(--faith-border);
  background: var(--faith-surface);
}

.why-point {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--spacing-lg);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--faith-border-light);
  position: relative;
}

.why-point:last-child {
  border-bottom: none;
}

.why-point::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--faith-gold);
  opacity: 0.3;
}

.point-marker {
  width: 8px;
  height: 8px;
  background: var(--faith-gold);
  border-radius: 50%;
  margin-top: 8px;
  opacity: 0.7;
  box-shadow: 0 0 6px var(--faith-gold-glow);
}

.point-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--faith-text);
  margin: 0 0 var(--spacing-sm);
}

.point-content p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--faith-muted);
  line-height: 1.75;
  margin: 0;
}

.point-content em {
  font-style: italic;
  color: var(--faith-text);
}

/* === BASICS SECTION === */
.basics-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--faith-border-light);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.basics-content {
  max-width: 650px;
}

.basics-intro {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--faith-muted);
  margin: 0 0 var(--spacing-lg);
}

.basics-intro::before {
  content: '// ';
  color: var(--faith-gold);
}

.basics-core {
  padding: var(--spacing-xl);
  background: var(--faith-surface);
  border: 1px solid var(--faith-border);
  border-left: 4px solid var(--faith-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.03);
}

.basics-core p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--faith-muted);
  margin: 0 0 var(--spacing-md);
}

.basics-core p:last-child {
  margin-bottom: 0;
}

.basics-core strong {
  color: var(--faith-text);
  font-weight: 600;
}

/* === RETURN SECTION === */
.return-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--faith-border-light);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

.return-content {
  max-width: 650px;
}

.return-intro {
  margin-bottom: var(--spacing-xl);
}

.return-intro p {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--faith-muted);
  line-height: 1.8;
  margin: 0 0 var(--spacing-md);
}

.return-intro p:last-child {
  margin-bottom: 0;
}

.return-steps h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faith-muted);
  margin: 0 0 var(--spacing-lg);
}

/* Log-style numbered steps with gold */
.return-steps {
  font-family: var(--font-mono);
  border: 1px solid var(--faith-border);
  background: var(--faith-surface);
  padding: var(--spacing-lg);
}

.return-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--spacing-md);
  align-items: start;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--faith-border-light);
}

.return-point:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.return-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--faith-gold);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--faith-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--faith-gold-glow);
}

.return-text {
  padding-top: 4px;
}

.return-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--faith-text);
  margin-bottom: var(--spacing-xs);
}

.return-text span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--faith-muted);
}

/* === RESOURCES SECTION === */
.resources-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--faith-border-light);
  border-bottom: 1px solid var(--faith-border-light);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
}

.resource-category h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--faith-muted);
  margin: 0 0 var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.resource-category h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--faith-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--faith-gold-glow);
}

.resource-list {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  border: 1px solid var(--faith-border);
  background: var(--faith-surface);
}

.resource-item {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--faith-border-light);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-link {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  padding: var(--spacing-sm) var(--spacing-md);
  position: relative;
}

.resource-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.resource-link:hover {
  text-decoration: none;
  background: rgba(212, 175, 55, 0.05);
}

.resource-link:hover::before {
  background: var(--faith-gold);
  box-shadow: 0 0 8px var(--faith-gold-glow);
}

.resource-link:hover .resource-title {
  color: var(--faith-gold);
}

.resource-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--faith-text);
  transition: color 0.15s ease;
}

.resource-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faith-muted);
}

.resource-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faith-muted);
  flex: 1;
}

.resource-arrow {
  font-size: 0.85rem;
  color: var(--faith-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.resource-link:hover .resource-arrow {
  transform: translateX(4px);
  color: var(--faith-gold);
}

/* === CTA SECTION === */
.cta-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

.cta-content {
  max-width: 480px;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--faith-text);
  margin: 0 0 var(--spacing-sm);
  text-transform: uppercase;
}

.cta-content > p {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--faith-muted);
  line-height: 1.7;
  margin: 0 0 var(--spacing-lg);
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

/* CTA button with gold accent */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--faith-gold);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px var(--faith-gold-glow);
}

.cta-link:hover {
  background: #e5c040;
  color: #0a0a0a;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  text-decoration: none;
}

.cta-link span {
  transition: transform 0.2s ease;
}

.cta-link:hover span {
  transform: translateX(4px);
}

.cta-alt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faith-muted);
}

.cta-alt::before {
  content: '// ';
  color: var(--faith-muted);
}

/* === CLOSING SECTION === */
.closing-section {
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid var(--faith-border-light);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.0s;
  opacity: 0;
}

.closing-quote {
  max-width: 500px;
  margin: 0 auto var(--spacing-lg);
  padding: 0;
  background: none;
  border: none;
}

.closing-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--faith-muted);
  line-height: 1.7;
  margin: 0 0 var(--spacing-sm);
}

.closing-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faith-muted);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing-latin {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--faith-gold);
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--faith-gold-glow);
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
  .faith-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--spacing-xl);
  }

  .hero-visual {
    justify-content: flex-start;
    padding-left: var(--spacing-lg);
  }

  svg.jerusalem-cross {
    width: 120px;
    height: 120px;
  }

  .symbol-glow {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .faith-hero {
    padding: var(--spacing-2xl) 0;
  }

  .faith-hero h1 {
    font-size: 2.5rem;
  }

  .hero-visual {
    display: none;
  }

  .invitation-card {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
  }

  .card-number {
    padding-top: 0;
  }

  .card-arrow {
    display: none;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .scripture {
    padding: var(--spacing-lg);
    text-align: left;
  }

  .scripture::before {
    display: none;
  }

  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
}

@media (max-width: 500px) {
  .why-point {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .point-marker {
    display: none;
  }

  .return-point {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .return-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .scripture p {
    font-size: 1.1rem;
  }
}
